browserstack-node-sdk 1.50.7 → 1.50.9

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 (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a109_0x2ed5a0=a109_0x330c;(function(_0x26f54e,_0x301126){const _0x2ce0b5=a109_0x330c,_0x4ab2ba=_0x26f54e();while(!![]){try{const _0x37b503=-parseInt(_0x2ce0b5(0x176))/0x1+-parseInt(_0x2ce0b5(0x1ab))/0x2+-parseInt(_0x2ce0b5(0x177))/0x3+-parseInt(_0x2ce0b5(0x1a4))/0x4*(parseInt(_0x2ce0b5(0x18c))/0x5)+parseInt(_0x2ce0b5(0x18b))/0x6*(-parseInt(_0x2ce0b5(0x190))/0x7)+parseInt(_0x2ce0b5(0x19a))/0x8+parseInt(_0x2ce0b5(0x19b))/0x9;if(_0x37b503===_0x301126)break;else _0x4ab2ba['push'](_0x4ab2ba['shift']());}catch(_0x4770e9){_0x4ab2ba['push'](_0x4ab2ba['shift']());}}}(a109_0x2781,0x9028b));const winston=require(a109_0x2ed5a0(0x1a2)),path=require(a109_0x2ed5a0(0x183)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a109_0x2ed5a0(0x198),logFormat=winston[a109_0x2ed5a0(0x1bc)](_0x15ea9e=>{const _0x9dd89f=a109_0x2ed5a0,_0x1b3159={};_0x1b3159[_0x9dd89f(0x194)]=function(_0xea55d3,_0xbd73aa){return _0xea55d3!==_0xbd73aa;},_0x1b3159[_0x9dd89f(0x17b)]=_0x9dd89f(0x1b0),_0x1b3159[_0x9dd89f(0x192)]=function(_0x1651c8,_0xbf069c){return _0x1651c8===_0xbf069c;},_0x1b3159['WiIed']=_0x9dd89f(0x1bd);const _0xb2740a=_0x1b3159;return _0xb2740a[_0x9dd89f(0x194)](typeof _0x15ea9e[_0x9dd89f(0x189)],_0xb2740a[_0x9dd89f(0x17b)])&&(_0x15ea9e[_0x9dd89f(0x189)]=JSON[_0x9dd89f(0x17c)](_0x15ea9e[_0x9dd89f(0x189)])),global[_0x9dd89f(0x19f)]?.[_0x9dd89f(0x17e)]?.[_0x9dd89f(0x184)]&&_0xb2740a['VtKQk'](typeof _0x15ea9e[_0x9dd89f(0x189)],_0xb2740a[_0x9dd89f(0x17b)])&&(_0x15ea9e[_0x9dd89f(0x189)]=_0x15ea9e[_0x9dd89f(0x189)][_0x9dd89f(0x199)](new RegExp(global[_0x9dd89f(0x19f)][_0x9dd89f(0x17e)][_0x9dd89f(0x184)],'g'),_0xb2740a[_0x9dd89f(0x1a1)])),global[_0x9dd89f(0x19f)]?.['config']?.['accessKey']&&_0xb2740a['VtKQk'](typeof _0x15ea9e['message'],_0xb2740a[_0x9dd89f(0x17b)])&&(_0x15ea9e[_0x9dd89f(0x189)]=_0x15ea9e[_0x9dd89f(0x189)][_0x9dd89f(0x199)](new RegExp(global[_0x9dd89f(0x19f)]['config'][_0x9dd89f(0x187)],'g'),_0xb2740a[_0x9dd89f(0x1a1)])),_0x15ea9e;}),fetchLogDir=()=>{const _0x51b52a=a109_0x2ed5a0;if(process[_0x51b52a(0x1bf)][_0x51b52a(0x18a)])return process[_0x51b52a(0x1bf)][_0x51b52a(0x18a)];else!fs[_0x51b52a(0x1a6)](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x564c38=a109_0x2ed5a0,_0x408c76={};_0x408c76[_0x564c38(0x1ba)]=_0x564c38(0x1aa);const _0x5b76d4=_0x408c76,_0x1be1f0=process[_0x564c38(0x1bf)][_0x564c38(0x195)],_0x4133e8=Object[_0x564c38(0x1ad)](winston[_0x564c38(0x17e)]['npm'][_0x564c38(0x17d)]);if(_0x1be1f0&&_0x4133e8[_0x564c38(0x1a7)](_0x1be1f0['toLowerCase']()))return _0x1be1f0[_0x564c38(0x1b7)]();return _0x5b76d4[_0x564c38(0x1ba)];},initialLogLevel=getInitialLogLevel(),a109_0x1e51fe={};a109_0x1e51fe[a109_0x2ed5a0(0x1b8)]=a109_0x2ed5a0(0x1a9),a109_0x1e51fe[a109_0x2ed5a0(0x1c1)]=initialLogLevel;const transports={'loggerConsole':new winston['transports'][(a109_0x2ed5a0(0x1ae))](a109_0x1e51fe),'loggerFile':new winston[(a109_0x2ed5a0(0x186))]['File']({'filename':path[a109_0x2ed5a0(0x18e)](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a109_0x2ed5a0(0x186))][(a109_0x2ed5a0(0x182))]({'filename':path[a109_0x2ed5a0(0x18e)](logDir,'/usage-debug.log'),'level':a109_0x2ed5a0(0x1b2)}),'debugCliLoggerFile':new winston[(a109_0x2ed5a0(0x186))][(a109_0x2ed5a0(0x182))]({'filename':path[a109_0x2ed5a0(0x18e)](logDir,a109_0x2ed5a0(0x179)),'level':a109_0x2ed5a0(0x1b2)}),'buildLinkTransport':new winston[(a109_0x2ed5a0(0x186))][(a109_0x2ed5a0(0x182))]({'filename':path[a109_0x2ed5a0(0x18e)](logDir,a109_0x2ed5a0(0x1a0)),'level':a109_0x2ed5a0(0x1b2)})},automationTransports={};process[a109_0x2ed5a0(0x1bf)][a109_0x2ed5a0(0x188)]===a109_0x2ed5a0(0x185)&&(automationTransports[a109_0x2ed5a0(0x19e)]=new winston[(a109_0x2ed5a0(0x186))][(a109_0x2ed5a0(0x182))]({'filename':path[a109_0x2ed5a0(0x18e)](logDir,a109_0x2ed5a0(0x17a)),'level':a109_0x2ed5a0(0x1b2)}));transports[a109_0x2ed5a0(0x1be)]['on'](a109_0x2ed5a0(0x1ac),_0x4c3d64=>{const _0x503a7d=a109_0x2ed5a0,_0x2ed3fb={};_0x2ed3fb[_0x503a7d(0x1b9)]=function(_0x5212b3,_0x119c91){return _0x5212b3===_0x119c91;},_0x2ed3fb['xJvLL']=_0x503a7d(0x197),_0x2ed3fb[_0x503a7d(0x1b3)]='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x44d4a9=_0x2ed3fb;if(_0x44d4a9[_0x503a7d(0x1b9)](_0x4c3d64[_0x503a7d(0x1a3)],_0x44d4a9[_0x503a7d(0x18f)])){console['log'](_0x44d4a9[_0x503a7d(0x1b3)],_0x4c3d64[_0x503a7d(0x189)]);return;}throw _0x4c3d64;});const a109_0x3b58d3={};a109_0x3b58d3[a109_0x2ed5a0(0x1bc)]=a109_0x2ed5a0(0x1b1);const a109_0x237ff3={};a109_0x237ff3['level']=!![];const winstonLoggerParams={'format':winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1af)](winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1b5)](a109_0x3b58d3),winston[a109_0x2ed5a0(0x1bc)]['colorize'](a109_0x237ff3),winston[a109_0x2ed5a0(0x1bc)]['printf'](_0x5a0e97=>_0x5a0e97[a109_0x2ed5a0(0x1b5)]+a109_0x2ed5a0(0x181)+_0x5a0e97[a109_0x2ed5a0(0x1c1)]+':\x20'+_0x5a0e97[a109_0x2ed5a0(0x189)])),'transports':[transports[a109_0x2ed5a0(0x1be)]]},a109_0x2f4ec0={};a109_0x2f4ec0[a109_0x2ed5a0(0x1bc)]=a109_0x2ed5a0(0x1b1);const a109_0x27fe24={};a109_0x27fe24['level']=!![];function a109_0x330c(_0x1c4a37,_0x2309eb){const _0x278141=a109_0x2781();return a109_0x330c=function(_0x330c1e,_0x76af71){_0x330c1e=_0x330c1e-0x175;let _0x278f7b=_0x278141[_0x330c1e];return _0x278f7b;},a109_0x330c(_0x1c4a37,_0x2309eb);}const winstonFileLoggerParams={'format':winston['format']['combine'](winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1b5)](a109_0x2f4ec0),winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1c2)](a109_0x27fe24),winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1c0)](_0x20792d=>_0x20792d[a109_0x2ed5a0(0x1c1)]+':\x20'+_0x20792d['message'])),'transports':[]},a109_0xb6e8e1={};a109_0xb6e8e1[a109_0x2ed5a0(0x1bc)]='YYYY-MM-DD\x20HH:mm:ss';const a109_0x3f5067={};a109_0x3f5067[a109_0x2ed5a0(0x1c1)]=!![];const a109_0x20d44f={};function a109_0x2781(){const _0x156321=['existsSync','includes','logDir','console.info','info','1262206OuXUhy','error','keys','Console','combine','string','YYYY-MM-DD\x20HH:mm:ss','silly','KTEes','buildLogger','timestamp','add','toLowerCase','name','yorJm','jCckt','fileLogger','format','[REDACTED]','loggerConsole','env','printf','level','colorize','debugLoggerFile','547680ttJFLA','1646085CKeLWz','getLogDir','/sdk-cli-debug.log','automation.log','BJcAw','stringify','levels','config','buildLinkTransport','YfcCG','\x20-\x20','File','path','userName','true','transports','accessKey','BROWSERSTACK_AUTOMATION_LOGS','message','BROWSERSTACK_INTERNAL_LOG_DIR','6301098wqEgKr','10OraCJt','createLogger','join','xJvLL','7aSHCif','debug','VtKQk','winstonLogger','GLNzM','BROWSERSTACK_LOG_LEVEL','http','EPIPE','log','replace','66840hePgEX','38015361rthdJq','warn','loggerFile','automationLoggerFile','session','/usage.log','WiIed','winston','code','1728296qhXkZj','uncolorize'];a109_0x2781=function(){return _0x156321;};return a109_0x2781();}a109_0x20d44f[a109_0x2ed5a0(0x1c1)]=a109_0x2ed5a0(0x1b2);const BuildLoggerParams={'format':winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1af)](winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1b5)](a109_0xb6e8e1),winston['format'][a109_0x2ed5a0(0x1c2)](a109_0x3f5067),winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1c0)](_0x4bf643=>_0x4bf643[a109_0x2ed5a0(0x1b5)]+'\x20-\x20'+_0x4bf643[a109_0x2ed5a0(0x1c1)]+':\x20'+_0x4bf643[a109_0x2ed5a0(0x189)])),'transports':[transports[a109_0x2ed5a0(0x17f)],new winston[(a109_0x2ed5a0(0x186))][(a109_0x2ed5a0(0x1ae))](a109_0x20d44f)]},a109_0x144133={};a109_0x144133[a109_0x2ed5a0(0x196)]=()=>{},a109_0x144133[a109_0x2ed5a0(0x1aa)]=()=>{},a109_0x144133[a109_0x2ed5a0(0x19c)]=()=>{},a109_0x144133[a109_0x2ed5a0(0x1ac)]=()=>{},a109_0x144133[a109_0x2ed5a0(0x191)]=()=>{},a109_0x144133[a109_0x2ed5a0(0x1b2)]=()=>{},exports['automationLogger']=process[a109_0x2ed5a0(0x1bf)]['BROWSERSTACK_AUTOMATION_LOGS']==='true'?winston[a109_0x2ed5a0(0x18d)]({'format':winston['format'][a109_0x2ed5a0(0x1af)](winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1a5)](),winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1b5)](),logFormat(),winston[a109_0x2ed5a0(0x1bc)][a109_0x2ed5a0(0x1c0)](_0x58a5c1=>_0x58a5c1[a109_0x2ed5a0(0x1c1)]+':\x20'+_0x58a5c1[a109_0x2ed5a0(0x189)])),'transports':[automationTransports['automationLoggerFile']]}):a109_0x144133;const initialize=()=>{const _0x20a134=a109_0x2ed5a0,_0x24448a={};_0x24448a['YfcCG']='silly';const _0x11fc3f=_0x24448a,_0x1fd00d=transports[_0x20a134(0x1be)]['level']||initialLogLevel;transports[_0x20a134(0x19d)]=new winston[(_0x20a134(0x186))][(_0x20a134(0x182))]({'filename':path[_0x20a134(0x18e)](exports[_0x20a134(0x1a8)],LOG_FILE_NAME),'level':_0x1fd00d}),transports['debugLoggerFile']=new winston[(_0x20a134(0x186))][(_0x20a134(0x182))]({'filename':path[_0x20a134(0x18e)](exports['logDir'],DEBUG_LOG_FILE_NAME),'level':_0x11fc3f[_0x20a134(0x180)]}),exports['winstonLogger'][_0x20a134(0x1b6)](transports['loggerFile']),exports[_0x20a134(0x193)]['add'](transports[_0x20a134(0x175)]),exports[_0x20a134(0x1bb)][_0x20a134(0x1b6)](transports[_0x20a134(0x19d)]),exports[_0x20a134(0x1bb)]['add'](transports[_0x20a134(0x175)]);};exports[a109_0x2ed5a0(0x193)]=new winston[(a109_0x2ed5a0(0x18d))](winstonLoggerParams),exports[a109_0x2ed5a0(0x1bb)]=new winston['createLogger'](winstonFileLoggerParams),exports[a109_0x2ed5a0(0x1b4)]=new winston[(a109_0x2ed5a0(0x18d))](BuildLoggerParams),exports[a109_0x2ed5a0(0x1a8)]=logDir,exports[a109_0x2ed5a0(0x178)]=()=>{return exports['logDir'];},exports[a109_0x2ed5a0(0x186)]=transports,exports['initialize']=initialize;logDir&&initialize();
1
+ const a109_0x5c61d7=a109_0xce56;(function(_0x1847c9,_0x2f9093){const _0x2491f3=a109_0xce56,_0x21382e=_0x1847c9();while(!![]){try{const _0xbb9ee1=-parseInt(_0x2491f3(0x160))/0x1*(-parseInt(_0x2491f3(0x177))/0x2)+-parseInt(_0x2491f3(0x141))/0x3+parseInt(_0x2491f3(0x15c))/0x4*(-parseInt(_0x2491f3(0x17a))/0x5)+parseInt(_0x2491f3(0x13f))/0x6+-parseInt(_0x2491f3(0x173))/0x7*(-parseInt(_0x2491f3(0x166))/0x8)+-parseInt(_0x2491f3(0x188))/0x9+parseInt(_0x2491f3(0x170))/0xa;if(_0xbb9ee1===_0x2f9093)break;else _0x21382e['push'](_0x21382e['shift']());}catch(_0x592dd7){_0x21382e['push'](_0x21382e['shift']());}}}(a109_0x5af2,0x893c4));const winston=require(a109_0x5c61d7(0x149)),path=require(a109_0x5c61d7(0x17f)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a109_0x5c61d7(0x153),logFormat=winston[a109_0x5c61d7(0x186)](_0x2c3960=>{const _0x59ce31=a109_0x5c61d7,_0x77b313={};_0x77b313[_0x59ce31(0x164)]=function(_0x386deb,_0x26f69f){return _0x386deb!==_0x26f69f;},_0x77b313[_0x59ce31(0x16a)]=_0x59ce31(0x189),_0x77b313[_0x59ce31(0x14e)]=function(_0x417f2c,_0x245e4d){return _0x417f2c===_0x245e4d;},_0x77b313[_0x59ce31(0x18b)]=_0x59ce31(0x151);const _0x329d37=_0x77b313;return _0x329d37[_0x59ce31(0x164)](typeof _0x2c3960[_0x59ce31(0x179)],_0x329d37[_0x59ce31(0x16a)])&&(_0x2c3960[_0x59ce31(0x179)]=JSON[_0x59ce31(0x180)](_0x2c3960[_0x59ce31(0x179)])),global[_0x59ce31(0x17b)]?.[_0x59ce31(0x167)]?.['userName']&&_0x329d37[_0x59ce31(0x14e)](typeof _0x2c3960[_0x59ce31(0x179)],_0x329d37[_0x59ce31(0x16a)])&&(_0x2c3960[_0x59ce31(0x179)]=_0x2c3960['message'][_0x59ce31(0x171)](new RegExp(global[_0x59ce31(0x17b)]['config']['userName'],'g'),_0x329d37[_0x59ce31(0x18b)])),global[_0x59ce31(0x17b)]?.['config']?.[_0x59ce31(0x16d)]&&_0x329d37['JgvdZ'](typeof _0x2c3960[_0x59ce31(0x179)],_0x329d37[_0x59ce31(0x16a)])&&(_0x2c3960[_0x59ce31(0x179)]=_0x2c3960[_0x59ce31(0x179)]['replace'](new RegExp(global['session']['config'][_0x59ce31(0x16d)],'g'),_0x329d37[_0x59ce31(0x18b)])),_0x2c3960;}),fetchLogDir=()=>{const _0x45c7ae=a109_0x5c61d7;if(process[_0x45c7ae(0x147)][_0x45c7ae(0x15e)])return process[_0x45c7ae(0x147)][_0x45c7ae(0x15e)];else!fs[_0x45c7ae(0x15f)](tempLogDir)&&fs[_0x45c7ae(0x17c)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x1d925d=a109_0x5c61d7,_0x2f8aea={};_0x2f8aea[_0x1d925d(0x161)]=_0x1d925d(0x15d);const _0x3c7f99=_0x2f8aea,_0x387040=process[_0x1d925d(0x147)][_0x1d925d(0x14a)],_0x35570f=Object[_0x1d925d(0x14c)](winston[_0x1d925d(0x167)][_0x1d925d(0x174)]['levels']);if(_0x387040&&_0x35570f['includes'](_0x387040[_0x1d925d(0x13e)]()))return _0x387040['toLowerCase']();return _0x3c7f99['ytQrs'];},initialLogLevel=getInitialLogLevel(),a109_0x332822={};a109_0x332822['name']=a109_0x5c61d7(0x17d),a109_0x332822['level']=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0x5c61d7(0x15a))]['Console'](a109_0x332822),'loggerFile':new winston[(a109_0x5c61d7(0x15a))][(a109_0x5c61d7(0x172))]({'filename':path['join'](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a109_0x5c61d7(0x15a))][(a109_0x5c61d7(0x172))]({'filename':path[a109_0x5c61d7(0x155)](logDir,a109_0x5c61d7(0x18a)),'level':'silly'}),'debugCliLoggerFile':new winston[(a109_0x5c61d7(0x15a))][(a109_0x5c61d7(0x172))]({'filename':path[a109_0x5c61d7(0x155)](logDir,a109_0x5c61d7(0x14d)),'level':a109_0x5c61d7(0x162)}),'buildLinkTransport':new winston[(a109_0x5c61d7(0x15a))][(a109_0x5c61d7(0x172))]({'filename':path[a109_0x5c61d7(0x155)](logDir,a109_0x5c61d7(0x158)),'level':a109_0x5c61d7(0x162)})},automationTransports={};process[a109_0x5c61d7(0x147)][a109_0x5c61d7(0x157)]===a109_0x5c61d7(0x187)&&(automationTransports[a109_0x5c61d7(0x159)]=new winston['transports'][(a109_0x5c61d7(0x172))]({'filename':path[a109_0x5c61d7(0x155)](logDir,a109_0x5c61d7(0x169)),'level':a109_0x5c61d7(0x162)}));transports['loggerConsole']['on'](a109_0x5c61d7(0x154),_0x2fb19a=>{const _0x4d33a5=a109_0x5c61d7,_0x11dc0c={};_0x11dc0c['dJXpf']=function(_0x419339,_0x33541e){return _0x419339===_0x33541e;},_0x11dc0c[_0x4d33a5(0x143)]=_0x4d33a5(0x16c),_0x11dc0c[_0x4d33a5(0x181)]=_0x4d33a5(0x18c);const _0x59de9a=_0x11dc0c;if(_0x59de9a[_0x4d33a5(0x142)](_0x2fb19a[_0x4d33a5(0x185)],_0x59de9a[_0x4d33a5(0x143)])){console[_0x4d33a5(0x153)](_0x59de9a[_0x4d33a5(0x181)],_0x2fb19a[_0x4d33a5(0x179)]);return;}throw _0x2fb19a;});const a109_0x443a38={};a109_0x443a38[a109_0x5c61d7(0x186)]=a109_0x5c61d7(0x140);const a109_0x321797={};a109_0x321797[a109_0x5c61d7(0x163)]=!![];const winstonLoggerParams={'format':winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x15b)](winston['format'][a109_0x5c61d7(0x16f)](a109_0x443a38),winston[a109_0x5c61d7(0x186)]['colorize'](a109_0x321797),winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16e)](_0x511d51=>_0x511d51[a109_0x5c61d7(0x16f)]+a109_0x5c61d7(0x183)+_0x511d51[a109_0x5c61d7(0x163)]+':\x20'+_0x511d51[a109_0x5c61d7(0x179)])),'transports':[transports[a109_0x5c61d7(0x16b)]]},a109_0x5436f6={};function a109_0xce56(_0x990796,_0x1c1ad7){const _0x5af2c4=a109_0x5af2();return a109_0xce56=function(_0xce56c8,_0x1d2fe8){_0xce56c8=_0xce56c8-0x13e;let _0x4f7cf7=_0x5af2c4[_0xce56c8];return _0x4f7cf7;},a109_0xce56(_0x990796,_0x1c1ad7);}a109_0x5436f6['format']='YYYY-MM-DD\x20HH:mm:ss';const a109_0x562db3={};a109_0x562db3['level']=!![];const winstonFileLoggerParams={'format':winston['format'][a109_0x5c61d7(0x15b)](winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16f)](a109_0x5436f6),winston['format'][a109_0x5c61d7(0x152)](a109_0x562db3),winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16e)](_0x25fb78=>_0x25fb78['level']+':\x20'+_0x25fb78['message'])),'transports':[]},a109_0x1ccb75={};a109_0x1ccb75[a109_0x5c61d7(0x186)]=a109_0x5c61d7(0x140);const a109_0x47b85a={};a109_0x47b85a[a109_0x5c61d7(0x163)]=!![];const a109_0xf29988={};a109_0xf29988['level']=a109_0x5c61d7(0x162);const BuildLoggerParams={'format':winston['format'][a109_0x5c61d7(0x15b)](winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16f)](a109_0x1ccb75),winston['format'][a109_0x5c61d7(0x152)](a109_0x47b85a),winston[a109_0x5c61d7(0x186)]['printf'](_0xe4f8a3=>_0xe4f8a3[a109_0x5c61d7(0x16f)]+'\x20-\x20'+_0xe4f8a3[a109_0x5c61d7(0x163)]+':\x20'+_0xe4f8a3[a109_0x5c61d7(0x179)])),'transports':[transports[a109_0x5c61d7(0x175)],new winston[(a109_0x5c61d7(0x15a))]['Console'](a109_0xf29988)]},a109_0x3234a9={};a109_0x3234a9[a109_0x5c61d7(0x14f)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x15d)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x145)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x154)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x144)]=()=>{},a109_0x3234a9[a109_0x5c61d7(0x162)]=()=>{},exports[a109_0x5c61d7(0x165)]=process[a109_0x5c61d7(0x147)]['BROWSERSTACK_AUTOMATION_LOGS']===a109_0x5c61d7(0x187)?winston[a109_0x5c61d7(0x184)]({'format':winston['format'][a109_0x5c61d7(0x15b)](winston['format']['uncolorize'](),winston[a109_0x5c61d7(0x186)]['timestamp'](),logFormat(),winston[a109_0x5c61d7(0x186)][a109_0x5c61d7(0x16e)](_0x2b8132=>_0x2b8132[a109_0x5c61d7(0x163)]+':\x20'+_0x2b8132[a109_0x5c61d7(0x179)])),'transports':[automationTransports[a109_0x5c61d7(0x159)]]}):a109_0x3234a9;const initialize=()=>{const _0x587b77=a109_0x5c61d7,_0x10f5a6={};_0x10f5a6[_0x587b77(0x146)]='silly';const _0x5778ab=_0x10f5a6,_0x656950=transports['loggerConsole'][_0x587b77(0x163)]||initialLogLevel;transports[_0x587b77(0x148)]=new winston[(_0x587b77(0x15a))]['File']({'filename':path[_0x587b77(0x155)](exports[_0x587b77(0x176)],LOG_FILE_NAME),'level':_0x656950}),transports[_0x587b77(0x178)]=new winston[(_0x587b77(0x15a))][(_0x587b77(0x172))]({'filename':path[_0x587b77(0x155)](exports[_0x587b77(0x176)],DEBUG_LOG_FILE_NAME),'level':_0x5778ab['BIgAL']}),exports[_0x587b77(0x182)]['add'](transports[_0x587b77(0x148)]),exports[_0x587b77(0x182)]['add'](transports[_0x587b77(0x178)]),exports[_0x587b77(0x168)][_0x587b77(0x156)](transports['loggerFile']),exports['fileLogger'][_0x587b77(0x156)](transports[_0x587b77(0x178)]);};function a109_0x5af2(){const _0x494a94=['fileLogger','automation.log','mUOOh','loggerConsole','EPIPE','accessKey','printf','timestamp','17343650YSOFce','replace','File','1127VPoHqc','npm','buildLinkTransport','logDir','245118NweNEh','debugLoggerFile','message','242020KpUOwL','session','mkdirSync','console.info','getLogDir','path','stringify','twMWd','winstonLogger','\x20-\x20','createLogger','code','format','true','5625882rMyRZo','string','/usage-debug.log','DEGxL','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','toLowerCase','693132itpySM','YYYY-MM-DD\x20HH:mm:ss','3370176jCwWAY','dJXpf','tFHjt','debug','warn','BIgAL','env','loggerFile','winston','BROWSERSTACK_LOG_LEVEL','buildLogger','keys','/sdk-cli-debug.log','JgvdZ','http','initialize','[REDACTED]','colorize','log','error','join','add','BROWSERSTACK_AUTOMATION_LOGS','/usage.log','automationLoggerFile','transports','combine','64pOAgMW','info','BROWSERSTACK_INTERNAL_LOG_DIR','existsSync','4TqkzRk','ytQrs','silly','level','QXCJF','automationLogger','37016AjexoA','config'];a109_0x5af2=function(){return _0x494a94;};return a109_0x5af2();}exports['winstonLogger']=new winston[(a109_0x5c61d7(0x184))](winstonLoggerParams),exports[a109_0x5c61d7(0x168)]=new winston[(a109_0x5c61d7(0x184))](winstonFileLoggerParams),exports[a109_0x5c61d7(0x14b)]=new winston[(a109_0x5c61d7(0x184))](BuildLoggerParams),exports['logDir']=logDir,exports[a109_0x5c61d7(0x17e)]=()=>{return exports['logDir'];},exports[a109_0x5c61d7(0x15a)]=transports,exports[a109_0x5c61d7(0x150)]=initialize;logDir&&initialize();
@@ -1 +1 @@
1
- const a110_0x4623bc=a110_0x3937;function a110_0x3937(_0x2a62ec,_0x596610){const _0x5e81d0=a110_0x5e81();return a110_0x3937=function(_0x393755,_0x4ce649){_0x393755=_0x393755-0x191;let _0x2a11b1=_0x5e81d0[_0x393755];return _0x2a11b1;},a110_0x3937(_0x2a62ec,_0x596610);}(function(_0x412540,_0x7d3ddb){const _0x2f6bac=a110_0x3937,_0x1c2414=_0x412540();while(!![]){try{const _0x1d8064=parseInt(_0x2f6bac(0x19e))/0x1+parseInt(_0x2f6bac(0x19d))/0x2+-parseInt(_0x2f6bac(0x1a7))/0x3*(parseInt(_0x2f6bac(0x196))/0x4)+parseInt(_0x2f6bac(0x1a2))/0x5*(parseInt(_0x2f6bac(0x1a3))/0x6)+parseInt(_0x2f6bac(0x192))/0x7+-parseInt(_0x2f6bac(0x1b0))/0x8*(parseInt(_0x2f6bac(0x1a0))/0x9)+-parseInt(_0x2f6bac(0x1a8))/0xa*(-parseInt(_0x2f6bac(0x1aa))/0xb);if(_0x1d8064===_0x7d3ddb)break;else _0x1c2414['push'](_0x1c2414['shift']());}catch(_0x2c5f3f){_0x1c2414['push'](_0x1c2414['shift']());}}}(a110_0x5e81,0x257cc));function a110_0x5e81(){const _0x108f6e=['197118BQFSXz','hkoFv','5283sSUCeY','set','134270KpYfHH','36kOAYrP','testMeta-','shJHG','lcnc','8616SeJPYa','26640EnicMg','qEsXN','88uHWjwT','./logger','getGlobal','./helper','identifier','./globals','3232rNhViu','string','NPsRF','warn','setGlobal','112203GtQoTC','getCentralUser','UmMRR','The\x20metadata\x20object\x20is\x20not\x20valid.','380ZZbSdc','testMeta','xahtM','winstonLogger','testRunUUID','EcVnK','get','535906cSsDQv'];a110_0x5e81=function(){return _0x108f6e;};return a110_0x5e81();}const globals=require(a110_0x4623bc(0x1af)),helper=require(a110_0x4623bc(0x1ad)),logger=require(a110_0x4623bc(0x1ab))[a110_0x4623bc(0x199)];module['exports']=class TestMetadata{static[a110_0x4623bc(0x1a1)](_0x4d971f={}){const _0x14c14b=a110_0x4623bc,_0x182717={};_0x182717[_0x14c14b(0x198)]=_0x14c14b(0x19a),_0x182717[_0x14c14b(0x1a9)]=function(_0x52be3d,_0x34d06c){return _0x52be3d===_0x34d06c;},_0x182717[_0x14c14b(0x1a5)]=_0x14c14b(0x1b1),_0x182717['NPsRF']=function(_0x13b497,_0x19da42){return _0x13b497<=_0x19da42;},_0x182717[_0x14c14b(0x194)]='testMeta',_0x182717[_0x14c14b(0x19f)]=_0x14c14b(0x195);const _0x3c557a=_0x182717,_0x2cf8cf=globals[_0x14c14b(0x1ac)](_0x3c557a[_0x14c14b(0x198)]),_0x2d897f=_0x4d971f[_0x14c14b(0x1ae)];helper[_0x14c14b(0x193)]()[_0x14c14b(0x1a6)]&&(_0x3c557a[_0x14c14b(0x1a9)](typeof _0x2d897f,_0x3c557a[_0x14c14b(0x1a5)])&&_0x3c557a[_0x14c14b(0x1b2)](_0x2d897f['length'],0x28)?_0x2cf8cf?globals[_0x14c14b(0x191)](_0x14c14b(0x1a4)+_0x2cf8cf,_0x4d971f):globals[_0x14c14b(0x191)](_0x3c557a['UmMRR'],_0x4d971f):logger[_0x14c14b(0x1b3)](_0x3c557a[_0x14c14b(0x19f)]));}static[a110_0x4623bc(0x19c)](_0x445749){const _0x4497ff=a110_0x4623bc,_0x50cee3={};_0x50cee3[_0x4497ff(0x19b)]=_0x4497ff(0x197);const _0x1f4946=_0x50cee3;if(helper[_0x4497ff(0x193)]()[_0x4497ff(0x1a6)])return globals[_0x4497ff(0x1ac)](_0x4497ff(0x1a4)+_0x445749)||globals[_0x4497ff(0x1ac)](_0x1f4946[_0x4497ff(0x19b)])||{};return{};}};
1
+ const a110_0x350251=a110_0xb464;function a110_0x25f0(){const _0x435696=['6zmZiWA','yFZZt','./globals','testRunUUID','length','testMeta','VMLWI','set','testMeta-','691960MKbIWK','lruyc','The\x20metadata\x20object\x20is\x20not\x20valid.','81JBEIBH','570905fSydMh','setGlobal','aTyBI','./logger','2679390nysaAm','identifier','12CVrhif','xajVy','4525175arsNwf','OctkU','warn','lcnc','JsPpe','10983728SropnH','3104244YUirPV','getCentralUser','1495797BDRBlX'];a110_0x25f0=function(){return _0x435696;};return a110_0x25f0();}(function(_0x113843,_0x3169ec){const _0x5738d2=a110_0xb464,_0x6fa253=_0x113843();while(!![]){try{const _0x2e5e5d=parseInt(_0x5738d2(0x18d))/0x1+-parseInt(_0x5738d2(0x19b))/0x2+-parseInt(_0x5738d2(0x19d))/0x3*(parseInt(_0x5738d2(0x193))/0x4)+parseInt(_0x5738d2(0x195))/0x5*(parseInt(_0x5738d2(0x19e))/0x6)+parseInt(_0x5738d2(0x191))/0x7+parseInt(_0x5738d2(0x19a))/0x8+-parseInt(_0x5738d2(0x1aa))/0x9*(-parseInt(_0x5738d2(0x1a7))/0xa);if(_0x2e5e5d===_0x3169ec)break;else _0x6fa253['push'](_0x6fa253['shift']());}catch(_0xce1bfb){_0x6fa253['push'](_0x6fa253['shift']());}}}(a110_0x25f0,0xc4e79));function a110_0xb464(_0x3aba8b,_0x2f1e3a){const _0x25f07a=a110_0x25f0();return a110_0xb464=function(_0xb464b2,_0x527865){_0xb464b2=_0xb464b2-0x18d;let _0x25f0ca=_0x25f07a[_0xb464b2];return _0x25f0ca;},a110_0xb464(_0x3aba8b,_0x2f1e3a);}const globals=require(a110_0x350251(0x1a0)),helper=require('./helper'),logger=require(a110_0x350251(0x190))['winstonLogger'];module['exports']=class TestMetadata{static[a110_0x350251(0x1a5)](_0x5cbaa6={}){const _0x5cdab1=a110_0x350251,_0x3d2bd8={};_0x3d2bd8[_0x5cdab1(0x199)]=_0x5cdab1(0x1a1),_0x3d2bd8['OctkU']=function(_0x4cc61e,_0x25f59b){return _0x4cc61e===_0x25f59b;},_0x3d2bd8[_0x5cdab1(0x18f)]='string',_0x3d2bd8[_0x5cdab1(0x1a8)]=function(_0x20e690,_0x309eea){return _0x20e690<=_0x309eea;},_0x3d2bd8[_0x5cdab1(0x194)]=_0x5cdab1(0x1a3),_0x3d2bd8['VMLWI']=_0x5cdab1(0x1a9);const _0x101a08=_0x3d2bd8,_0xd65a90=globals['getGlobal'](_0x101a08['JsPpe']),_0x21adf0=_0x5cbaa6[_0x5cdab1(0x192)];helper[_0x5cdab1(0x19c)]()[_0x5cdab1(0x198)]&&(_0x101a08[_0x5cdab1(0x196)](typeof _0x21adf0,_0x101a08['aTyBI'])&&_0x101a08[_0x5cdab1(0x1a8)](_0x21adf0[_0x5cdab1(0x1a2)],0x28)?_0xd65a90?globals['setGlobal'](_0x5cdab1(0x1a6)+_0xd65a90,_0x5cbaa6):globals[_0x5cdab1(0x18e)](_0x101a08[_0x5cdab1(0x194)],_0x5cbaa6):logger[_0x5cdab1(0x197)](_0x101a08[_0x5cdab1(0x1a4)]));}static['get'](_0x1bbf64){const _0xc1d276=a110_0x350251,_0xa2fd8f={};_0xa2fd8f['yFZZt']=_0xc1d276(0x1a3);const _0x1a0c00=_0xa2fd8f;if(helper[_0xc1d276(0x19c)]()[_0xc1d276(0x198)])return globals['getGlobal']('testMeta-'+_0x1bbf64)||globals['getGlobal'](_0x1a0c00[_0xc1d276(0x19f)])||{};return{};}};
@@ -1 +1 @@
1
- const a111_0x5542cb=a111_0x5c8c;function a111_0x2c45(){const _0x127045=['XttVN','includes','info','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','aNDiR','jyrax','patchExecute','PRE_EXECUTE','lZpIq','aiHeal:findElementFailure','request','aiSdk_defaultLogDataEnabled','AUTOMATION_LOG_COMMANDS','PIgfk','./globals','FbkKk','CJHXJ','command','Eohud','QbntQ','measureWrapper','oxnuq','JqKAG','UjMFV','UcFkn','findElement','aiHeal_isHealingEnabled','xmtmz','nYnUh','find','fClTj','getTcgTokenStatus','format','JQfMK','VzqVn','FcybU','./performance/performance-tester','aOnKc','execute','bqESr','KdvqJ','xiIel','isSelfHealEnabled','nestedKeyValue','skipHealingSuccess','silly','ythMj','HQsJy','xeWMR','JavascriptError','ACkiX','findElement\x20command\x20failed\x20with\x20cssPath:\x20','getNudgeLocalNotSetError','SccHf','TWJsP','parameters_','AVlMZ','script','setTcgToken','POST_EXECUTE','EiNSw','findElement\x20command\x20failed\x20with\x20','2444VCjyfu','770130jdOvbc','value','initExecute','iKkQl','urbyB','getGlobal','cotqT','./ai-sdk/aiSdkWrapper','./helper','sRVJQ','Error\x20in\x20handling\x20TCG\x20Auth:\x20','vCqXy','string','kDgpR','name_','EUkYZ','CZsgZ','75PVmoXq',';\x20Trying\x20to\x20heal','executeAsyncScript','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','util','name','RwdmO','toString','71340UwHtHe','1284XyuYAj','5216610AegvDw','XjpGd','mVpIo','5007384ZUTTws','gvcGP','Uuuxi','error','message','using','189qPDEwr','handleFailure','toISOString','handleSuccess','UghaN','overrideExecute','DxYPJ','fxUdU','getSession','LjgpI','setAiSessionTimeStamp','Successfully\x20healed\x20command\x20using\x20new\x20','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','hTiRn','xaNFO','capability','oRtmo','url','oLAzE','getId','KFVVx','aiHeal:findElementSuccess','parameters','LUrMs','./ai-sdk/autoHealHelper','][\x20SDK-AUTOMATION\x20]\x20','2688235kLcVii','atFXi','yfkMb','Stjwq','isBrowserstackInfra','debug','FrgqM'];a111_0x2c45=function(){return _0x127045;};return a111_0x2c45();}function a111_0x5c8c(_0x48c8e8,_0x31e7e6){const _0x2c453e=a111_0x2c45();return a111_0x5c8c=function(_0x5c8c8f,_0x6185fb){_0x5c8c8f=_0x5c8c8f-0xf0;let _0x58eb8e=_0x2c453e[_0x5c8c8f];return _0x58eb8e;},a111_0x5c8c(_0x48c8e8,_0x31e7e6);}(function(_0x5734fa,_0x1ec76c){const _0x1a78d7=a111_0x5c8c,_0x67936d=_0x5734fa();while(!![]){try{const _0x2a19f4=-parseInt(_0x1a78d7(0x132))/0x1*(-parseInt(_0x1a78d7(0x128))/0x2)+parseInt(_0x1a78d7(0x11e))/0x3*(-parseInt(_0x1a78d7(0x10c))/0x4)+parseInt(_0x1a78d7(0x14c))/0x5+parseInt(_0x1a78d7(0x127))/0x6+-parseInt(_0x1a78d7(0x129))/0x7+parseInt(_0x1a78d7(0x12c))/0x8+parseInt(_0x1a78d7(0x10d))/0x9;if(_0x2a19f4===_0x1ec76c)break;else _0x67936d['push'](_0x67936d['shift']());}catch(_0x283478){_0x67936d['push'](_0x67936d['shift']());}}}(a111_0x2c45,0x97d27));const {aiSdkWrapper}=require(a111_0x5542cb(0x114)),{commandRepository}=require(a111_0x5542cb(0x14a)),PerformanceTester=require(a111_0x5542cb(0xf2)),globals=require(a111_0x5542cb(0x161)),{winstonLogger:logger,automationLogger}=require('./logger'),helper=require(a111_0x5542cb(0x115)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a111_0x5542cb(0x123));exports[a111_0x5542cb(0x137)]=(_0x509a37,_0x43c983)=>{const _0x5a3864=a111_0x5542cb,_0x41c7e8={'EiNSw':'aiHeal_isAuthenticated','kDgpR':'aiHeal:setToken','mVpIo':function(_0x131aaa){return _0x131aaa();},'xPeZD':_0x5a3864(0x15e),'XjpGd':function(_0x15abce,_0x4f443a){return _0x15abce===_0x4f443a;},'CZsgZ':_0x5a3864(0x16c),'bqESr':_0x5a3864(0x16d),'oUFrh':_0x5a3864(0x147),'DpVca':_0x5a3864(0x122),'oxnuq':'NoSuchElementError','aNDiR':_0x5a3864(0xff),'xsGFd':'css\x20selector','FbkKk':function(_0x361abe,_0x28f96c){return _0x361abe+_0x28f96c;},'UjMFV':_0x5a3864(0x101),'nYnUh':_0x5a3864(0x11f),'hUTHY':function(_0x2e0a65,_0x1e0b60){return _0x2e0a65+_0x1e0b60;},'FrgqM':_0x5a3864(0x10b),'atFXi':_0x5a3864(0x15c),'EUkYZ':function(_0xc417f3,_0x1c3fee){return _0xc417f3&&_0x1c3fee;},'Uuuxi':function(_0xaf809e,_0x41454f){return _0xaf809e===_0x41454f;},'qGpAM':_0x5a3864(0x121),'DxROF':function(_0x6e01e0,_0x1228c5){return _0x6e01e0+_0x1228c5;},'HQsJy':_0x5a3864(0x13d),'oRtmo':function(_0x4a6022,_0x4de1f4){return _0x4a6022===_0x4de1f4;},'yfkMb':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','QbntQ':function(_0x14753f,_0x1417a4){return _0x14753f+_0x1417a4;},'cotqT':function(_0x80d0d6,_0x3c5ab8){return _0x80d0d6+_0x3c5ab8;},'UghaN':'Healing\x20failed\x20for\x20command\x20using\x20','LjgpI':'get','VzqVn':_0x5a3864(0x105),'KdvqJ':_0x5a3864(0x143),'urbyB':_0x5a3864(0x13e),'jyrax':_0x5a3864(0x120),'gvcGP':'executeScript','iKkQl':_0x5a3864(0x119),'RwdmO':_0x5a3864(0x141),'AVlMZ':'browserstack.local','yKgfg':'bstack:options','lZpIq':'local'},_0x2e6c35=_0x509a37[_0x5a3864(0x159)]||(helper[_0x5a3864(0xf9)](_0x43c983,[_0x41c7e8[_0x5a3864(0x125)],_0x41c7e8[_0x5a3864(0x106)]])||helper['nestedKeyValue'](_0x43c983,[_0x41c7e8[_0x5a3864(0x125)],_0x41c7e8['yKgfg'],_0x41c7e8[_0x5a3864(0x15b)]]));if(!globals[_0x5a3864(0x112)](_0x41c7e8[_0x5a3864(0x10a)])&&!globals[_0x5a3864(0x112)](_0x41c7e8[_0x5a3864(0xf5)])&&_0x2e6c35)return;_0x509a37['patchExecute']=!![],_0x509a37[_0x5a3864(0x10f)]=_0x509a37[_0x5a3864(0xf4)],_0x509a37[_0x5a3864(0xf4)]=async _0x3cef36=>{const _0x2afa5a=_0x5a3864,_0x2c8324={'PIgfk':_0x41c7e8['DpVca'],'sRVJQ':function(_0x3c4a21,_0x550053){return _0x41c7e8['XjpGd'](_0x3c4a21,_0x550053);},'DxYPJ':_0x41c7e8[_0x2afa5a(0x168)],'myDBi':_0x41c7e8[_0x2afa5a(0x157)],'oLAzE':_0x41c7e8[_0x2afa5a(0x11d)],'Eohud':_0x41c7e8[_0x2afa5a(0x10a)],'VnhyG':_0x41c7e8[_0x2afa5a(0xf5)],'ythMj':function(_0x463ec5,_0x208540){return _0x41c7e8['XjpGd'](_0x463ec5,_0x208540);},'xaNFO':_0x41c7e8['xsGFd'],'hTiRn':function(_0x1265ef,_0xdb6377){const _0x5f475e=_0x2afa5a;return _0x41c7e8[_0x5f475e(0x162)](_0x1265ef,_0xdb6377);},'UesDs':_0x41c7e8[_0x2afa5a(0x16a)],'vCqXy':_0x41c7e8[_0x2afa5a(0x16f)],'XttVN':function(_0x411f5b,_0x32c400){const _0x1521fd=_0x2afa5a;return _0x41c7e8[_0x1521fd(0x162)](_0x411f5b,_0x32c400);},'FcybU':function(_0x95631b,_0x140e62){return _0x41c7e8['hUTHY'](_0x95631b,_0x140e62);},'TWJsP':_0x41c7e8[_0x2afa5a(0x152)],'BQPkk':_0x41c7e8[_0x2afa5a(0x14d)],'Stjwq':function(_0x56b5e8){const _0x5ea7af=_0x2afa5a;return _0x41c7e8[_0x5ea7af(0x12b)](_0x56b5e8);},'fxUdU':function(_0x5f2cf4,_0x3e786e){const _0x338822=_0x2afa5a;return _0x41c7e8[_0x338822(0x11c)](_0x5f2cf4,_0x3e786e);},'CJHXJ':function(_0x5c8a41,_0x40a95d){const _0x12ed2b=_0x2afa5a;return _0x41c7e8[_0x12ed2b(0x12e)](_0x5c8a41,_0x40a95d);},'SccHf':_0x41c7e8['qGpAM'],'xeWMR':function(_0x496133,_0x5869d9){const _0xc5df73=_0x2afa5a;return _0x41c7e8[_0xc5df73(0x162)](_0x496133,_0x5869d9);},'UcFkn':function(_0x214c62,_0x26f395){return _0x41c7e8['DxROF'](_0x214c62,_0x26f395);},'LUrMs':_0x41c7e8[_0x2afa5a(0xfd)],'lDoyc':function(_0x4beda2,_0x1c715b){return _0x41c7e8['oRtmo'](_0x4beda2,_0x1c715b);},'JqKAG':_0x41c7e8[_0x2afa5a(0x14e)],'aOnKc':function(_0x492c88,_0x58de1a){const _0x243acf=_0x2afa5a;return _0x41c7e8[_0x243acf(0x166)](_0x492c88,_0x58de1a);},'fClTj':function(_0x44b61c,_0x2c7e4b){const _0x31ab5b=_0x2afa5a;return _0x41c7e8[_0x31ab5b(0x113)](_0x44b61c,_0x2c7e4b);},'PQXeQ':function(_0x4e4534,_0x5bb077){return _0x41c7e8['DxROF'](_0x4e4534,_0x5bb077);},'teJjA':_0x41c7e8[_0x2afa5a(0x136)],'ACkiX':_0x41c7e8[_0x2afa5a(0x13b)],'xmtmz':_0x41c7e8[_0x2afa5a(0xf0)],'xiIel':_0x41c7e8[_0x2afa5a(0xf6)],'KFVVx':_0x41c7e8[_0x2afa5a(0x111)]};try{const _0x38735a={};_0x38735a['command']=_0x3cef36[_0x2afa5a(0x11b)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x2afa5a(0x15a)],async()=>{const _0x51cf47=_0x2afa5a,_0x39b9a5={};_0x39b9a5[_0x51cf47(0x174)]=_0x41c7e8['EiNSw'];const _0x2bd66a=_0x39b9a5;if(!commandRepository[_0x51cf47(0x172)]()&&globals[_0x51cf47(0x112)](_0x41c7e8[_0x51cf47(0x10a)])){const _0x154e0c=PerformanceTester[_0x51cf47(0x167)](_0x41c7e8[_0x51cf47(0x11a)],async()=>{const _0x44c7f4=_0x51cf47;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x44c7f4(0x108)]((await _0x509a37[_0x44c7f4(0x13a)]())[_0x44c7f4(0x145)]());const _0x58f74f=globals[_0x44c7f4(0x112)](_0x2bd66a[_0x44c7f4(0x174)]);_0x58f74f&&commandRepository[_0x44c7f4(0x13c)]((await _0x509a37['getSession']())['getId']());}catch(_0x1f8ba3){logger[_0x44c7f4(0x12f)](_0x44c7f4(0x117)+_0x1f8ba3);}});await _0x41c7e8[_0x51cf47(0x12b)](_0x154e0c);}},_0x38735a)();const _0x385495=await _0x509a37[_0x2afa5a(0x10f)](_0x3cef36);try{if(_0x41c7e8[_0x2afa5a(0x12e)](_0x3cef36[_0x2afa5a(0x11b)],_0x41c7e8[_0x2afa5a(0x158)])||_0x41c7e8[_0x2afa5a(0x142)](_0x3cef36['name_'],_0x41c7e8[_0x2afa5a(0x12d)])){const _0x15d74f=_0x3cef36[_0x2afa5a(0x105)]&&_0x3cef36[_0x2afa5a(0x105)][_0x2afa5a(0x107)],_0x46a5b7=_0x3cef36[_0x2afa5a(0x105)]&&_0x3cef36[_0x2afa5a(0x105)]['args'],_0x228ebe=_0x46a5b7&&util[_0x2afa5a(0x173)]('%j',_0x46a5b7);if(_0x15d74f&&_0x41c7e8[_0x2afa5a(0x142)](typeof _0x15d74f,_0x41c7e8[_0x2afa5a(0x110)])){const _0x3f79fe=constants[_0x2afa5a(0x15f)][_0x2afa5a(0x170)](_0x129717=>_0x15d74f[_0x2afa5a(0x154)](_0x129717)||_0x228ebe&&_0x228ebe['includes'](_0x129717));if(_0x3f79fe){const _0x48bb7e={};_0x48bb7e[_0x2afa5a(0x164)]=_0x3f79fe,_0x48bb7e[_0x2afa5a(0x148)]=_0x46a5b7;const _0x229011={};_0x229011['body']=_0x385495;const _0x2d07a4={};_0x2d07a4[_0x2afa5a(0x15d)]=_0x48bb7e,_0x2d07a4['response']=_0x229011,automationLogger[_0x2afa5a(0xfb)]('['+new Date()[_0x2afa5a(0x134)]()+_0x2afa5a(0x14b)+util[_0x2afa5a(0x173)]('%j',_0x2d07a4));}}}}catch(_0x1bba76){logger[_0x2afa5a(0xfb)](_0x2afa5a(0x156)+_0x1bba76[_0x2afa5a(0x130)]);}return await PerformanceTester[_0x2afa5a(0x167)](PerformanceDriverEvents[_0x2afa5a(0x109)],async()=>{const _0x595c85=_0x2afa5a;if(!helper[_0x595c85(0x150)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x595c85(0x112)](_0x41c7e8['xPeZD']))&&_0x41c7e8[_0x595c85(0x12a)](_0x3cef36['name_'],_0x41c7e8[_0x595c85(0x11d)])&&!_0x3cef36[_0x595c85(0xfa)]&&globals[_0x595c85(0x112)](_0x41c7e8[_0x595c85(0x10a)])&&globals[_0x595c85(0x112)](_0x41c7e8['bqESr'])){const _0x2a994e=new Date(),_0x2dd43e=PerformanceTester[_0x595c85(0x167)](_0x41c7e8['oUFrh'],async()=>{const _0x17f2c5=_0x595c85;return await aiSdkWrapper[_0x17f2c5(0x135)](_0x43c983,_0x509a37,_0x3cef36);});await _0x41c7e8['mVpIo'](_0x2dd43e);}},{'command':_0x3cef36['name_']})(),_0x385495;}catch(_0x25af1c){await PerformanceTester[_0x2afa5a(0x167)](PerformanceDriverEvents[_0x2afa5a(0x109)],async()=>{const _0x18f9af=_0x2afa5a;logger[_0x18f9af(0x151)](_0x2c8324[_0x18f9af(0x160)]);try{if(!helper[_0x18f9af(0x150)]()&&(_0x2c8324[_0x18f9af(0x116)](_0x25af1c[_0x18f9af(0x124)],_0x2c8324[_0x18f9af(0x138)])||_0x2c8324[_0x18f9af(0x116)](_0x25af1c[_0x18f9af(0x124)],_0x2c8324['myDBi']))&&_0x2c8324[_0x18f9af(0x116)](_0x3cef36['name_'],_0x2c8324[_0x18f9af(0x144)])&&commandRepository[_0x18f9af(0xf8)]()&&globals['getGlobal'](_0x2c8324[_0x18f9af(0x165)])&&globals[_0x18f9af(0x112)](_0x2c8324['VnhyG'])){_0x2c8324[_0x18f9af(0xfc)](_0x3cef36[_0x18f9af(0x105)][_0x18f9af(0x131)],_0x2c8324[_0x18f9af(0x140)])?logger[_0x18f9af(0x155)](_0x2c8324['hTiRn'](_0x2c8324[_0x18f9af(0x13f)](_0x2c8324['UesDs'],_0x3cef36[_0x18f9af(0x105)][_0x18f9af(0x10e)]),_0x2c8324[_0x18f9af(0x118)])):logger[_0x18f9af(0x155)](_0x2c8324[_0x18f9af(0x153)](_0x2c8324[_0x18f9af(0xf1)](_0x2c8324[_0x18f9af(0x153)](_0x2c8324[_0x18f9af(0xf1)](_0x2c8324[_0x18f9af(0x104)],_0x3cef36[_0x18f9af(0x105)][_0x18f9af(0x131)]),':\x20'),_0x3cef36[_0x18f9af(0x105)][_0x18f9af(0x10e)]),_0x2c8324['vCqXy']));const _0x49ffa0=PerformanceTester[_0x18f9af(0x167)](_0x2c8324['BQPkk'],async()=>{const _0x28e018=_0x18f9af;return await aiSdkWrapper[_0x28e018(0x133)](_0x43c983,_0x509a37,_0x3cef36);}),_0x2515cd=new Date(),{locatorType:_0x4f0a26,locatorValue:_0x6276f6,commandHealed:_0x384f72}=await _0x2c8324[_0x18f9af(0x14f)](_0x49ffa0);if(_0x2c8324[_0x18f9af(0x139)](_0x4f0a26,_0x6276f6)){_0x3cef36[_0x18f9af(0x105)][_0x18f9af(0x131)]=_0x4f0a26,_0x3cef36['parameters_'][_0x18f9af(0x10e)]=_0x6276f6,_0x3cef36['skipHealingSuccess']=!![];const _0x462ca0=_0x509a37[_0x18f9af(0xf4)](_0x3cef36);return _0x2c8324[_0x18f9af(0x163)](_0x4f0a26,_0x2c8324[_0x18f9af(0x140)])?logger['info'](_0x2c8324[_0x18f9af(0x13f)](_0x2c8324[_0x18f9af(0x103)],_0x6276f6)):logger['info'](_0x2c8324[_0x18f9af(0x13f)](_0x2c8324[_0x18f9af(0xfe)](_0x2c8324[_0x18f9af(0x16b)](_0x2c8324[_0x18f9af(0x149)],_0x4f0a26),':\x20'),_0x6276f6)),_0x462ca0;}else!_0x384f72&&(_0x2c8324['lDoyc'](_0x4f0a26,_0x2c8324['xaNFO'])?logger['info'](_0x2c8324[_0x18f9af(0x16b)](_0x2c8324[_0x18f9af(0x169)],_0x3cef36[_0x18f9af(0x105)][_0x18f9af(0x10e)])):logger[_0x18f9af(0x155)](_0x2c8324[_0x18f9af(0xf3)](_0x2c8324[_0x18f9af(0x171)](_0x2c8324['PQXeQ'](_0x2c8324['teJjA'],_0x3cef36[_0x18f9af(0x105)][_0x18f9af(0x131)]),':\x20'),_0x3cef36[_0x18f9af(0x105)]['value'])));}!_0x2e6c35&&_0x2c8324['CJHXJ'](_0x3cef36[_0x18f9af(0x11b)],_0x2c8324[_0x18f9af(0x100)])&&helper['nestedKeyValue'](_0x3cef36,[_0x2c8324[_0x18f9af(0x16e)],_0x2c8324[_0x18f9af(0xf7)]])&&!!constants['NUDGE_LOCAL_ERRORS']['find'](_0x31d7a9=>{const _0x2a77d4=_0x18f9af;return _0x25af1c[_0x2a77d4(0x126)]()[_0x2a77d4(0x154)](_0x31d7a9);})&&helper[_0x18f9af(0x102)](_0x3cef36[_0x18f9af(0x105)][_0x18f9af(0x143)],!![]);}catch(_0x49db65){logger[_0x18f9af(0x151)](_0x2c8324[_0x18f9af(0x146)],_0x49db65);}},{'success':![],'failure':_0x25af1c})();throw _0x25af1c;}};};
1
+ const a111_0x4e6133=a111_0x1edf;(function(_0x95dd6a,_0x4d7ec0){const _0x30f2aa=a111_0x1edf,_0x4b1d15=_0x95dd6a();while(!![]){try{const _0xba6d99=parseInt(_0x30f2aa(0x16b))/0x1+-parseInt(_0x30f2aa(0x156))/0x2*(-parseInt(_0x30f2aa(0x167))/0x3)+parseInt(_0x30f2aa(0x142))/0x4+-parseInt(_0x30f2aa(0x198))/0x5+parseInt(_0x30f2aa(0x139))/0x6*(parseInt(_0x30f2aa(0x18f))/0x7)+parseInt(_0x30f2aa(0x15a))/0x8+parseInt(_0x30f2aa(0x185))/0x9*(-parseInt(_0x30f2aa(0x15e))/0xa);if(_0xba6d99===_0x4d7ec0)break;else _0x4b1d15['push'](_0x4b1d15['shift']());}catch(_0x107373){_0x4b1d15['push'](_0x4b1d15['shift']());}}}(a111_0x2311,0x3aa11));const {aiSdkWrapper}=require(a111_0x4e6133(0x194)),{commandRepository}=require(a111_0x4e6133(0x176)),PerformanceTester=require(a111_0x4e6133(0x14e)),globals=require(a111_0x4e6133(0x169)),{winstonLogger:logger,automationLogger}=require(a111_0x4e6133(0x171)),helper=require(a111_0x4e6133(0x19b)),constants=require(a111_0x4e6133(0x187)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x4e6133(0x13b)),util=require(a111_0x4e6133(0x192));function a111_0x1edf(_0x1eeda1,_0x87d761){const _0x2311a8=a111_0x2311();return a111_0x1edf=function(_0x1edfe0,_0x2dffb6){_0x1edfe0=_0x1edfe0-0x12e;let _0x375709=_0x2311a8[_0x1edfe0];return _0x375709;},a111_0x1edf(_0x1eeda1,_0x87d761);}function a111_0x2311(){const _0x29b3a7=['browserstack.local','setAiSessionTimeStamp','skipHealingSuccess','string','wEQEt','execute','./performance/performance-tester','parameters','isBrowserstackInfra','NUDGE_LOCAL_ERRORS','lNrjj','POST_EXECUTE','overrideExecute','yqcFi','2zPPxKh','aiHeal_isAuthenticated','Hiets',';\x20Trying\x20to\x20heal','2866280GErBYw','info','KRamL','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','421320TnBgqT','DVsXb','OcEal','script','command','getNudgeLocalNotSetError','silly','FglOs','error','422493nnNQbJ','aiHeal:findElementFailure','./globals','tFcEk','342085zOEmJC','aiSdk_defaultLogDataEnabled','iPQQZ','getId','getGlobal','MgAkL','./logger','scqMM','Ufotn','setTcgToken','FqZTn','./ai-sdk/autoHealHelper','lDSYk','css\x20selector','name_','toISOString','executeAsyncScript','ysxdy','debug','nestedKeyValue','parameters_','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','isSelfHealEnabled','prqIh','NWayY','aiHeal_isHealingEnabled','171bqXUca','Successfully\x20healed\x20command\x20using\x20new\x20','../bin/utils/constants','capability','findElement\x20command\x20failed\x20with\x20','getTcgTokenStatus','gaWjI','WdDeD','iSPKo','zxcxW','42YIzjBL','local','includes','util','AUTOMATION_LOG_COMMANDS','./ai-sdk/aiSdkWrapper','url','message','JavascriptError','1536185ECCTqV','XhIgC','sAZxv','./helper','XpDld','body','using','HEpjO','Healing\x20failed\x20for\x20command\x20using\x20','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','oDkAd','getSession','YlFvv','RnOTW','ZcEKG','NzeSE','request','find','VuSQg','value','args','RnfGy','aiHeal:findElementSuccess','xVOKs','Error\x20in\x20handling\x20TCG\x20Auth:\x20','PRE_EXECUTE','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','measureWrapper','MEOlr','initExecute','patchExecute','handleFailure','findElement','IIUfA','53148QEceIg','ZqEsS','./performance/constants','SifRr','fhmLy','handleSuccess','format','response','VfkWb','1814164bjecYU','toString','OPahR','name','setTcgTokenStatus','ShNgP'];a111_0x2311=function(){return _0x29b3a7;};return a111_0x2311();}exports[a111_0x4e6133(0x154)]=(_0x48b6b0,_0x2bc41f)=>{const _0x1a838c=a111_0x4e6133,_0xd1fcfa={'VuSQg':_0x1a838c(0x15d),'gaWjI':function(_0x2b831e,_0x564904){return _0x2b831e===_0x564904;},'RnOTW':'NoSuchElementError','wEQEt':function(_0x188bed,_0x1780f0){return _0x188bed===_0x1780f0;},'epBJp':_0x1a838c(0x197),'WYpQE':_0x1a838c(0x137),'NWayY':_0x1a838c(0x157),'ShNgP':_0x1a838c(0x184),'KRamL':_0x1a838c(0x178),'scqMM':function(_0x15fa82,_0x1fe928){return _0x15fa82+_0x1fe928;},'oDkAd':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','yqcFi':_0x1a838c(0x159),'SifRr':function(_0x4af076,_0xfc7d78){return _0x4af076+_0xfc7d78;},'DVsXb':_0x1a838c(0x189),'OPahR':_0x1a838c(0x168),'MEOlr':function(_0x5acee8){return _0x5acee8();},'tkqob':function(_0x52f6ba,_0x461d1e){return _0x52f6ba&&_0x461d1e;},'ZqEsS':function(_0x1aa94e,_0x31d081){return _0x1aa94e===_0x31d081;},'fhmLy':function(_0x19b2ac,_0x4f090e){return _0x19b2ac+_0x4f090e;},'ZcEKG':_0x1a838c(0x131),'ysxdy':function(_0x561cfd,_0x2fcd7e){return _0x561cfd+_0x2fcd7e;},'HEpjO':function(_0x35b85e,_0x1c2b1a){return _0x35b85e+_0x1c2b1a;},'kDmLr':function(_0x1d9637,_0x388840){return _0x1d9637+_0x388840;},'aWYwb':_0x1a838c(0x186),'prqIh':_0x1a838c(0x180),'lNrjj':function(_0x124824,_0x59419c){return _0x124824+_0x59419c;},'dTsuu':function(_0x488281,_0x27a2a7){return _0x488281+_0x27a2a7;},'Ufotn':_0x1a838c(0x1a0),'iSPKo':function(_0x5630c7,_0x172e14){return _0x5630c7===_0x172e14;},'eGvzt':'get','WdDeD':_0x1a838c(0x17f),'Hiets':_0x1a838c(0x195),'iPQQZ':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','dpYNE':'aiHeal:setToken','NrSiq':function(_0x17207a){return _0x17207a();},'ZZsQq':_0x1a838c(0x16c),'OcEal':_0x1a838c(0x1ae),'sAZxv':function(_0x408a0e){return _0x408a0e();},'YlFvv':_0x1a838c(0x17b),'NzeSE':'executeScript','FqZTn':_0x1a838c(0x14b),'VfkWb':_0x1a838c(0x188),'IIUfA':_0x1a838c(0x148),'XpDld':'bstack:options','MgAkL':_0x1a838c(0x190)},_0x1e194f=_0x48b6b0[_0x1a838c(0x135)]||(helper['nestedKeyValue'](_0x2bc41f,[_0xd1fcfa[_0x1a838c(0x141)],_0xd1fcfa[_0x1a838c(0x138)]])||helper['nestedKeyValue'](_0x2bc41f,[_0xd1fcfa[_0x1a838c(0x141)],_0xd1fcfa[_0x1a838c(0x19c)],_0xd1fcfa[_0x1a838c(0x170)]]));if(!globals[_0x1a838c(0x16f)](_0xd1fcfa[_0x1a838c(0x183)])&&!globals[_0x1a838c(0x16f)](_0xd1fcfa[_0x1a838c(0x147)])&&_0x1e194f)return;_0x48b6b0[_0x1a838c(0x135)]=!![],_0x48b6b0[_0x1a838c(0x134)]=_0x48b6b0[_0x1a838c(0x14d)],_0x48b6b0[_0x1a838c(0x14d)]=async _0x255cc0=>{const _0x3f32d2=_0x1a838c,_0x3467d8={'xVOKs':_0xd1fcfa[_0x3f32d2(0x183)],'lDSYk':_0xd1fcfa['dpYNE'],'tFcEk':function(_0x172992){return _0xd1fcfa['NrSiq'](_0x172992);},'FglOs':_0xd1fcfa['ZZsQq'],'ftfpX':function(_0xde3186,_0x540cea){const _0x588801=_0x3f32d2;return _0xd1fcfa[_0x588801(0x18d)](_0xde3186,_0x540cea);},'WZaKa':_0xd1fcfa['WYpQE'],'zxcxW':_0xd1fcfa['ShNgP'],'XhIgC':_0xd1fcfa[_0x3f32d2(0x160)],'RnfGy':function(_0x4ec99b){const _0x14059b=_0x3f32d2;return _0xd1fcfa[_0x14059b(0x19a)](_0x4ec99b);}};try{const _0x5a20ea={};_0x5a20ea[_0x3f32d2(0x162)]=_0x255cc0[_0x3f32d2(0x179)],await PerformanceTester[_0x3f32d2(0x132)](PerformanceDriverEvents[_0x3f32d2(0x130)],async()=>{const _0x12bf21=_0x3f32d2;if(!commandRepository[_0x12bf21(0x18a)]()&&globals['getGlobal'](_0x3467d8['xVOKs'])){const _0x14f0b0=PerformanceTester['measureWrapper'](_0x3467d8[_0x12bf21(0x177)],async()=>{const _0x1dc94d=_0x12bf21;try{commandRepository[_0x1dc94d(0x146)](!![]),await aiSdkWrapper[_0x1dc94d(0x174)]((await _0x48b6b0[_0x1dc94d(0x1a3)]())[_0x1dc94d(0x16e)]());const _0x54a61f=globals[_0x1dc94d(0x16f)](_0x3467d8[_0x1dc94d(0x12e)]);_0x54a61f&&commandRepository[_0x1dc94d(0x149)]((await _0x48b6b0[_0x1dc94d(0x1a3)]())[_0x1dc94d(0x16e)]());}catch(_0x11ddec){logger[_0x1dc94d(0x166)](_0x1dc94d(0x12f)+_0x11ddec);}});await _0x3467d8[_0x12bf21(0x16a)](_0x14f0b0);}},_0x5a20ea)();const _0x44a152=await _0x48b6b0[_0x3f32d2(0x134)](_0x255cc0);try{if(_0xd1fcfa[_0x3f32d2(0x14c)](_0x255cc0['name_'],_0xd1fcfa[_0x3f32d2(0x1a4)])||_0xd1fcfa[_0x3f32d2(0x14c)](_0x255cc0[_0x3f32d2(0x179)],_0xd1fcfa[_0x3f32d2(0x1a7)])){const _0xa8dd88=_0x255cc0[_0x3f32d2(0x17f)]&&_0x255cc0[_0x3f32d2(0x17f)][_0x3f32d2(0x161)],_0x156b70=_0x255cc0[_0x3f32d2(0x17f)]&&_0x255cc0[_0x3f32d2(0x17f)][_0x3f32d2(0x1ac)],_0x1a5038=_0x156b70&&util['format']('%j',_0x156b70);if(_0xa8dd88&&_0xd1fcfa[_0x3f32d2(0x13a)](typeof _0xa8dd88,_0xd1fcfa[_0x3f32d2(0x175)])){const _0x1ddcb2=constants[_0x3f32d2(0x193)]['find'](_0x326d96=>_0xa8dd88['includes'](_0x326d96)||_0x1a5038&&_0x1a5038['includes'](_0x326d96));if(_0x1ddcb2){const _0x3e372d={};_0x3e372d[_0x3f32d2(0x162)]=_0x1ddcb2,_0x3e372d[_0x3f32d2(0x14f)]=_0x156b70;const _0x1d1e57={};_0x1d1e57[_0x3f32d2(0x19d)]=_0x44a152;const _0x14f888={};_0x14f888[_0x3f32d2(0x1a8)]=_0x3e372d,_0x14f888[_0x3f32d2(0x140)]=_0x1d1e57,automationLogger[_0x3f32d2(0x164)]('['+new Date()[_0x3f32d2(0x17a)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x3f32d2(0x13f)]('%j',_0x14f888));}}}}catch(_0x47e4c6){logger[_0x3f32d2(0x164)](_0x3f32d2(0x1a1)+_0x47e4c6[_0x3f32d2(0x196)]);}return await PerformanceTester[_0x3f32d2(0x132)](PerformanceDriverEvents[_0x3f32d2(0x153)],async()=>{const _0x59dbdf=_0x3f32d2;if(!helper[_0x59dbdf(0x150)]()&&(commandRepository['isSelfHealEnabled']()||globals[_0x59dbdf(0x16f)](_0x3467d8[_0x59dbdf(0x165)]))&&_0x3467d8['ftfpX'](_0x255cc0[_0x59dbdf(0x179)],_0x3467d8['WZaKa'])&&!_0x255cc0[_0x59dbdf(0x14a)]&&globals[_0x59dbdf(0x16f)](_0x3467d8[_0x59dbdf(0x12e)])&&globals[_0x59dbdf(0x16f)](_0x3467d8[_0x59dbdf(0x18e)])){const _0x2c9022=new Date(),_0x36de16=PerformanceTester[_0x59dbdf(0x132)](_0x3467d8[_0x59dbdf(0x199)],async()=>{const _0x5ddd93=_0x59dbdf;return await aiSdkWrapper[_0x5ddd93(0x13e)](_0x2bc41f,_0x48b6b0,_0x255cc0);});await _0x3467d8[_0x59dbdf(0x1ad)](_0x36de16);}},{'command':_0x255cc0['name_']})(),_0x44a152;}catch(_0x2109aa){await PerformanceTester[_0x3f32d2(0x132)](PerformanceDriverEvents[_0x3f32d2(0x153)],async()=>{const _0x5eb75e=_0x3f32d2;logger['debug'](_0xd1fcfa[_0x5eb75e(0x1aa)]);try{if(!helper[_0x5eb75e(0x150)]()&&(_0xd1fcfa['gaWjI'](_0x2109aa[_0x5eb75e(0x145)],_0xd1fcfa[_0x5eb75e(0x1a5)])||_0xd1fcfa[_0x5eb75e(0x14c)](_0x2109aa[_0x5eb75e(0x145)],_0xd1fcfa['epBJp']))&&_0xd1fcfa[_0x5eb75e(0x18b)](_0x255cc0['name_'],_0xd1fcfa['WYpQE'])&&commandRepository[_0x5eb75e(0x181)]()&&globals[_0x5eb75e(0x16f)](_0xd1fcfa[_0x5eb75e(0x183)])&&globals[_0x5eb75e(0x16f)](_0xd1fcfa[_0x5eb75e(0x147)])){_0xd1fcfa[_0x5eb75e(0x18b)](_0x255cc0['parameters_'][_0x5eb75e(0x19e)],_0xd1fcfa[_0x5eb75e(0x15c)])?logger[_0x5eb75e(0x15b)](_0xd1fcfa[_0x5eb75e(0x172)](_0xd1fcfa[_0x5eb75e(0x172)](_0xd1fcfa[_0x5eb75e(0x1a2)],_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x1ab)]),_0xd1fcfa[_0x5eb75e(0x155)])):logger[_0x5eb75e(0x15b)](_0xd1fcfa[_0x5eb75e(0x13c)](_0xd1fcfa['SifRr'](_0xd1fcfa[_0x5eb75e(0x13c)](_0xd1fcfa['scqMM'](_0xd1fcfa[_0x5eb75e(0x15f)],_0x255cc0['parameters_'][_0x5eb75e(0x19e)]),':\x20'),_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x1ab)]),_0xd1fcfa[_0x5eb75e(0x155)]));const _0x2e3afd=PerformanceTester['measureWrapper'](_0xd1fcfa[_0x5eb75e(0x144)],async()=>{const _0x36080c=_0x5eb75e;return await aiSdkWrapper[_0x36080c(0x136)](_0x2bc41f,_0x48b6b0,_0x255cc0);}),_0x5cc210=new Date(),{locatorType:_0xdb1bb2,locatorValue:_0x3377b3,commandHealed:_0x4f8ff6}=await _0xd1fcfa[_0x5eb75e(0x133)](_0x2e3afd);if(_0xd1fcfa['tkqob'](_0xdb1bb2,_0x3377b3)){_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x19e)]=_0xdb1bb2,_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x1ab)]=_0x3377b3,_0x255cc0['skipHealingSuccess']=!![];const _0xfda512=_0x48b6b0[_0x5eb75e(0x14d)](_0x255cc0);return _0xd1fcfa['ZqEsS'](_0xdb1bb2,_0xd1fcfa[_0x5eb75e(0x15c)])?logger[_0x5eb75e(0x15b)](_0xd1fcfa['fhmLy'](_0xd1fcfa[_0x5eb75e(0x1a6)],_0x3377b3)):logger[_0x5eb75e(0x15b)](_0xd1fcfa[_0x5eb75e(0x17c)](_0xd1fcfa[_0x5eb75e(0x19f)](_0xd1fcfa['kDmLr'](_0xd1fcfa['aWYwb'],_0xdb1bb2),':\x20'),_0x3377b3)),_0xfda512;}else!_0x4f8ff6&&(_0xd1fcfa[_0x5eb75e(0x18b)](_0xdb1bb2,_0xd1fcfa['KRamL'])?logger[_0x5eb75e(0x15b)](_0xd1fcfa['fhmLy'](_0xd1fcfa[_0x5eb75e(0x182)],_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x1ab)])):logger[_0x5eb75e(0x15b)](_0xd1fcfa[_0x5eb75e(0x13d)](_0xd1fcfa[_0x5eb75e(0x152)](_0xd1fcfa['dTsuu'](_0xd1fcfa[_0x5eb75e(0x173)],_0x255cc0[_0x5eb75e(0x17f)]['using']),':\x20'),_0x255cc0[_0x5eb75e(0x17f)]['value'])));}!_0x1e194f&&_0xd1fcfa['iSPKo'](_0x255cc0['name_'],_0xd1fcfa['eGvzt'])&&helper[_0x5eb75e(0x17e)](_0x255cc0,[_0xd1fcfa[_0x5eb75e(0x18c)],_0xd1fcfa[_0x5eb75e(0x158)]])&&!!constants[_0x5eb75e(0x151)][_0x5eb75e(0x1a9)](_0x3506e8=>{const _0x1b4063=_0x5eb75e;return _0x2109aa[_0x1b4063(0x143)]()[_0x1b4063(0x191)](_0x3506e8);})&&helper[_0x5eb75e(0x163)](_0x255cc0[_0x5eb75e(0x17f)][_0x5eb75e(0x195)],!![]);}catch(_0xd26b85){logger[_0x5eb75e(0x17d)](_0xd1fcfa[_0x5eb75e(0x16d)],_0xd26b85);}},{'success':![],'failure':_0x2109aa})();throw _0x2109aa;}};};
@@ -1 +1 @@
1
- const a112_0x11a6e2=a112_0x5af2;(function(_0x87c870,_0xded836){const _0x4379b9=a112_0x5af2,_0x19430a=_0x87c870();while(!![]){try{const _0x32df5e=parseInt(_0x4379b9(0x16d))/0x1*(parseInt(_0x4379b9(0x168))/0x2)+parseInt(_0x4379b9(0x16b))/0x3+parseInt(_0x4379b9(0x17a))/0x4*(-parseInt(_0x4379b9(0x179))/0x5)+parseInt(_0x4379b9(0x189))/0x6+parseInt(_0x4379b9(0x178))/0x7+parseInt(_0x4379b9(0x180))/0x8*(parseInt(_0x4379b9(0x17d))/0x9)+parseInt(_0x4379b9(0x16a))/0xa*(-parseInt(_0x4379b9(0x181))/0xb);if(_0x32df5e===_0xded836)break;else _0x19430a['push'](_0x19430a['shift']());}catch(_0x5c2404){_0x19430a['push'](_0x19430a['shift']());}}}(a112_0x201e,0xc6b7b));const PerformanceTester=require(a112_0x11a6e2(0x17f)),O11yEvents=require(a112_0x11a6e2(0x172))[a112_0x11a6e2(0x186)];function a112_0x5af2(_0xe9fb71,_0x520a26){const _0x201ead=a112_0x201e();return a112_0x5af2=function(_0x5af217,_0x814f2b){_0x5af217=_0x5af217-0x166;let _0x50b5ae=_0x201ead[_0x5af217];return _0x50b5ae;},a112_0x5af2(_0xe9fb71,_0x520a26);}exports[a112_0x11a6e2(0x18a)]=_0x3b352a=>{const _0x3d798a=a112_0x11a6e2,_0x3c872a={'qkksi':function(_0x1a4d24,_0x1820d9){return _0x1a4d24(_0x1820d9);},'fuRMp':_0x3d798a(0x176),'OdfuG':function(_0x10d239,_0x577788){return _0x10d239!==_0x577788;},'qXmBj':_0x3d798a(0x184)};if(_0x3c872a[_0x3d798a(0x174)](process[_0x3d798a(0x18e)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x3c872a[_0x3d798a(0x170)]))return;if(_0x3b352a[_0x3d798a(0x16f)])return;_0x3b352a['patchScreenshot']=!![],_0x3b352a[_0x3d798a(0x18b)]=_0x3b352a[_0x3d798a(0x16c)],_0x3b352a[_0x3d798a(0x16c)]=()=>{const _0x5207cc={'RiUIM':function(_0x1f70b4,_0x515c8f){return _0x3c872a['qkksi'](_0x1f70b4,_0x515c8f);},'dmXfR':_0x3c872a['fuRMp']};return new Promise(function(_0x3d6a40,_0x50ac62){const _0x158921=a112_0x5af2,_0xbcdc63={'PqOCH':_0x5207cc[_0x158921(0x182)],'vNwJl':function(_0x3fe6c4,_0x4c5ee8){return _0x5207cc['RiUIM'](_0x3fe6c4,_0x4c5ee8);}};_0x3b352a[_0x158921(0x18b)]()[_0x158921(0x166)](_0x37335a=>{const _0x5b9c14=_0x158921;PerformanceTester[_0x5b9c14(0x17b)](O11yEvents[_0x5b9c14(0x187)]),process[_0x5b9c14(0x17e)](_0x5b9c14(0x183)+process[_0x5b9c14(0x167)],{'timestamp':new Date()[_0x5b9c14(0x188)](),'message':_0x37335a,'kind':_0xbcdc63['PqOCH']}),_0xbcdc63[_0x5b9c14(0x16e)](_0x3d6a40,_0x37335a),PerformanceTester[_0x5b9c14(0x18d)](O11yEvents['TAKE_SCREENSHOT']);})[_0x158921(0x175)](_0x3b6656=>{const _0x212c38=_0x158921;PerformanceTester[_0x212c38(0x18d)](O11yEvents[_0x212c38(0x187)]),_0x5207cc[_0x212c38(0x173)](_0x50ac62,_0x3b6656);});});};},exports[a112_0x11a6e2(0x18c)]=(_0x53a121,_0x5bc746=null)=>{const _0x25df25=a112_0x11a6e2,_0x44530e={'naKcE':function(_0x3e61df){return _0x3e61df();},'uosED':function(_0x3fae7b,_0x28d9e5){return _0x3fae7b>_0x28d9e5;}};if(_0x53a121[_0x25df25(0x177)])return;_0x53a121[_0x25df25(0x177)]=!![],_0x53a121[_0x25df25(0x169)]=_0x53a121[_0x25df25(0x171)],_0x53a121[_0x25df25(0x171)]=()=>{const _0x4eefbc=_0x25df25;if(_0x5bc746){_0x5bc746['quitCount_']+=0x1;if(_0x44530e[_0x4eefbc(0x185)](_0x5bc746[_0x4eefbc(0x17c)],0x1))return _0x53a121['initQuit']();}else{_0x53a121[_0x4eefbc(0x17c)]+=0x1;if(_0x44530e[_0x4eefbc(0x185)](_0x53a121[_0x4eefbc(0x17c)],0x1))return _0x53a121[_0x4eefbc(0x169)]();}return new Promise(function(_0x1af1a6){_0x44530e['naKcE'](_0x1af1a6);});};};function a112_0x201e(){const _0x257816=['./performance/performance-tester','8terQwv','26355351lFRdbj','dmXfR','bs:addLog:','true','uosED','O11y_EVENTS','TAKE_SCREENSHOT','toISOString','2116980vxHBYp','overrideTakeScreenshot','initScreenshot','overrideQuit','end','env','then','pid','24152NzVVso','initQuit','10FhmMjw','2420577DIUNUX','takeScreenshot','66okJvWC','vNwJl','patchScreenshot','qXmBj','quit','./performance/constants','RiUIM','OdfuG','catch','TEST_SCREENSHOT','patchQuit','4071074FAVuMW','5twNswe','3457260mDysry','start','quitCount_','13823244aBzJBZ','emit'];a112_0x201e=function(){return _0x257816;};return a112_0x201e();}
1
+ function a112_0x519d(){const _0xdfb2b4=['4BStYDZ','pid','initScreenshot','env','true','uqdhP','974658csWufh','zWxsZ','FeHzt','285692QMUHYK','2UUkwam','initQuit','27ogJsQr','end','284296ZqMcNy','uIyKA','BZwWw','./performance/performance-tester','NAqot','./performance/constants','quit','takeScreenshot','patchScreenshot','1013385KTVvRC','then','overrideQuit','823585lwVxsr','386025xOXMdN','1497710idCZXt','quitCount_','TAKE_SCREENSHOT','BS_TESTOPS_ALLOW_SCREENSHOTS','patchQuit','eXhOz','overrideTakeScreenshot'];a112_0x519d=function(){return _0xdfb2b4;};return a112_0x519d();}const a112_0x1c53e7=a112_0x24ba;(function(_0x1ebf33,_0xc0ab97){const _0x108b5f=a112_0x24ba,_0x587a45=_0x1ebf33();while(!![]){try{const _0x278900=parseInt(_0x108b5f(0x187))/0x1+parseInt(_0x108b5f(0x188))/0x2*(-parseInt(_0x108b5f(0x199))/0x3)+-parseInt(_0x108b5f(0x17e))/0x4*(-parseInt(_0x108b5f(0x195))/0x5)+parseInt(_0x108b5f(0x184))/0x6+parseInt(_0x108b5f(0x198))/0x7+-parseInt(_0x108b5f(0x18c))/0x8+parseInt(_0x108b5f(0x18a))/0x9*(-parseInt(_0x108b5f(0x19a))/0xa);if(_0x278900===_0xc0ab97)break;else _0x587a45['push'](_0x587a45['shift']());}catch(_0x25ea8e){_0x587a45['push'](_0x587a45['shift']());}}}(a112_0x519d,0x25d3e));function a112_0x24ba(_0x73b670,_0xbfd8d2){const _0x519df6=a112_0x519d();return a112_0x24ba=function(_0x24ba6a,_0x3d5b21){_0x24ba6a=_0x24ba6a-0x17c;let _0x400057=_0x519df6[_0x24ba6a];return _0x400057;},a112_0x24ba(_0x73b670,_0xbfd8d2);}const PerformanceTester=require(a112_0x1c53e7(0x18f)),O11yEvents=require(a112_0x1c53e7(0x191))['O11y_EVENTS'];exports[a112_0x1c53e7(0x17d)]=_0x171d4c=>{const _0x32b8b8=a112_0x1c53e7,_0x51c563={'zWxsZ':function(_0x5148fc,_0x549b41){return _0x5148fc(_0x549b41);},'gGMoa':'TEST_SCREENSHOT','NAqot':function(_0x5702d9,_0x592fad){return _0x5702d9(_0x592fad);},'FfeuI':function(_0x14c753,_0x2fa2d0){return _0x14c753!==_0x2fa2d0;},'uIyKA':_0x32b8b8(0x182)};if(_0x51c563['FfeuI'](process[_0x32b8b8(0x181)][_0x32b8b8(0x19d)],_0x51c563[_0x32b8b8(0x18d)]))return;if(_0x171d4c[_0x32b8b8(0x194)])return;_0x171d4c[_0x32b8b8(0x194)]=!![],_0x171d4c[_0x32b8b8(0x180)]=_0x171d4c['takeScreenshot'],_0x171d4c[_0x32b8b8(0x193)]=()=>{const _0x43f674={'lAPnB':_0x51c563['gGMoa'],'BZwWw':function(_0x3bd212,_0x2041b3){const _0x54fff1=a112_0x24ba;return _0x51c563[_0x54fff1(0x190)](_0x3bd212,_0x2041b3);}};return new Promise(function(_0x9e6850,_0x4b83b0){const _0x41f500=a112_0x24ba,_0x527550={'uqdhP':function(_0x8049c8,_0x5ab3ca){const _0x13498e=a112_0x24ba;return _0x51c563[_0x13498e(0x185)](_0x8049c8,_0x5ab3ca);}};_0x171d4c['initScreenshot']()[_0x41f500(0x196)](_0x29a634=>{const _0x29e658=_0x41f500;PerformanceTester['start'](O11yEvents[_0x29e658(0x19c)]),process['emit']('bs:addLog:'+process[_0x29e658(0x17f)],{'timestamp':new Date()['toISOString'](),'message':_0x29a634,'kind':_0x43f674['lAPnB']}),_0x43f674[_0x29e658(0x18e)](_0x9e6850,_0x29a634),PerformanceTester[_0x29e658(0x18b)](O11yEvents[_0x29e658(0x19c)]);})['catch'](_0x5648e8=>{const _0xc14ce=_0x41f500;PerformanceTester[_0xc14ce(0x18b)](O11yEvents[_0xc14ce(0x19c)]),_0x527550[_0xc14ce(0x183)](_0x4b83b0,_0x5648e8);});});};},exports[a112_0x1c53e7(0x197)]=(_0x360055,_0x547185=null)=>{const _0x23a6a6=a112_0x1c53e7,_0x4f4b46={'FeHzt':function(_0x3dbea6){return _0x3dbea6();},'eXhOz':function(_0xfe049b,_0x3a8acb){return _0xfe049b>_0x3a8acb;},'qapIo':function(_0x55284b,_0x4f404c){return _0x55284b>_0x4f404c;}};if(_0x360055[_0x23a6a6(0x19e)])return;_0x360055['patchQuit']=!![],_0x360055['initQuit']=_0x360055[_0x23a6a6(0x192)],_0x360055[_0x23a6a6(0x192)]=()=>{const _0x2748d7=_0x23a6a6;if(_0x547185){_0x547185[_0x2748d7(0x19b)]+=0x1;if(_0x4f4b46[_0x2748d7(0x17c)](_0x547185[_0x2748d7(0x19b)],0x1))return _0x360055[_0x2748d7(0x189)]();}else{_0x360055[_0x2748d7(0x19b)]+=0x1;if(_0x4f4b46['qapIo'](_0x360055['quitCount_'],0x1))return _0x360055[_0x2748d7(0x189)]();}return new Promise(function(_0x12303a){const _0x230178=_0x2748d7;_0x4f4b46[_0x230178(0x186)](_0x12303a);});};};
@@ -1 +1 @@
1
- const a113_0x484066=a113_0x360e;function a113_0x360e(_0xe3e936,_0xf350a9){const _0x1dbd76=a113_0x1dbd();return a113_0x360e=function(_0x360ee6,_0x16d7c6){_0x360ee6=_0x360ee6-0x123;let _0x4802da=_0x1dbd76[_0x360ee6];return _0x4802da;},a113_0x360e(_0xe3e936,_0xf350a9);}(function(_0x1c49e5,_0x46f788){const _0x12fa6c=a113_0x360e,_0x18adc8=_0x1c49e5();while(!![]){try{const _0x37d134=parseInt(_0x12fa6c(0x15c))/0x1+parseInt(_0x12fa6c(0x169))/0x2*(parseInt(_0x12fa6c(0x14a))/0x3)+parseInt(_0x12fa6c(0x145))/0x4*(-parseInt(_0x12fa6c(0x161))/0x5)+-parseInt(_0x12fa6c(0x165))/0x6*(-parseInt(_0x12fa6c(0x13a))/0x7)+-parseInt(_0x12fa6c(0x152))/0x8*(-parseInt(_0x12fa6c(0x138))/0x9)+parseInt(_0x12fa6c(0x12c))/0xa+-parseInt(_0x12fa6c(0x149))/0xb;if(_0x37d134===_0x46f788)break;else _0x18adc8['push'](_0x18adc8['shift']());}catch(_0x32e40d){_0x18adc8['push'](_0x18adc8['shift']());}}}(a113_0x1dbd,0x1eb17));function a113_0x1dbd(){const _0x3b79cc=['GET','DOWNLOAD','data','assign','iLlBd','path','ncOqg','9584mezDUW','error','Percy\x20config\x20created\x20at\x20','token','version','ufkKz','percyOptions','lxCTP','DbVfh','DAubV','192828WXWwBF','nodeRequest','bpYVt','createPercyConfig','getBinaryPath','1515EEeybJ','isProcessRunning','isRunning','PERCY_SERVER_ADDRESS','6csgYYL','projectName','&type=','api/app_percy/get_project_token?name=','458916uCXDfa','uFVSJ','createWriteStream','exec','percy.log','stderr','ujvvU','http://localhost:5338','UUQHw','tmpdir','app','env','exports','winstonLogger','2115780ICieny','automate','pipe','../../helpers/testhub/constants','xOoax','end','aYJhd','close','Mkwon','fetchPercyToken','percy/healthcheck','debug','135AqDxXK','pFXip','1738828YInquB','../logger','flags','exec:stop','percy.json','YhSfN','stop','stringify','join','start','./PercyBinary','2076dSLPxY','BROWSERSTACK_TESTHUB_UUID','Percy\x20healthcheck\x20successful','jHNnF','6789882HaeQXq','3gOYenQ'];a113_0x1dbd=function(){return _0x3b79cc;};return a113_0x1dbd();}const fs=require('fs'),path=require(a113_0x484066(0x150)),os=require('os'),{spawn}=require('child_process'),helper=require('../helper'),logger=require(a113_0x484066(0x13b))[a113_0x484066(0x12b)],{getLogDir}=require(a113_0x484066(0x13b)),testHubConstants=require(a113_0x484066(0x12f)),PerformanceTester=require('../../helpers/performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),PercyBinary=require(a113_0x484066(0x144));class Percy{#logfile=path['join'](getLogDir(),a113_0x484066(0x16d));#address=process[a113_0x484066(0x129)][a113_0x484066(0x164)]||a113_0x484066(0x125);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];['isProcessRunning']=![];constructor(_0x2f2e8c){const _0x899c13=a113_0x484066;this.#config=_0x2f2e8c,!!_0x2f2e8c[_0x899c13(0x128)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x5225fb=a113_0x484066;if(!this.#binaryPath){const _0x15db97=new PercyBinary();PerformanceTester['start'](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0x15db97[_0x5225fb(0x160)](this.#config),PerformanceTester[_0x5225fb(0x131)](PerformanceEvents[_0x5225fb(0x14c)]);}return this.#binaryPath;}async #sleep(_0x5898e2){return new Promise(_0x5cdb2b=>setTimeout(_0x5cdb2b,_0x5898e2));}async['healthcheck'](){const _0x2608af=a113_0x484066,_0x1968da={};_0x1968da[_0x2608af(0x130)]='GET',_0x1968da['iLlBd']=_0x2608af(0x136);const _0x41bbd3=_0x1968da;try{const _0x512e38=await helper[_0x2608af(0x15d)](_0x41bbd3['xOoax'],_0x41bbd3[_0x2608af(0x14f)],null,null,this.#address);if(_0x512e38)return!![];}catch(_0x4ad59c){return![];}}async[a113_0x484066(0x143)](){const _0x55c0b4=a113_0x484066,_0x4b4a32={'cHciK':'app:exec','Mkwon':_0x55c0b4(0x16c),'aYJhd':function(_0x42bc73,_0x4d10c1,_0x37d968,_0x3cb6e0){return _0x42bc73(_0x4d10c1,_0x37d968,_0x3cb6e0);},'cWKId':_0x55c0b4(0x133),'lxCTP':_0x55c0b4(0x147)},_0x31d16a=await this.#getBinaryPath(),_0x2a49ec={};_0x2a49ec[_0x55c0b4(0x13c)]='a',this.#logStream=fs[_0x55c0b4(0x16b)](this.#logfile,_0x2a49ec);const _0x1e5fe7=await this[_0x55c0b4(0x135)](),_0x58b072=await this[_0x55c0b4(0x15f)]();if(!_0x1e5fe7)return![];const _0x6e072e=[(this.#isApp?_0x4b4a32['cHciK']:_0x4b4a32[_0x55c0b4(0x134)])+':start'];_0x58b072&&_0x6e072e['push']('-c',_0x58b072);this.#proc=_0x4b4a32[_0x55c0b4(0x132)](spawn,_0x31d16a,_0x6e072e,{'env':Object[_0x55c0b4(0x14e)](process['env'],{'PERCY_TOKEN':_0x1e5fe7,'TH_BUILD_UUID':process[_0x55c0b4(0x129)][testHubConstants['ENV_VAR'][_0x55c0b4(0x146)]]})}),this.#proc['stdout']['pipe'](this.#logStream),this.#proc[_0x55c0b4(0x123)][_0x55c0b4(0x12e)](this.#logStream),this[_0x55c0b4(0x162)]=!![];var _0x564683=this;this.#proc['on'](_0x4b4a32['cWKId'],function(_0x153119){const _0x2e4b9a=_0x55c0b4;_0x564683[_0x2e4b9a(0x162)]=![];});do{const _0x5add06=await this['healthcheck']();if(_0x5add06)return logger[_0x55c0b4(0x137)](_0x4b4a32[_0x55c0b4(0x159)]),!![];await this.#sleep(0x3e8);}while(this[_0x55c0b4(0x162)]);return![];}async[a113_0x484066(0x140)](){const _0x11341b=a113_0x484066,_0x5646a9={'YhSfN':function(_0x29b149,_0x204d07){return _0x29b149(_0x204d07);},'bpYVt':function(_0xfbf18c,_0xe40f51,_0x405e41){return _0xfbf18c(_0xe40f51,_0x405e41);},'ufkKz':_0x11341b(0x13d),'ZwGWr':_0x11341b(0x133)},_0x447ae7=await this.#getBinaryPath();return new Promise((_0x127562,_0x8bee30)=>{const _0x817280=_0x11341b,_0x230405=_0x5646a9[_0x817280(0x15e)](spawn,_0x447ae7,[_0x5646a9[_0x817280(0x157)]]);_0x230405['on'](_0x5646a9['ZwGWr'],_0x42ca3b=>{const _0x3a4abf=_0x817280;this[_0x3a4abf(0x162)]=![],this.#logStream&&(this.#logStream[_0x3a4abf(0x131)](),this.#logStream=null),_0x5646a9[_0x3a4abf(0x13f)](_0x127562,_0x42ca3b);});});}[a113_0x484066(0x163)](){return this['isProcessRunning'];}async[a113_0x484066(0x135)](){const _0x5bdb3e=a113_0x484066,_0x182de7={};_0x182de7[_0x5bdb3e(0x124)]='app',_0x182de7[_0x5bdb3e(0x15b)]=_0x5bdb3e(0x12d),_0x182de7[_0x5bdb3e(0x15a)]=_0x5bdb3e(0x14b),_0x182de7[_0x5bdb3e(0x16a)]='Percy\x20fetch\x20token\x20success';const _0x18a9ea=_0x182de7,_0x56d7ec=this.#config[_0x5bdb3e(0x166)];try{const _0x24841e=this.#isApp?_0x18a9ea['ujvvU']:_0x18a9ea[_0x5bdb3e(0x15b)],_0x5acdc5=await helper['nodeRequest'](_0x18a9ea['DbVfh'],_0x5bdb3e(0x168)+_0x56d7ec+_0x5bdb3e(0x167)+_0x24841e,{},this.#config),_0xb54d93=_0x5acdc5[_0x5bdb3e(0x14d)];return logger['debug'](_0x18a9ea[_0x5bdb3e(0x16a)]),_0xb54d93[_0x5bdb3e(0x155)];}catch(_0x1e7888){return logger[_0x5bdb3e(0x153)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x1e7888),null;}}async[a113_0x484066(0x15f)](){const _0x5957fc=a113_0x484066,_0x3b567c={'nnbIo':function(_0x3b9f8e,_0x39a5fe){return _0x3b9f8e(_0x39a5fe);},'pFXip':function(_0x4ccfb4,_0x123ff2){return _0x4ccfb4+_0x123ff2;},'UUQHw':_0x5957fc(0x154),'jHNnF':function(_0x342f03,_0x2c345c){return _0x342f03(_0x2c345c);},'ncOqg':_0x5957fc(0x13e)};if(!this.#config[_0x5957fc(0x158)])return null;const _0x28dc6e=path[_0x5957fc(0x142)](os[_0x5957fc(0x127)](),_0x3b567c[_0x5957fc(0x151)]),_0x10eeeb=this.#config['percyOptions'];return!_0x10eeeb[_0x5957fc(0x156)]&&(_0x10eeeb[_0x5957fc(0x156)]='2'),new Promise((_0x2c1f53,_0x44291f)=>{const _0x1a39a0=_0x5957fc;fs['writeFile'](_0x28dc6e,JSON[_0x1a39a0(0x141)](_0x10eeeb),_0x211444=>{const _0x49b37a=_0x1a39a0;_0x211444&&(logger[_0x49b37a(0x153)]('Error\x20creating\x20percy\x20config:\x20'+_0x211444),_0x3b567c['nnbIo'](_0x2c1f53,null)),logger[_0x49b37a(0x137)](_0x3b567c[_0x49b37a(0x139)](_0x3b567c[_0x49b37a(0x126)],_0x28dc6e)),_0x3b567c[_0x49b37a(0x148)](_0x2c1f53,_0x28dc6e);});});}}module[a113_0x484066(0x12a)]=Percy;
1
+ function a113_0x459b(_0x54a429,_0x10f4f8){const _0x212f80=a113_0x212f();return a113_0x459b=function(_0x459b7a,_0x3e2fa4){_0x459b7a=_0x459b7a-0x1ab;let _0x709f6e=_0x212f80[_0x459b7a];return _0x709f6e;},a113_0x459b(_0x54a429,_0x10f4f8);}function a113_0x212f(){const _0x4f0cf0=['end','isProcessRunning','stdout','tjtFY','rODyJ','cqNbO','365815eZezMq','ZfSxw','1211177NCTDdQ','createWriteStream','getBinaryPath','LqNRW','./PercyBinary','Error\x20creating\x20percy\x20config:\x20','token','app:exec','DOWNLOAD','60oobJYj',':start','AXghp','automate','9XkFkQo','KAMmB','data','child_process','PERCY_SERVER_ADDRESS','50651282nFuutC','debug','Percy\x20fetch\x20token\x20success','api/app_percy/get_project_token?name=','EgeRI','projectName','percy.log','44752YkgovW','cNrqT','join','WTFiq','725996NtZoGS','861jfvBqV','percyOptions','stringify','winstonLogger','exec','push','version','ENV_VAR','oqpgb','DzQov','Aavoc','exports','2588204ciMTQT','Gdnap','app','7617042mmmjxH','WErpo','BHzar','healthcheck','error','Percy\x20healthcheck\x20successful','lMHSF','http://localhost:5338','GET','10RbGwvU','flags','../../helpers/performance/constants','close','createPercyConfig','tmpdir','nodeRequest','percy.json','OtWaz','fetchPercyToken','start','QNUii','pipe','Percy\x20config\x20created\x20at\x20','exec:stop','gCjQT','writeFile','Zweqw','../logger'];a113_0x212f=function(){return _0x4f0cf0;};return a113_0x212f();}const a113_0x59f86f=a113_0x459b;(function(_0x4d7a55,_0x1b4f29){const _0x179447=a113_0x459b,_0x2f9e3b=_0x4d7a55();while(!![]){try{const _0x2b3c64=-parseInt(_0x179447(0x1b0))/0x1+-parseInt(_0x179447(0x1da))/0x2+parseInt(_0x179447(0x1bd))/0x3*(-parseInt(_0x179447(0x1cd))/0x4)+parseInt(_0x179447(0x1ae))/0x5*(-parseInt(_0x179447(0x1b9))/0x6)+-parseInt(_0x179447(0x1ce))/0x7*(-parseInt(_0x179447(0x1c9))/0x8)+parseInt(_0x179447(0x1dd))/0x9*(-parseInt(_0x179447(0x1e6))/0xa)+parseInt(_0x179447(0x1c2))/0xb;if(_0x2b3c64===_0x1b4f29)break;else _0x2f9e3b['push'](_0x2f9e3b['shift']());}catch(_0x5c261d){_0x2f9e3b['push'](_0x2f9e3b['shift']());}}}(a113_0x212f,0xa2594));const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a113_0x59f86f(0x1c0)),helper=require('../helper'),logger=require('../logger')[a113_0x59f86f(0x1d1)],{getLogDir}=require(a113_0x59f86f(0x1f8)),testHubConstants=require('../../helpers/testhub/constants'),PerformanceTester=require('../../helpers/performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a113_0x59f86f(0x1e8)),PercyBinary=require(a113_0x59f86f(0x1b4));class Percy{#logfile=path['join'](getLogDir(),a113_0x59f86f(0x1c8));#address=process['env'][a113_0x59f86f(0x1c1)]||a113_0x59f86f(0x1e4);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a113_0x59f86f(0x1fa)]=![];constructor(_0x1bdefc){const _0x13ce6f=a113_0x59f86f;this.#config=_0x1bdefc,!!_0x1bdefc[_0x13ce6f(0x1dc)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x1a2787=a113_0x59f86f;if(!this.#binaryPath){const _0x174b13=new PercyBinary();PerformanceTester[_0x1a2787(0x1f0)](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0x174b13[_0x1a2787(0x1b2)](this.#config),PerformanceTester[_0x1a2787(0x1f9)](PerformanceEvents[_0x1a2787(0x1b8)]);}return this.#binaryPath;}async #sleep(_0xe225ad){return new Promise(_0xac4831=>setTimeout(_0xac4831,_0xe225ad));}async[a113_0x59f86f(0x1e0)](){const _0x113e36=a113_0x59f86f,_0x57d8cf={};_0x57d8cf[_0x113e36(0x1ab)]='GET',_0x57d8cf[_0x113e36(0x1f5)]='percy/healthcheck';const _0x3a1775=_0x57d8cf;try{const _0x4ead40=await helper['nodeRequest'](_0x3a1775[_0x113e36(0x1ab)],_0x3a1775[_0x113e36(0x1f5)],null,null,this.#address);if(_0x4ead40)return!![];}catch(_0x7cd1f6){return![];}}async[a113_0x59f86f(0x1f0)](){const _0x58089f=a113_0x59f86f,_0x4b945b={'WTFiq':_0x58089f(0x1b7),'DzQov':_0x58089f(0x1d2),'BHzar':function(_0x248dd6,_0x8b699,_0x5e6b0e,_0x119353){return _0x248dd6(_0x8b699,_0x5e6b0e,_0x119353);},'rODyJ':_0x58089f(0x1e9),'tgnlb':_0x58089f(0x1e2)},_0x2a2614=await this.#getBinaryPath(),_0x6f23e4={};_0x6f23e4[_0x58089f(0x1e7)]='a',this.#logStream=fs[_0x58089f(0x1b1)](this.#logfile,_0x6f23e4);const _0x38ae01=await this[_0x58089f(0x1ef)](),_0x44362c=await this[_0x58089f(0x1ea)]();if(!_0x38ae01)return![];const _0xfa266f=[(this.#isApp?_0x4b945b[_0x58089f(0x1cc)]:_0x4b945b[_0x58089f(0x1d7)])+_0x58089f(0x1ba)];_0x44362c&&_0xfa266f[_0x58089f(0x1d3)]('-c',_0x44362c);this.#proc=_0x4b945b[_0x58089f(0x1df)](spawn,_0x2a2614,_0xfa266f,{'env':Object['assign'](process['env'],{'PERCY_TOKEN':_0x38ae01,'TH_BUILD_UUID':process['env'][testHubConstants[_0x58089f(0x1d5)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x58089f(0x1fb)][_0x58089f(0x1f2)](this.#logStream),this.#proc['stderr'][_0x58089f(0x1f2)](this.#logStream),this[_0x58089f(0x1fa)]=!![];var _0x4a6aa1=this;this.#proc['on'](_0x4b945b[_0x58089f(0x1ac)],function(_0x5487d8){_0x4a6aa1['isProcessRunning']=![];});do{const _0x556bce=await this['healthcheck']();if(_0x556bce)return logger[_0x58089f(0x1c3)](_0x4b945b['tgnlb']),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async['stop'](){const _0x105b1d=a113_0x59f86f,_0x1cdd55={'cNrqT':function(_0x239252,_0x114f0){return _0x239252(_0x114f0);},'Zweqw':function(_0x224fbf,_0x4b32fa,_0x3fa8e3){return _0x224fbf(_0x4b32fa,_0x3fa8e3);},'OtWaz':_0x105b1d(0x1f4),'QNUii':'close'},_0x5c290f=await this.#getBinaryPath();return new Promise((_0x5ba7ce,_0x5b12cd)=>{const _0x1ffdc2=_0x105b1d,_0x1d73cf=_0x1cdd55[_0x1ffdc2(0x1f7)](spawn,_0x5c290f,[_0x1cdd55[_0x1ffdc2(0x1ee)]]);_0x1d73cf['on'](_0x1cdd55[_0x1ffdc2(0x1f1)],_0x1ff73b=>{const _0x3186f4=_0x1ffdc2;this[_0x3186f4(0x1fa)]=![],this.#logStream&&(this.#logStream[_0x3186f4(0x1f9)](),this.#logStream=null),_0x1cdd55[_0x3186f4(0x1ca)](_0x5ba7ce,_0x1ff73b);});});}['isRunning'](){return this['isProcessRunning'];}async[a113_0x59f86f(0x1ef)](){const _0x5e46fd=a113_0x59f86f,_0x425d36={};_0x425d36[_0x5e46fd(0x1ad)]='app',_0x425d36[_0x5e46fd(0x1be)]=_0x5e46fd(0x1bc),_0x425d36[_0x5e46fd(0x1d6)]=_0x5e46fd(0x1e5),_0x425d36[_0x5e46fd(0x1bb)]=_0x5e46fd(0x1c4);const _0x3897ec=_0x425d36,_0x30bd5e=this.#config[_0x5e46fd(0x1c7)];try{const _0x31ddc8=this.#isApp?_0x3897ec['cqNbO']:_0x3897ec[_0x5e46fd(0x1be)],_0x1b0fee=await helper[_0x5e46fd(0x1ec)](_0x3897ec[_0x5e46fd(0x1d6)],_0x5e46fd(0x1c5)+_0x30bd5e+'&type='+_0x31ddc8,{},this.#config),_0x1c60da=_0x1b0fee[_0x5e46fd(0x1bf)];return logger['debug'](_0x3897ec[_0x5e46fd(0x1bb)]),_0x1c60da[_0x5e46fd(0x1b6)];}catch(_0xa346ba){return logger[_0x5e46fd(0x1e1)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0xa346ba),null;}}async[a113_0x59f86f(0x1ea)](){const _0xe7bb38=a113_0x59f86f,_0xcacfea={'LqNRW':function(_0x199caa,_0x586617){return _0x199caa(_0x586617);},'MdZUp':function(_0x4a253c,_0x102202){return _0x4a253c+_0x102202;},'Gdnap':_0xe7bb38(0x1f3),'WErpo':_0xe7bb38(0x1ed)};if(!this.#config[_0xe7bb38(0x1cf)])return null;const _0x1badda=path[_0xe7bb38(0x1cb)](os[_0xe7bb38(0x1eb)](),_0xcacfea[_0xe7bb38(0x1de)]),_0x4e3bdd=this.#config[_0xe7bb38(0x1cf)];return!_0x4e3bdd['version']&&(_0x4e3bdd[_0xe7bb38(0x1d4)]='2'),new Promise((_0x4a4447,_0x37a859)=>{const _0x175e21=_0xe7bb38,_0xfa2af4={'ZfSxw':function(_0x9707be,_0x431ca1){const _0x160eba=a113_0x459b;return _0xcacfea[_0x160eba(0x1b3)](_0x9707be,_0x431ca1);},'lMHSF':function(_0x4dcad0,_0x2515c3){return _0xcacfea['MdZUp'](_0x4dcad0,_0x2515c3);},'Aavoc':_0xcacfea[_0x175e21(0x1db)],'EgeRI':function(_0x11127c,_0xa1f57b){const _0x4a5628=_0x175e21;return _0xcacfea[_0x4a5628(0x1b3)](_0x11127c,_0xa1f57b);}};fs[_0x175e21(0x1f6)](_0x1badda,JSON[_0x175e21(0x1d0)](_0x4e3bdd),_0x289b23=>{const _0x1d1309=_0x175e21;_0x289b23&&(logger[_0x1d1309(0x1e1)](_0x1d1309(0x1b5)+_0x289b23),_0xfa2af4[_0x1d1309(0x1af)](_0x4a4447,null)),logger[_0x1d1309(0x1c3)](_0xfa2af4[_0x1d1309(0x1e3)](_0xfa2af4[_0x1d1309(0x1d8)],_0x1badda)),_0xfa2af4[_0x1d1309(0x1c6)](_0x4a4447,_0x1badda);});});}}module[a113_0x59f86f(0x1d9)]=Percy;
@@ -1 +1 @@
1
- const a114_0x4362b9=a114_0x1329;(function(_0x572f62,_0x48ca49){const _0x38d5c1=a114_0x1329,_0x8ee56e=_0x572f62();while(!![]){try{const _0x2eaf81=parseInt(_0x38d5c1(0x101))/0x1+-parseInt(_0x38d5c1(0x11f))/0x2+parseInt(_0x38d5c1(0x14c))/0x3*(parseInt(_0x38d5c1(0x117))/0x4)+parseInt(_0x38d5c1(0x162))/0x5*(-parseInt(_0x38d5c1(0x100))/0x6)+parseInt(_0x38d5c1(0x12d))/0x7*(parseInt(_0x38d5c1(0x155))/0x8)+parseInt(_0x38d5c1(0x154))/0x9+-parseInt(_0x38d5c1(0x193))/0xa*(-parseInt(_0x38d5c1(0x14a))/0xb);if(_0x2eaf81===_0x48ca49)break;else _0x8ee56e['push'](_0x8ee56e['shift']());}catch(_0x2d4426){_0x8ee56e['push'](_0x8ee56e['shift']());}}}(a114_0x2c94,0xa56ab));function a114_0x2c94(){const _0x47183e=['/percy-osx.zip','XjwkC','HOME','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','qutoc','utf8','getuid','end','LeevL','lTvqA','length','oQSaR','homedir','pipe','W_OK','../logger','data','BSFjl','debug','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','createWriteStream','zhQTo','JuLMB','USERPROFILE','zTQDF','test','Failed\x20to\x20read\x20ETag\x20file:\x20','FmEhU','path','validateBinary','PzYbs','then','icPxg','join','etag','warn','nqtrY','lazyEntries','emcXA','11290sCRxhX','6705942BeNHAV','1126917iHvtyX','win32','Mbgal','headers','EULvX','agent','bARKP','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','env','If-None-Match','HOMEPATH','gOnrN','follow-redirects','readFileSync','.etag','exports','USER','port','needsUpdate','proxyPort','upYGO','PgCku','4VihmWR','HOMEDRIVE','TdizV','undefined','trim','error','readEntry','kCEcr','1993806kxIoXc','/Users/','LNAME','destroy','vNYfB','YGleq','Rifrr','entry','/percy-linux.zip','KyrEa','PilWj','once','extractAndSaveBinary','LbHRb','3675ESAikf','aoVEc','darwin','KILXB','cYoju','parse','OcipT','AwyAp','close','percy.exe','EDTHJ','HubgZ','FdBjX','match','YqjsC','UYaIj','mNELB','HbMdt','REufU','VaWed','X_OK','tmpdir','VsSQO','linux','Gwxxq','getBinaryPath','pXXWE','.zip','proxyHost','396QNPxbd','host','1002486QXgkOG','zYScq','aDtVh','Bdvxl','accessSync','platform','Saved\x20new\x20ETag\x20for\x20percy\x20binary','DecmN','6562431RCJndn','8552VZAspI','jYbLp','useCaCertificate','uKpcZ','https://github.com/percy/cli/releases/latest/download','pkuxo','vLxxw','download','child_process','fileName','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','binaryPath','BQolB','5moIpYL','catch','statSync','kvuJe','.browserstack','stdout','Connection','qzfDS','ieJtH','/root'];a114_0x2c94=function(){return _0x47183e;};return a114_0x2c94();}const {https}=require(a114_0x4362b9(0x10d)),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a114_0x4362b9(0x188)),os=require('os'),{spawn}=require(a114_0x4362b9(0x15d)),HttpsProxyAgent=require('https-proxy-agent'),logger=require(a114_0x4362b9(0x17b))['winstonLogger'];function a114_0x1329(_0x35d58d,_0x9455){const _0x2c94f2=a114_0x2c94();return a114_0x1329=function(_0x1329be,_0x5ca493){_0x1329be=_0x1329be-0x100;let _0x223988=_0x2c94f2[_0x1329be];return _0x223988;},a114_0x1329(_0x35d58d,_0x9455);}class PercyBinary{#hostOS=process[a114_0x4362b9(0x151)];#httpPath=null;#binaryName='percy';#orderedPaths=[path['join'](this.#homedir(),a114_0x4362b9(0x166)),process['cwd'](),os[a114_0x4362b9(0x142)]()];constructor(){const _0x430728=a114_0x4362b9,_0x5c8736={};_0x5c8736[_0x430728(0x190)]=_0x430728(0x159),_0x5c8736[_0x430728(0x125)]=function(_0x5dfc56,_0x2df886){return _0x5dfc56+_0x2df886;},_0x5c8736[_0x430728(0x12e)]=_0x430728(0x16c),_0x5c8736[_0x430728(0x14e)]=function(_0x4d2b87,_0x3018cc){return _0x4d2b87+_0x3018cc;},_0x5c8736[_0x430728(0x13b)]='/percy-win.zip',_0x5c8736[_0x430728(0x15b)]=_0x430728(0x136),_0x5c8736[_0x430728(0x13d)]=_0x430728(0x127);const _0x4bb515=_0x5c8736,_0x218d1b=_0x4bb515[_0x430728(0x190)];if(this.#hostOS[_0x430728(0x13a)](/darwin|mac os/i))this.#httpPath=_0x4bb515[_0x430728(0x125)](_0x218d1b,_0x4bb515['aoVEc']);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x4bb515[_0x430728(0x14e)](_0x218d1b,_0x4bb515[_0x430728(0x13b)]),this.#binaryName=_0x4bb515[_0x430728(0x15b)]):this.#httpPath=_0x4bb515[_0x430728(0x125)](_0x218d1b,_0x4bb515[_0x430728(0x13d)]);}#getAvailableDirs(){const _0x5b2218=a114_0x4362b9,_0x1dc150={};_0x1dc150['IZsYv']=function(_0x2535a8,_0x610320){return _0x2535a8<_0x610320;},_0x1dc150[_0x5b2218(0x177)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x5232c1=_0x1dc150;for(var _0xa172f=0x0;_0x5232c1['IZsYv'](_0xa172f,this.#orderedPaths[_0x5b2218(0x176)]);_0xa172f++){var _0x18e553=this.#orderedPaths[_0xa172f];if(this.#makePath(_0x18e553))return _0x18e553;}throw new Error(_0x5232c1['oQSaR']);}#makePath(_0x18adfb){try{return _0x18adfb&&!this.#checkPath(_0x18adfb)&&fs['mkdirSync'](_0x18adfb),!![];}catch{return![];}}#checkPath(_0x43c32f,_0x4cca56){const _0x54845f=a114_0x4362b9,_0x2803bc={};_0x2803bc[_0x54845f(0x153)]=function(_0x10a1ab,_0x15bf2e){return _0x10a1ab|_0x15bf2e;},_0x2803bc[_0x54845f(0x12c)]=function(_0x22f654,_0x129e3f){return _0x22f654!==_0x129e3f;},_0x2803bc['BSFjl']=_0x54845f(0x11a);const _0xaa7a63=_0x2803bc;_0x4cca56=_0x4cca56||_0xaa7a63[_0x54845f(0x153)](fs['R_OK'],fs[_0x54845f(0x17a)]);try{return fs[_0x54845f(0x150)](_0x43c32f,_0x4cca56),!![];}catch(_0x5bfffb){if(_0xaa7a63[_0x54845f(0x12c)](typeof fs[_0x54845f(0x150)],_0xaa7a63[_0x54845f(0x17d)]))return![];try{return fs[_0x54845f(0x164)](_0x43c32f),!![];}catch(_0x4edce3){return![];}}}#getETagPath(_0x3abf0a){const _0x2421c2=a114_0x4362b9;return path[_0x2421c2(0x18d)](_0x3abf0a,this.#binaryName+_0x2421c2(0x10f));}#loadETag(_0x5a40a1){const _0x119148=a114_0x4362b9,_0x4082fe={};_0x4082fe['lYvSJ']=_0x119148(0x171);const _0x546db4=_0x4082fe,_0x31b5ee=this.#getETagPath(_0x5a40a1);if(this.#checkPath(_0x31b5ee))try{return fs['readFileSync'](_0x31b5ee,_0x546db4['lYvSJ'])[_0x119148(0x11b)]();}catch(_0x1d1062){logger[_0x119148(0x18f)](_0x119148(0x186)+_0x1d1062);}return null;}#saveETag(_0x36f240,_0x229eb9){const _0x331753=a114_0x4362b9,_0x4adeda={};_0x4adeda[_0x331753(0x116)]=_0x331753(0x152);const _0x413ed3=_0x4adeda;if(!_0x229eb9)return;try{const _0xed8a29=this.#getETagPath(_0x36f240);fs['writeFileSync'](_0xed8a29,_0x229eb9),logger[_0x331753(0x17e)](_0x413ed3[_0x331753(0x116)]);}catch(_0x3bf0e6){logger[_0x331753(0x18f)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x3bf0e6);}}async #handleBinaryDownload(_0x2334e9,_0x14bb97,_0x46cca0){const _0x5b6bcf=a114_0x4362b9,_0x1430bb={};_0x1430bb['EULvX']='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0x7510e0=_0x1430bb,_0x549a33=await this['validateBinary'](_0x2334e9[_0x5b6bcf(0x160)]);if(!_0x549a33){logger[_0x5b6bcf(0x11c)](_0x7510e0[_0x5b6bcf(0x105)]);const _0xf5b05c=await this[_0x5b6bcf(0x15c)](_0x14bb97,_0x46cca0);return _0xf5b05c[_0x5b6bcf(0x160)];}return _0x2334e9[_0x5b6bcf(0x160)];}async[a114_0x4362b9(0x146)](_0x55c4db){const _0x5d77f0=a114_0x4362b9,_0x2f34b2={};_0x2f34b2['VaWed']=_0x5d77f0(0x15f),_0x2f34b2[_0x5d77f0(0x11e)]=_0x5d77f0(0x16f);const _0x35fbd0=_0x2f34b2,_0x58e364=this.#getAvailableDirs(),_0x392d7e=path[_0x5d77f0(0x18d)](_0x58e364,this.#binaryName);if(this.#checkPath(_0x392d7e,fs[_0x5d77f0(0x141)])){const _0x36858e=this.#loadETag(_0x58e364);if(_0x36858e)try{const _0x5f37ba=await this[_0x5d77f0(0x15c)](_0x55c4db,_0x58e364,_0x36858e);if(!_0x5f37ba[_0x5d77f0(0x113)])return logger['debug'](_0x35fbd0[_0x5d77f0(0x140)]),_0x392d7e;return logger[_0x5d77f0(0x17e)](_0x35fbd0[_0x5d77f0(0x11e)]),await this.#handleBinaryDownload(_0x5f37ba,_0x55c4db,_0x58e364);}catch(_0x5cb9a5){return logger[_0x5d77f0(0x18f)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x5cb9a5),_0x392d7e;}}const _0x371d60=await this[_0x5d77f0(0x15c)](_0x55c4db,_0x58e364);return await this.#handleBinaryDownload(_0x371d60,_0x55c4db,_0x58e364);}[a114_0x4362b9(0x15c)](_0x4711ea,_0x48350d,_0x580cd5=null){const _0x529c79=a114_0x4362b9,_0x58e707={'FdBjX':function(_0x1887e3,_0x2cea7b){return _0x1887e3(_0x2cea7b);},'zYScq':function(_0x18ec1a,_0x64ae70){return _0x18ec1a===_0x64ae70;},'ieJtH':_0x529c79(0x11c),'Gwxxq':_0x529c79(0x135),'EDTHJ':function(_0x1def16,_0x5c7671){return _0x1def16+_0x5c7671;},'yaBSa':_0x529c79(0x148)};_0x48350d&&!this.#checkPath(_0x48350d)&&fs['mkdirSync'](_0x48350d);const _0xba08b0=this.#binaryName,_0x13140d=path[_0x529c79(0x18d)](_0x48350d,_0x58e707[_0x529c79(0x137)](_0xba08b0,_0x58e707['yaBSa'])),_0xdb8ea=fs[_0x529c79(0x180)](_0x13140d),_0x14f3dd=url[_0x529c79(0x132)](this.#httpPath);if(_0x4711ea[_0x529c79(0x149)]&&_0x4711ea[_0x529c79(0x114)]){const _0x2585d9={};_0x2585d9[_0x529c79(0x14b)]=_0x4711ea['proxyHost'],_0x2585d9[_0x529c79(0x112)]=_0x4711ea[_0x529c79(0x114)],_0x14f3dd[_0x529c79(0x106)]=new HttpsProxyAgent(_0x2585d9);}if(_0x4711ea[_0x529c79(0x157)])try{_0x14f3dd['ca']=fs[_0x529c79(0x10e)](_0x4711ea[_0x529c79(0x157)]);}catch(_0x292152){logger[_0x529c79(0x11c)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x292152);}if(_0x580cd5){const _0x217e91={};_0x217e91[_0x529c79(0x10a)]=_0x580cd5,_0x217e91[_0x529c79(0x168)]=_0x58e707[_0x529c79(0x145)],_0x14f3dd[_0x529c79(0x104)]=_0x217e91;}else{const _0x517d44={};_0x517d44['Connection']=_0x58e707['Gwxxq'],_0x14f3dd[_0x529c79(0x104)]=_0x517d44;}return new Promise((_0x1a09ba,_0x365bc3)=>{const _0x7b75d7=_0x529c79,_0x2d4999={'Goswq':function(_0x4e89af,_0x1132cc){const _0x35262c=a114_0x1329;return _0x58e707[_0x35262c(0x139)](_0x4e89af,_0x1132cc);},'bARKP':function(_0x832bca,_0x10ed79){return _0x58e707['FdBjX'](_0x832bca,_0x10ed79);},'VsSQO':function(_0x1711f0,_0x4ef87a){const _0x2c7a5d=a114_0x1329;return _0x58e707[_0x2c7a5d(0x14d)](_0x1711f0,_0x4ef87a);},'kvuJe':function(_0x28d5da,_0x19632f){const _0x5bdd21=a114_0x1329;return _0x58e707[_0x5bdd21(0x139)](_0x28d5da,_0x19632f);},'LeevL':_0x58e707[_0x7b75d7(0x16a)],'uKpcZ':_0x58e707[_0x7b75d7(0x145)]};https['get'](_0x14f3dd,_0x2daebc=>{const _0x415f6d=_0x7b75d7;if(_0x580cd5&&_0x2d4999[_0x415f6d(0x143)](_0x2daebc['statusCode'],0x130)){_0xdb8ea[_0x415f6d(0x122)]();const _0x40a947={};_0x40a947[_0x415f6d(0x113)]=![],_0x2d4999[_0x415f6d(0x165)](_0x1a09ba,_0x40a947);return;}const _0x30e494=_0x2daebc[_0x415f6d(0x104)][_0x415f6d(0x18e)];_0x30e494&&this.#saveETag(_0x48350d,_0x30e494),_0x2daebc[_0x415f6d(0x179)](_0xdb8ea),_0x2daebc['on'](_0x2d4999[_0x415f6d(0x174)],function(_0x25c966){const _0x13e2e9=_0x415f6d;logger[_0x13e2e9(0x11c)](_0x13e2e9(0x17f)+_0x25c966),_0x2d4999['Goswq'](_0x365bc3,_0x25c966);}),_0xdb8ea['on'](_0x2d4999[_0x415f6d(0x174)],function(_0x2bbdf9){const _0xc11aa0=_0x415f6d;logger[_0xc11aa0(0x11c)](_0xc11aa0(0x108)+_0x2bbdf9),_0x2d4999[_0xc11aa0(0x107)](_0x365bc3,_0x2bbdf9);}),_0xdb8ea['on'](_0x2d4999[_0x415f6d(0x158)],()=>{const _0x925e36=_0x415f6d;this[_0x925e36(0x12b)](_0x13140d,_0x48350d)[_0x925e36(0x18b)](_0x520e88=>_0x1a09ba({'needsUpdate':!![],'binaryPath':_0x520e88}))[_0x925e36(0x163)](_0x365bc3);});})['on'](_0x58e707['ieJtH'],function(_0x3d8016){const _0x29ed1b=_0x7b75d7;logger[_0x29ed1b(0x11c)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x3d8016),_0x2d4999['Goswq'](_0x365bc3,_0x3d8016);});});}[a114_0x4362b9(0x12b)](_0x30e9e7,_0x89863b){const _0x1b2f44=a114_0x4362b9,_0x1fd2d7={'zhQTo':function(_0x4ade32,_0x19a9a9){return _0x4ade32===_0x19a9a9;},'TdizV':function(_0x114b12,_0x23a5bc){return _0x114b12(_0x23a5bc);},'lTvqA':_0x1b2f44(0x173),'pkuxo':function(_0x5bd151,_0x52bcdf){return _0x5bd151(_0x52bcdf);},'cYoju':'0755','XGHnB':_0x1b2f44(0x126),'gOnrN':_0x1b2f44(0x11c)},_0x2aabc6=this.#binaryName,_0x28990e=path[_0x1b2f44(0x18d)](_0x89863b,_0x2aabc6);return new Promise((_0x211f0f,_0x2a625a)=>{const _0x501953=_0x1b2f44,_0x411f1c={'fOqWx':function(_0x153740,_0x42a2df){const _0x863a31=a114_0x1329;return _0x1fd2d7[_0x863a31(0x181)](_0x153740,_0x42a2df);},'KyrEa':function(_0x5e1c83,_0x47d2ff){const _0x39a5a5=a114_0x1329;return _0x1fd2d7[_0x39a5a5(0x119)](_0x5e1c83,_0x47d2ff);},'OcipT':_0x1fd2d7[_0x501953(0x175)],'rYHvn':function(_0x5a0af5,_0x1363f2){const _0x1af0fe=_0x501953;return _0x1fd2d7[_0x1af0fe(0x15a)](_0x5a0af5,_0x1363f2);},'FmEhU':_0x1fd2d7[_0x501953(0x131)],'pXXWE':function(_0x13a973,_0x2d9136){const _0x5ac134=_0x501953;return _0x1fd2d7[_0x5ac134(0x119)](_0x13a973,_0x2d9136);},'vdiwj':_0x1fd2d7['XGHnB'],'QUbBd':_0x1fd2d7[_0x501953(0x10c)]},_0x2e1093={};_0x2e1093[_0x501953(0x191)]=!![],yauzl['open'](_0x30e9e7,_0x2e1093,function(_0x5e0436,_0x1ef132){const _0x15ce4d=_0x501953,_0x5cd921={'jYbLp':function(_0x999fe9,_0x156732){const _0x241330=a114_0x1329;return _0x411f1c[_0x241330(0x128)](_0x999fe9,_0x156732);},'YGleq':_0x411f1c['OcipT'],'BQolB':function(_0x2af2b4,_0x4c0698){return _0x411f1c['rYHvn'](_0x2af2b4,_0x4c0698);},'PilWj':function(_0x11e738,_0x36281b){return _0x411f1c['rYHvn'](_0x11e738,_0x36281b);},'PzYbs':_0x411f1c[_0x15ce4d(0x187)]};_0x5e0436&&_0x411f1c[_0x15ce4d(0x147)](_0x2a625a,_0x5e0436),_0x1ef132[_0x15ce4d(0x11d)](),_0x1ef132['on'](_0x411f1c['vdiwj'],_0x136050=>{const _0x2817d3=_0x15ce4d;if(/\/$/[_0x2817d3(0x185)](_0x136050[_0x2817d3(0x15e)]))_0x1ef132[_0x2817d3(0x11d)]();else{const _0x11632e=fs[_0x2817d3(0x180)](path['join'](_0x89863b,_0x136050['fileName']));_0x1ef132['openReadStream'](_0x136050,function(_0x468afe,_0x39c6f0){const _0x39374d=_0x2817d3;_0x468afe&&_0x5cd921[_0x39374d(0x156)](_0x2a625a,_0x5e0436),_0x39c6f0['on'](_0x5cd921[_0x39374d(0x124)],function(){const _0x7c9da0=_0x39374d;_0x11632e['close'](),_0x1ef132[_0x7c9da0(0x11d)]();}),_0x39c6f0['pipe'](_0x11632e);}),_0x411f1c['fOqWx'](_0x136050[_0x2817d3(0x15e)],_0x2aabc6)&&_0x1ef132[_0x2817d3(0x135)]();}}),_0x1ef132['on'](_0x411f1c['QUbBd'],_0x4d4a9b=>{const _0x52e5a9=_0x15ce4d;_0x5cd921[_0x52e5a9(0x161)](_0x2a625a,_0x4d4a9b);}),_0x1ef132[_0x15ce4d(0x12a)](_0x411f1c[_0x15ce4d(0x133)],()=>{const _0x28cae7=_0x15ce4d;fs['chmod'](_0x28990e,_0x5cd921[_0x28cae7(0x18a)],function(_0x1a20b5){const _0x393f46=_0x28cae7;_0x1a20b5&&_0x5cd921[_0x393f46(0x129)](_0x2a625a,_0x1a20b5),_0x5cd921['PilWj'](_0x211f0f,_0x28990e);}),_0x1ef132[_0x28cae7(0x135)]();});});});}async[a114_0x4362b9(0x189)](_0x677924){const _0x346c75=a114_0x4362b9,_0x2d254d={'FnsTZ':function(_0xfe9a24,_0x3516f9){return _0xfe9a24(_0x3516f9);},'zTQDF':function(_0x5ca3cf,_0x1e15a7){return _0x5ca3cf(_0x1e15a7);},'Bdvxl':function(_0x309d7a,_0xadc299,_0x4426a5,_0x24f99b){return _0x309d7a(_0xadc299,_0x4426a5,_0x24f99b);},'qutoc':'--version','kIHkL':_0x346c75(0x17c),'emcXA':_0x346c75(0x135)},_0x59e500=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x543ae5,_0x3d5a70)=>{const _0x3b00b0=_0x346c75,_0x38a247={};_0x38a247[_0x3b00b0(0x109)]=process[_0x3b00b0(0x109)];const _0x370752=_0x2d254d[_0x3b00b0(0x14f)](spawn,_0x677924,[_0x2d254d[_0x3b00b0(0x170)]],_0x38a247);_0x370752[_0x3b00b0(0x167)]['on'](_0x2d254d['kIHkL'],_0x21c145=>{const _0x2b1209=_0x3b00b0;_0x59e500[_0x2b1209(0x185)](_0x21c145)&&_0x2d254d['FnsTZ'](_0x543ae5,!![]);}),_0x370752['on'](_0x2d254d[_0x3b00b0(0x192)],()=>{const _0x30bb58=_0x3b00b0;_0x2d254d[_0x30bb58(0x184)](_0x543ae5,![]);});});}#homedir(){const _0x3575af=a114_0x4362b9,_0x488d37={};_0x488d37[_0x3575af(0x182)]=function(_0x582c5d,_0x4f2a75){return _0x582c5d===_0x4f2a75;},_0x488d37[_0x3575af(0x13c)]='function',_0x488d37[_0x3575af(0x103)]=function(_0x39a13d,_0x11451c){return _0x39a13d===_0x11451c;},_0x488d37[_0x3575af(0x169)]=_0x3575af(0x102),_0x488d37[_0x3575af(0x13e)]=function(_0x4cca4e,_0x3bd431){return _0x4cca4e+_0x3bd431;},_0x488d37[_0x3575af(0x138)]=function(_0x32e011,_0x2e63c9){return _0x32e011===_0x2e63c9;},_0x488d37[_0x3575af(0x130)]=_0x3575af(0x12f),_0x488d37[_0x3575af(0x13f)]=function(_0x35e637,_0x562491){return _0x35e637+_0x562491;},_0x488d37[_0x3575af(0x134)]=_0x3575af(0x120),_0x488d37[_0x3575af(0x115)]=_0x3575af(0x144),_0x488d37[_0x3575af(0x123)]=_0x3575af(0x16b),_0x488d37[_0x3575af(0x16d)]=function(_0x302d98,_0x302c7e){return _0x302d98+_0x302c7e;},_0x488d37[_0x3575af(0x18c)]='/home/',_0x488d37['yFgJC']=function(_0x1961fb,_0x24aa62){return _0x1961fb||_0x24aa62;};const _0x3ae346=_0x488d37;if(_0x3ae346[_0x3575af(0x182)](typeof os['homedir'],_0x3ae346[_0x3575af(0x13c)]))return os[_0x3575af(0x178)]();const _0x2aa8d2=process['env'],_0x2cc547=_0x2aa8d2[_0x3575af(0x16e)],_0x13e204=_0x2aa8d2['LOGNAME']||_0x2aa8d2[_0x3575af(0x111)]||_0x2aa8d2[_0x3575af(0x121)]||_0x2aa8d2['USERNAME'];if(_0x3ae346[_0x3575af(0x103)](process[_0x3575af(0x151)],_0x3ae346['qzfDS']))return _0x2aa8d2[_0x3575af(0x183)]||_0x3ae346[_0x3575af(0x13e)](_0x2aa8d2[_0x3575af(0x118)],_0x2aa8d2[_0x3575af(0x10b)])||_0x2cc547||null;if(_0x3ae346['HubgZ'](process[_0x3575af(0x151)],_0x3ae346[_0x3575af(0x130)]))return _0x2cc547||(_0x13e204?_0x3ae346[_0x3575af(0x13f)](_0x3ae346[_0x3575af(0x134)],_0x13e204):null);if(_0x3ae346[_0x3575af(0x103)](process[_0x3575af(0x151)],_0x3ae346[_0x3575af(0x115)]))return _0x2cc547||(_0x3ae346['Mbgal'](process[_0x3575af(0x172)](),0x0)?_0x3ae346[_0x3575af(0x123)]:_0x13e204?_0x3ae346[_0x3575af(0x16d)](_0x3ae346[_0x3575af(0x18c)],_0x13e204):null);return _0x3ae346['yFgJC'](_0x2cc547,null);}}module[a114_0x4362b9(0x110)]=PercyBinary;
1
+ const a114_0x24d1cc=a114_0x1e8a;(function(_0x3ba036,_0x4b22b5){const _0x3f5445=a114_0x1e8a,_0x4cdda9=_0x3ba036();while(!![]){try{const _0x1c1e71=-parseInt(_0x3f5445(0x205))/0x1*(-parseInt(_0x3f5445(0x18e))/0x2)+-parseInt(_0x3f5445(0x1b8))/0x3+parseInt(_0x3f5445(0x21c))/0x4*(parseInt(_0x3f5445(0x19d))/0x5)+parseInt(_0x3f5445(0x20a))/0x6+parseInt(_0x3f5445(0x1c6))/0x7*(-parseInt(_0x3f5445(0x1dd))/0x8)+parseInt(_0x3f5445(0x1cb))/0x9+-parseInt(_0x3f5445(0x1a8))/0xa*(parseInt(_0x3f5445(0x21d))/0xb);if(_0x1c1e71===_0x4b22b5)break;else _0x4cdda9['push'](_0x4cdda9['shift']());}catch(_0x5c3869){_0x4cdda9['push'](_0x4cdda9['shift']());}}}(a114_0x2dc4,0xa37c3));const {https}=require('follow-redirects'),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a114_0x24d1cc(0x1b3)),os=require('os'),{spawn}=require(a114_0x24d1cc(0x18f)),HttpsProxyAgent=require(a114_0x24d1cc(0x1ae)),logger=require(a114_0x24d1cc(0x20f))['winstonLogger'];function a114_0x1e8a(_0x1ee63c,_0x17f4c9){const _0x2dc4c0=a114_0x2dc4();return a114_0x1e8a=function(_0x1e8afc,_0xd24b77){_0x1e8afc=_0x1e8afc-0x18e;let _0x2b2033=_0x2dc4c0[_0x1e8afc];return _0x2b2033;},a114_0x1e8a(_0x1ee63c,_0x17f4c9);}class PercyBinary{#hostOS=process[a114_0x24d1cc(0x1e1)];#httpPath=null;#binaryName=a114_0x24d1cc(0x1e6);#orderedPaths=[path[a114_0x24d1cc(0x1ed)](this.#homedir(),'.browserstack'),process[a114_0x24d1cc(0x1eb)](),os[a114_0x24d1cc(0x1b0)]()];constructor(){const _0x251d13=a114_0x24d1cc,_0x30d182={};_0x30d182['Pvuog']='https://github.com/percy/cli/releases/latest/download',_0x30d182[_0x251d13(0x1d6)]=function(_0x3def5f,_0x42bb9a){return _0x3def5f+_0x42bb9a;},_0x30d182[_0x251d13(0x211)]='/percy-osx.zip',_0x30d182[_0x251d13(0x1a1)]=function(_0x13ef01,_0x1a3961){return _0x13ef01+_0x1a3961;},_0x30d182['sBHQN']=_0x251d13(0x193),_0x30d182[_0x251d13(0x202)]=_0x251d13(0x21b),_0x30d182['msFGb']='/percy-linux.zip';const _0x26797a=_0x30d182,_0x7b77a7=_0x26797a['Pvuog'];if(this.#hostOS[_0x251d13(0x1ff)](/darwin|mac os/i))this.#httpPath=_0x26797a['vcQkl'](_0x7b77a7,_0x26797a[_0x251d13(0x211)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x26797a[_0x251d13(0x1a1)](_0x7b77a7,_0x26797a[_0x251d13(0x1e3)]),this.#binaryName=_0x26797a[_0x251d13(0x202)]):this.#httpPath=_0x26797a['HasoW'](_0x7b77a7,_0x26797a[_0x251d13(0x19c)]);}#getAvailableDirs(){const _0x572c7b=a114_0x24d1cc,_0x2e9bca={};_0x2e9bca[_0x572c7b(0x1c8)]=function(_0x42492f,_0x5955a9){return _0x42492f<_0x5955a9;},_0x2e9bca[_0x572c7b(0x1cd)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x27af33=_0x2e9bca;for(var _0x3e1d94=0x0;_0x27af33[_0x572c7b(0x1c8)](_0x3e1d94,this.#orderedPaths[_0x572c7b(0x1c9)]);_0x3e1d94++){var _0x2a219c=this.#orderedPaths[_0x3e1d94];if(this.#makePath(_0x2a219c))return _0x2a219c;}throw new Error(_0x27af33[_0x572c7b(0x1cd)]);}#makePath(_0x5b65d9){const _0x50c887=a114_0x24d1cc;try{return _0x5b65d9&&!this.#checkPath(_0x5b65d9)&&fs[_0x50c887(0x1a9)](_0x5b65d9),!![];}catch{return![];}}#checkPath(_0x41d7ef,_0x397904){const _0x30fd1a=a114_0x24d1cc,_0x3ff978={};_0x3ff978[_0x30fd1a(0x1ec)]=function(_0x41d73a,_0xbab86c){return _0x41d73a|_0xbab86c;},_0x3ff978[_0x30fd1a(0x194)]=function(_0x113c98,_0x4ace00){return _0x113c98!==_0x4ace00;},_0x3ff978[_0x30fd1a(0x203)]=_0x30fd1a(0x1b6);const _0x215cee=_0x3ff978;_0x397904=_0x397904||_0x215cee[_0x30fd1a(0x1ec)](fs[_0x30fd1a(0x198)],fs[_0x30fd1a(0x1be)]);try{return fs['accessSync'](_0x41d7ef,_0x397904),!![];}catch(_0x5b7fe8){if(_0x215cee[_0x30fd1a(0x194)](typeof fs[_0x30fd1a(0x1a6)],_0x215cee[_0x30fd1a(0x203)]))return![];try{return fs[_0x30fd1a(0x1ee)](_0x41d7ef),!![];}catch(_0x703183){return![];}}}#getETagPath(_0x32edba){return path['join'](_0x32edba,this.#binaryName+'.etag');}#loadETag(_0x3670f2){const _0x47ca27=a114_0x24d1cc,_0x1e3513={};_0x1e3513[_0x47ca27(0x1d9)]='utf8';const _0x2fda90=_0x1e3513,_0x47580c=this.#getETagPath(_0x3670f2);if(this.#checkPath(_0x47580c))try{return fs[_0x47ca27(0x1e9)](_0x47580c,_0x2fda90[_0x47ca27(0x1d9)])[_0x47ca27(0x1f0)]();}catch(_0x49c8df){logger[_0x47ca27(0x1ba)](_0x47ca27(0x206)+_0x49c8df);}return null;}#saveETag(_0x3c663b,_0x4603af){const _0x518509=a114_0x24d1cc,_0x499300={};_0x499300['PJAgC']=_0x518509(0x214);const _0x9f4d54=_0x499300;if(!_0x4603af)return;try{const _0x21769a=this.#getETagPath(_0x3c663b);fs[_0x518509(0x204)](_0x21769a,_0x4603af),logger['debug'](_0x9f4d54[_0x518509(0x1ab)]);}catch(_0x44ceb7){logger[_0x518509(0x1ba)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x44ceb7);}}async #handleBinaryDownload(_0x1020eb,_0x105a7d,_0x2f1328){const _0x30a750=a114_0x24d1cc,_0x10580e={};_0x10580e[_0x30a750(0x1fe)]=_0x30a750(0x1ca);const _0x4d1032=_0x10580e,_0x1fa231=await this['validateBinary'](_0x1020eb[_0x30a750(0x1df)]);if(!_0x1fa231){logger[_0x30a750(0x1a2)](_0x4d1032['bXSrv']);const _0x8d5ea5=await this[_0x30a750(0x19b)](_0x105a7d,_0x2f1328);return _0x8d5ea5[_0x30a750(0x1df)];}return _0x1020eb[_0x30a750(0x1df)];}async[a114_0x24d1cc(0x1ce)](_0x3acc40){const _0x1f0534=a114_0x24d1cc,_0x72a374={};_0x72a374[_0x1f0534(0x1c3)]=_0x1f0534(0x1ad),_0x72a374[_0x1f0534(0x1e4)]=_0x1f0534(0x1b2);const _0x115c47=_0x72a374,_0x40c8dd=this.#getAvailableDirs(),_0x468dd8=path['join'](_0x40c8dd,this.#binaryName);if(this.#checkPath(_0x468dd8,fs[_0x1f0534(0x1da)])){const _0x53b97e=this.#loadETag(_0x40c8dd);if(_0x53b97e)try{const _0x3ccfdf=await this['download'](_0x3acc40,_0x40c8dd,_0x53b97e);if(!_0x3ccfdf['needsUpdate'])return logger['debug'](_0x115c47[_0x1f0534(0x1c3)]),_0x468dd8;return logger[_0x1f0534(0x199)](_0x115c47[_0x1f0534(0x1e4)]),await this.#handleBinaryDownload(_0x3ccfdf,_0x3acc40,_0x40c8dd);}catch(_0x3eedda){return logger[_0x1f0534(0x1ba)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x3eedda),_0x468dd8;}}const _0x543678=await this[_0x1f0534(0x19b)](_0x3acc40,_0x40c8dd);return await this.#handleBinaryDownload(_0x543678,_0x3acc40,_0x40c8dd);}[a114_0x24d1cc(0x19b)](_0x4f32cc,_0x24534d,_0x434cd3=null){const _0x437a56=a114_0x24d1cc,_0x279750={'zeqJb':function(_0x4b050f,_0x3a8fdf){return _0x4b050f(_0x3a8fdf);},'TEvRl':function(_0x5e2932,_0x13b183){return _0x5e2932===_0x13b183;},'NIyBU':function(_0x658be2,_0xfb8165){return _0x658be2(_0xfb8165);},'otBVS':_0x437a56(0x1a2),'agngH':_0x437a56(0x1bd),'jDfGR':function(_0x1dd412,_0x2afb9f){return _0x1dd412(_0x2afb9f);},'DdPSa':function(_0x36160e,_0x1b5552){return _0x36160e+_0x1b5552;},'RkRWp':_0x437a56(0x1b1)};_0x24534d&&!this.#checkPath(_0x24534d)&&fs['mkdirSync'](_0x24534d);const _0x2cdb49=this.#binaryName,_0x3d9495=path['join'](_0x24534d,_0x279750[_0x437a56(0x1bc)](_0x2cdb49,_0x279750[_0x437a56(0x1d7)])),_0x2ae285=fs[_0x437a56(0x1f8)](_0x3d9495),_0xe3ff50=url[_0x437a56(0x1aa)](this.#httpPath);if(_0x4f32cc['proxyHost']&&_0x4f32cc[_0x437a56(0x1af)]){const _0xda0413={};_0xda0413[_0x437a56(0x1db)]=_0x4f32cc[_0x437a56(0x1fb)],_0xda0413[_0x437a56(0x200)]=_0x4f32cc[_0x437a56(0x1af)],_0xe3ff50[_0x437a56(0x190)]=new HttpsProxyAgent(_0xda0413);}if(_0x4f32cc[_0x437a56(0x1d3)])try{_0xe3ff50['ca']=fs['readFileSync'](_0x4f32cc['useCaCertificate']);}catch(_0x33b02a){logger[_0x437a56(0x1a2)](_0x437a56(0x1c1)+_0x33b02a);}if(_0x434cd3){const _0x16d882={};_0x16d882['If-None-Match']=_0x434cd3,_0x16d882['Connection']=_0x279750[_0x437a56(0x1f2)],_0xe3ff50[_0x437a56(0x1bf)]=_0x16d882;}else{const _0x1a47a0={};_0x1a47a0[_0x437a56(0x1fc)]=_0x279750['agngH'],_0xe3ff50[_0x437a56(0x1bf)]=_0x1a47a0;}return new Promise((_0xf26f9,_0x50ea9b)=>{const _0x4ef417=_0x437a56,_0x42703f={'MZwmK':function(_0x2e89cd,_0x3fdbfd){const _0x1b5a2d=a114_0x1e8a;return _0x279750[_0x1b5a2d(0x201)](_0x2e89cd,_0x3fdbfd);}};https[_0x4ef417(0x1b5)](_0xe3ff50,_0x32c290=>{const _0x410760=_0x4ef417,_0x32c537={'UoUUc':function(_0x105e86,_0x176188){const _0x102dda=a114_0x1e8a;return _0x279750[_0x102dda(0x1f3)](_0x105e86,_0x176188);}};if(_0x434cd3&&_0x279750[_0x410760(0x21a)](_0x32c290['statusCode'],0x130)){_0x2ae285[_0x410760(0x1cf)]();const _0x525f75={};_0x525f75['needsUpdate']=![],_0x279750[_0x410760(0x1de)](_0xf26f9,_0x525f75);return;}const _0x4af23d=_0x32c290[_0x410760(0x1bf)]['etag'];_0x4af23d&&this.#saveETag(_0x24534d,_0x4af23d),_0x32c290[_0x410760(0x1dc)](_0x2ae285),_0x32c290['on'](_0x279750['otBVS'],function(_0x3e0649){const _0x23ae1c=_0x410760;logger[_0x23ae1c(0x1a2)](_0x23ae1c(0x1a5)+_0x3e0649),_0x32c537[_0x23ae1c(0x1c4)](_0x50ea9b,_0x3e0649);}),_0x2ae285['on'](_0x279750[_0x410760(0x1a3)],function(_0x5540ff){const _0x3d567c=_0x410760;logger[_0x3d567c(0x1a2)](_0x3d567c(0x1f7)+_0x5540ff),_0x42703f[_0x3d567c(0x1f4)](_0x50ea9b,_0x5540ff);}),_0x2ae285['on'](_0x279750[_0x410760(0x1f2)],()=>{const _0x2cb456=_0x410760;this[_0x2cb456(0x195)](_0x3d9495,_0x24534d)['then'](_0x1a5936=>_0xf26f9({'needsUpdate':!![],'binaryPath':_0x1a5936}))[_0x2cb456(0x1fa)](_0x50ea9b);});})['on'](_0x279750[_0x4ef417(0x1a3)],function(_0x25b2a7){const _0x554fcd=_0x4ef417;logger[_0x554fcd(0x1a2)](_0x554fcd(0x1e2)+_0x25b2a7),_0x279750['jDfGR'](_0x50ea9b,_0x25b2a7);});});}[a114_0x24d1cc(0x195)](_0x5837f0,_0x2b6067){const _0x568abf=a114_0x24d1cc,_0xaf2279={'Pnkns':function(_0xcacb7b,_0x5a3068){return _0xcacb7b(_0x5a3068);},'NkQhJ':_0x568abf(0x19f),'eCRGU':function(_0xc1fafd,_0x4207f4){return _0xc1fafd===_0x4207f4;},'QUdVR':_0x568abf(0x1f6),'uNGmr':'entry','kLNmw':'error'},_0x5b2d4e=this.#binaryName,_0x348d26=path[_0x568abf(0x1ed)](_0x2b6067,_0x5b2d4e);return new Promise((_0x5b45f5,_0x31291f)=>{const _0x3e36fd=_0x568abf,_0x3fffc2={'IWBXS':function(_0x2bab68,_0x5ef796){const _0x276697=a114_0x1e8a;return _0xaf2279[_0x276697(0x212)](_0x2bab68,_0x5ef796);},'PTtGT':_0xaf2279['NkQhJ'],'FMidD':function(_0x5888e9,_0x166d6b){const _0x4e2074=a114_0x1e8a;return _0xaf2279[_0x4e2074(0x1ea)](_0x5888e9,_0x166d6b);},'SSYfR':_0xaf2279[_0x3e36fd(0x1f5)],'hYKtk':_0xaf2279[_0x3e36fd(0x19a)],'DYJQw':_0xaf2279[_0x3e36fd(0x1b7)]},_0x13d75={};_0x13d75[_0x3e36fd(0x196)]=!![],yauzl[_0x3e36fd(0x218)](_0x5837f0,_0x13d75,function(_0x19fbde,_0x436a11){const _0x72b025=_0x3e36fd,_0x2c77dd={'MvTEB':function(_0xe87ee6,_0x54315a){const _0x15da22=a114_0x1e8a;return _0x3fffc2[_0x15da22(0x1d5)](_0xe87ee6,_0x54315a);},'NQEzo':_0x3fffc2[_0x72b025(0x1bb)],'Bninz':function(_0x43fdc0,_0x41c940){return _0x3fffc2['FMidD'](_0x43fdc0,_0x41c940);},'XHQSX':function(_0x16b9ed,_0x15081a){const _0x3d35cb=_0x72b025;return _0x3fffc2[_0x3d35cb(0x1d5)](_0x16b9ed,_0x15081a);},'Groej':_0x3fffc2['SSYfR']};_0x19fbde&&_0x3fffc2[_0x72b025(0x1d5)](_0x31291f,_0x19fbde),_0x436a11['readEntry'](),_0x436a11['on'](_0x3fffc2[_0x72b025(0x1a0)],_0xf4c0b8=>{const _0x1ae5b6=_0x72b025;if(/\/$/[_0x1ae5b6(0x20e)](_0xf4c0b8[_0x1ae5b6(0x1d2)]))_0x436a11[_0x1ae5b6(0x20d)]();else{const _0x2aa7b2=fs[_0x1ae5b6(0x1f8)](path['join'](_0x2b6067,_0xf4c0b8[_0x1ae5b6(0x1d2)]));_0x436a11[_0x1ae5b6(0x20c)](_0xf4c0b8,function(_0x292d66,_0x348113){const _0x3f9e7a=_0x1ae5b6;_0x292d66&&_0x2c77dd[_0x3f9e7a(0x1c7)](_0x31291f,_0x19fbde),_0x348113['on'](_0x2c77dd['NQEzo'],function(){const _0x1b5ab0=_0x3f9e7a;_0x2aa7b2[_0x1b5ab0(0x1bd)](),_0x436a11[_0x1b5ab0(0x20d)]();}),_0x348113[_0x3f9e7a(0x1dc)](_0x2aa7b2);}),_0x2c77dd[_0x1ae5b6(0x219)](_0xf4c0b8[_0x1ae5b6(0x1d2)],_0x5b2d4e)&&_0x436a11[_0x1ae5b6(0x1bd)]();}}),_0x436a11['on'](_0x3fffc2['DYJQw'],_0x4b545c=>{const _0x4e2e6f=_0x72b025;_0x3fffc2[_0x4e2e6f(0x1d5)](_0x31291f,_0x4b545c);}),_0x436a11[_0x72b025(0x1ef)](_0x3fffc2[_0x72b025(0x1bb)],()=>{const _0x5bbd8c=_0x72b025;fs[_0x5bbd8c(0x1d1)](_0x348d26,_0x2c77dd[_0x5bbd8c(0x1b9)],function(_0x4eacd3){const _0x4bfd25=_0x5bbd8c;_0x4eacd3&&_0x2c77dd[_0x4bfd25(0x19e)](_0x31291f,_0x4eacd3),_0x2c77dd[_0x4bfd25(0x1c7)](_0x5b45f5,_0x348d26);}),_0x436a11['close']();});});});}async[a114_0x24d1cc(0x213)](_0x348042){const _0x1944ce=a114_0x24d1cc,_0x50767e={'JAOJV':function(_0x20c40b,_0x5a5485){return _0x20c40b(_0x5a5485);},'WotCf':function(_0x1ecda8,_0x43a1af,_0x440796,_0x267407){return _0x1ecda8(_0x43a1af,_0x440796,_0x267407);},'NKwWT':_0x1944ce(0x1e7),'MGNTk':'data','fXBWx':_0x1944ce(0x1bd)},_0x1ee7cb=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x30491f,_0x357710)=>{const _0x10d8c9=_0x1944ce,_0x580584={};_0x580584[_0x10d8c9(0x1c5)]=process['env'];const _0x20282a=_0x50767e[_0x10d8c9(0x216)](spawn,_0x348042,[_0x50767e['NKwWT']],_0x580584);_0x20282a[_0x10d8c9(0x1d0)]['on'](_0x50767e[_0x10d8c9(0x1a7)],_0xab2875=>{const _0x2b3774=_0x10d8c9;_0x1ee7cb[_0x2b3774(0x20e)](_0xab2875)&&_0x50767e[_0x2b3774(0x197)](_0x30491f,!![]);}),_0x20282a['on'](_0x50767e[_0x10d8c9(0x1e8)],()=>{const _0x180b93=_0x10d8c9;_0x50767e[_0x180b93(0x197)](_0x30491f,![]);});});}#homedir(){const _0x41696a=a114_0x24d1cc,_0x3392c0={};_0x3392c0[_0x41696a(0x20b)]=function(_0x528fa0,_0x287458){return _0x528fa0===_0x287458;},_0x3392c0[_0x41696a(0x209)]=_0x41696a(0x217),_0x3392c0[_0x41696a(0x1f1)]=function(_0x97096b,_0x2438e8){return _0x97096b===_0x2438e8;},_0x3392c0[_0x41696a(0x191)]=_0x41696a(0x1c2),_0x3392c0['SIPCV']=function(_0x32e793,_0x54c4b8){return _0x32e793+_0x54c4b8;},_0x3392c0[_0x41696a(0x192)]=_0x41696a(0x210),_0x3392c0['vULTM']=function(_0x51cd3c,_0x34521b){return _0x51cd3c+_0x34521b;},_0x3392c0[_0x41696a(0x1ac)]='/Users/',_0x3392c0[_0x41696a(0x1a4)]=_0x41696a(0x1cc),_0x3392c0[_0x41696a(0x1d4)]='/root',_0x3392c0[_0x41696a(0x207)]=_0x41696a(0x1c0),_0x3392c0[_0x41696a(0x1d8)]=function(_0x4d73e4,_0x8a3edd){return _0x4d73e4||_0x8a3edd;};const _0x2d349c=_0x3392c0;if(_0x2d349c[_0x41696a(0x20b)](typeof os[_0x41696a(0x1e5)],_0x2d349c[_0x41696a(0x209)]))return os[_0x41696a(0x1e5)]();const _0x28eac0=process[_0x41696a(0x1c5)],_0x20d535=_0x28eac0['HOME'],_0x526bda=_0x28eac0[_0x41696a(0x1e0)]||_0x28eac0['USER']||_0x28eac0['LNAME']||_0x28eac0[_0x41696a(0x1b4)];if(_0x2d349c['epLDn'](process['platform'],_0x2d349c[_0x41696a(0x191)]))return _0x28eac0[_0x41696a(0x1f9)]||_0x2d349c[_0x41696a(0x1fd)](_0x28eac0[_0x41696a(0x208)],_0x28eac0['HOMEPATH'])||_0x20d535||null;if(_0x2d349c[_0x41696a(0x20b)](process[_0x41696a(0x1e1)],_0x2d349c['fGqhR']))return _0x20d535||(_0x526bda?_0x2d349c['vULTM'](_0x2d349c['IFrNJ'],_0x526bda):null);if(_0x2d349c[_0x41696a(0x20b)](process[_0x41696a(0x1e1)],_0x2d349c[_0x41696a(0x1a4)]))return _0x20d535||(_0x2d349c[_0x41696a(0x1f1)](process[_0x41696a(0x215)](),0x0)?_0x2d349c[_0x41696a(0x1d4)]:_0x526bda?_0x2d349c['SIPCV'](_0x2d349c[_0x41696a(0x207)],_0x526bda):null);return _0x2d349c['CNwuH'](_0x20d535,null);}}module['exports']=PercyBinary;function a114_0x2dc4(){const _0x22ceb4=['HOMEDRIVE','quvHY','6078408xWfyOE','SJMgT','openReadStream','readEntry','test','../logger','darwin','nTWYd','Pnkns','validateBinary','Saved\x20new\x20ETag\x20for\x20percy\x20binary','getuid','WotCf','function','open','Bninz','TEvRl','percy.exe','59848MXWIqb','4631qcAigp','2520134QFOyeO','child_process','agent','laagl','fGqhR','/percy-win.zip','uMiND','extractAndSaveBinary','lazyEntries','JAOJV','R_OK','debug','uNGmr','download','msFGb','150XtrUFV','XHQSX','end','hYKtk','HasoW','error','otBVS','UZpMS','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','accessSync','MGNTk','39890GlYFEH','mkdirSync','parse','PJAgC','IFrNJ','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','https-proxy-agent','proxyPort','tmpdir','.zip','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','path','USERNAME','get','undefined','kLNmw','2919639yUphPF','Groej','warn','PTtGT','DdPSa','close','W_OK','headers','/home/','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','win32','KMlAT','UoUUc','env','51653OHDQUJ','MvTEB','ziNNt','length','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','11578221bBhGOr','linux','GzXVh','getBinaryPath','destroy','stdout','chmod','fileName','useCaCertificate','CvopF','IWBXS','vcQkl','RkRWp','CNwuH','NGWRJ','X_OK','host','pipe','744dUKYDL','NIyBU','binaryPath','LOGNAME','platform','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','sBHQN','VVGee','homedir','percy','--version','fXBWx','readFileSync','eCRGU','cwd','ckXno','join','statSync','once','trim','epLDn','agngH','zeqJb','MZwmK','QUdVR','0755','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','createWriteStream','USERPROFILE','catch','proxyHost','Connection','SIPCV','bXSrv','match','port','jDfGR','kKzIK','ZmjIb','writeFileSync','1kGYXrb','Failed\x20to\x20read\x20ETag\x20file:\x20','hIwNz'];a114_0x2dc4=function(){return _0x22ceb4;};return a114_0x2dc4();}
@@ -1 +1 @@
1
- var a115_0x585992=a115_0x48f7;function a115_0x23ba(){var _0x36a20e=['188463weMXyw','getName','32cODlFk','2242683HkrXvP','1830924NkWrwx','increment','6baXEgX','15csePYy','95373wdvRae','1485078UMcqkp','10lLfEfm','346416WrnoZW','exports','get','369412fUVAJR','648WMYntS'];a115_0x23ba=function(){return _0x36a20e;};return a115_0x23ba();}(function(_0x1e9374,_0x32b778){var _0x3c0a1f=a115_0x48f7,_0x145854=_0x1e9374();while(!![]){try{var _0x357162=-parseInt(_0x3c0a1f(0x73))/0x1*(-parseInt(_0x3c0a1f(0x71))/0x2)+-parseInt(_0x3c0a1f(0x74))/0x3+-parseInt(_0x3c0a1f(0x69))/0x4*(parseInt(_0x3c0a1f(0x72))/0x5)+parseInt(_0x3c0a1f(0x6f))/0x6+-parseInt(_0x3c0a1f(0x76))/0x7*(parseInt(_0x3c0a1f(0x6d))/0x8)+-parseInt(_0x3c0a1f(0x6e))/0x9*(parseInt(_0x3c0a1f(0x75))/0xa)+-parseInt(_0x3c0a1f(0x6b))/0xb*(-parseInt(_0x3c0a1f(0x6a))/0xc);if(_0x357162===_0x32b778)break;else _0x145854['push'](_0x145854['shift']());}catch(_0x4401f8){_0x145854['push'](_0x145854['shift']());}}}(a115_0x23ba,0x4890f));class PercyCaptureMap{#map={};[a115_0x585992(0x70)](_0x4ced8d,_0x2b6aff){!this.#map[_0x4ced8d]&&(this.#map[_0x4ced8d]={}),!this.#map[_0x4ced8d][_0x2b6aff]&&(this.#map[_0x4ced8d][_0x2b6aff]=0x0),this.#map[_0x4ced8d][_0x2b6aff]++;}[a115_0x585992(0x6c)](_0x57d872,_0x4e7243){return _0x57d872+'-'+_0x4e7243+'-'+this['get'](_0x57d872,_0x4e7243);}[a115_0x585992(0x78)](_0x5e393a,_0x100d49){if(!this.#map[_0x5e393a])return 0x0;if(!this.#map[_0x5e393a][_0x100d49])return 0x0;return this.#map[_0x5e393a][_0x100d49];}}function a115_0x48f7(_0x3f5bdc,_0x50f51b){var _0x23ba44=a115_0x23ba();return a115_0x48f7=function(_0x48f790,_0x2db1ba){_0x48f790=_0x48f790-0x69;var _0x390775=_0x23ba44[_0x48f790];return _0x390775;},a115_0x48f7(_0x3f5bdc,_0x50f51b);}module[a115_0x585992(0x77)]=PercyCaptureMap;
1
+ var a115_0x5cd761=a115_0x441c;(function(_0x4d4d46,_0x463ceb){var _0x54696e=a115_0x441c,_0x572dde=_0x4d4d46();while(!![]){try{var _0x432c03=parseInt(_0x54696e(0xbe))/0x1*(-parseInt(_0x54696e(0xc3))/0x2)+-parseInt(_0x54696e(0xc9))/0x3*(parseInt(_0x54696e(0xc4))/0x4)+parseInt(_0x54696e(0xc8))/0x5*(-parseInt(_0x54696e(0xc0))/0x6)+-parseInt(_0x54696e(0xc5))/0x7+-parseInt(_0x54696e(0xc6))/0x8+parseInt(_0x54696e(0xcb))/0x9*(-parseInt(_0x54696e(0xc1))/0xa)+parseInt(_0x54696e(0xc2))/0xb;if(_0x432c03===_0x463ceb)break;else _0x572dde['push'](_0x572dde['shift']());}catch(_0x15b3ec){_0x572dde['push'](_0x572dde['shift']());}}}(a115_0xdda4,0x19131));class PercyCaptureMap{#map={};[a115_0x5cd761(0xca)](_0x45083d,_0x1834ed){!this.#map[_0x45083d]&&(this.#map[_0x45083d]={}),!this.#map[_0x45083d][_0x1834ed]&&(this.#map[_0x45083d][_0x1834ed]=0x0),this.#map[_0x45083d][_0x1834ed]++;}['getName'](_0x27954e,_0x1518e0){var _0x29d202=a115_0x5cd761;return _0x27954e+'-'+_0x1518e0+'-'+this[_0x29d202(0xbf)](_0x27954e,_0x1518e0);}[a115_0x5cd761(0xbf)](_0x2a052f,_0xc43478){if(!this.#map[_0x2a052f])return 0x0;if(!this.#map[_0x2a052f][_0xc43478])return 0x0;return this.#map[_0x2a052f][_0xc43478];}}module[a115_0x5cd761(0xc7)]=PercyCaptureMap;function a115_0x441c(_0xec3c67,_0x94da6d){var _0xdda4ca=a115_0xdda4();return a115_0x441c=function(_0x441c42,_0x3b9adc){_0x441c42=_0x441c42-0xbe;var _0x163346=_0xdda4ca[_0x441c42];return _0x163346;},a115_0x441c(_0xec3c67,_0x94da6d);}function a115_0xdda4(){var _0x3a32e8=['4624ScKwZf','268233SahYsF','534296svpgzl','exports','5gIGhgf','342eXrxjk','increment','53451VFjwpK','11sIuZgf','get','799698mcQUSt','90Qlpbfo','6129266aKkztw','5614TLvyCz'];a115_0xdda4=function(){return _0x3a32e8;};return a115_0xdda4();}
@@ -1 +1 @@
1
- function a116_0x43cf(_0x2148df,_0x49a1cd){var _0x169715=a116_0x1697();return a116_0x43cf=function(_0x43cff0,_0x32cf3c){_0x43cff0=_0x43cff0-0x10c;var _0x3aa065=_0x169715[_0x43cff0];return _0x3aa065;},a116_0x43cf(_0x2148df,_0x49a1cd);}var a116_0x3fab41=a116_0x43cf;(function(_0x302e2b,_0x4421b6){var _0x55cde7=a116_0x43cf,_0x1002cf=_0x302e2b();while(!![]){try{var _0x21fc57=-parseInt(_0x55cde7(0x119))/0x1+-parseInt(_0x55cde7(0x11d))/0x2*(parseInt(_0x55cde7(0x11f))/0x3)+-parseInt(_0x55cde7(0x10d))/0x4*(parseInt(_0x55cde7(0x112))/0x5)+-parseInt(_0x55cde7(0x111))/0x6*(-parseInt(_0x55cde7(0x114))/0x7)+-parseInt(_0x55cde7(0x10f))/0x8*(parseInt(_0x55cde7(0x118))/0x9)+-parseInt(_0x55cde7(0x10c))/0xa+parseInt(_0x55cde7(0x115))/0xb;if(_0x21fc57===_0x4421b6)break;else _0x1002cf['push'](_0x1002cf['shift']());}catch(_0x5a5b85){_0x1002cf['push'](_0x1002cf['shift']());}}}(a116_0x1697,0xeea9b));var a116_0x348e75={};a116_0x348e75[a116_0x3fab41(0x113)]=['takeScreenshot'],a116_0x348e75[a116_0x3fab41(0x116)]=[a116_0x3fab41(0x11a),a116_0x3fab41(0x11c)];var a116_0x285359={};a116_0x285359['driver']=[a116_0x3fab41(0x110)];function a116_0x1697(){var _0xf78c5e=['65iBJmoQ','driver','11459YZKHDP','57937715OQXtfg','element','exports','18FNYdHx','905077AZiens','click','testcase','sendKeys','3697712pTbSYD','manual','3YFFnMI','screenshot','1395120nPhDJY','528208CgWbQA','auto','5403032GAxtNF','takeScreenshot','6126FeLCCK'];a116_0x1697=function(){return _0xf78c5e;};return a116_0x1697();}var a116_0x49c09d={};a116_0x49c09d[a116_0x3fab41(0x116)]=[a116_0x3fab41(0x11a)];var a116_0x4bcc69={};a116_0x4bcc69[a116_0x3fab41(0x10e)]=a116_0x348e75,a116_0x4bcc69[a116_0x3fab41(0x120)]=a116_0x285359,a116_0x4bcc69[a116_0x3fab41(0x11a)]=a116_0x49c09d,a116_0x4bcc69[a116_0x3fab41(0x11b)]={},a116_0x4bcc69[a116_0x3fab41(0x11e)]={},module[a116_0x3fab41(0x117)]=a116_0x4bcc69;
1
+ function a116_0x5414(_0x18f900,_0x59a497){var _0x517f69=a116_0x517f();return a116_0x5414=function(_0x541466,_0x4edae5){_0x541466=_0x541466-0x1b2;var _0x73cb3b=_0x517f69[_0x541466];return _0x73cb3b;},a116_0x5414(_0x18f900,_0x59a497);}var a116_0x2354bd=a116_0x5414;(function(_0x1eb9ba,_0x5091b1){var _0x3fe144=a116_0x5414,_0x5b4ffa=_0x1eb9ba();while(!![]){try{var _0x57a601=-parseInt(_0x3fe144(0x1b8))/0x1+parseInt(_0x3fe144(0x1b3))/0x2+-parseInt(_0x3fe144(0x1ba))/0x3*(-parseInt(_0x3fe144(0x1b4))/0x4)+parseInt(_0x3fe144(0x1c2))/0x5*(parseInt(_0x3fe144(0x1b2))/0x6)+parseInt(_0x3fe144(0x1c0))/0x7+parseInt(_0x3fe144(0x1b5))/0x8+-parseInt(_0x3fe144(0x1bf))/0x9*(parseInt(_0x3fe144(0x1b6))/0xa);if(_0x57a601===_0x5091b1)break;else _0x5b4ffa['push'](_0x5b4ffa['shift']());}catch(_0x4cccb2){_0x5b4ffa['push'](_0x5b4ffa['shift']());}}}(a116_0x517f,0xe8b18));function a116_0x517f(){var _0x41c054=['478419IwfuEc','driver','exports','sendKeys','element','24385437cogPEr','7663544cCRmrL','screenshot','60FPjIcY','takeScreenshot','testcase','315054OLZJNF','3327878OzfjYt','8vWzXJy','10674688JkfRyQ','10yigVWP','click','1379516ypjhWT','manual'];a116_0x517f=function(){return _0x41c054;};return a116_0x517f();}var a116_0x2253ea={};a116_0x2253ea['driver']=[a116_0x2354bd(0x1c3)],a116_0x2253ea[a116_0x2354bd(0x1be)]=['click',a116_0x2354bd(0x1bd)];var a116_0x374604={};a116_0x374604[a116_0x2354bd(0x1bb)]=[a116_0x2354bd(0x1c3)];var a116_0x579b47={};a116_0x579b47[a116_0x2354bd(0x1be)]=[a116_0x2354bd(0x1b7)];var a116_0x543da7={};a116_0x543da7['auto']=a116_0x2253ea,a116_0x543da7[a116_0x2354bd(0x1c1)]=a116_0x374604,a116_0x543da7[a116_0x2354bd(0x1b7)]=a116_0x579b47,a116_0x543da7[a116_0x2354bd(0x1c4)]={},a116_0x543da7[a116_0x2354bd(0x1b9)]={},module[a116_0x2354bd(0x1bc)]=a116_0x543da7;
@@ -1 +1 @@
1
- const a117_0x7da539=a117_0x1176;function a117_0x1176(_0x3ccc11,_0x5d2f24){const _0x4c09b5=a117_0x4c09();return a117_0x1176=function(_0x11767e,_0x3177f4){_0x11767e=_0x11767e-0x1cb;let _0x30f47d=_0x4c09b5[_0x11767e];return _0x30f47d;},a117_0x1176(_0x3ccc11,_0x5d2f24);}(function(_0x258f66,_0xe419c4){const _0x533514=a117_0x1176,_0xec3907=_0x258f66();while(!![]){try{const _0x4b469a=parseInt(_0x533514(0x1e4))/0x1+parseInt(_0x533514(0x1db))/0x2+-parseInt(_0x533514(0x1d6))/0x3+parseInt(_0x533514(0x1ed))/0x4*(parseInt(_0x533514(0x1d5))/0x5)+-parseInt(_0x533514(0x1d8))/0x6*(-parseInt(_0x533514(0x1ef))/0x7)+parseInt(_0x533514(0x1cb))/0x8*(-parseInt(_0x533514(0x1e5))/0x9)+parseInt(_0x533514(0x1cf))/0xa*(-parseInt(_0x533514(0x1e7))/0xb);if(_0x4b469a===_0xe419c4)break;else _0xec3907['push'](_0xec3907['shift']());}catch(_0x1b54bf){_0xec3907['push'](_0xec3907['shift']());}}}(a117_0x4c09,0x6df73));const tryRequire=function(_0x58320d,_0x5d838e){const _0x11484d=a117_0x1176,_0x328f24={'VaCwK':function(_0x18579e,_0xb1200d){return _0x18579e(_0xb1200d);}};try{return _0x328f24[_0x11484d(0x1d4)](require,_0x58320d);}catch{return _0x5d838e;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a117_0x7da539(0x1da),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require(a117_0x7da539(0x1d9)),PerformanceTester=require(a117_0x7da539(0x1df)),{PERCY_EVENTS:PerformanceEvents}=require(a117_0x7da539(0x1d0)),logger=require('../logger')[a117_0x7da539(0x1dc)];percySnapshot&&(exports[a117_0x7da539(0x1d2)]=async function(){const _0x1e1cbb=a117_0x7da539,_0x305028={'XTRaw':function(_0x1ea7c0,_0x982601){return _0x1ea7c0!==_0x982601;},'ioQyA':function(_0x4ae3e6,_0x1d4a55){return _0x4ae3e6>=_0x1d4a55;},'JRCAt':function(_0x314685){return _0x314685();}};if(global[_0x1e1cbb(0x1ee)]&&_0x305028['XTRaw'](global['browserstackPlatformIndex'],global[_0x1e1cbb(0x1dd)]))return;const _0x461d6f=_0x305028['ioQyA'](arguments['length'],0x2)?arguments[0x1]:'',_0x1ead3f=_0x305028[_0x1e1cbb(0x1e9)](getCurrentTestData),_0x118006={};return _0x118006['name']=_0x461d6f,_0x118006[_0x1e1cbb(0x1e0)]=_0x1ead3f['name']||'',_0x118006['thTestCaseExecutionId']=_0x1ead3f['uuid']||'',_0x118006[_0x1e1cbb(0x1ea)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x1e1cbb(0x1de)](PerformanceEvents['SNAPSHOT'],()=>percySnapshot[_0x1e1cbb(0x1ce)](null,arguments),_0x118006);});percyScreenshot?exports[a117_0x7da539(0x1d3)]=async function(){const _0x2d596e=a117_0x7da539,_0xb9d89f={'FMCrO':function(_0x30993d,_0x394746){return _0x30993d>=_0x394746;},'ihuaA':function(_0x44ec6b){return _0x44ec6b();}},_0x2ce16f=_0xb9d89f[_0x2d596e(0x1e1)](arguments[_0x2d596e(0x1e3)],0x2)?arguments[0x1]:'',_0x6d8e7e=_0xb9d89f['ihuaA'](getCurrentTestData),_0x1188e2={};return _0x1188e2[_0x2d596e(0x1d1)]=_0x2ce16f,_0x1188e2[_0x2d596e(0x1e0)]=_0x6d8e7e[_0x2d596e(0x1d1)]||'',_0x1188e2[_0x2d596e(0x1e6)]=_0x6d8e7e[_0x2d596e(0x1eb)]||'',_0x1188e2[_0x2d596e(0x1ea)]=global[_0x2d596e(0x1ee)],await PerformanceTester[_0x2d596e(0x1de)](PerformanceEvents[_0x2d596e(0x1cc)],()=>percyScreenshot[_0x2d596e(0x1ce)](null,arguments),_0x1188e2);}:exports['screenshot']=()=>{const _0x538c22=a117_0x7da539,_0x85edcf={};_0x85edcf[_0x538c22(0x1e2)]=_0x538c22(0x1d7);const _0x1e1f9b=_0x85edcf;logger[_0x538c22(0x1cd)](_0x1e1f9b[_0x538c22(0x1e2)]);};exports['screenshotApp']=async function(){const _0x1e6210=a117_0x7da539,_0x3646ac={'fhvnB':function(_0x5b7034,_0x921448){return _0x5b7034>=_0x921448;},'QXxBu':function(_0x40bc21){return _0x40bc21();}},_0x8da765=_0x3646ac['fhvnB'](arguments[_0x1e6210(0x1e3)],0x2)?arguments[0x1]:'',_0x55bcd0=_0x3646ac[_0x1e6210(0x1ec)](getCurrentTestData),_0x56ad8c={};return _0x56ad8c[_0x1e6210(0x1d1)]=_0x8da765,_0x56ad8c[_0x1e6210(0x1e0)]=_0x55bcd0[_0x1e6210(0x1d1)]||'',_0x56ad8c[_0x1e6210(0x1e6)]=_0x55bcd0[_0x1e6210(0x1eb)]||'',_0x56ad8c[_0x1e6210(0x1ea)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x1e6210(0x1de)](PerformanceEvents[_0x1e6210(0x1e8)],()=>percyAppScreenshot['apply'](null,arguments),_0x56ad8c);};function a117_0x4c09(){const _0x53acf4=['978669DPveWi','thTestCaseExecutionId','2390069xXqDaS','SCREENSHOT_APP','JRCAt','platformIndex','uuid','QXxBu','4jnBImD','browserstackPlatformIndex','56YvVihv','8TazYOI','SCREENSHOT','error','apply','60azzrsm','../performance/constants','name','snapshot','screenshot','VaCwK','3709525ZEFrYM','413109pWmfUB','Unsupported\x20driver\x20for\x20percy','460416aYYOGx','../../helpers/testhub/utils','@percy/selenium-webdriver','830954epyDWj','winstonLogger','browserstackPercyBestPlatform','measure','../performance/performance-tester','testCase','FMCrO','tNYxq','length','229267knBUSA'];a117_0x4c09=function(){return _0x53acf4;};return a117_0x4c09();}
1
+ const a117_0x35d903=a117_0x2763;(function(_0x235c1a,_0xc9a95e){const _0xab1291=a117_0x2763,_0x344f90=_0x235c1a();while(!![]){try{const _0x176f6b=-parseInt(_0xab1291(0x113))/0x1+-parseInt(_0xab1291(0x10b))/0x2+-parseInt(_0xab1291(0x11f))/0x3*(-parseInt(_0xab1291(0x110))/0x4)+parseInt(_0xab1291(0x125))/0x5+parseInt(_0xab1291(0x10a))/0x6+-parseInt(_0xab1291(0x11c))/0x7+-parseInt(_0xab1291(0x121))/0x8*(-parseInt(_0xab1291(0x11d))/0x9);if(_0x176f6b===_0xc9a95e)break;else _0x344f90['push'](_0x344f90['shift']());}catch(_0x5521f3){_0x344f90['push'](_0x344f90['shift']());}}}(a117_0x382f,0x578c5));function a117_0x382f(){const _0x3d3a26=['UiObj','3ydNfII','winstonLogger','1512Cbolbz','length','../performance/performance-tester','screenshotApp','483450nOaDCc','platformIndex','Unsupported\x20driver\x20for\x20percy','measure','../logger','@percy/appium-app','snapshot','../../helpers/testhub/utils','SCREENSHOT','NYADn','2541768QDFzzI','294730PqKzPG','@percy/selenium-webdriver','ozqOA','SNAPSHOT','SCREENSHOT_APP','1614516XUvpgl','thTestCaseExecutionId','screenshot','507453Mcvojd','jOxUh','testCase','browserstackPlatformIndex','ICLfM','name','uuid','apply','XicJO','31255JtPYJN','4473vBElaN'];a117_0x382f=function(){return _0x3d3a26;};return a117_0x382f();}const tryRequire=function(_0x3d5be2,_0x5873b8){const _0x9320b1=a117_0x2763,_0x5cf488={'XicJO':function(_0x353158,_0x8c4879){return _0x353158(_0x8c4879);}};try{return _0x5cf488[_0x9320b1(0x11b)](require,_0x3d5be2);}catch{return _0x5873b8;}},percySnapshot=tryRequire(a117_0x35d903(0x10c),null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a117_0x35d903(0x12a)),{getCurrentTestData}=require(a117_0x35d903(0x12c)),PerformanceTester=require(a117_0x35d903(0x123)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require(a117_0x35d903(0x129))[a117_0x35d903(0x120)];function a117_0x2763(_0x5b761c,_0xa9d54d){const _0x382f45=a117_0x382f();return a117_0x2763=function(_0x2763d7,_0x4118cc){_0x2763d7=_0x2763d7-0x10a;let _0x190909=_0x382f45[_0x2763d7];return _0x190909;},a117_0x2763(_0x5b761c,_0xa9d54d);}percySnapshot&&(exports[a117_0x35d903(0x12b)]=async function(){const _0x3617db=a117_0x35d903,_0x22a1d3={'jOxUh':function(_0x4915b0,_0x48d315){return _0x4915b0!==_0x48d315;},'ICLfM':function(_0xf107e2,_0x47b74d){return _0xf107e2>=_0x47b74d;},'qhguB':function(_0x5a5d02){return _0x5a5d02();}};if(global[_0x3617db(0x116)]&&_0x22a1d3[_0x3617db(0x114)](global['browserstackPlatformIndex'],global['browserstackPercyBestPlatform']))return;const _0x52393c=_0x22a1d3[_0x3617db(0x117)](arguments[_0x3617db(0x122)],0x2)?arguments[0x1]:'',_0x29446e=_0x22a1d3['qhguB'](getCurrentTestData),_0x2d771f={};return _0x2d771f[_0x3617db(0x118)]=_0x52393c,_0x2d771f[_0x3617db(0x115)]=_0x29446e[_0x3617db(0x118)]||'',_0x2d771f[_0x3617db(0x111)]=_0x29446e[_0x3617db(0x119)]||'',_0x2d771f[_0x3617db(0x126)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x3617db(0x128)](PerformanceEvents[_0x3617db(0x10e)],()=>percySnapshot['apply'](null,arguments),_0x2d771f);});percyScreenshot?exports[a117_0x35d903(0x112)]=async function(){const _0x3719f5=a117_0x35d903,_0x3601b0={'ozqOA':function(_0x2987f1,_0x560263){return _0x2987f1>=_0x560263;},'ktXJG':function(_0x5d711a){return _0x5d711a();}},_0x123e0f=_0x3601b0[_0x3719f5(0x10d)](arguments['length'],0x2)?arguments[0x1]:'',_0x4360ed=_0x3601b0['ktXJG'](getCurrentTestData),_0x23859a={};return _0x23859a[_0x3719f5(0x118)]=_0x123e0f,_0x23859a[_0x3719f5(0x115)]=_0x4360ed[_0x3719f5(0x118)]||'',_0x23859a['thTestCaseExecutionId']=_0x4360ed[_0x3719f5(0x119)]||'',_0x23859a[_0x3719f5(0x126)]=global[_0x3719f5(0x116)],await PerformanceTester[_0x3719f5(0x128)](PerformanceEvents[_0x3719f5(0x12d)],()=>percyScreenshot[_0x3719f5(0x11a)](null,arguments),_0x23859a);}:exports[a117_0x35d903(0x112)]=()=>{const _0x430f98=a117_0x35d903,_0x39e22c={};_0x39e22c['wyGwq']=_0x430f98(0x127);const _0x91ee22=_0x39e22c;logger['error'](_0x91ee22['wyGwq']);};exports[a117_0x35d903(0x124)]=async function(){const _0x36c02c=a117_0x35d903,_0x29d680={'NYADn':function(_0x254e0c,_0x5bf54f){return _0x254e0c>=_0x5bf54f;},'UiObj':function(_0x216779){return _0x216779();}},_0xdf6b69=_0x29d680[_0x36c02c(0x12e)](arguments[_0x36c02c(0x122)],0x2)?arguments[0x1]:'',_0xfa2396=_0x29d680[_0x36c02c(0x11e)](getCurrentTestData),_0x76682a={};return _0x76682a[_0x36c02c(0x118)]=_0xdf6b69,_0x76682a[_0x36c02c(0x115)]=_0xfa2396['name']||'',_0x76682a['thTestCaseExecutionId']=_0xfa2396[_0x36c02c(0x119)]||'',_0x76682a[_0x36c02c(0x126)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x36c02c(0x128)](PerformanceEvents[_0x36c02c(0x10f)],()=>percyAppScreenshot[_0x36c02c(0x11a)](null,arguments),_0x76682a);};
@@ -1 +1 @@
1
- function a118_0x51c7(){var _0x1fe8b1=['30BhICFU','11OVqmnn','636836oWRbaD','36538860izwvFs','5224990Utqtxw','./Percy','735756aBDpHr','9yzHlYU','1296918rycLqU','2187gkKZIg','12wFZRup','1558040idXclx','exports','43048sYKvNH'];a118_0x51c7=function(){return _0x1fe8b1;};return a118_0x51c7();}var a118_0xf7010e=a118_0x3bf4;function a118_0x3bf4(_0x46f66d,_0x105aec){var _0x51c719=a118_0x51c7();return a118_0x3bf4=function(_0x3bf469,_0x32edcc){_0x3bf469=_0x3bf469-0x102;var _0x35e24d=_0x51c719[_0x3bf469];return _0x35e24d;},a118_0x3bf4(_0x46f66d,_0x105aec);}(function(_0x17133d,_0x5f4e9d){var _0x5d1283=a118_0x3bf4,_0x59741b=_0x17133d();while(!![]){try{var _0x2d23b8=parseInt(_0x5d1283(0x109))/0x1+parseInt(_0x5d1283(0x10e))/0x2*(-parseInt(_0x5d1283(0x105))/0x3)+parseInt(_0x5d1283(0x104))/0x4*(parseInt(_0x5d1283(0x10c))/0x5)+-parseInt(_0x5d1283(0x108))/0x6*(-parseInt(_0x5d1283(0x106))/0x7)+-parseInt(_0x5d1283(0x10b))/0x8*(-parseInt(_0x5d1283(0x107))/0x9)+parseInt(_0x5d1283(0x102))/0xa*(parseInt(_0x5d1283(0x10d))/0xb)+-parseInt(_0x5d1283(0x10f))/0xc;if(_0x2d23b8===_0x5f4e9d)break;else _0x59741b['push'](_0x59741b['shift']());}catch(_0x1598a4){_0x59741b['push'](_0x59741b['shift']());}}}(a118_0x51c7,0xd27c1),module[a118_0xf7010e(0x10a)]=require(a118_0xf7010e(0x103)));
1
+ function a118_0x2573(_0x46eb1f,_0x3e5c82){var _0x4645f9=a118_0x4645();return a118_0x2573=function(_0x257338,_0x2ca7c0){_0x257338=_0x257338-0x17c;var _0x1ccb58=_0x4645f9[_0x257338];return _0x1ccb58;},a118_0x2573(_0x46eb1f,_0x3e5c82);}var a118_0x277abd=a118_0x2573;(function(_0x5e51ce,_0x229dc8){var _0x1d0692=a118_0x2573,_0x5d7195=_0x5e51ce();while(!![]){try{var _0x2a4df8=-parseInt(_0x1d0692(0x17e))/0x1+-parseInt(_0x1d0692(0x17f))/0x2*(parseInt(_0x1d0692(0x183))/0x3)+parseInt(_0x1d0692(0x184))/0x4+parseInt(_0x1d0692(0x17c))/0x5+parseInt(_0x1d0692(0x186))/0x6*(parseInt(_0x1d0692(0x185))/0x7)+parseInt(_0x1d0692(0x17d))/0x8+-parseInt(_0x1d0692(0x182))/0x9*(-parseInt(_0x1d0692(0x181))/0xa);if(_0x2a4df8===_0x229dc8)break;else _0x5d7195['push'](_0x5d7195['shift']());}catch(_0x38cf3b){_0x5d7195['push'](_0x5d7195['shift']());}}}(a118_0x4645,0xe240e),module[a118_0x277abd(0x180)]=require('./Percy'));function a118_0x4645(){var _0x3527ea=['139266wuXPUy','exports','10CryRKO','3901392aIefAx','54ILWRNd','3469600pZGpwI','1783649sEWSUQ','24ybMQte','1019025lLxQkr','5979288MxzABP','1091204dcBRVt'];a118_0x4645=function(){return _0x3527ea;};return a118_0x4645();}
@@ -1 +1 @@
1
- const a119_0x348972=a119_0x638d;function a119_0x638d(_0x1a7d8e,_0x571954){const _0x300fb0=a119_0x300f();return a119_0x638d=function(_0x638d78,_0xdaf4d2){_0x638d78=_0x638d78-0x1a8;let _0x5a3e3f=_0x300fb0[_0x638d78];return _0x5a3e3f;},a119_0x638d(_0x1a7d8e,_0x571954);}(function(_0x183ce6,_0x125d53){const _0x45654c=a119_0x638d,_0x23350c=_0x183ce6();while(!![]){try{const _0x4e7936=-parseInt(_0x45654c(0x1b5))/0x1*(-parseInt(_0x45654c(0x1b8))/0x2)+-parseInt(_0x45654c(0x1ad))/0x3*(-parseInt(_0x45654c(0x1cc))/0x4)+parseInt(_0x45654c(0x1ed))/0x5+-parseInt(_0x45654c(0x1e4))/0x6+parseInt(_0x45654c(0x1a8))/0x7+parseInt(_0x45654c(0x1ba))/0x8*(parseInt(_0x45654c(0x1be))/0x9)+-parseInt(_0x45654c(0x1e6))/0xa;if(_0x4e7936===_0x125d53)break;else _0x23350c['push'](_0x23350c['shift']());}catch(_0x155256){_0x23350c['push'](_0x23350c['shift']());}}}(a119_0x300f,0xb2692));function a119_0x300f(){const _0x12659c=['driver','NguzJ','jmtHU','auto','\x20for\x20percy\x20','START','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','increment','Stopping\x20percy','browserstackSessionName','percyCaptureMode','getDriver','RSaQS','Error\x20patching\x20','screenshot','5063700xpaZqE','../performance/constants','28011540LNBJJO','deviceName','apply','platforms','csByC','browserstackPercyMap','patch','3378185VVobur','stop','5329821riVAMd','winstonLogger','oMQtU','overrideXforPercy','./PercyCaptureMap','40461PaUnKj','Starting\x20percy','./PercyCaptureModes','wRaNl','reduce','then','forEach','app','64513ajEXXu','getPercyOptions','debug','42DUcgXJ','browserstackPercyBestPlatform','352AmCrcH','manual','chrome','percy','216423Ijheyi','measureWrapper','toLowerCase','nestedKeyValue','browserName','./PercySDK','aGTtA','AUTO_CAPTURE','prototype','kLDXZ','../logger','getName','browserStackPercyOptions','EvhiO','156oCfEvc','firefox','PHVmy','STOP','browser','init','percyAutoCapture','FFBYZ','edge'];a119_0x300f=function(){return _0x12659c;};return a119_0x300f();}const Percy=require('./Percy'),PercySDK=require(a119_0x348972(0x1c3)),PercyCaptureModes=require(a119_0x348972(0x1af)),PercyCaptureMap=require(a119_0x348972(0x1ac)),logger=require(a119_0x348972(0x1c8))[a119_0x348972(0x1a9)],helper=require('../helper'),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x348972(0x1e5));exports['startPercy']=PerformanceTester[a119_0x348972(0x1bf)](PerformanceEvents[a119_0x348972(0x1da)],async _0x5495d1=>{const _0x3e1384=a119_0x348972,_0x33b968={};_0x33b968[_0x3e1384(0x1c4)]=_0x3e1384(0x1ae);const _0x55c78b=_0x33b968;logger[_0x3e1384(0x1b7)](_0x55c78b[_0x3e1384(0x1c4)]);const _0x379d51=new Percy(_0x5495d1),_0x1db3a9=await _0x379d51['start']();if(_0x1db3a9)return _0x379d51;return null;}),exports['stopPercy']=PerformanceTester[a119_0x348972(0x1bf)](PerformanceEvents[a119_0x348972(0x1cf)],async _0x1a48c1=>{const _0x597b4d=a119_0x348972,_0x567364={};_0x567364[_0x597b4d(0x1aa)]=_0x597b4d(0x1dd);const _0x2730b6=_0x567364;return logger[_0x597b4d(0x1b7)](_0x2730b6[_0x597b4d(0x1aa)]),_0x1a48c1[_0x597b4d(0x1ee)]();}),exports['getBestPlatformForPercySnapshot']=_0xe67ac=>{const _0x4b45a4=a119_0x348972,_0x57a9da={};_0x57a9da[_0x4b45a4(0x1b0)]=function(_0xd1debf,_0x3c86ae){return _0xd1debf<_0x3c86ae;};const _0x1910cf=_0x57a9da,_0x499736={};_0x499736[_0x4b45a4(0x1bc)]=0x0,_0x499736[_0x4b45a4(0x1cd)]=0x1,_0x499736[_0x4b45a4(0x1d4)]=0x2,_0x499736['safari']=0x3;const _0x4bd725=_0x499736;return _0xe67ac[_0x4b45a4(0x1b1)]((_0x4cfb66,_0x418055,_0x282e04)=>{const _0xf8cfc0=_0x4b45a4,_0x444c65=_0xe67ac[_0x4cfb66];if(_0x418055['deviceName'])return _0x4cfb66;if(_0x444c65[_0xf8cfc0(0x1e7)])return _0x282e04;const _0x351592=_0x418055[_0xf8cfc0(0x1d0)]?_0x418055[_0xf8cfc0(0x1d0)]:_0x418055[_0xf8cfc0(0x1c2)];if(_0x351592&&_0x1910cf[_0xf8cfc0(0x1b0)](_0x4bd725[_0x351592[_0xf8cfc0(0x1c0)]()],_0x4bd725[_0x351592['toLowerCase']()]))return _0x282e04;return _0x4cfb66;},0x0);},exports[a119_0x348972(0x1d2)]=PerformanceTester[a119_0x348972(0x1bf)](PerformanceEvents[a119_0x348972(0x1c5)],async(_0x1e2380,_0x134a0a,_0x435569)=>{const _0x28291c=a119_0x348972,_0x3354ee={};_0x3354ee['csByC']=_0x28291c(0x1db);const _0x21ab7=_0x3354ee,_0x2d63ad=_0x1e2380[_0x28291c(0x1eb)];if(helper['isUndefined'](_0x1e2380[_0x28291c(0x1de)])){logger['debug'](_0x21ab7[_0x28291c(0x1ea)]);return;}const _0x1ba48b=_0x2d63ad[_0x28291c(0x1c9)](_0x1e2380['browserstackSessionName'],_0x134a0a);_0x435569[_0x28291c(0x1b4)]?await PercySDK['screenshotApp'](_0x1e2380,_0x1ba48b):await PercySDK[_0x28291c(0x1e3)](_0x1e2380,_0x1ba48b),_0x2d63ad[_0x28291c(0x1dc)](_0x1e2380[_0x28291c(0x1de)],_0x134a0a);}),exports['patchDriverPercy']=(_0x35a4f3,_0x291114,_0x590413)=>{const _0x313baf=a119_0x348972,_0x18c5bb={};_0x18c5bb[_0x313baf(0x1d7)]=_0x313baf(0x1ca),_0x18c5bb[_0x313baf(0x1e1)]='percy',_0x18c5bb[_0x313baf(0x1d6)]=function(_0x23ea79,_0x264515){return _0x23ea79!==_0x264515;},_0x18c5bb['EvhiO']=_0x313baf(0x1bb);const _0x1b1fc8=_0x18c5bb;if(!helper[_0x313baf(0x1c1)](_0x590413,[_0x1b1fc8[_0x313baf(0x1d7)],_0x1b1fc8[_0x313baf(0x1e1)]]))return;if(_0x590413[_0x313baf(0x1ca)][_0x313baf(0x1bd)]&&_0x590413[_0x313baf(0x1ca)]['percyCaptureMode']&&_0x1b1fc8['NguzJ'](_0x590413[_0x313baf(0x1ca)][_0x313baf(0x1df)],_0x1b1fc8[_0x313baf(0x1cb)])&&!_0x35a4f3[_0x313baf(0x1eb)]){global[_0x313baf(0x1de)]&&(_0x35a4f3['browserstackSessionName']=global[_0x313baf(0x1de)]),_0x35a4f3[_0x313baf(0x1eb)]=new PercyCaptureMap();const _0x5ab3f3=PercyCaptureModes[_0x590413['browserStackPercyOptions'][_0x313baf(0x1df)]];_0x5ab3f3[_0x313baf(0x1d5)]&&_0x5ab3f3[_0x313baf(0x1d5)][_0x313baf(0x1b3)](_0x31fca0=>this[_0x313baf(0x1ab)](_0x35a4f3,_0x31fca0,_0x590413)),_0x5ab3f3['element']&&_0x5ab3f3['element'][_0x313baf(0x1b3)](_0x292a10=>{const _0x5ad88e=_0x313baf;if(_0x291114[_0x5ad88e(0x1c6)]['patch'+_0x292a10])return;_0x291114[_0x5ad88e(0x1c6)][_0x5ad88e(0x1ec)+_0x292a10]=!![];const _0x30c445=_0x291114[_0x5ad88e(0x1c6)][_0x292a10];_0x291114[_0x5ad88e(0x1c6)][_0x292a10]=async function(){const _0x33e0a3=_0x5ad88e;let _0x47b9fd=_0x30c445[_0x33e0a3(0x1e8)](this,arguments);_0x47b9fd&&_0x47b9fd[_0x33e0a3(0x1b2)]&&(_0x47b9fd=await _0x47b9fd);try{const _0x16809c=this[_0x33e0a3(0x1e0)]();await exports[_0x33e0a3(0x1d2)](_0x16809c,_0x292a10,_0x590413);}catch(_0x20229d){logger['error'](_0x33e0a3(0x1e2)+_0x292a10+_0x33e0a3(0x1d9)+_0x20229d);}return _0x47b9fd;};});}},exports['overrideXforPercy']=function(_0x3a0c0e,_0x6ca121,_0x44ecbb){const _0x4b3cc6=a119_0x348972,_0x1f0b1a={};_0x1f0b1a[_0x4b3cc6(0x1d3)]=function(_0x4ebe18,_0x4da191){return _0x4ebe18+_0x4da191;},_0x1f0b1a[_0x4b3cc6(0x1c7)]='patch',_0x1f0b1a['PHVmy']=_0x4b3cc6(0x1d1);const _0x5c45d5=_0x1f0b1a,_0x108b1b=_0x5c45d5['FFBYZ'](_0x5c45d5['kLDXZ'],_0x6ca121),_0x4f12b5=_0x5c45d5['FFBYZ'](_0x5c45d5[_0x4b3cc6(0x1ce)],_0x6ca121),_0x249324=this;if(_0x3a0c0e[_0x108b1b]||!_0x3a0c0e[_0x6ca121])return;_0x3a0c0e[_0x108b1b]=!![],_0x3a0c0e[_0x4f12b5]=_0x3a0c0e[_0x6ca121],_0x3a0c0e[_0x6ca121]=async()=>{const _0x375dfd=_0x4b3cc6;try{await _0x249324[_0x375dfd(0x1d2)](_0x3a0c0e,_0x6ca121,_0x44ecbb);}catch(_0x5bc9be){logger['error'](_0x375dfd(0x1e2)+_0x6ca121+_0x375dfd(0x1d9)+_0x5bc9be);}return await _0x3a0c0e[_0x4f12b5][_0x375dfd(0x1e8)](_0x3a0c0e,arguments);};},exports[a119_0x348972(0x1b6)]=_0x42a17a=>{const _0x2a92fa=a119_0x348972,_0x414f46={};_0x414f46['HffeU']=_0x2a92fa(0x1d8);const _0x5bd6e6=_0x414f46,_0x4f7c84={};_0x4f7c84[_0x2a92fa(0x1bd)]=_0x42a17a[_0x2a92fa(0x1bd)],_0x4f7c84['percyCaptureMode']=_0x42a17a[_0x2a92fa(0x1df)]||_0x5bd6e6['HffeU'];const _0x3bd513=_0x4f7c84;_0x42a17a[_0x2a92fa(0x1bd)]&&(_0x3bd513[_0x2a92fa(0x1b9)]=exports['getBestPlatformForPercySnapshot'](_0x42a17a[_0x2a92fa(0x1e9)]));;return _0x3bd513;};
1
+ const a119_0x551401=a119_0x485a;(function(_0xb3f076,_0x49146d){const _0x2ff89e=a119_0x485a,_0x2cb1b2=_0xb3f076();while(!![]){try{const _0x33bba0=-parseInt(_0x2ff89e(0xa4))/0x1+-parseInt(_0x2ff89e(0x92))/0x2*(-parseInt(_0x2ff89e(0xaa))/0x3)+-parseInt(_0x2ff89e(0x96))/0x4*(parseInt(_0x2ff89e(0xa0))/0x5)+parseInt(_0x2ff89e(0xc1))/0x6+-parseInt(_0x2ff89e(0xca))/0x7*(parseInt(_0x2ff89e(0xb2))/0x8)+parseInt(_0x2ff89e(0xab))/0x9*(parseInt(_0x2ff89e(0x9a))/0xa)+-parseInt(_0x2ff89e(0xb4))/0xb*(-parseInt(_0x2ff89e(0x8c))/0xc);if(_0x33bba0===_0x49146d)break;else _0x2cb1b2['push'](_0x2cb1b2['shift']());}catch(_0x4dfee0){_0x2cb1b2['push'](_0x2cb1b2['shift']());}}}(a119_0xd68a,0x404ba));const Percy=require('./Percy'),PercySDK=require(a119_0x551401(0xc9)),PercyCaptureModes=require(a119_0x551401(0xa3)),PercyCaptureMap=require(a119_0x551401(0xa1)),logger=require(a119_0x551401(0xa5))['winstonLogger'],helper=require(a119_0x551401(0xc2)),PerformanceTester=require(a119_0x551401(0x93)),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x551401(0x8e));function a119_0x485a(_0x465e6f,_0x5a3c7c){const _0xd68aaf=a119_0xd68a();return a119_0x485a=function(_0x485a7d,_0x2f2242){_0x485a7d=_0x485a7d-0x82;let _0x5ad3dc=_0xd68aaf[_0x485a7d];return _0x5ad3dc;},a119_0x485a(_0x465e6f,_0x5a3c7c);}exports[a119_0x551401(0x9b)]=PerformanceTester['measureWrapper'](PerformanceEvents[a119_0x551401(0x99)],async _0x3d7af4=>{const _0x10ccd2=a119_0x551401,_0x341282={};_0x341282[_0x10ccd2(0xcd)]=_0x10ccd2(0x82);const _0x531320=_0x341282;logger[_0x10ccd2(0x8f)](_0x531320[_0x10ccd2(0xcd)]);const _0x355e31=new Percy(_0x3d7af4),_0x3f986c=await _0x355e31[_0x10ccd2(0xad)]();if(_0x3f986c)return _0x355e31;return null;}),exports[a119_0x551401(0xb7)]=PerformanceTester[a119_0x551401(0xb1)](PerformanceEvents[a119_0x551401(0x8d)],async _0x4a776d=>{const _0x225124=a119_0x551401,_0x2740a4={};_0x2740a4[_0x225124(0xcf)]=_0x225124(0x9f);const _0x584382=_0x2740a4;return logger[_0x225124(0x8f)](_0x584382[_0x225124(0xcf)]),_0x4a776d[_0x225124(0x88)]();}),exports[a119_0x551401(0x90)]=_0x44f6e9=>{const _0x5b76f0=a119_0x551401,_0x2cbe94={};_0x2cbe94[_0x5b76f0(0xc5)]=function(_0x45442c,_0x2e74c1){return _0x45442c<_0x2e74c1;};const _0x44237c=_0x2cbe94,_0x20b2b7={};_0x20b2b7[_0x5b76f0(0xbc)]=0x0,_0x20b2b7[_0x5b76f0(0xba)]=0x1,_0x20b2b7[_0x5b76f0(0xc6)]=0x2,_0x20b2b7[_0x5b76f0(0x84)]=0x3;const _0x489878=_0x20b2b7;return _0x44f6e9['reduce']((_0x184ac6,_0x55defa,_0x2a7dca)=>{const _0x9faec3=_0x5b76f0,_0x11c55c=_0x44f6e9[_0x184ac6];if(_0x55defa[_0x9faec3(0x87)])return _0x184ac6;if(_0x11c55c[_0x9faec3(0x87)])return _0x2a7dca;const _0x3572d4=_0x55defa[_0x9faec3(0x8a)]?_0x55defa[_0x9faec3(0x8a)]:_0x55defa[_0x9faec3(0xce)];if(_0x3572d4&&_0x44237c[_0x9faec3(0xc5)](_0x489878[_0x3572d4[_0x9faec3(0xd1)]()],_0x489878[_0x3572d4['toLowerCase']()]))return _0x2a7dca;return _0x184ac6;},0x0);},exports[a119_0x551401(0x98)]=PerformanceTester[a119_0x551401(0xb1)](PerformanceEvents[a119_0x551401(0x9c)],async(_0x5b40a3,_0x1195fb,_0x289763)=>{const _0x484427=a119_0x551401,_0x594d64={};_0x594d64[_0x484427(0x83)]=_0x484427(0xbf);const _0x27575e=_0x594d64,_0x3ad2d9=_0x5b40a3[_0x484427(0xb5)];if(helper[_0x484427(0x9d)](_0x5b40a3[_0x484427(0x97)])){logger['debug'](_0x27575e[_0x484427(0x83)]);return;}const _0x41bac7=_0x3ad2d9[_0x484427(0xb8)](_0x5b40a3['browserstackSessionName'],_0x1195fb);_0x289763[_0x484427(0x94)]?await PercySDK[_0x484427(0xc7)](_0x5b40a3,_0x41bac7):await PercySDK[_0x484427(0xb6)](_0x5b40a3,_0x41bac7),_0x3ad2d9[_0x484427(0xd2)](_0x5b40a3['browserstackSessionName'],_0x1195fb);}),exports[a119_0x551401(0xb3)]=(_0x48426d,_0x41ef76,_0x4bff8a)=>{const _0xb64b19=a119_0x551401,_0x584986={};_0x584986[_0xb64b19(0xa6)]='browserStackPercyOptions',_0x584986[_0xb64b19(0xbe)]=_0xb64b19(0xae),_0x584986[_0xb64b19(0x8b)]=function(_0x55ecc1,_0xb6fd29){return _0x55ecc1!==_0xb6fd29;},_0x584986[_0xb64b19(0x91)]=_0xb64b19(0x9e);const _0x18fc77=_0x584986;if(!helper[_0xb64b19(0xc8)](_0x4bff8a,[_0x18fc77[_0xb64b19(0xa6)],_0x18fc77[_0xb64b19(0xbe)]]))return;if(_0x4bff8a[_0xb64b19(0xbd)][_0xb64b19(0xae)]&&_0x4bff8a[_0xb64b19(0xbd)][_0xb64b19(0x89)]&&_0x18fc77[_0xb64b19(0x8b)](_0x4bff8a[_0xb64b19(0xbd)][_0xb64b19(0x89)],_0x18fc77['rAKFs'])&&!_0x48426d[_0xb64b19(0xb5)]){global['browserstackSessionName']&&(_0x48426d[_0xb64b19(0x97)]=global[_0xb64b19(0x97)]),_0x48426d[_0xb64b19(0xb5)]=new PercyCaptureMap();const _0x1734f2=PercyCaptureModes[_0x4bff8a[_0xb64b19(0xbd)][_0xb64b19(0x89)]];_0x1734f2['driver']&&_0x1734f2[_0xb64b19(0xc0)]['forEach'](_0x2e26cf=>this[_0xb64b19(0x95)](_0x48426d,_0x2e26cf,_0x4bff8a)),_0x1734f2[_0xb64b19(0x85)]&&_0x1734f2[_0xb64b19(0x85)][_0xb64b19(0xa9)](_0x28d01a=>{const _0x14e25f=_0xb64b19;if(_0x41ef76[_0x14e25f(0xac)][_0x14e25f(0xbb)+_0x28d01a])return;_0x41ef76[_0x14e25f(0xac)][_0x14e25f(0xbb)+_0x28d01a]=!![];const _0x31d269=_0x41ef76[_0x14e25f(0xac)][_0x28d01a];_0x41ef76[_0x14e25f(0xac)][_0x28d01a]=async function(){const _0x5ac75b=_0x14e25f;let _0x5db0db=_0x31d269[_0x5ac75b(0xa7)](this,arguments);_0x5db0db&&_0x5db0db[_0x5ac75b(0xa8)]&&(_0x5db0db=await _0x5db0db);try{const _0x5589b0=this[_0x5ac75b(0xd0)]();await exports[_0x5ac75b(0x98)](_0x5589b0,_0x28d01a,_0x4bff8a);}catch(_0xf2faec){logger[_0x5ac75b(0xcb)]('Error\x20patching\x20'+_0x28d01a+_0x5ac75b(0x86)+_0xf2faec);}return _0x5db0db;};});}},exports[a119_0x551401(0x95)]=function(_0x59ce8a,_0xad4905,_0x238aef){const _0x10f5f1=a119_0x551401,_0x5b6edc={};_0x5b6edc['VScPI']=function(_0x34d027,_0x3b09fb){return _0x34d027+_0x3b09fb;},_0x5b6edc['Qnsyf']=_0x10f5f1(0xbb),_0x5b6edc[_0x10f5f1(0xb0)]=_0x10f5f1(0xb9);const _0x47c7c4=_0x5b6edc,_0x103bbc=_0x47c7c4[_0x10f5f1(0xaf)](_0x47c7c4['Qnsyf'],_0xad4905),_0x38af20=_0x47c7c4['VScPI'](_0x47c7c4['nvgRC'],_0xad4905),_0x44fd17=this;if(_0x59ce8a[_0x103bbc]||!_0x59ce8a[_0xad4905])return;_0x59ce8a[_0x103bbc]=!![],_0x59ce8a[_0x38af20]=_0x59ce8a[_0xad4905],_0x59ce8a[_0xad4905]=async()=>{const _0x129235=_0x10f5f1;try{await _0x44fd17[_0x129235(0x98)](_0x59ce8a,_0xad4905,_0x238aef);}catch(_0xc3d665){logger[_0x129235(0xcb)](_0x129235(0xcc)+_0xad4905+'\x20for\x20percy\x20'+_0xc3d665);}return await _0x59ce8a[_0x38af20][_0x129235(0xa7)](_0x59ce8a,arguments);};},exports['getPercyOptions']=_0x3f8f4c=>{const _0x48f0c4=a119_0x551401,_0x4926d6={};_0x4926d6[_0x48f0c4(0xa2)]='auto';const _0x179ae6=_0x4926d6,_0x17a2a2={};_0x17a2a2[_0x48f0c4(0xae)]=_0x3f8f4c[_0x48f0c4(0xae)],_0x17a2a2[_0x48f0c4(0x89)]=_0x3f8f4c['percyCaptureMode']||_0x179ae6['Roivd'];const _0x414f09=_0x17a2a2;_0x3f8f4c[_0x48f0c4(0xae)]&&(_0x414f09[_0x48f0c4(0xc4)]=exports[_0x48f0c4(0x90)](_0x3f8f4c[_0x48f0c4(0xc3)]));;return _0x414f09;};function a119_0xd68a(){const _0x43812d=['605676ASWNPC','STOP','../performance/constants','debug','getBestPlatformForPercySnapshot','rAKFs','72sUiudC','../performance/performance-tester','app','overrideXforPercy','254084hoKqos','browserstackSessionName','percyAutoCapture','START','18590GebWVg','startPercy','AUTO_CAPTURE','isUndefined','manual','Stopping\x20percy','5BsVNND','./PercyCaptureMap','Roivd','./PercyCaptureModes','200578sBvLOu','../logger','dxFxd','apply','then','forEach','13122OVZzmu','909RAwiFX','prototype','start','percy','VScPI','nvgRC','measureWrapper','616aSXiZo','patchDriverPercy','77QjTvaB','browserstackPercyMap','screenshot','stopPercy','getName','init','firefox','patch','chrome','browserStackPercyOptions','YhTWV','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','driver','680604lSvTXU','../helper','platforms','browserstackPercyBestPlatform','NtOVh','edge','screenshotApp','nestedKeyValue','./PercySDK','25865TsHCOk','error','Error\x20patching\x20','TURon','browserName','Eexfc','getDriver','toLowerCase','increment','Starting\x20percy','zwBue','safari','element','\x20for\x20percy\x20','deviceName','stop','percyCaptureMode','browser','qkxNU'];a119_0xd68a=function(){return _0x43812d;};return a119_0xd68a();}