browserstack-node-sdk 1.40.7 → 1.40.8

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 (173) 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_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/loadUtils.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/v2/TestInfo.js +1 -1
  98. package/src/bin/v2/browserstackCLI.js +1 -1
  99. package/src/bin/v2/cliUtils.js +1 -1
  100. package/src/bin/v2/customTagManager.js +1 -1
  101. package/src/bin/v2/eventDispatcher.js +1 -1
  102. package/src/bin/v2/framework/automationFramework.js +1 -1
  103. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  104. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  105. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  106. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  107. package/src/bin/v2/framework/testFramework.js +1 -1
  108. package/src/bin/v2/grpcClient.js +1 -1
  109. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  110. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  111. package/src/bin/v2/instances/trackedContext.js +1 -1
  112. package/src/bin/v2/instances/trackedInstance.js +1 -1
  113. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  114. package/src/bin/v2/modules/baseModule.js +1 -1
  115. package/src/bin/v2/modules/observabilityModule.js +1 -1
  116. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  117. package/src/bin/v2/modules/testhubModule.js +1 -1
  118. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  119. package/src/bin/v2/state/hookState.js +1 -1
  120. package/src/bin/v2/state/testFrameworkState.js +1 -1
  121. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  122. package/src/bin/vanilla-js/command.js +1 -1
  123. package/src/browserStackSdk.js +1 -1
  124. package/src/helpers/BrowserStackSetup.js +1 -1
  125. package/src/helpers/accessibility-automation/constants.js +1 -1
  126. package/src/helpers/accessibility-automation/helper.js +1 -1
  127. package/src/helpers/accessibility-automation/scripts.js +1 -1
  128. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  129. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  130. package/src/helpers/ats/constants.js +1 -1
  131. package/src/helpers/ats/helper.js +1 -1
  132. package/src/helpers/capsMapping.js +1 -1
  133. package/src/helpers/central-scanner/constants.js +1 -1
  134. package/src/helpers/central-scanner/helpers.js +1 -1
  135. package/src/helpers/classLogger.js +1 -1
  136. package/src/helpers/globals.js +1 -1
  137. package/src/helpers/helper.js +1 -1
  138. package/src/helpers/logger.js +1 -1
  139. package/src/helpers/metadata.js +1 -1
  140. package/src/helpers/patchHelper.js +1 -1
  141. package/src/helpers/patchHelpers.js +1 -1
  142. package/src/helpers/percy/Percy.js +1 -1
  143. package/src/helpers/percy/PercyBinary.js +1 -1
  144. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  145. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  146. package/src/helpers/percy/PercySDK.js +1 -1
  147. package/src/helpers/percy/index.js +1 -1
  148. package/src/helpers/percy/utils.js +1 -1
  149. package/src/helpers/performance/constants.js +1 -1
  150. package/src/helpers/performance/performance-tester.js +1 -1
  151. package/src/helpers/processHelper.js +1 -1
  152. package/src/helpers/request-spy.js +1 -1
  153. package/src/helpers/setKeepAlive.js +1 -1
  154. package/src/helpers/test-observability/constants.js +1 -1
  155. package/src/helpers/test-observability/error-handler.js +1 -1
  156. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  157. package/src/helpers/test-observability/sessionHandler.js +1 -1
  158. package/src/helpers/test-observability/utils.js +1 -1
  159. package/src/helpers/test-orchestration/constants.js +1 -1
  160. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  161. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  162. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  163. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  164. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  165. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  166. package/src/helpers/testhub/constants.js +1 -1
  167. package/src/helpers/testhub/testhubHandler.js +1 -1
  168. package/src/helpers/testhub/utils.js +1 -1
  169. package/src/helpers/timeoutPromise.js +1 -1
  170. package/src/helpers/utilities.js +1 -1
  171. package/src/helpers/w3cMapping.js +1 -1
  172. package/src/hubAllocationMethods.js +1 -1
  173. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a50_0x3c72(_0x4723c8,_0x13200d){const _0x301889=a50_0x3018();return a50_0x3c72=function(_0x3c72d2,_0x1bb4bb){_0x3c72d2=_0x3c72d2-0x9d;let _0x3a597d=_0x301889[_0x3c72d2];return _0x3a597d;},a50_0x3c72(_0x4723c8,_0x13200d);}function a50_0x3018(){const _0x4b52c9=['../../helpers/performance/constants','kwSPe','run','startMonitoring','3470940ZxJCuw','../../helpers/test-observability/utils','EVENTS','nyoVo','13018929jgiFBK','4858506gqLQKc','configuration','BrmSu','runTest','mocha','../launcher/launcher','cucumber-js','stopMonitoring','6JMDSyF','../../helpers/performance/performance-tester','gVVWk','vanilla','runVanillaTest','2023008gXEJvt','formatter','29816896CIIEFx','1066198pMOcOn','vlrEz','end','9099250iDBLlW'];a50_0x3018=function(){return _0x4b52c9;};return a50_0x3018();}const a50_0x4ca833=a50_0x3c72;(function(_0x1a8928,_0x5ec3f7){const _0x1c859a=a50_0x3c72,_0x103e71=_0x1a8928();while(!![]){try{const _0x285c28=parseInt(_0x1c859a(0xad))/0x1+-parseInt(_0x1c859a(0xb5))/0x2+-parseInt(_0x1c859a(0x9d))/0x3+-parseInt(_0x1c859a(0xaa))/0x4+-parseInt(_0x1c859a(0xb0))/0x5+parseInt(_0x1c859a(0xa5))/0x6*(parseInt(_0x1c859a(0xb9))/0x7)+parseInt(_0x1c859a(0xac))/0x8;if(_0x285c28===_0x5ec3f7)break;else _0x103e71['push'](_0x103e71['shift']());}catch(_0x15f052){_0x103e71['push'](_0x103e71['shift']());}}}(a50_0x3018,0xed727));const PerformanceEvents=require(a50_0x4ca833(0xb1))[a50_0x4ca833(0xb7)],PerformanceTester=require(a50_0x4ca833(0xa6)),{sleep}=require(a50_0x4ca833(0xb6));exports[a50_0x4ca833(0xa0)]=async(_0xb79515,_0x24e3f0)=>{const _0x526021=a50_0x4ca833,_0x2a5f8a={'BrmSu':function(_0x23acdc,_0x3464e3){return _0x23acdc(_0x3464e3);},'adgev':_0x526021(0xa2),'vlrEz':_0x526021(0xa1),'gVVWk':function(_0x329553,_0x8c0c5){return _0x329553(_0x8c0c5);}};PerformanceTester[_0x526021(0xb4)]();const _0x5e60fd=_0x2a5f8a[_0x526021(0x9f)](require,_0x2a5f8a['adgev']),_0x2821c5=new _0x5e60fd(_0x2a5f8a[_0x526021(0xae)],_0xb79515,_0x24e3f0),_0x316984=await _0x2821c5['run']();return PerformanceTester[_0x526021(0xaf)](PerformanceEvents['SDK_POST_TEST']),await _0x2a5f8a[_0x526021(0xa7)](sleep,0x3e8),PerformanceTester[_0x526021(0xa4)](),_0x316984;},exports['runCucumberTest']=async(_0x2f0097,_0x4c9d8b,_0x1e4144,_0x24a7bc,_0x72cd15)=>{const _0x2b205d=a50_0x4ca833,_0x53cfe6={'YzEVn':function(_0x395212,_0x351b11){return _0x395212(_0x351b11);},'kwSPe':'../launcher/launcher','jhDSD':_0x2b205d(0xa3)},_0x43e2ab={'capability':_0x2f0097,..._0x4c9d8b},_0x366830={};_0x366830[_0x2b205d(0x9e)]=_0x43e2ab,_0x366830[_0x2b205d(0xab)]=_0x72cd15;const _0x2a2af3=_0x366830,_0x4fc054=_0x53cfe6['YzEVn'](require,_0x53cfe6[_0x2b205d(0xb2)]),_0x25c77b=new _0x4fc054(_0x53cfe6['jhDSD'],_0x2a2af3,_0x1e4144,_0x24a7bc);return await _0x25c77b['run']();},exports[a50_0x4ca833(0xa9)]=async _0x467698=>{const _0x4d0079=a50_0x4ca833,_0x4c046e={'nyoVo':function(_0x2c9d73,_0x2e29a7){return _0x2c9d73(_0x2e29a7);},'ESjJu':'../launcher/launcher','FQqhW':_0x4d0079(0xa8)},_0x4b76d3=_0x4c046e[_0x4d0079(0xb8)](require,_0x4c046e['ESjJu']),_0x19cf8b=new _0x4b76d3(_0x4c046e['FQqhW'],_0x467698);return await _0x19cf8b[_0x4d0079(0xb3)]();};
1
+ const a50_0x4d6156=a50_0x18fd;(function(_0x3f345c,_0x242a32){const _0x69bc77=a50_0x18fd,_0x59e7e8=_0x3f345c();while(!![]){try{const _0x597d60=parseInt(_0x69bc77(0x68))/0x1+parseInt(_0x69bc77(0x71))/0x2+parseInt(_0x69bc77(0x7a))/0x3+-parseInt(_0x69bc77(0x80))/0x4+parseInt(_0x69bc77(0x67))/0x5*(parseInt(_0x69bc77(0x6d))/0x6)+-parseInt(_0x69bc77(0x7e))/0x7+-parseInt(_0x69bc77(0x76))/0x8;if(_0x597d60===_0x242a32)break;else _0x59e7e8['push'](_0x59e7e8['shift']());}catch(_0x32f74e){_0x59e7e8['push'](_0x59e7e8['shift']());}}}(a50_0x334e,0x5f2ed));const PerformanceEvents=require(a50_0x4d6156(0x79))[a50_0x4d6156(0x78)],PerformanceTester=require(a50_0x4d6156(0x85)),{sleep}=require(a50_0x4d6156(0x7f));function a50_0x18fd(_0x127799,_0x4f12bd){const _0x334ec5=a50_0x334e();return a50_0x18fd=function(_0x18fd00,_0x2863bd){_0x18fd00=_0x18fd00-0x67;let _0x558f0f=_0x334ec5[_0x18fd00];return _0x558f0f;},a50_0x18fd(_0x127799,_0x4f12bd);}function a50_0x334e(){const _0x973f2=['startMonitoring','rKFTs','nrFzc','66ituafC','configuration','runVanillaTest','run','1092404ACbLJG','AHGQs','runTest','end','vanilla','1533528xQsfCc','QLQyV','EVENTS','../../helpers/performance/constants','278619SPcMRS','MbgZK','syLDO','../launcher/launcher','1379861YAgMfm','../../helpers/test-observability/utils','2085912OCLojJ','stopMonitoring','SDK_POST_TEST','gAFeC','formatter','../../helpers/performance/performance-tester','103745hHWWrh','432847GCjNLg','cucumber-js'];a50_0x334e=function(){return _0x973f2;};return a50_0x334e();}exports[a50_0x4d6156(0x73)]=async(_0xd94f19,_0x879577)=>{const _0x2cd958=a50_0x4d6156,_0x41713d={'atTXG':function(_0x3a81c8,_0x304678){return _0x3a81c8(_0x304678);},'AHGQs':'../launcher/launcher','nrFzc':'mocha','MbgZK':function(_0x522bac,_0x49cb42){return _0x522bac(_0x49cb42);}};PerformanceTester[_0x2cd958(0x6a)]();const _0x557391=_0x41713d['atTXG'](require,_0x41713d[_0x2cd958(0x72)]),_0x401df9=new _0x557391(_0x41713d[_0x2cd958(0x6c)],_0xd94f19,_0x879577),_0x5b2de9=await _0x401df9[_0x2cd958(0x70)]();return PerformanceTester[_0x2cd958(0x74)](PerformanceEvents[_0x2cd958(0x82)]),await _0x41713d[_0x2cd958(0x7b)](sleep,0x3e8),PerformanceTester[_0x2cd958(0x81)](),_0x5b2de9;},exports['runCucumberTest']=async(_0x569b5c,_0x4d0005,_0x12bdda,_0x215803,_0x235f7b)=>{const _0x1a00c7=a50_0x4d6156,_0x4e8477={'gAFeC':function(_0x5ea0ac,_0x414869){return _0x5ea0ac(_0x414869);},'QLQyV':_0x1a00c7(0x7d),'EEoZb':_0x1a00c7(0x69)},_0x377f45={'capability':_0x569b5c,..._0x4d0005},_0x411b06={};_0x411b06[_0x1a00c7(0x6e)]=_0x377f45,_0x411b06[_0x1a00c7(0x84)]=_0x235f7b;const _0x117a0c=_0x411b06,_0xfac33f=_0x4e8477[_0x1a00c7(0x83)](require,_0x4e8477[_0x1a00c7(0x77)]),_0x15e19a=new _0xfac33f(_0x4e8477['EEoZb'],_0x117a0c,_0x12bdda,_0x215803);return await _0x15e19a[_0x1a00c7(0x70)]();},exports[a50_0x4d6156(0x6f)]=async _0x3fdd35=>{const _0x322309=a50_0x4d6156,_0x397c49={'rKFTs':function(_0x1b7b2c,_0x5546d3){return _0x1b7b2c(_0x5546d3);},'skCHb':'../launcher/launcher','syLDO':_0x322309(0x75)},_0x3e8978=_0x397c49[_0x322309(0x6b)](require,_0x397c49['skCHb']),_0x7661e8=new _0x3e8978(_0x397c49[_0x322309(0x7c)],_0x3fdd35);return await _0x7661e8[_0x322309(0x70)]();};
@@ -1 +1 @@
1
- const a51_0x5af600=a51_0x19df;(function(_0x376c92,_0xe7e7fd){const _0x24dc1f=a51_0x19df,_0x2704fd=_0x376c92();while(!![]){try{const _0x2ff2eb=-parseInt(_0x24dc1f(0x11c))/0x1+parseInt(_0x24dc1f(0x110))/0x2+parseInt(_0x24dc1f(0x11b))/0x3*(parseInt(_0x24dc1f(0x10d))/0x4)+-parseInt(_0x24dc1f(0x115))/0x5*(-parseInt(_0x24dc1f(0x111))/0x6)+-parseInt(_0x24dc1f(0x113))/0x7*(-parseInt(_0x24dc1f(0x10e))/0x8)+parseInt(_0x24dc1f(0x117))/0x9*(-parseInt(_0x24dc1f(0x10f))/0xa)+parseInt(_0x24dc1f(0x112))/0xb*(-parseInt(_0x24dc1f(0x114))/0xc);if(_0x2ff2eb===_0xe7e7fd)break;else _0x2704fd['push'](_0x2704fd['shift']());}catch(_0x56dfc6){_0x2704fd['push'](_0x2704fd['shift']());}}}(a51_0xc020,0x2243a));const {runTest,runCucumberTest,runVanillaTest}=require(a51_0x5af600(0x11a));function a51_0x19df(_0x26fc42,_0x1295ce){const _0xc02031=a51_0xc020();return a51_0x19df=function(_0x19dfd7,_0x348a20){_0x19dfd7=_0x19dfd7-0x10c;let _0x3e0dfa=_0xc02031[_0x19dfd7];return _0x3e0dfa;},a51_0x19df(_0x26fc42,_0x1295ce);}function a51_0xc020(){const _0x56fcd3=['88552UvjGCt','1045130ijpYAz','227206vtUJXP','57102vkwRCi','143ufjuNc','161zOtgAQ','323700LMNkfl','100CYAShe','cucumberWorker','9EfEaGD','worker','vanillaWorker','./runTest','80169DKNAmZ','203503MoaVmn','RZKOq','36YQtSoV'];a51_0xc020=function(){return _0x56fcd3;};return a51_0xc020();}exports[a51_0x5af600(0x118)]=async(_0x4a2b46,_0x82398b)=>{const _0x3789fb={'ciRBg':function(_0x2b37b6,_0x2d86b4,_0xa1b7c2){return _0x2b37b6(_0x2d86b4,_0xa1b7c2);}};return await _0x3789fb['ciRBg'](runTest,_0x4a2b46,_0x82398b);},exports[a51_0x5af600(0x116)]=async(_0x1c4916,_0x27275f,_0x3269f3,_0x5b92b9,_0x280d48)=>{const _0x7f1040=a51_0x5af600,_0x18b8ed={'RZKOq':function(_0x1b0773,_0x40aefd,_0x694d90,_0xfaab35,_0x36f21f,_0x2e1073){return _0x1b0773(_0x40aefd,_0x694d90,_0xfaab35,_0x36f21f,_0x2e1073);}};return await _0x18b8ed[_0x7f1040(0x10c)](runCucumberTest,_0x1c4916,_0x27275f,_0x3269f3,_0x5b92b9,_0x280d48);},exports[a51_0x5af600(0x119)]=async _0x580e54=>{const _0x47745d={'tSchy':function(_0x2e75e8,_0x389f97){return _0x2e75e8(_0x389f97);}};return await _0x47745d['tSchy'](runVanillaTest,_0x580e54);};
1
+ const a51_0x215b47=a51_0x4b70;(function(_0x11e51,_0x584767){const _0x11d8ad=a51_0x4b70,_0x1162c4=_0x11e51();while(!![]){try{const _0x8c1892=-parseInt(_0x11d8ad(0x185))/0x1+parseInt(_0x11d8ad(0x18f))/0x2+-parseInt(_0x11d8ad(0x181))/0x3+-parseInt(_0x11d8ad(0x184))/0x4*(-parseInt(_0x11d8ad(0x189))/0x5)+parseInt(_0x11d8ad(0x18b))/0x6+-parseInt(_0x11d8ad(0x18a))/0x7*(-parseInt(_0x11d8ad(0x187))/0x8)+-parseInt(_0x11d8ad(0x18d))/0x9*(-parseInt(_0x11d8ad(0x18e))/0xa);if(_0x8c1892===_0x584767)break;else _0x1162c4['push'](_0x1162c4['shift']());}catch(_0x271a9c){_0x1162c4['push'](_0x1162c4['shift']());}}}(a51_0x3d3c,0x6aeea));function a51_0x4b70(_0x52659a,_0x458bb3){const _0x3d3c44=a51_0x3d3c();return a51_0x4b70=function(_0x4b7093,_0x14bef3){_0x4b7093=_0x4b7093-0x180;let _0x1aea17=_0x3d3c44[_0x4b7093];return _0x1aea17;},a51_0x4b70(_0x52659a,_0x458bb3);}const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');exports[a51_0x215b47(0x18c)]=async(_0x207df1,_0x5ad669)=>{const _0x16211d=a51_0x215b47,_0x5c49c7={'IlYcj':function(_0x1a0e83,_0x972a30,_0x51bcc5){return _0x1a0e83(_0x972a30,_0x51bcc5);}};return await _0x5c49c7[_0x16211d(0x183)](runTest,_0x207df1,_0x5ad669);},exports[a51_0x215b47(0x180)]=async(_0x5c81f0,_0x1dcbff,_0x2d8c48,_0x154816,_0x52c04f)=>{const _0x3bc3f0=a51_0x215b47,_0x2f93ef={'ddzTw':function(_0x2862be,_0x5d020a,_0x11de63,_0x51a3ab,_0x41d44d,_0x3f5b52){return _0x2862be(_0x5d020a,_0x11de63,_0x51a3ab,_0x41d44d,_0x3f5b52);}};return await _0x2f93ef[_0x3bc3f0(0x182)](runCucumberTest,_0x5c81f0,_0x1dcbff,_0x2d8c48,_0x154816,_0x52c04f);},exports[a51_0x215b47(0x186)]=async _0x1b12db=>{const _0x18f99=a51_0x215b47,_0x437480={'gXFwU':function(_0x296fdf,_0x213eca){return _0x296fdf(_0x213eca);}};return await _0x437480[_0x18f99(0x188)](runVanillaTest,_0x1b12db);};function a51_0x3d3c(){const _0xf99181=['cucumberWorker','164313pHtQex','ddzTw','IlYcj','844OwjwGI','625919eVcYjv','vanillaWorker','32puXfOj','gXFwU','2855HvXhcm','380688oflvQN','512616eRSiQt','worker','3586671qIsrGY','10JftTrP','593424qZtxXD'];a51_0x3d3c=function(){return _0xf99181;};return a51_0x3d3c();}
@@ -1 +1 @@
1
- const a52_0x4fb370=a52_0x1c9b;(function(_0x13f3dd,_0x4694ba){const _0x1e2216=a52_0x1c9b,_0x390ead=_0x13f3dd();while(!![]){try{const _0x472bc9=parseInt(_0x1e2216(0x199))/0x1+-parseInt(_0x1e2216(0x123))/0x2+-parseInt(_0x1e2216(0x155))/0x3*(-parseInt(_0x1e2216(0x16a))/0x4)+parseInt(_0x1e2216(0x1bc))/0x5*(-parseInt(_0x1e2216(0x18d))/0x6)+-parseInt(_0x1e2216(0x171))/0x7*(-parseInt(_0x1e2216(0x15b))/0x8)+parseInt(_0x1e2216(0x19f))/0x9*(parseInt(_0x1e2216(0x1cb))/0xa)+-parseInt(_0x1e2216(0x1a7))/0xb;if(_0x472bc9===_0x4694ba)break;else _0x390ead['push'](_0x390ead['shift']());}catch(_0x35b0d0){_0x390ead['push'](_0x390ead['shift']());}}}(a52_0x786d,0x34f73));const a52_0x2f7064={};a52_0x2f7064[a52_0x4fb370(0x11e)]=a52_0x4fb370(0x17b),a52_0x2f7064['HELP']=a52_0x4fb370(0x126);const a52_0x5a93d1={};a52_0x5a93d1['INFO']=a52_0x4fb370(0x187);const a52_0x1625b9={};a52_0x1625b9['INFO']=a52_0x4fb370(0x19e);const a52_0x3075b4={};a52_0x3075b4[a52_0x4fb370(0x11e)]=a52_0x4fb370(0x1ca);const a52_0x3bf40f={};a52_0x3bf40f[a52_0x4fb370(0x11e)]=a52_0x4fb370(0x12b);const a52_0x1f89e3={};a52_0x1f89e3[a52_0x4fb370(0x11e)]=a52_0x4fb370(0x1ab);const a52_0x37dfdb={};a52_0x37dfdb['INFO']='Run\x20playwright\x20tests\x20on\x20Browserstack';const a52_0x3e8af1={};a52_0x3e8af1[a52_0x4fb370(0x11e)]=a52_0x4fb370(0x107);const a52_0x554f30={};a52_0x554f30[a52_0x4fb370(0x11e)]=a52_0x4fb370(0x147);const a52_0x4f590f={};a52_0x4f590f[a52_0x4fb370(0x11e)]=a52_0x4fb370(0x112);const a52_0x261805={};function a52_0x1c9b(_0x279bbe,_0x43fe52){const _0x786d2=a52_0x786d();return a52_0x1c9b=function(_0x1c9bd1,_0x13fce8){_0x1c9bd1=_0x1c9bd1-0xf9;let _0xb79fd8=_0x786d2[_0x1c9bd1];return _0xb79fd8;},a52_0x1c9b(_0x279bbe,_0x43fe52);}a52_0x261805['PLAYWRIGHT']=a52_0x4fb370(0x13e),a52_0x261805[a52_0x4fb370(0x195)]='mocha',a52_0x261805[a52_0x4fb370(0x16e)]=a52_0x4fb370(0x198),a52_0x261805[a52_0x4fb370(0x18b)]=a52_0x4fb370(0x139),a52_0x261805['CODECEPT_CUCUMBER']=a52_0x4fb370(0x1c6),a52_0x261805[a52_0x4fb370(0x14e)]=a52_0x4fb370(0x170);const a52_0x5d147f={};a52_0x5d147f[a52_0x4fb370(0x1a6)]='Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file',a52_0x5d147f[a52_0x4fb370(0x1b2)]=a52_0x4fb370(0x13c),a52_0x5d147f[a52_0x4fb370(0x1bf)]='name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file',a52_0x5d147f['invalidTestInputType']=a52_0x4fb370(0x175);const a52_0x6f5c2c={};a52_0x6f5c2c['COMMONJS']='commonjs',a52_0x6f5c2c[a52_0x4fb370(0x17f)]=a52_0x4fb370(0x1cd);const a52_0x34f738={};a52_0x34f738[a52_0x4fb370(0x1c0)]=0xfde8,a52_0x34f738['Cucumber-JS']=0xfde8,a52_0x34f738[a52_0x4fb370(0x185)]=0x186a0;const a52_0x11d196={};a52_0x11d196[a52_0x4fb370(0x156)]=[a52_0x4fb370(0x19b),a52_0x4fb370(0x11f),a52_0x4fb370(0x1bd),a52_0x4fb370(0x10c),a52_0x4fb370(0x1c8),a52_0x4fb370(0x152),'browserstack.accessKey',a52_0x4fb370(0x184),a52_0x4fb370(0x180),a52_0x4fb370(0x12d),a52_0x4fb370(0x145)],a52_0x11d196[a52_0x4fb370(0x18f)]=[a52_0x4fb370(0xfe),a52_0x4fb370(0x11b),'localProxyUser',a52_0x4fb370(0x10d)];const a52_0x10d00c={};a52_0x10d00c['browserstackLocal']=a52_0x4fb370(0x161),a52_0x10d00c['browserStackLocalOptions']=a52_0x4fb370(0x18f),a52_0x10d00c[a52_0x4fb370(0x158)]=a52_0x4fb370(0x18f),a52_0x10d00c[a52_0x4fb370(0x1af)]=a52_0x4fb370(0x1af),a52_0x10d00c[a52_0x4fb370(0x138)]='platforms',a52_0x10d00c[a52_0x4fb370(0xf9)]='logLevel',a52_0x10d00c[a52_0x4fb370(0x1bd)]=a52_0x4fb370(0x1bd),a52_0x10d00c[a52_0x4fb370(0x10c)]=a52_0x4fb370(0x10c),a52_0x10d00c['framework']=a52_0x4fb370(0x132),a52_0x10d00c[a52_0x4fb370(0x143)]=a52_0x4fb370(0x143),a52_0x10d00c[a52_0x4fb370(0x1c3)]=a52_0x4fb370(0x1c3),a52_0x10d00c[a52_0x4fb370(0x1c2)]='testObservabilityOptions',a52_0x10d00c['customVariables']='customVariables',a52_0x10d00c[a52_0x4fb370(0x1b7)]=a52_0x4fb370(0x17e),a52_0x10d00c['browserstackAutomation']='browserstackAutomation',a52_0x10d00c[a52_0x4fb370(0xfa)]=a52_0x4fb370(0xfa),a52_0x10d00c[a52_0x4fb370(0x164)]='percy',a52_0x10d00c[a52_0x4fb370(0x141)]=a52_0x4fb370(0x141),a52_0x10d00c[a52_0x4fb370(0xfc)]=a52_0x4fb370(0xfc),a52_0x10d00c[a52_0x4fb370(0x11c)]=a52_0x4fb370(0x11c),a52_0x10d00c[a52_0x4fb370(0x190)]=a52_0x4fb370(0x190),a52_0x10d00c[a52_0x4fb370(0x16b)]=a52_0x4fb370(0x16b),a52_0x10d00c[a52_0x4fb370(0x1b9)]='turboScale',a52_0x10d00c[a52_0x4fb370(0x15c)]=a52_0x4fb370(0x15c),a52_0x10d00c[a52_0x4fb370(0x10b)]='proxySettings',a52_0x10d00c[a52_0x4fb370(0x1a5)]=a52_0x4fb370(0x1a5);const a52_0x3e0fe5={};a52_0x3e0fe5[a52_0x4fb370(0x179)]=a52_0x2f7064,a52_0x3e0fe5['JEST']=a52_0x5a93d1,a52_0x3e0fe5[a52_0x4fb370(0x195)]=a52_0x1625b9,a52_0x3e0fe5['CUCUMBER']=a52_0x3075b4,a52_0x3e0fe5[a52_0x4fb370(0x15f)]=a52_0x3bf40f,a52_0x3e0fe5[a52_0x4fb370(0x140)]=a52_0x1f89e3,a52_0x3e0fe5[a52_0x4fb370(0x12a)]=a52_0x37dfdb,a52_0x3e0fe5[a52_0x4fb370(0x16d)]=a52_0x3e8af1,a52_0x3e0fe5[a52_0x4fb370(0x1be)]=a52_0x554f30,a52_0x3e0fe5[a52_0x4fb370(0x1b8)]=a52_0x4f590f,a52_0x3e0fe5[a52_0x4fb370(0x1b1)]=0xf*0x3c*0x3e8,a52_0x3e0fe5['hubUrl']=a52_0x4fb370(0x111),a52_0x3e0fe5['TCG_URL']=a52_0x4fb370(0x1cc),a52_0x3e0fe5[a52_0x4fb370(0x146)]='use',a52_0x3e0fe5['HUB_URL_REGEX']=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x3e0fe5['ATS_HUB_URL_REGEX']=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x3e0fe5[a52_0x4fb370(0xff)]=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x3e0fe5['ROOT_CAPS']=[a52_0x4fb370(0x116),'pageLoadStrategy',a52_0x4fb370(0x10a),a52_0x4fb370(0x163),a52_0x4fb370(0x1b4),a52_0x4fb370(0x11d),a52_0x4fb370(0x1c5),a52_0x4fb370(0x104),'acceptSslCert',a52_0x4fb370(0x18e),a52_0x4fb370(0x134),a52_0x4fb370(0x1a4),a52_0x4fb370(0x14c)],a52_0x3e0fe5[a52_0x4fb370(0x133)]=/^[\w-]+:.*$/,a52_0x3e0fe5[a52_0x4fb370(0x18c)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x3e0fe5[a52_0x4fb370(0xfd)]=a52_0x4fb370(0x174),a52_0x3e0fe5['BROWSERSTACK_API_URL']='https://api.browserstack.com',a52_0x3e0fe5['APP_UPLOAD_URL']=a52_0x4fb370(0x10e),a52_0x3e0fe5[a52_0x4fb370(0x13f)]='sdk/v1/update_cli',a52_0x3e0fe5[a52_0x4fb370(0x1a3)]='sdk/v1/event',a52_0x3e0fe5[a52_0x4fb370(0x1c4)]=[a52_0x4fb370(0x148),a52_0x4fb370(0x194)],a52_0x3e0fe5['APP_AUTOMATE_PRODUCTS']=[a52_0x4fb370(0x118),'observability'],a52_0x3e0fe5['PRODUCT_IF_NOT_BROWSERSTACK_INFRA']=[a52_0x4fb370(0x194)],a52_0x3e0fe5['OBSERVABILITY_UPLOAD_URL']=a52_0x4fb370(0x131),a52_0x3e0fe5[a52_0x4fb370(0x137)]=[a52_0x4fb370(0x1c9),a52_0x4fb370(0x13e)],a52_0x3e0fe5[a52_0x4fb370(0x119)]=[a52_0x4fb370(0x148)],a52_0x3e0fe5[a52_0x4fb370(0x136)]=a52_0x4fb370(0x130),a52_0x3e0fe5[a52_0x4fb370(0x144)]='https://app-automate.browserstack.com/dashboard/v2/builds/',a52_0x3e0fe5[a52_0x4fb370(0x108)]=[a52_0x4fb370(0x118)],a52_0x3e0fe5[a52_0x4fb370(0x169)]=[a52_0x4fb370(0x13a),'ERR_TIMED_OUT',a52_0x4fb370(0x117),a52_0x4fb370(0x106),a52_0x4fb370(0x17c),a52_0x4fb370(0xfb),a52_0x4fb370(0x16f),'ERR_CONNECTION_REFUSED',a52_0x4fb370(0x159),a52_0x4fb370(0x18a),a52_0x4fb370(0x14a),a52_0x4fb370(0x14b),a52_0x4fb370(0x1c1),a52_0x4fb370(0x182),a52_0x4fb370(0x142),a52_0x4fb370(0x193),a52_0x4fb370(0x15d),'ERR_PROXY_CONNECTION_FAILED','ERR_NAME_NOT_RESOLVED',a52_0x4fb370(0x167),a52_0x4fb370(0x1a9)],a52_0x3e0fe5[a52_0x4fb370(0x150)]=[a52_0x4fb370(0x109),a52_0x4fb370(0x16c),a52_0x4fb370(0x1b5)],a52_0x3e0fe5[a52_0x4fb370(0x110)]=a52_0x4fb370(0x189),a52_0x3e0fe5[a52_0x4fb370(0x113)]='^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$',a52_0x3e0fe5[a52_0x4fb370(0x172)]='./browserstack-artifacts/',a52_0x3e0fe5['PLAYWRIGHT_HUB_URL']=a52_0x4fb370(0x191),a52_0x3e0fe5[a52_0x4fb370(0x12f)]=a52_0x261805,a52_0x3e0fe5[a52_0x4fb370(0x13b)]=[a52_0x4fb370(0x198),'mocha'],a52_0x3e0fe5[a52_0x4fb370(0x1a2)]=a52_0x5d147f,a52_0x3e0fe5[a52_0x4fb370(0x149)]=a52_0x4fb370(0x178),a52_0x3e0fe5[a52_0x4fb370(0x105)]=a52_0x6f5c2c,a52_0x3e0fe5[a52_0x4fb370(0x13d)]=0x40*0x400,a52_0x3e0fe5[a52_0x4fb370(0x1b0)]='...[TRUNCATED]',a52_0x3e0fe5[a52_0x4fb370(0x176)]=a52_0x4fb370(0x168),a52_0x3e0fe5['TCG_DOWN']=a52_0x4fb370(0x14d),a52_0x3e0fe5['INVALID_INIT_RESP_WITH_USER_IMPACT']=a52_0x4fb370(0x121),a52_0x3e0fe5[a52_0x4fb370(0x17a)]=a52_0x4fb370(0x120),a52_0x3e0fe5[a52_0x4fb370(0x19c)]=a52_0x4fb370(0x1ae),a52_0x3e0fe5[a52_0x4fb370(0x11a)]=a52_0x4fb370(0x12c),a52_0x3e0fe5[a52_0x4fb370(0x128)]=a52_0x4fb370(0x151),a52_0x3e0fe5['TCG_AUTH_TIMEOUT']=0x1388,a52_0x3e0fe5[a52_0x4fb370(0x1ad)]=0x1388,a52_0x3e0fe5[a52_0x4fb370(0x1bb)]=0x1388,a52_0x3e0fe5[a52_0x4fb370(0x1a8)]=0x1388,a52_0x3e0fe5[a52_0x4fb370(0x10f)]=0xc350,a52_0x3e0fe5[a52_0x4fb370(0x115)]=a52_0x34f738,a52_0x3e0fe5[a52_0x4fb370(0x124)]=a52_0x11d196,a52_0x3e0fe5['AI_ENABLED_FRAMEWORK']=['vanilla',a52_0x4fb370(0x139)],a52_0x3e0fe5[a52_0x4fb370(0x162)]=a52_0x10d00c,a52_0x3e0fe5['LOG_FILE_NAME']=a52_0x4fb370(0x181),a52_0x3e0fe5[a52_0x4fb370(0x15e)]='/usage-debug.log',a52_0x3e0fe5['BSTACK_URL']=a52_0x4fb370(0x160),a52_0x3e0fe5[a52_0x4fb370(0x166)]=a52_0x4fb370(0x103),a52_0x3e0fe5[a52_0x4fb370(0x122)]=a52_0x4fb370(0x183),a52_0x3e0fe5[a52_0x4fb370(0x188)]=a52_0x4fb370(0x17d),a52_0x3e0fe5[a52_0x4fb370(0x197)]=['playwright'],a52_0x3e0fe5[a52_0x4fb370(0x1a1)]=a52_0x4fb370(0x1a1),module[a52_0x4fb370(0x19d)]=a52_0x3e0fe5;function a52_0x786d(){const _0x452aae=['Connect\x20on\x20prem\x20instances\x20to\x20Browserstack','SHAREABLE_ID_REGEX','stag','TEST_FRAMEWORK_HOOK_TIMEOUT','acceptInsecureCerts','ERR_BLOCKED_BY_CLIENT','app-automate','AUTOMATE','AI_INIT_FAILURE','proxyPass','disableAutoCaptureLogs','browserName','INFO','accessKey','SDKTestTcgAuthFailure','SDKTestInvalidTcgAuthResponseWithUserImpact','O11Y_URL','416610FIQBvO','REDACTED_KEYS','https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/','Specify\x20--help\x20for\x20available\x20options','https://edsstaging.bsstag.com','AI_PROXY_FAILURE','https://observability-preprod.bsstag.com','PLAYWRIGHT','Run\x20js\x20tests\x20on\x20browserstack','SDKTestInitFailedResponse','proxyUrl','split','FRAMEWORKS','https://automate.browserstack.com/dashboard/v2/builds/','https://upload-observability.browserstack.com','framework','ROOT_REGEX','firefoxOptions','https://observability-devtestops.bsstag.com','BROWSERSTACK_AUTOMATE_URL','OBSERVABILITY_SUPPORTED_FWS','platforms','codeceptjs','ERR_FAILED','PERCY_SUPPORTED_FRAMEWORKS','name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','MAX_GIT_META_DATA_SIZE_IN_BYTES','Playwright','UPDATED_CLI_ENDPOINT','NIGHTWATCH','percyOptions','ERR_CONNECTION_TIMED_OUT','testContextOptions','BROWSERSTACK_APP_AUTOMATE_URL','browserstack.overridelocalInfo.userAuthToken','TCG_REGION','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','automate','AUTOLOGCAPTURE_NOTIFICATION','ERR_NAME_NOT_RESOLVED','ERR_ADDRESS_INVALID','ieOptions','SDKTestTcgDownResponse','CUCUMBER','https://automate-devtestops.bsstag.com/dashboard/v2/builds/','VALID_APP_EXTENSION','SDKTestTcgProxyFailure','browserstack.userName','https://tcg-preprod.bsstag.com','prod','3oTRinh','root','https://app-automate-preprod.bsstag.com/dashboard/v2/builds/','localOptions','ERR_CONNECTION_ABORTED','7|11|6|8|1|0|12|9|5|2|4|10|3','16PcEvHm','turboScaleOptions','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE','DEBUG_LOG_FILE_NAME','VANILLA','browserstack.com','browserstackLocal','SDK_INSTRUMENTATION_CONFIG','unhandledPromptBehavior','percy','https://tcg.bsstag.com','BSTACK_ATS_URL','ERR_NAME_RESOLUTION_FAILED','Upgrade\x20required','NUDGE_LOCAL_ERRORS','1435608gZvBbI','accessibilityOptions','.aab','CODECEPTJS','JEST','ERR_CONNECTION_RESET','cucumber','113792WENWUI','CI_ARTIFACTS_PATH','wss://cdp-preprod.bsstag.com/playwright?caps=','https://eds.browserstack.com','Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file','UPGRADE_REQUIRED','env','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','VERSION','TCG_AUTH_FAILURE','shows\x20version\x20information','ERR_SOCKET_NOT_CONNECTED','browserstack','browserstackAutomation','MODULE','authToken','/usage.log','ERR_TUNNEL_CONNECTION_FAILED','https://observability.browserstack.com','proxyPassword','Jest','PLAYWRIGHT_HUB_URL','Run\x20jest\x20tests\x20on\x20browserstack','BROWSERSTACK','^[a-zA-Z0-9_.-]*$','ERR_CONNECTION_FAILED','CODECEPT','PRIVATE_DOMAIN_OR_IP_REGEX','428514exRdgu','chromeOptions','browserStackLocalOptions','accessibility','wss://cdp.browserstack.com/playwright?caps=','pre-prod','ERR_SOCKS_CONNECTION_FAILED','observability','MOCHA','hubUrl','CLI_SUPPORTED_FRAMEWORKS','jest','186608uvNvcE','TCG_URL','userName','AI_INIT_SUCCESSFUL','exports','Run\x20mocha\x20tests\x20on\x20browserstack','703764IjmEET','https://hub-devtestops.bsstag.com/wd/hub','PLAYWRIGHT_TRACE_LOGS','PLAYWRIGHT_CONFIG_OPTION_ERRORS','FUNNEL_INSTRUMENTATION_API_URL','edgeOptions','testOrchestrationOptions','invalidKeys','3549876sPoThJ','HEALING_FAILURE_TIMEOUT','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED','BROWSERSTACK_API_URL','Run\x20nightwatch\x20tests\x20on\x20browserstack','https://api-preprod.bsstag.com','SET_TCG_TOKEN_TIMEOUT','SDKTestTcgtInitSuccessful','parallelsPerPlatform','GIT_META_DATA_TRUNCATED','BSTACK_DELTA','uniqueDependency','wss://cdp-devtestops.bsstag.com/playwright?caps=','timeouts','.ipa','9|12|1|7|10|8|4|11|5|0|2|6|3','automation','INTEGRATIONS','turboScale','BSTACK_URL','HEALING_LOG_DATA_TIMEOUT','10HRTDrv','httpProxy','HST','mandatoryDependency','Mocha','ERR_ADDRESS_UNREACHABLE','testObservabilityOptions','testObservability','AUTOMATE_PRODUCTS','browserVersion','codeceptjs-cucumber','https://api-cloud-devtestops.bsstag.com','customVariables','mocha','Run\x20cucumber-js\x20tests\x20on\x20browserstack','40yLqkVA','https://tcg.browserstack.com','module','logLevel','rerunTests','ERR_CONNECTION_CLOSED','percyCaptureMode','EDS_URL','proxyUser','ATS_WSS_URL_REGEX','bsstag.com','APP_UPLOAD_URL','HUB_URL_REGEX','browserstack-ats.com','acceptSslCerts','PACKAGE_TYPE','ERR_NETWORK_CHANGED','Run\x20codeceptjs\x20tests\x20on\x20browserstack','APP_AUTOMATE','.apk','strictFileInteractability','proxySettings','httpsProxy','localProxyPass','https://api-cloud.browserstack.com','POLL_HEALING_RESULT_TIMEOUT','CUSTOM_ID_REGEX','https://hub.browserstack.com/wd/hub'];a52_0x786d=function(){return _0x452aae;};return a52_0x786d();}const _env=(process[a52_0x4fb370(0x177)]['BROWSERSTACK_ENV']||a52_0x4fb370(0x154))['toLowerCase']();if(_env==='staging'||_env===a52_0x4fb370(0x114)){const dSTsFE=a52_0x4fb370(0x15a)[a52_0x4fb370(0x12e)]('|');let FJnUog=0x0;while(!![]){switch(dSTsFE[FJnUog++]){case'0':module['exports'][a52_0x4fb370(0x144)]=a52_0x4fb370(0x125);continue;case'1':module['exports'][a52_0x4fb370(0x136)]=a52_0x4fb370(0x14f);continue;case'2':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x122)]=a52_0x4fb370(0x135);continue;case'3':module[a52_0x4fb370(0x19d)]['BROWSERSTACK']='bsstag';continue;case'4':module[a52_0x4fb370(0x19d)]['OBSERVABILITY_UPLOAD_URL']='https://upload-observability-devtestops-ssi.bsstag.com';continue;case'5':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x1ba)]=a52_0x4fb370(0x100);continue;case'6':module['exports'][a52_0x4fb370(0x19a)]=a52_0x4fb370(0x165);continue;case'7':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x196)]=a52_0x4fb370(0x1a0);continue;case'8':module[a52_0x4fb370(0x19d)]['HUB_URL_REGEX']=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'9':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x186)]=a52_0x4fb370(0x1b3);continue;case'10':module['exports'][a52_0x4fb370(0xfd)]=a52_0x4fb370(0x127);continue;case'11':module[a52_0x4fb370(0x19d)]['BROWSERSTACK_API_URL']='https://apidevtestops.bsstag.com';continue;case'12':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x101)]=a52_0x4fb370(0x1c7);continue;}break;}}else{if(_env==='preprod'||_env===a52_0x4fb370(0x192)){const nfpmaS=a52_0x4fb370(0x1b6)[a52_0x4fb370(0x12e)]('|');let KTHGuK=0x0;while(!![]){switch(nfpmaS[KTHGuK++]){case'0':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x122)]=a52_0x4fb370(0x129);continue;case'1':module['exports'][a52_0x4fb370(0x19a)]=a52_0x4fb370(0x153);continue;case'2':module[a52_0x4fb370(0x19d)]['OBSERVABILITY_UPLOAD_URL']='https://upload-observability-preprod.bsstag.com';continue;case'3':module['exports'][a52_0x4fb370(0x188)]='bsstag';continue;case'4':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x101)]=a52_0x4fb370(0x1ac);continue;case'5':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x1ba)]=a52_0x4fb370(0x100);continue;case'6':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0xfd)]='https://edsstaging.bsstag.com';continue;case'7':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x102)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'8':module[a52_0x4fb370(0x19d)]['BROWSERSTACK_APP_AUTOMATE_URL']=a52_0x4fb370(0x157);continue;case'9':module[a52_0x4fb370(0x19d)]['hubUrl']='https://hub-preprod.bsstag.com/wd/hub';continue;case'10':module[a52_0x4fb370(0x19d)]['BROWSERSTACK_AUTOMATE_URL']='https://automate-preprod.bsstag.com/dashboard/v2/builds/';continue;case'11':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x186)]=a52_0x4fb370(0x173);continue;case'12':module[a52_0x4fb370(0x19d)][a52_0x4fb370(0x1aa)]='https://api-preprod.bsstag.com';continue;}break;}}}
1
+ const a52_0x2f879f=a52_0x4758;(function(_0x1820e2,_0xeae853){const _0xcadf28=a52_0x4758,_0x314beb=_0x1820e2();while(!![]){try{const _0x5a2fe1=-parseInt(_0xcadf28(0x196))/0x1+parseInt(_0xcadf28(0x172))/0x2*(-parseInt(_0xcadf28(0x15f))/0x3)+parseInt(_0xcadf28(0x156))/0x4*(parseInt(_0xcadf28(0x1d9))/0x5)+-parseInt(_0xcadf28(0x1b1))/0x6*(-parseInt(_0xcadf28(0x1a0))/0x7)+parseInt(_0xcadf28(0x1b6))/0x8+parseInt(_0xcadf28(0x1cc))/0x9*(parseInt(_0xcadf28(0x14d))/0xa)+-parseInt(_0xcadf28(0x1ce))/0xb;if(_0x5a2fe1===_0xeae853)break;else _0x314beb['push'](_0x314beb['shift']());}catch(_0x2f9e25){_0x314beb['push'](_0x314beb['shift']());}}}(a52_0x51ca,0x4ce9b));const a52_0x57b7e2={};a52_0x57b7e2[a52_0x2f879f(0x185)]=a52_0x2f879f(0x1b7),a52_0x57b7e2[a52_0x2f879f(0x18b)]=a52_0x2f879f(0x1a9);const a52_0x3a885a={};a52_0x3a885a[a52_0x2f879f(0x185)]=a52_0x2f879f(0x1db);const a52_0x2bac45={};a52_0x2bac45['INFO']=a52_0x2f879f(0x147);const a52_0x58833b={};a52_0x58833b[a52_0x2f879f(0x185)]='Run\x20cucumber-js\x20tests\x20on\x20browserstack';const a52_0x2cdc84={};a52_0x2cdc84[a52_0x2f879f(0x185)]='Run\x20js\x20tests\x20on\x20browserstack';function a52_0x51ca(){const _0xf39588=['Run\x20mocha\x20tests\x20on\x20browserstack','PACKAGE_TYPE','OBSERVABILITY_UPLOAD_URL','timeouts','observability','https://hub-preprod.bsstag.com/wd/hub','44840BkbGTA','.aab','bsstag','proxySettings','TCG_DOWN','root','PLAYWRIGHT_CONFIG_OPTION_ERRORS','mocha','https://api-preprod.bsstag.com','546180LUksxV','browserStackLocalOptions','app-automate','AUTOLOGCAPTURE_NOTIFICATION','https://edsstaging.bsstag.com','TCG_URL','rerunTests','...[TRUNCATED]','proxyPass','300951NabakJ','browserstack-ats.com','PLAYWRIGHT','name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','vanilla','TCG_AUTH_FAILURE','acceptInsecureCerts','browserstack.com','9|1|12|6|5|7|11|3|4|0|2|10|8','preprod','HEALING_FAILURE_TIMEOUT','browserVersion','Jest','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','NUDGE_LOCAL_ERRORS','unhandledPromptBehavior','O11Y_URL','HEALING_LOG_DATA_TIMEOUT','CUCUMBER','2tviyKr','SDKTestTcgDownResponse','Upgrade\x20required','browserstackLocal','bsstag.com','INTEGRATIONS','AUTOMATE','AI_INIT_SUCCESSFUL','BROWSERSTACK_APP_AUTOMATE_URL','APP_UPLOAD_URL','testOrchestrationOptions','percyCaptureMode','proxyUser','invalidKeys','parallelsPerPlatform','accessibility','firefoxOptions','https://upload-observability-preprod.bsstag.com','SDKTestInvalidTcgAuthResponseWithUserImpact','INFO','ERR_PROXY_CONNECTION_FAILED','testObservabilityOptions','NIGHTWATCH','HUB_URL_REGEX','ERR_ADDRESS_UNREACHABLE','HELP','wss://cdp-preprod.bsstag.com/playwright?caps=','SHAREABLE_ID_REGEX','proxyPassword','BROWSERSTACK_API_URL','ROOT_CAPS','PLAYWRIGHT_TRACE_LOGS','uniqueDependency','testObservability','accessKey','SDKTestInitFailedResponse','382412pNZdAh','TCG_AUTH_TIMEOUT','./browserstack-artifacts/','MOCHA','INVALID_INIT_RESP_WITH_USER_IMPACT','HST','https://app-automate.browserstack.com/dashboard/v2/builds/','ERR_SOCKS_CONNECTION_FAILED','^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$','ATS_WSS_URL_REGEX','28cGRllz','turboScaleOptions','VALID_APP_EXTENSION','percyOptions','https://api.browserstack.com','use','hubUrl','https://tcg.bsstag.com','ERR_CONNECTION_ABORTED','Specify\x20--help\x20for\x20available\x20options','logLevel','proxyUrl','https://observability-devtestops.bsstag.com','BROWSERSTACK_ENV','CODECEPTJS','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED','playwright','408126vLyOPm','framework','toLowerCase','Run\x20playwright\x20tests\x20on\x20Browserstack','ERR_CONNECTION_FAILED','955648vmSRaM','shows\x20version\x20information','Mocha','localProxyPass','EDS_URL','AI_INIT_FAILURE','localOptions','wss://cdp-devtestops.bsstag.com/playwright?caps=','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE','GIT_META_DATA_TRUNCATED','ERR_SOCKET_NOT_CONNECTED','UPDATED_CLI_ENDPOINT','TCG_REGION','staging','customVariables','SET_TCG_TOKEN_TIMEOUT','localProxyUser','SDKTestTcgtInitSuccessful','acceptSslCerts','BROWSERSTACK_AUTOMATE_URL','codeceptjs-cucumber','LOG_FILE_NAME','909pGAJbM','ERR_FAILED','5019245LjgEHh','AI_PROXY_FAILURE','.apk','VERSION','disableAutoCaptureLogs','httpProxy','https://upload-observability.browserstack.com','Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file','https://eds.browserstack.com','PRIVATE_DOMAIN_OR_IP_REGEX','browserstackAutomation','15UZYRQO','userName','Run\x20jest\x20tests\x20on\x20browserstack','SDKTestTcgProxyFailure','sdk/v1/update_cli','ERR_CONNECTION_TIMED_OUT','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','3|9|11|5|7|6|4|2|12|8|1|0|10','strictFileInteractability','accessibilityOptions','browserstack.userName','authToken','APP_AUTOMATE','module','turboScale','AUTOMATE_PRODUCTS','commonjs','https://observability.browserstack.com','automate','jest','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','TEST_FRAMEWORK_HOOK_TIMEOUT','BSTACK_ATS_URL','MODULE','PLAYWRIGHT_HUB_URL','https://apidevtestops.bsstag.com','split','pageLoadStrategy','CODECEPT','stag','ERR_CONNECTION_RESET','FUNNEL_INSTRUMENTATION_API_URL','APP_AUTOMATE_PRODUCTS','httpsProxy','BSTACK_DELTA','.ipa','ERR_NAME_NOT_RESOLVED','percy','OBSERVABILITY_SUPPORTED_FWS','JEST','testContextOptions','BSTACK_URL','https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','edgeOptions','ROOT_REGEX','ERR_CONNECTION_REFUSED','Playwright','CODECEPT_CUCUMBER','Cucumber-JS','FRAMEWORKS','Run\x20nightwatch\x20tests\x20on\x20browserstack','Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','BROWSERSTACK','codeceptjs','CI_ARTIFACTS_PATH','PERCY_SUPPORTED_FRAMEWORKS','exports'];a52_0x51ca=function(){return _0xf39588;};return a52_0x51ca();}const a52_0x545cbf={};a52_0x545cbf['INFO']=a52_0x2f879f(0x140);const a52_0x4f9e5a={};a52_0x4f9e5a[a52_0x2f879f(0x185)]=a52_0x2f879f(0x1b4);const a52_0x316327={};a52_0x316327['INFO']='Run\x20codeceptjs\x20tests\x20on\x20browserstack';const a52_0x94bbc6={};a52_0x94bbc6[a52_0x2f879f(0x185)]=a52_0x2f879f(0x16c);const a52_0x23e23f={};a52_0x23e23f['INFO']='Connect\x20on\x20prem\x20instances\x20to\x20Browserstack';const a52_0x9945c9={};a52_0x9945c9[a52_0x2f879f(0x161)]=a52_0x2f879f(0x13c),a52_0x9945c9[a52_0x2f879f(0x199)]='mocha',a52_0x9945c9[a52_0x2f879f(0x134)]=a52_0x2f879f(0x1ec),a52_0x9945c9[a52_0x2f879f(0x1f5)]=a52_0x2f879f(0x143),a52_0x9945c9[a52_0x2f879f(0x13d)]=a52_0x2f879f(0x1ca),a52_0x9945c9['CUCUMBER']='cucumber';const a52_0x112e3b={};a52_0x112e3b[a52_0x2f879f(0x17f)]=a52_0x2f879f(0x141),a52_0x112e3b[a52_0x2f879f(0x192)]=a52_0x2f879f(0x162),a52_0x112e3b['mandatoryDependency']=a52_0x2f879f(0x138),a52_0x112e3b['invalidTestInputType']=a52_0x2f879f(0x1d5);const a52_0x1e4846={};a52_0x1e4846['COMMONJS']=a52_0x2f879f(0x1e9),a52_0x1e4846[a52_0x2f879f(0x1f0)]=a52_0x2f879f(0x1e6);const a52_0x50cc79={};a52_0x50cc79[a52_0x2f879f(0x1b8)]=0xfde8,a52_0x50cc79[a52_0x2f879f(0x13e)]=0xfde8,a52_0x50cc79[a52_0x2f879f(0x16b)]=0x186a0;const a52_0x441321={};a52_0x441321[a52_0x2f879f(0x152)]=[a52_0x2f879f(0x1da),a52_0x2f879f(0x194),a52_0x2f879f(0x1d3),a52_0x2f879f(0x1fa),a52_0x2f879f(0x1c4),a52_0x2f879f(0x1e3),'browserstack.accessKey',a52_0x2f879f(0x18e),a52_0x2f879f(0x1e4),a52_0x2f879f(0x1ab),'browserstack.overridelocalInfo.userAuthToken'],a52_0x441321[a52_0x2f879f(0x157)]=[a52_0x2f879f(0x17e),a52_0x2f879f(0x15e),a52_0x2f879f(0x1c6),a52_0x2f879f(0x1b9)];function a52_0x4758(_0x510153,_0x467274){const _0x51ca36=a52_0x51ca();return a52_0x4758=function(_0x475834,_0x4342d1){_0x475834=_0x475834-0x132;let _0x5e4147=_0x51ca36[_0x475834];return _0x5e4147;},a52_0x4758(_0x510153,_0x467274);}const a52_0x598481={};a52_0x598481[a52_0x2f879f(0x175)]=a52_0x2f879f(0x175),a52_0x598481[a52_0x2f879f(0x157)]=a52_0x2f879f(0x157),a52_0x598481[a52_0x2f879f(0x1bc)]='browserStackLocalOptions',a52_0x598481[a52_0x2f879f(0x180)]=a52_0x2f879f(0x180),a52_0x598481['platforms']='platforms',a52_0x598481['logLevel']=a52_0x2f879f(0x1aa),a52_0x598481[a52_0x2f879f(0x1d3)]='httpProxy',a52_0x598481[a52_0x2f879f(0x1fa)]=a52_0x2f879f(0x1fa),a52_0x598481[a52_0x2f879f(0x1b2)]='framework',a52_0x598481[a52_0x2f879f(0x135)]=a52_0x2f879f(0x135),a52_0x598481[a52_0x2f879f(0x193)]=a52_0x2f879f(0x193),a52_0x598481['testObservabilityOptions']=a52_0x2f879f(0x187),a52_0x598481[a52_0x2f879f(0x1c4)]=a52_0x2f879f(0x1c4),a52_0x598481['automation']=a52_0x2f879f(0x1d8),a52_0x598481[a52_0x2f879f(0x1d8)]=a52_0x2f879f(0x1d8),a52_0x598481[a52_0x2f879f(0x15c)]=a52_0x2f879f(0x15c),a52_0x598481[a52_0x2f879f(0x132)]=a52_0x2f879f(0x132),a52_0x598481[a52_0x2f879f(0x1a3)]=a52_0x2f879f(0x1a3),a52_0x598481[a52_0x2f879f(0x17d)]=a52_0x2f879f(0x17d),a52_0x598481['disableAutoCaptureLogs']=a52_0x2f879f(0x1d2),a52_0x598481['accessibility']=a52_0x2f879f(0x181),a52_0x598481[a52_0x2f879f(0x1e2)]='accessibilityOptions',a52_0x598481[a52_0x2f879f(0x1e7)]=a52_0x2f879f(0x1e7),a52_0x598481[a52_0x2f879f(0x1a1)]='turboScaleOptions',a52_0x598481[a52_0x2f879f(0x150)]=a52_0x2f879f(0x150),a52_0x598481['testOrchestrationOptions']=a52_0x2f879f(0x17c);const a52_0x213417={};a52_0x213417[a52_0x2f879f(0x1d1)]=a52_0x57b7e2,a52_0x213417['JEST']=a52_0x3a885a,a52_0x213417[a52_0x2f879f(0x199)]=a52_0x2bac45,a52_0x213417[a52_0x2f879f(0x171)]=a52_0x58833b,a52_0x213417['VANILLA']=a52_0x2cdc84,a52_0x213417[a52_0x2f879f(0x188)]=a52_0x545cbf,a52_0x213417[a52_0x2f879f(0x161)]=a52_0x4f9e5a,a52_0x213417[a52_0x2f879f(0x1ae)]=a52_0x316327,a52_0x213417[a52_0x2f879f(0x19b)]=a52_0x94bbc6,a52_0x213417[a52_0x2f879f(0x177)]=a52_0x23e23f,a52_0x213417[a52_0x2f879f(0x1fb)]=0xf*0x3c*0x3e8,a52_0x213417[a52_0x2f879f(0x1a6)]='https://hub.browserstack.com/wd/hub',a52_0x213417[a52_0x2f879f(0x15b)]='https://tcg.browserstack.com',a52_0x213417[a52_0x2f879f(0x1c2)]=a52_0x2f879f(0x1a5),a52_0x213417[a52_0x2f879f(0x189)]=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x213417['ATS_HUB_URL_REGEX']=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x213417[a52_0x2f879f(0x19f)]=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x213417[a52_0x2f879f(0x190)]=[a52_0x2f879f(0x165),a52_0x2f879f(0x1f4),a52_0x2f879f(0x1e1),a52_0x2f879f(0x16e),a52_0x2f879f(0x14a),'browserName',a52_0x2f879f(0x16a),a52_0x2f879f(0x1c8),'acceptSslCert','chromeOptions',a52_0x2f879f(0x182),a52_0x2f879f(0x139),'ieOptions'],a52_0x213417[a52_0x2f879f(0x13a)]=/^[\w-]+:.*$/,a52_0x213417[a52_0x2f879f(0x1d7)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x213417['EDS_URL']=a52_0x2f879f(0x1d6),a52_0x213417['BROWSERSTACK_API_URL']=a52_0x2f879f(0x1a4),a52_0x213417[a52_0x2f879f(0x17b)]='https://api-cloud.browserstack.com',a52_0x213417[a52_0x2f879f(0x1c1)]=a52_0x2f879f(0x1dd),a52_0x213417[a52_0x2f879f(0x1f8)]='sdk/v1/event',a52_0x213417[a52_0x2f879f(0x1e8)]=[a52_0x2f879f(0x1eb),a52_0x2f879f(0x14b)],a52_0x213417[a52_0x2f879f(0x1f9)]=['app-automate',a52_0x2f879f(0x14b)],a52_0x213417[a52_0x2f879f(0x1ed)]=['observability'],a52_0x213417[a52_0x2f879f(0x149)]=a52_0x2f879f(0x1d4),a52_0x213417[a52_0x2f879f(0x133)]=[a52_0x2f879f(0x154),a52_0x2f879f(0x13c)],a52_0x213417[a52_0x2f879f(0x178)]=[a52_0x2f879f(0x1eb)],a52_0x213417[a52_0x2f879f(0x1c9)]='https://automate.browserstack.com/dashboard/v2/builds/',a52_0x213417['BROWSERSTACK_APP_AUTOMATE_URL']=a52_0x2f879f(0x19c),a52_0x213417[a52_0x2f879f(0x1e5)]=[a52_0x2f879f(0x158)],a52_0x213417[a52_0x2f879f(0x16d)]=[a52_0x2f879f(0x1cd),'ERR_TIMED_OUT','ERR_BLOCKED_BY_CLIENT','ERR_NETWORK_CHANGED',a52_0x2f879f(0x1c0),'ERR_CONNECTION_CLOSED',a52_0x2f879f(0x1f7),a52_0x2f879f(0x13b),a52_0x2f879f(0x1a8),a52_0x2f879f(0x1b5),a52_0x2f879f(0x1fd),'ERR_ADDRESS_INVALID',a52_0x2f879f(0x18a),'ERR_TUNNEL_CONNECTION_FAILED',a52_0x2f879f(0x1de),a52_0x2f879f(0x19d),a52_0x2f879f(0x1be),a52_0x2f879f(0x186),a52_0x2f879f(0x1fd),'ERR_NAME_RESOLUTION_FAILED',a52_0x2f879f(0x1af)],a52_0x213417[a52_0x2f879f(0x1a2)]=[a52_0x2f879f(0x1d0),a52_0x2f879f(0x14e),a52_0x2f879f(0x1fc)],a52_0x213417['CUSTOM_ID_REGEX']='^[a-zA-Z0-9_.-]*$',a52_0x213417[a52_0x2f879f(0x18d)]=a52_0x2f879f(0x19e),a52_0x213417[a52_0x2f879f(0x144)]=a52_0x2f879f(0x198),a52_0x213417[a52_0x2f879f(0x1f1)]='wss://cdp.browserstack.com/playwright?caps=',a52_0x213417[a52_0x2f879f(0x13f)]=a52_0x9945c9,a52_0x213417[a52_0x2f879f(0x145)]=[a52_0x2f879f(0x1ec),a52_0x2f879f(0x154)],a52_0x213417[a52_0x2f879f(0x153)]=a52_0x112e3b,a52_0x213417[a52_0x2f879f(0x159)]=a52_0x2f879f(0x1df),a52_0x213417[a52_0x2f879f(0x148)]=a52_0x1e4846,a52_0x213417['MAX_GIT_META_DATA_SIZE_IN_BYTES']=0x40*0x400,a52_0x213417[a52_0x2f879f(0x1bf)]=a52_0x2f879f(0x15d),a52_0x213417['UPGRADE_REQUIRED']=a52_0x2f879f(0x174),a52_0x213417[a52_0x2f879f(0x151)]=a52_0x2f879f(0x173),a52_0x213417[a52_0x2f879f(0x19a)]=a52_0x2f879f(0x184),a52_0x213417[a52_0x2f879f(0x164)]='SDKTestTcgAuthFailure',a52_0x213417[a52_0x2f879f(0x179)]=a52_0x2f879f(0x1c7),a52_0x213417[a52_0x2f879f(0x1bb)]=a52_0x2f879f(0x195),a52_0x213417[a52_0x2f879f(0x1cf)]=a52_0x2f879f(0x1dc),a52_0x213417[a52_0x2f879f(0x197)]=0x1388,a52_0x213417[a52_0x2f879f(0x1c5)]=0x1388,a52_0x213417[a52_0x2f879f(0x170)]=0x1388,a52_0x213417[a52_0x2f879f(0x169)]=0x1388,a52_0x213417['POLL_HEALING_RESULT_TIMEOUT']=0xc350,a52_0x213417[a52_0x2f879f(0x1ee)]=a52_0x50cc79,a52_0x213417['REDACTED_KEYS']=a52_0x441321,a52_0x213417['AI_ENABLED_FRAMEWORK']=[a52_0x2f879f(0x163),a52_0x2f879f(0x143)],a52_0x213417['SDK_INSTRUMENTATION_CONFIG']=a52_0x598481,a52_0x213417[a52_0x2f879f(0x1cb)]='/usage.log',a52_0x213417['DEBUG_LOG_FILE_NAME']='/usage-debug.log',a52_0x213417[a52_0x2f879f(0x136)]=a52_0x2f879f(0x166),a52_0x213417[a52_0x2f879f(0x1ef)]=a52_0x2f879f(0x160),a52_0x213417[a52_0x2f879f(0x16f)]=a52_0x2f879f(0x1ea),a52_0x213417[a52_0x2f879f(0x142)]='browserstack',a52_0x213417['CLI_SUPPORTED_FRAMEWORKS']=[a52_0x2f879f(0x1b0)],a52_0x213417[a52_0x2f879f(0x191)]=a52_0x2f879f(0x191),module['exports']=a52_0x213417;const _env=(process['env'][a52_0x2f879f(0x1ad)]||'prod')[a52_0x2f879f(0x1b3)]();if(_env===a52_0x2f879f(0x1c3)||_env===a52_0x2f879f(0x1f6)){const ocrkUk=a52_0x2f879f(0x1e0)[a52_0x2f879f(0x1f3)]('|');let jZlRAY=0x0;while(!![]){switch(ocrkUk[jZlRAY++]){case'0':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x1ba)]=a52_0x2f879f(0x15a);continue;case'1':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x149)]='https://upload-observability-devtestops-ssi.bsstag.com';continue;case'2':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x1f1)]=a52_0x2f879f(0x1bd);continue;case'3':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x1a6)]='https://hub-devtestops.bsstag.com/wd/hub';continue;case'4':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x17b)]='https://api-cloud-devtestops.bsstag.com';continue;case'5':module['exports'][a52_0x2f879f(0x189)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'6':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x17a)]=a52_0x2f879f(0x137);continue;case'7':module[a52_0x2f879f(0x146)]['BROWSERSTACK_AUTOMATE_URL']='https://automate-devtestops.bsstag.com/dashboard/v2/builds/';continue;case'8':module['exports'][a52_0x2f879f(0x16f)]=a52_0x2f879f(0x1ac);continue;case'9':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x18f)]=a52_0x2f879f(0x1f2);continue;case'10':module['exports']['BROWSERSTACK']=a52_0x2f879f(0x14f);continue;case'11':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x15b)]=a52_0x2f879f(0x1a7);continue;case'12':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x136)]=a52_0x2f879f(0x176);continue;}break;}}else{if(_env===a52_0x2f879f(0x168)||_env==='pre-prod'){const OAWStr=a52_0x2f879f(0x167)[a52_0x2f879f(0x1f3)]('|');let SxGRhP=0x0;while(!![]){switch(OAWStr[SxGRhP++]){case'0':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x16f)]='https://observability-preprod.bsstag.com';continue;case'1':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x18f)]=a52_0x2f879f(0x155);continue;case'2':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x149)]=a52_0x2f879f(0x183);continue;case'3':module[a52_0x2f879f(0x146)]['PLAYWRIGHT_HUB_URL']=a52_0x2f879f(0x18c);continue;case'4':module['exports']['BSTACK_URL']=a52_0x2f879f(0x176);continue;case'5':module[a52_0x2f879f(0x146)]['BROWSERSTACK_AUTOMATE_URL']='https://automate-preprod.bsstag.com/dashboard/v2/builds/';continue;case'6':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x189)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'7':module['exports'][a52_0x2f879f(0x17a)]='https://app-automate-preprod.bsstag.com/dashboard/v2/builds/';continue;case'8':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x142)]=a52_0x2f879f(0x14f);continue;case'9':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x1a6)]=a52_0x2f879f(0x14c);continue;case'10':module['exports'][a52_0x2f879f(0x1ba)]=a52_0x2f879f(0x15a);continue;case'11':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x17b)]=a52_0x2f879f(0x155);continue;case'12':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x15b)]='https://tcg-preprod.bsstag.com';continue;}break;}}}
@@ -1 +1 @@
1
- function a53_0xe3d0(_0x1d6c63,_0x5a9712){const _0x227416=a53_0x2274();return a53_0xe3d0=function(_0xe3d043,_0x3fc1ff){_0xe3d043=_0xe3d043-0x6e;let _0x394cc6=_0x227416[_0xe3d043];return _0x394cc6;},a53_0xe3d0(_0x1d6c63,_0x5a9712);}const a53_0x155636=a53_0xe3d0;(function(_0x240b8a,_0x18c061){const _0x34fbed=a53_0xe3d0,_0x1e76e4=_0x240b8a();while(!![]){try{const _0x1833e3=-parseInt(_0x34fbed(0x73))/0x1*(parseInt(_0x34fbed(0x75))/0x2)+parseInt(_0x34fbed(0x70))/0x3+parseInt(_0x34fbed(0x7e))/0x4+parseInt(_0x34fbed(0x6f))/0x5+parseInt(_0x34fbed(0x6e))/0x6*(-parseInt(_0x34fbed(0x7c))/0x7)+-parseInt(_0x34fbed(0x78))/0x8+-parseInt(_0x34fbed(0x74))/0x9;if(_0x1833e3===_0x18c061)break;else _0x1e76e4['push'](_0x1e76e4['shift']());}catch(_0x4aecc9){_0x1e76e4['push'](_0x1e76e4['shift']());}}}(a53_0x2274,0xb0898));const logReportingAPI=require(a53_0x155636(0x7d)),BSTestOpsLogger=new logReportingAPI({});function a53_0x2274(){const _0x39b281=['log','392lzIvdU','./logReportingAPI','5099752zOuTnv','level','48786AyzxcE','3390240YjMtTC','3550758vTgSNx','layout','join','22457TwKOlG','11534598JRLjND','24XOzezn','type','timezoneOffset','3256272CaepMe','levelStr','data'];a53_0x2274=function(){return _0x39b281;};return a53_0x2274();}function BSTestOpsLog4JSAppender(_0x128726,_0x1c1759){return _0x5466e7=>{const _0x1db895=a53_0xe3d0;BSTestOpsLogger[_0x1db895(0x7b)]({'level':_0x5466e7[_0x1db895(0x7f)]?_0x5466e7[_0x1db895(0x7f)][_0x1db895(0x79)]:null,'message':_0x5466e7[_0x1db895(0x7a)]?_0x5466e7[_0x1db895(0x7a)][_0x1db895(0x72)]('\x20'):null});};}exports['configure']=(_0x1706d2,_0x262006)=>{const _0x116969=a53_0x155636,_0x522f92={'bezse':function(_0xcba10c,_0xcbf6ee,_0x437c6f){return _0xcba10c(_0xcbf6ee,_0x437c6f);}};let _0x46b627=_0x262006['colouredLayout'];return _0x1706d2[_0x116969(0x71)]&&(_0x46b627=_0x262006[_0x116969(0x71)](_0x1706d2['layout'][_0x116969(0x76)],_0x1706d2['layout'])),_0x522f92['bezse'](BSTestOpsLog4JSAppender,_0x46b627,_0x1706d2[_0x116969(0x77)]);};
1
+ function a53_0x5b4e(_0x4c0c2f,_0x2ec817){const _0x3b4ae5=a53_0x3b4a();return a53_0x5b4e=function(_0x5b4e8e,_0x5267c6){_0x5b4e8e=_0x5b4e8e-0x9c;let _0x1d58d1=_0x3b4ae5[_0x5b4e8e];return _0x1d58d1;},a53_0x5b4e(_0x4c0c2f,_0x2ec817);}function a53_0x3b4a(){const _0x2956ea=['8mRUeNM','byrnU','levelStr','./logReportingAPI','layout','18nvkMSK','configure','7247215dEbNST','725450uDSnmt','timezoneOffset','join','981825aHkoDI','1853048FVmDoa','data','4324980JXmDAZ','type','6NKmWAp','colouredLayout','level','77955hxeAfX','8528331lZWIwH'];a53_0x3b4a=function(){return _0x2956ea;};return a53_0x3b4a();}const a53_0x5eb6e7=a53_0x5b4e;(function(_0x3c1c19,_0x31c5f7){const _0x4d7247=a53_0x5b4e,_0xf6f051=_0x3c1c19();while(!![]){try{const _0x4e16e2=-parseInt(_0x4d7247(0xab))/0x1+-parseInt(_0x4d7247(0xa0))/0x2*(parseInt(_0x4d7247(0x9e))/0x3)+-parseInt(_0x4d7247(0xae))/0x4+parseInt(_0x4d7247(0xa7))/0x5*(parseInt(_0x4d7247(0xb0))/0x6)+parseInt(_0x4d7247(0x9f))/0x7+-parseInt(_0x4d7247(0xac))/0x8*(-parseInt(_0x4d7247(0xa5))/0x9)+-parseInt(_0x4d7247(0xa8))/0xa;if(_0x4e16e2===_0x31c5f7)break;else _0xf6f051['push'](_0xf6f051['shift']());}catch(_0x12b858){_0xf6f051['push'](_0xf6f051['shift']());}}}(a53_0x3b4a,0xd9a5b));const logReportingAPI=require(a53_0x5eb6e7(0xa3)),BSTestOpsLogger=new logReportingAPI({});function BSTestOpsLog4JSAppender(_0x1e2126,_0x212a39){return _0x126ef0=>{const _0x48244e=a53_0x5b4e;BSTestOpsLogger['log']({'level':_0x126ef0[_0x48244e(0x9d)]?_0x126ef0[_0x48244e(0x9d)][_0x48244e(0xa2)]:null,'message':_0x126ef0[_0x48244e(0xad)]?_0x126ef0[_0x48244e(0xad)][_0x48244e(0xaa)]('\x20'):null});};}exports[a53_0x5eb6e7(0xa6)]=(_0x212f70,_0x3e30fa)=>{const _0x359c7b=a53_0x5eb6e7,_0x362b75={'byrnU':function(_0x4a37af,_0x55c037,_0x322e55){return _0x4a37af(_0x55c037,_0x322e55);}};let _0x1545f8=_0x3e30fa[_0x359c7b(0x9c)];return _0x212f70[_0x359c7b(0xa4)]&&(_0x1545f8=_0x3e30fa[_0x359c7b(0xa4)](_0x212f70[_0x359c7b(0xa4)][_0x359c7b(0xaf)],_0x212f70[_0x359c7b(0xa4)])),_0x362b75[_0x359c7b(0xa1)](BSTestOpsLog4JSAppender,_0x1545f8,_0x212f70[_0x359c7b(0xa9)]);};
@@ -1 +1 @@
1
- function a54_0x3df4(){const _0x1a5983=['toISOString','TEST_LOG','ERROR','join','winston-transport','info','DEBUG','330795sgbISz','5PqzJjT','8653656pjSpZv','logToTestOps','TRACE','3422352TwqGtc','nXHgZ','warn','1577388SuPNnr','INFO','870NbQUTr','58818rCiiTo','WARN','emit','552168OwUsIL','438294AECFoU','debug','error','toLowerCase','trace','784YorSPN'];a54_0x3df4=function(){return _0x1a5983;};return a54_0x3df4();}const a54_0x16e4a2=a54_0x10c1;(function(_0x1adb07,_0x519bee){const _0x37c842=a54_0x10c1,_0x4e8897=_0x1adb07();while(!![]){try{const _0x52ce0e=parseInt(_0x37c842(0x10d))/0x1+-parseInt(_0x37c842(0x10e))/0x2+parseInt(_0x37c842(0x104))/0x3+-parseInt(_0x37c842(0x107))/0x4*(-parseInt(_0x37c842(0x100))/0x5)+parseInt(_0x37c842(0x10a))/0x6*(parseInt(_0x37c842(0xf7))/0x7)+parseInt(_0x37c842(0x101))/0x8+parseInt(_0x37c842(0xff))/0x9*(-parseInt(_0x37c842(0x109))/0xa);if(_0x52ce0e===_0x519bee)break;else _0x4e8897['push'](_0x4e8897['shift']());}catch(_0x4a1f6c){_0x4e8897['push'](_0x4e8897['shift']());}}}(a54_0x3df4,0xcf8be));const Transport=require(a54_0x16e4a2(0xfc)),{consoleHolder}=require('../../helpers/test-observability/constants'),a54_0xd8d63e={};a54_0xd8d63e[a54_0x16e4a2(0x108)]=a54_0x16e4a2(0x108),a54_0xd8d63e[a54_0x16e4a2(0xfa)]=a54_0x16e4a2(0xfa),a54_0xd8d63e[a54_0x16e4a2(0xfe)]=a54_0x16e4a2(0xfe),a54_0xd8d63e[a54_0x16e4a2(0x103)]='TRACE',a54_0xd8d63e[a54_0x16e4a2(0x10b)]=a54_0x16e4a2(0x10b);function a54_0x10c1(_0x528bf7,_0x525266){const _0x3df44f=a54_0x3df4();return a54_0x10c1=function(_0x10c113,_0xf854a){_0x10c113=_0x10c113-0xf7;let _0x7d9a75=_0x3df44f[_0x10c113];return _0x7d9a75;},a54_0x10c1(_0x528bf7,_0x525266);}const LOG_LEVELS=a54_0xd8d63e;class logPatcher extends Transport{constructor(_0x2ffbda){super(_0x2ffbda);}[a54_0x16e4a2(0x102)]=(_0xa3c51a=LOG_LEVELS[a54_0x16e4a2(0x108)],_0x3f23ff=[''])=>{const _0x5e2f3e=a54_0x16e4a2,_0x4887a8={};_0x4887a8[_0x5e2f3e(0x105)]=_0x5e2f3e(0xf9);const _0x274851=_0x4887a8;consoleHolder[_0xa3c51a[_0x5e2f3e(0x111)]()](..._0x3f23ff),process[_0x5e2f3e(0x10c)]('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0x5e2f3e(0xf8)](),'level':_0xa3c51a['toUpperCase'](),'message':'\x22'+_0x3f23ff[_0x5e2f3e(0xfb)](',\x20')+'\x22','kind':_0x274851[_0x5e2f3e(0x105)],'http_response':{}});};[a54_0x16e4a2(0x112)]=(..._0x198025)=>{const _0x37c011=a54_0x16e4a2;this['logToTestOps'](LOG_LEVELS[_0x37c011(0x103)],_0x198025);};[a54_0x16e4a2(0x10f)]=(..._0x38119a)=>{const _0x3b9fed=a54_0x16e4a2;this[_0x3b9fed(0x102)](LOG_LEVELS[_0x3b9fed(0xfe)],_0x38119a);};[a54_0x16e4a2(0xfd)]=(..._0x4705b0)=>{const _0x57bbab=a54_0x16e4a2;this[_0x57bbab(0x102)](LOG_LEVELS['INFO'],_0x4705b0);};[a54_0x16e4a2(0x106)]=(..._0x3b037)=>{const _0x168d22=a54_0x16e4a2;this[_0x168d22(0x102)](LOG_LEVELS[_0x168d22(0x10b)],_0x3b037);};[a54_0x16e4a2(0x110)]=(..._0x3cac4f)=>{const _0x28ec61=a54_0x16e4a2;this[_0x28ec61(0x102)](LOG_LEVELS[_0x28ec61(0xfa)],_0x3cac4f);};['log']=(..._0x10a2bb)=>{const _0x2a16e5=a54_0x16e4a2;this[_0x2a16e5(0x102)](LOG_LEVELS[_0x2a16e5(0x108)],_0x10a2bb);};};module['exports']=logPatcher;
1
+ const a54_0x55774b=a54_0x1b32;function a54_0x1b32(_0xce5301,_0x460b35){const _0x453b69=a54_0x453b();return a54_0x1b32=function(_0x1b3231,_0xc82247){_0x1b3231=_0x1b3231-0x195;let _0x4ba6bb=_0x453b69[_0x1b3231];return _0x4ba6bb;},a54_0x1b32(_0xce5301,_0x460b35);}(function(_0x42b473,_0x2d4fcd){const _0x253f66=a54_0x1b32,_0x227989=_0x42b473();while(!![]){try{const _0x23584=-parseInt(_0x253f66(0x1aa))/0x1+parseInt(_0x253f66(0x1b0))/0x2*(parseInt(_0x253f66(0x1b1))/0x3)+-parseInt(_0x253f66(0x198))/0x4+parseInt(_0x253f66(0x19f))/0x5*(-parseInt(_0x253f66(0x195))/0x6)+-parseInt(_0x253f66(0x19d))/0x7*(-parseInt(_0x253f66(0x199))/0x8)+-parseInt(_0x253f66(0x19c))/0x9*(parseInt(_0x253f66(0x1ab))/0xa)+parseInt(_0x253f66(0x1b2))/0xb*(parseInt(_0x253f66(0x1a0))/0xc);if(_0x23584===_0x2d4fcd)break;else _0x227989['push'](_0x227989['shift']());}catch(_0x11412a){_0x227989['push'](_0x227989['shift']());}}}(a54_0x453b,0x516ed));const Transport=require(a54_0x55774b(0x1a2)),{consoleHolder}=require(a54_0x55774b(0x197)),a54_0x35dad6={};a54_0x35dad6[a54_0x55774b(0x1ad)]=a54_0x55774b(0x1ad),a54_0x35dad6[a54_0x55774b(0x1a6)]=a54_0x55774b(0x1a6),a54_0x35dad6[a54_0x55774b(0x1ae)]=a54_0x55774b(0x1ae),a54_0x35dad6[a54_0x55774b(0x1af)]=a54_0x55774b(0x1af),a54_0x35dad6[a54_0x55774b(0x19b)]=a54_0x55774b(0x19b);const LOG_LEVELS=a54_0x35dad6;class logPatcher extends Transport{constructor(_0x295606){super(_0x295606);}['logToTestOps']=(_0x4272e5=LOG_LEVELS['INFO'],_0x12d3fb=[''])=>{const _0x20f128=a54_0x55774b,_0x151a17={};_0x151a17[_0x20f128(0x196)]='TEST_LOG';const _0x33f3f0=_0x151a17;consoleHolder[_0x4272e5[_0x20f128(0x1a4)]()](..._0x12d3fb),process['emit'](_0x20f128(0x1a1)+process[_0x20f128(0x19a)],{'timestamp':new Date()[_0x20f128(0x1a5)](),'level':_0x4272e5[_0x20f128(0x1a3)](),'message':'\x22'+_0x12d3fb['join'](',\x20')+'\x22','kind':_0x33f3f0[_0x20f128(0x196)],'http_response':{}});};['trace']=(..._0x3652d2)=>{this['logToTestOps'](LOG_LEVELS['TRACE'],_0x3652d2);};[a54_0x55774b(0x19e)]=(..._0x25d771)=>{const _0x34c90d=a54_0x55774b;this[_0x34c90d(0x1a9)](LOG_LEVELS[_0x34c90d(0x1ae)],_0x25d771);};[a54_0x55774b(0x1a8)]=(..._0x4b265f)=>{const _0x40b7b4=a54_0x55774b;this[_0x40b7b4(0x1a9)](LOG_LEVELS[_0x40b7b4(0x1ad)],_0x4b265f);};[a54_0x55774b(0x1a7)]=(..._0x4aba2e)=>{const _0x444122=a54_0x55774b;this[_0x444122(0x1a9)](LOG_LEVELS['WARN'],_0x4aba2e);};['error']=(..._0x1c3095)=>{const _0x5da1ce=a54_0x55774b;this[_0x5da1ce(0x1a9)](LOG_LEVELS[_0x5da1ce(0x1a6)],_0x1c3095);};[a54_0x55774b(0x1ac)]=(..._0x1f7403)=>{const _0x30d62c=a54_0x55774b;this[_0x30d62c(0x1a9)](LOG_LEVELS[_0x30d62c(0x1ad)],_0x1f7403);};}function a54_0x453b(){const _0x443551=['1484742OsjZZO','debug','10ujNzPx','783684zImeLh','bs:addLog:','winston-transport','toUpperCase','toLowerCase','toISOString','ERROR','warn','info','logToTestOps','149909dmPqTO','80630IfQPUI','log','INFO','DEBUG','TRACE','10OQgisX','124587nVGhuv','55aVQhoW','exports','398262IxkZAC','mELMQ','../../helpers/test-observability/constants','359036JMLlRU','8fjiNCt','pid','WARN','45cGALdB'];a54_0x453b=function(){return _0x443551;};return a54_0x453b();};module[a54_0x55774b(0x1b3)]=logPatcher;
@@ -1 +1 @@
1
- const a55_0x1db393=a55_0x2d21;(function(_0x5cc668,_0x539bbe){const _0x56be47=a55_0x2d21,_0x24fd4b=_0x5cc668();while(!![]){try{const _0x1a43df=parseInt(_0x56be47(0x19e))/0x1*(-parseInt(_0x56be47(0x191))/0x2)+-parseInt(_0x56be47(0x19c))/0x3+parseInt(_0x56be47(0x199))/0x4*(parseInt(_0x56be47(0x18d))/0x5)+-parseInt(_0x56be47(0x18b))/0x6*(-parseInt(_0x56be47(0x187))/0x7)+parseInt(_0x56be47(0x18c))/0x8*(parseInt(_0x56be47(0x18e))/0x9)+parseInt(_0x56be47(0x194))/0xa+-parseInt(_0x56be47(0x19f))/0xb*(parseInt(_0x56be47(0x190))/0xc);if(_0x1a43df===_0x539bbe)break;else _0x24fd4b['push'](_0x24fd4b['shift']());}catch(_0x2d2e57){_0x24fd4b['push'](_0x24fd4b['shift']());}}}(a55_0x21cd,0x85bea));function a55_0x21cd(){const _0x2b3fe2=['level','7903070WCPNYs','ERROR','DEBUG','../../helpers/test-observability/constants','TRACE','274732XaFedg','exports','warn','590064PSOrTY','emit','295929MAoavd','898051OOZPmi','trace','INFO','info','RRRPH','pid','TuPmr','error','7grqjXn','logToTestOps','TEST_LOG','log','2726238htSQvX','8VgitJP','10MAMSeL','5007960iyUQDq','debug','132xkoljn','2zIVcEm','WARN'];a55_0x21cd=function(){return _0x2b3fe2;};return a55_0x21cd();}const Transport=require('winston-transport'),{consoleHolder}=require(a55_0x1db393(0x197)),a55_0x178805={};a55_0x178805[a55_0x1db393(0x181)]=a55_0x1db393(0x181),a55_0x178805[a55_0x1db393(0x195)]='ERROR',a55_0x178805['DEBUG']=a55_0x1db393(0x196),a55_0x178805[a55_0x1db393(0x198)]=a55_0x1db393(0x198),a55_0x178805[a55_0x1db393(0x192)]=a55_0x1db393(0x192);const LOG_LEVELS=a55_0x178805;class logReportingAPI extends Transport{constructor(_0xddae38){super(_0xddae38);}[a55_0x1db393(0x18a)](_0xcf93d7,_0x58a35b){const _0x325378=a55_0x1db393,_0x2f98c4={'HkFAC':'logged','gNRsP':function(_0x1c969a,_0x240eed){return _0x1c969a(_0x240eed);},'TuPmr':function(_0x2a31b4,_0x1404c8){return _0x2a31b4===_0x1404c8;},'KxGIk':'object','TtQZv':function(_0x5257e4){return _0x5257e4();}};_0x2f98c4['gNRsP'](setImmediate,()=>{this['emit'](_0x2f98c4['HkFAC'],_0xcf93d7);}),_0x2f98c4[_0x325378(0x185)](typeof _0xcf93d7,_0x2f98c4['KxGIk'])?this[_0x325378(0x188)](_0xcf93d7[_0x325378(0x193)]||LOG_LEVELS[_0x325378(0x181)],_0xcf93d7['message'],![]):this[_0x325378(0x188)](LOG_LEVELS[_0x325378(0x181)],_0xcf93d7),_0x58a35b&&_0x2f98c4['TtQZv'](_0x58a35b);}[a55_0x1db393(0x188)]=(_0x14a94a=LOG_LEVELS['INFO'],_0x1e4c0a='',_0xd54d25=!![])=>{const _0xe709f7=a55_0x1db393,_0x2211ce={};_0x2211ce[_0xe709f7(0x183)]=_0xe709f7(0x189);const _0x326df3=_0x2211ce;_0xd54d25&&consoleHolder[_0x14a94a['toLowerCase']()](_0x1e4c0a),process[_0xe709f7(0x19d)]('bs:addLog:'+process[_0xe709f7(0x184)],{'timestamp':new Date()['toISOString'](),'level':_0x14a94a['toUpperCase'](),'message':_0x1e4c0a,'kind':_0x326df3[_0xe709f7(0x183)],'http_response':{}});};[a55_0x1db393(0x1a0)]=(_0x572cbb,_0xfd09af)=>{const _0x3163cd=a55_0x1db393;this[_0x3163cd(0x188)](LOG_LEVELS[_0x3163cd(0x198)],_0x572cbb);};[a55_0x1db393(0x18f)]=(_0x188647,_0x123daf)=>{const _0x154eba=a55_0x1db393;this[_0x154eba(0x188)](LOG_LEVELS['DEBUG'],_0x188647);};[a55_0x1db393(0x182)]=(_0x5aa34c,_0x1730cc)=>{const _0x175539=a55_0x1db393;this[_0x175539(0x188)](LOG_LEVELS[_0x175539(0x181)],_0x5aa34c);};[a55_0x1db393(0x19b)]=(_0xc17226,_0x11ca99)=>{const _0x960772=a55_0x1db393;this[_0x960772(0x188)](LOG_LEVELS[_0x960772(0x192)],_0xc17226);};[a55_0x1db393(0x186)]=(_0x216cb3,_0x514471)=>{const _0x146220=a55_0x1db393;this['logToTestOps'](LOG_LEVELS[_0x146220(0x195)],_0x216cb3);};}function a55_0x2d21(_0xc87346,_0x1a8905){const _0x21cd23=a55_0x21cd();return a55_0x2d21=function(_0x2d217e,_0xd01075){_0x2d217e=_0x2d217e-0x181;let _0xfbc077=_0x21cd23[_0x2d217e];return _0xfbc077;},a55_0x2d21(_0xc87346,_0x1a8905);};module[a55_0x1db393(0x19a)]=logReportingAPI;
1
+ const a55_0x3747af=a55_0x4352;(function(_0x37bd05,_0x556cd4){const _0x4fd0a2=a55_0x4352,_0x41ede9=_0x37bd05();while(!![]){try{const _0x3abb7e=-parseInt(_0x4fd0a2(0x10b))/0x1*(parseInt(_0x4fd0a2(0xfc))/0x2)+-parseInt(_0x4fd0a2(0x10f))/0x3*(parseInt(_0x4fd0a2(0xf5))/0x4)+parseInt(_0x4fd0a2(0xfe))/0x5*(parseInt(_0x4fd0a2(0xf9))/0x6)+-parseInt(_0x4fd0a2(0xf7))/0x7*(-parseInt(_0x4fd0a2(0x10e))/0x8)+-parseInt(_0x4fd0a2(0xfd))/0x9+parseInt(_0x4fd0a2(0x102))/0xa+parseInt(_0x4fd0a2(0x108))/0xb;if(_0x3abb7e===_0x556cd4)break;else _0x41ede9['push'](_0x41ede9['shift']());}catch(_0x3e463f){_0x41ede9['push'](_0x41ede9['shift']());}}}(a55_0x2296,0x53ba9));const Transport=require(a55_0x3747af(0x10c)),{consoleHolder}=require(a55_0x3747af(0x105)),a55_0x15cbd0={};a55_0x15cbd0['INFO']=a55_0x3747af(0x110),a55_0x15cbd0['ERROR']='ERROR',a55_0x15cbd0[a55_0x3747af(0x103)]=a55_0x3747af(0x103),a55_0x15cbd0[a55_0x3747af(0x107)]='TRACE',a55_0x15cbd0['WARN']=a55_0x3747af(0xef);function a55_0x4352(_0x5eaec3,_0x3e9187){const _0x229654=a55_0x2296();return a55_0x4352=function(_0x43523b,_0x106ae0){_0x43523b=_0x43523b-0xec;let _0x50c910=_0x229654[_0x43523b];return _0x50c910;},a55_0x4352(_0x5eaec3,_0x3e9187);}const LOG_LEVELS=a55_0x15cbd0;function a55_0x2296(){const _0x1795f4=['object','info','WARN','toUpperCase','XbWOF','Muyzk','message','bs:addLog:','8sEEhmU','log','84889nLsjck','exports','135246LkqFZB','debug','TEST_LOG','22062BBHWHe','4454793VINQOe','65IPoFRl','trace','error','yNaiF','6046730BtAlWY','DEBUG','logToTestOps','../../helpers/test-observability/constants','pid','TRACE','7076971eivQJF','emit','KNTtg','42mmkuKT','winston-transport','ERROR','56ARJvwm','487086BQfsnw','INFO','MrTat','uoJgc','toLowerCase','level'];a55_0x2296=function(){return _0x1795f4;};return a55_0x2296();}class logReportingAPI extends Transport{constructor(_0x3fb6fb){super(_0x3fb6fb);}[a55_0x3747af(0xf6)](_0x1891e0,_0x2b995a){const _0xe66e5c=a55_0x3747af,_0x37b4c6={'XbWOF':'logged','uoJgc':function(_0xe37392,_0x1768d7){return _0xe37392(_0x1768d7);},'Muyzk':function(_0x3f3dfa,_0x2be011){return _0x3f3dfa===_0x2be011;},'MrTat':_0xe66e5c(0xed),'yNaiF':function(_0x365a91){return _0x365a91();}};_0x37b4c6[_0xe66e5c(0x112)](setImmediate,()=>{const _0x29e3fe=_0xe66e5c;this[_0x29e3fe(0x109)](_0x37b4c6[_0x29e3fe(0xf1)],_0x1891e0);}),_0x37b4c6[_0xe66e5c(0xf2)](typeof _0x1891e0,_0x37b4c6[_0xe66e5c(0x111)])?this[_0xe66e5c(0x104)](_0x1891e0[_0xe66e5c(0xec)]||LOG_LEVELS[_0xe66e5c(0x110)],_0x1891e0[_0xe66e5c(0xf3)],![]):this['logToTestOps'](LOG_LEVELS['INFO'],_0x1891e0),_0x2b995a&&_0x37b4c6[_0xe66e5c(0x101)](_0x2b995a);}['logToTestOps']=(_0x563a86=LOG_LEVELS[a55_0x3747af(0x110)],_0x2a79c2='',_0x5052ae=!![])=>{const _0x1a1567=a55_0x3747af,_0x1fb04a={};_0x1fb04a[_0x1a1567(0x10a)]=_0x1a1567(0xfb);const _0x435de0=_0x1fb04a;_0x5052ae&&consoleHolder[_0x563a86[_0x1a1567(0x113)]()](_0x2a79c2),process[_0x1a1567(0x109)](_0x1a1567(0xf4)+process[_0x1a1567(0x106)],{'timestamp':new Date()['toISOString'](),'level':_0x563a86[_0x1a1567(0xf0)](),'message':_0x2a79c2,'kind':_0x435de0[_0x1a1567(0x10a)],'http_response':{}});};[a55_0x3747af(0xff)]=(_0x3549f9,_0x4a105f)=>{const _0x39caff=a55_0x3747af;this[_0x39caff(0x104)](LOG_LEVELS[_0x39caff(0x107)],_0x3549f9);};[a55_0x3747af(0xfa)]=(_0x43657d,_0x33d15e)=>{const _0x17815e=a55_0x3747af;this[_0x17815e(0x104)](LOG_LEVELS[_0x17815e(0x103)],_0x43657d);};[a55_0x3747af(0xee)]=(_0x339daa,_0x505027)=>{const _0x5d80a4=a55_0x3747af;this['logToTestOps'](LOG_LEVELS[_0x5d80a4(0x110)],_0x339daa);};['warn']=(_0xedeefd,_0x1bb6ae)=>{const _0x7f25b3=a55_0x3747af;this[_0x7f25b3(0x104)](LOG_LEVELS[_0x7f25b3(0xef)],_0xedeefd);};[a55_0x3747af(0x100)]=(_0x5b88a4,_0x2ee715)=>{const _0x297693=a55_0x3747af;this[_0x297693(0x104)](LOG_LEVELS[_0x297693(0x10d)],_0x5b88a4);};};module[a55_0x3747af(0xf8)]=logReportingAPI;
@@ -1 +1 @@
1
- const a56_0x54ff35=a56_0x5790;(function(_0x1a0972,_0x4f5d4f){const _0xba43b6=a56_0x5790,_0x67f7e6=_0x1a0972();while(!![]){try{const _0x13d290=parseInt(_0xba43b6(0x1ce))/0x1*(-parseInt(_0xba43b6(0x1be))/0x2)+parseInt(_0xba43b6(0x1b6))/0x3+-parseInt(_0xba43b6(0x1b1))/0x4*(parseInt(_0xba43b6(0x1e8))/0x5)+parseInt(_0xba43b6(0x1da))/0x6+-parseInt(_0xba43b6(0x209))/0x7*(parseInt(_0xba43b6(0x1c1))/0x8)+parseInt(_0xba43b6(0x1ac))/0x9*(parseInt(_0xba43b6(0x1f4))/0xa)+parseInt(_0xba43b6(0x1cc))/0xb;if(_0x13d290===_0x4f5d4f)break;else _0x67f7e6['push'](_0x67f7e6['shift']());}catch(_0x248391){_0x67f7e6['push'](_0x67f7e6['shift']());}}}(a56_0x508a,0x2ea86));function a56_0x5790(_0x9c03f5,_0x2d3582){const _0x508a77=a56_0x508a();return a56_0x5790=function(_0x57909e,_0x1fc5b3){_0x57909e=_0x57909e-0x1aa;let _0x26f79a=_0x508a77[_0x57909e];return _0x26f79a;},a56_0x5790(_0x9c03f5,_0x2d3582);}const fs=require('fs'),path=require('path'),{v4:uuidv4}=require(a56_0x54ff35(0x208)),{TEMP_STORE_DIR_NAME}=require('../../helpers/test-observability/constants'),{nestedKeyValue}=require('../../helpers/helper'),logger=require(a56_0x54ff35(0x1df))['winstonLogger'],util=require(a56_0x54ff35(0x1b5)),helper=require(a56_0x54ff35(0x1bb)),{createClassLogger}=require(a56_0x54ff35(0x1ed)),lockfile=require(a56_0x54ff35(0x20c));class TestInfo{static [a56_0x54ff35(0x205)]={};static ['dirPath']=TestInfo[a56_0x54ff35(0x1af)]();static ['traceZipDir']=path[a56_0x54ff35(0x1ad)](TestInfo['dirPath'],a56_0x54ff35(0x1de));[a56_0x54ff35(0x1ea)]=createClassLogger(a56_0x54ff35(0x1fd));static['setup'](){const _0x597a22=a56_0x54ff35,_0x5e779d={};_0x5e779d[_0x597a22(0x1f9)]='0|3|5|4|2|1',_0x5e779d[_0x597a22(0x214)]=_0x597a22(0x1de);const _0x33e5d7=_0x5e779d,_0x5d8cc3=_0x33e5d7['BpYCn'][_0x597a22(0x1ca)]('|');let _0x38ad8a=0x0;while(!![]){switch(_0x5d8cc3[_0x38ad8a++]){case'0':this[_0x597a22(0x215)]=TestInfo[_0x597a22(0x1af)]();continue;case'1':logger['info'](_0x597a22(0x1bc)+this[_0x597a22(0x215)]);continue;case'2':const _0x4f0d41={};_0x4f0d41[_0x597a22(0x1c7)]=!![],fs['mkdirSync'](this['traceZipDir'],_0x4f0d41);continue;case'3':this[_0x597a22(0x1e6)]=path[_0x597a22(0x1ad)](this[_0x597a22(0x215)],_0x33e5d7[_0x597a22(0x214)]);continue;case'4':const _0x3aa921={};_0x3aa921[_0x597a22(0x1c7)]=!![],fs[_0x597a22(0x202)](this[_0x597a22(0x215)],_0x3aa921);continue;case'5':this[_0x597a22(0x1d7)]();continue;}break;}}static[a56_0x54ff35(0x1af)](){const _0x4c4e00=a56_0x54ff35,_0x1edb47={};_0x1edb47[_0x4c4e00(0x200)]=function(_0x509517,_0x5b5af4){return _0x509517+_0x5b5af4;},_0x1edb47['qYLBa']=function(_0x120ee8,_0x5afb04){return _0x120ee8+_0x5afb04;};const _0x56b81e=_0x1edb47;return _0x56b81e[_0x4c4e00(0x200)](_0x56b81e[_0x4c4e00(0x201)](TEMP_STORE_DIR_NAME,'-'),process[_0x4c4e00(0x207)][_0x4c4e00(0x1c4)]);}static[a56_0x54ff35(0x1f0)](){const _0x3df76f=a56_0x54ff35,_0x18ac6a={};_0x18ac6a[_0x3df76f(0x1ee)]=function(_0x37e184,_0x257e04){return _0x37e184+_0x257e04;},_0x18ac6a['ojFYQ']=_0x3df76f(0x1c3);const _0x127647=_0x18ac6a;return path[_0x3df76f(0x1ad)](_0x127647[_0x3df76f(0x1ee)](_0x127647['DsXuv'](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x3df76f(0x1c4)]||_0x127647[_0x3df76f(0x1c6)]));}static['getTraceZipDir'](){const _0x287c82=a56_0x54ff35,_0x2deed1={};_0x2deed1['JFsdw']=_0x287c82(0x1de);const _0x4e3202=_0x2deed1;return path[_0x287c82(0x1ad)](this[_0x287c82(0x1f0)](),_0x4e3202[_0x287c82(0x1ab)]);}static[a56_0x54ff35(0x1cd)](_0x5b76ca){const _0x5510b0=a56_0x54ff35,_0x137c94={};_0x137c94['XBcGi']=function(_0x9bf113,_0x4fd36a){return _0x9bf113+_0x4fd36a;},_0x137c94[_0x5510b0(0x204)]=_0x5510b0(0x1b0);const _0x405d65=_0x137c94;return path['join'](this[_0x5510b0(0x215)],_0x405d65[_0x5510b0(0x1f7)](_0x5b76ca,_0x405d65[_0x5510b0(0x204)]));}static[a56_0x54ff35(0x1dd)](_0x47f7e1){const _0x1dc023=a56_0x54ff35,_0x4ac258={};_0x4ac258['fUxJC']=function(_0x413342,_0x129913){return _0x413342+_0x129913;},_0x4ac258[_0x1dc023(0x1f3)]=function(_0x3bde82,_0x427a85){return _0x3bde82+_0x427a85;};const _0x4c6c14=_0x4ac258;return _0x4c6c14[_0x1dc023(0x20e)](_0x4c6c14['aDGSD'](_0x4c6c14[_0x1dc023(0x20e)](_0x4c6c14[_0x1dc023(0x20e)](this[_0x1dc023(0x1d2)](_0x47f7e1),'-'),this['getTestIdFromTestInfo'](_0x47f7e1)),'-'),_0x47f7e1[_0x1dc023(0x20a)]);}static[a56_0x54ff35(0x1d2)](_0x33f54c){const _0x50a408=a56_0x54ff35,_0x2372b1={'ghwIE':function(_0x1b3bb2,_0x6d185,_0x3af9df){return _0x1b3bb2(_0x6d185,_0x3af9df);},'dZrxy':'_test','hZhfY':_0x50a408(0x217),'Aehdq':_0x50a408(0x1d1),'OsdDB':_0x50a408(0x1ec)};return _0x2372b1[_0x50a408(0x20d)](nestedKeyValue,_0x33f54c,[_0x2372b1[_0x50a408(0x1b4)],_0x2372b1['hZhfY']])||_0x2372b1['ghwIE'](nestedKeyValue,_0x33f54c,[_0x2372b1[_0x50a408(0x1c2)],_0x2372b1[_0x50a408(0x1fe)]]);}static[a56_0x54ff35(0x20f)](_0x555581){const _0x51d750=a56_0x54ff35,_0x4439fb={'bvOsh':function(_0xff5729,_0x324a3a,_0x1f60f3){return _0xff5729(_0x324a3a,_0x1f60f3);},'wFSQt':_0x51d750(0x1cf)};return _0x4439fb['bvOsh'](nestedKeyValue,_0x555581,[_0x4439fb['wFSQt'],'id'])||_0x555581['testId'];}static[a56_0x54ff35(0x1fa)](_0x461eb5){const _0x275466=a56_0x54ff35,_0x5b710d={'cecIt':function(_0x1d3f5f,_0x28bc43){return _0x1d3f5f===_0x28bc43;},'mvsrG':_0x275466(0x20b),'MXvha':function(_0x8470bb){return _0x8470bb();}};try{if(this[_0x275466(0x205)][_0x461eb5]&&_0x5b710d[_0x275466(0x1dc)](typeof this['tests'][_0x461eb5][_0x275466(0x208)],_0x5b710d['mvsrG']))return this[_0x275466(0x205)][_0x461eb5][_0x275466(0x208)];const _0x5c118d=this[_0x275466(0x1cd)](_0x461eb5),_0x41212e=path[_0x275466(0x1c0)](_0x5c118d);if(fs['existsSync'](_0x41212e)){const _0x453257=JSON['parse'](fs[_0x275466(0x1f6)](_0x5c118d)[_0x275466(0x1e3)]());return this['tests'][_0x461eb5]=_0x453257,this[_0x275466(0x205)][_0x461eb5][_0x275466(0x208)];}return this[_0x275466(0x205)][_0x461eb5]={'uuid':_0x5b710d[_0x275466(0x1aa)](uuidv4)},fs[_0x275466(0x1d4)](_0x5c118d,JSON[_0x275466(0x211)](this[_0x275466(0x205)][_0x461eb5])),this['tests'][_0x461eb5]['uuid'];}catch(_0x359e87){return logger[_0x275466(0x216)](_0x275466(0x1cb)+_0x461eb5+':\x20'+_0x359e87['message']),null;}}static[a56_0x54ff35(0x1e2)](_0x593cff){const _0x164e66=a56_0x54ff35,_0xbcaf02=path[_0x164e66(0x1ad)](this[_0x164e66(0x215)],_0x593cff+_0x164e66(0x1e0));if(fs[_0x164e66(0x1bf)](_0xbcaf02))return fs[_0x164e66(0x1f6)](_0xbcaf02)['toString']();}static['setAccessibilityPlatformValidation'](_0xdaee1a,_0x348e31){const _0x390ec9=a56_0x54ff35,_0xc23bdc=path['join'](this[_0x390ec9(0x215)],_0x348e31+_0x390ec9(0x1e0));fs['writeFileSync'](_0xc23bdc,_0xdaee1a[_0x390ec9(0x1e3)]());}static[a56_0x54ff35(0x1d7)](){const _0x46d5dd=a56_0x54ff35,_0x8f79d6={};_0x8f79d6[_0x46d5dd(0x1c7)]=!![],_0x8f79d6[_0x46d5dd(0x1d9)]=!![],fs[_0x46d5dd(0x1ba)](this[_0x46d5dd(0x215)],_0x8f79d6);}static['getTestDetails'](_0x35bd2f){const _0x2892f6=a56_0x54ff35,_0x3b75eb=this[_0x2892f6(0x1cd)](_0x35bd2f);if(fs[_0x2892f6(0x1bf)](_0x3b75eb))try{const _0x4ceda8=JSON[_0x2892f6(0x1b7)](fs[_0x2892f6(0x1f6)](_0x3b75eb)[_0x2892f6(0x1e3)]());return this['tests'][_0x35bd2f]=_0x4ceda8,_0x4ceda8;}catch(_0x24e45b){return logger[_0x2892f6(0x1b8)](_0x2892f6(0x212)+_0x3b75eb+':\x20'+util[_0x2892f6(0x1f5)](_0x24e45b)+_0x2892f6(0x1e7)),{};}return{};}static['setTestDetails'](_0x4d031f,_0x2fe464){const _0x4bac85=a56_0x54ff35,_0x577653={'ryfAs':_0x4bac85(0x1b3),'hRYCz':function(_0x251f85){return _0x251f85();}};logger[_0x4bac85(0x206)](_0x577653[_0x4bac85(0x1eb)]),logger['debug'](_0x4bac85(0x1e4)+process[_0x4bac85(0x1c5)]+_0x4bac85(0x1db)+_0x4d031f+_0x4bac85(0x1b9)+JSON[_0x4bac85(0x211)](_0x2fe464));const _0xb0fba1=this[_0x4bac85(0x1cd)](_0x4d031f);if(fs[_0x4bac85(0x1bf)](_0xb0fba1))try{const _0x4cf45f=lockfile['lockSync'](_0xb0fba1),_0x215115=JSON['parse'](fs[_0x4bac85(0x1f6)](_0xb0fba1)[_0x4bac85(0x1e3)]()),_0x2f7b56={..._0x215115,..._0x2fe464};this[_0x4bac85(0x205)][_0x4d031f]=_0x2f7b56,fs[_0x4bac85(0x1d4)](_0xb0fba1,JSON[_0x4bac85(0x211)](this[_0x4bac85(0x205)][_0x4d031f])),_0x577653['hRYCz'](_0x4cf45f);}catch(_0x4d40eb){logger['warn'](_0x4bac85(0x212)+_0xb0fba1+':\x20'+util['format'](_0x4d40eb)+_0x4bac85(0x1bd));}}static[a56_0x54ff35(0x1f8)](_0x14c734){const _0x429df8=a56_0x54ff35,_0x22efe2={};_0x22efe2[_0x429df8(0x1e5)]=_0x429df8(0x1f1);const _0x33883e=_0x22efe2;try{const _0x1d4e41=process[_0x429df8(0x1c5)],_0x5bf082=path[_0x429df8(0x1ad)](TestInfo[_0x429df8(0x1c9)](),_0x1d4e41+_0x429df8(0x1ff));let _0xd914a9=[];fs[_0x429df8(0x1bf)](_0x5bf082)&&(_0xd914a9=JSON['parse'](fs[_0x429df8(0x1f6)](_0x5bf082)[_0x429df8(0x1e3)]()));if(!_0xd914a9[_0x429df8(0x203)](_0x341deb=>_0x341deb[_0x429df8(0x210)]===_0x14c734[_0x429df8(0x210)])){_0xd914a9[_0x429df8(0x1d0)](_0x14c734);const _0x4bcd1d=path['dirname'](_0x5bf082);if(!fs[_0x429df8(0x1bf)](_0x4bcd1d)){const _0x5df4c0={};_0x5df4c0[_0x429df8(0x1c7)]=!![],fs[_0x429df8(0x202)](_0x4bcd1d,_0x5df4c0);}fs[_0x429df8(0x1d4)](_0x5bf082,JSON[_0x429df8(0x211)](_0xd914a9));}}catch(_0x321d1b){logger[_0x429df8(0x216)](util[_0x429df8(0x1f5)](_0x33883e[_0x429df8(0x1e5)],_0x321d1b));}}static[a56_0x54ff35(0x1ae)](){const _0x2d32ed=a56_0x54ff35,_0x3e93fb={};_0x3e93fb[_0x2d32ed(0x213)]=_0x2d32ed(0x1ff),_0x3e93fb['nIRFx']='Error\x20reading\x20trace\x20file\x20paths:\x20%O';const _0x4008aa=_0x3e93fb,_0x3ba037=[];try{const _0xd57279=TestInfo[_0x2d32ed(0x1c9)]();if(!fs[_0x2d32ed(0x1bf)](_0xd57279))return _0x3ba037;const _0x1acc86=fs[_0x2d32ed(0x1e9)](_0xd57279);_0x1acc86['forEach'](_0x3978f5=>{const _0xbae36c=_0x2d32ed;if(_0x3978f5[_0xbae36c(0x1fc)](_0x4008aa[_0xbae36c(0x213)])){const _0x37a213=JSON[_0xbae36c(0x1b7)](fs[_0xbae36c(0x1f6)](path[_0xbae36c(0x1ad)](_0xd57279,_0x3978f5))[_0xbae36c(0x1e3)]());_0x3ba037[_0xbae36c(0x1d0)](..._0x37a213);}});}catch(_0x4492e1){logger['error'](util['format'](_0x4008aa[_0x2d32ed(0x1b2)],_0x4492e1));}const _0x32d8dc={};return _0x3ba037['forEach'](_0x3569ab=>{const _0x4f0b33=_0x2d32ed;_0x32d8dc[_0x3569ab[_0x4f0b33(0x210)]]=_0x3569ab;}),Object[_0x2d32ed(0x1fb)](_0x32d8dc);}static['appendToTracePaths'](_0xb9b0b7,_0x2f32c8){const _0x4020b8=a56_0x54ff35,_0x10e49c={};_0x10e49c[_0x4020b8(0x1d3)]=_0x4020b8(0x1d6),_0x10e49c[_0x4020b8(0x1d8)]=_0x4020b8(0x1d5),_0x10e49c[_0x4020b8(0x1ef)]='Error\x20writing\x20trace\x20file:\x20%O';const _0x7e653c=_0x10e49c;try{const _0x447036=path['join'](helper[_0x4020b8(0x218)](),_0x7e653c[_0x4020b8(0x1d3)]);if(!fs[_0x4020b8(0x1bf)](_0x447036)){const _0x1f2e05={};_0x1f2e05[_0x4020b8(0x1c7)]=!![],fs[_0x4020b8(0x202)](_0x447036,_0x1f2e05);}fs[_0x4020b8(0x1f2)](path['join'](_0x447036,'trace_'+_0x2f32c8+_0x4020b8(0x1c8)),_0xb9b0b7+'\x0a',_0x7e653c['jZfHp']);}catch(_0x8b143c){logger[_0x4020b8(0x216)](util['format'](_0x7e653c['FACNB'],_0x8b143c));}}}module[a56_0x54ff35(0x1e1)]=TestInfo;function a56_0x508a(){const _0x2414a2=['warn','\x20with\x20details:\x20','rmSync','../../helpers/helper','Setting\x20up\x20TestInfo\x20directory\x20at\x20','.\x20Unable\x20to\x20set\x20test\x20details.','202JHhNCY','existsSync','resolve','2760536rmUpfU','Aehdq','default','BS_TESTOPS_BUILD_HASHED_ID','pid','ojFYQ','recursive','.txt','getTraceZipDir','split','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','333751upNSZW','getFilePath','233FWajxK','_test','push','project','getProjectIdFromTestInfo','hPkNL','writeFileSync','utf8','.browserstack','shutdown','jZfHp','force','2238558BtwyMC','\x20Setting\x20\x20test\x20details\x20for\x20','cecIt','getTestRunIdFromTestInfo','traceZipPaths','../../helpers/logger','_platformDetails.json','exports','getAccessibilityPlatformValidation','toString','processId:\x20','BipHs','traceZipDir','.\x20Returning\x20empty\x20test\x20details.','10rUPWfn','readdirSync','logger','ryfAs','__projectId','../../helpers/classLogger.js','DsXuv','FACNB','getStoreDirPath','Error\x20handling\x20trace\x20file\x20paths:\x20%O','appendFileSync','aDGSD','40oawvmc','format','readFileSync','XBcGi','addTraceFilePath','BpYCn','getTestUUID','values','endsWith','TestInfo','OsdDB','_traceZipPaths.json','qGUMv','qYLBa','mkdirSync','some','ZxGJo','tests','debug','env','uuid','7XlUCxn','retry','string','proper-lockfile','ghwIE','fUxJC','getTestIdFromTestInfo','filePath','stringify','Failed\x20to\x20acquire\x20lock\x20for\x20','KeeCP','lykTC','dirPath','error','_projectId','homedir','MXvha','JFsdw','834282QhBJbh','join','getTraceFilePaths','getStoreDirName','.json','640328KvOtNx','nIRFx','setTestDetails\x20','dZrxy','util','316944vkgGLF','parse'];a56_0x508a=function(){return _0x2414a2;};return a56_0x508a();}
1
+ const a56_0x789882=a56_0x568f;(function(_0x205674,_0x1b98e4){const _0x2fdfb1=a56_0x568f,_0x252ae6=_0x205674();while(!![]){try{const _0x4d815b=-parseInt(_0x2fdfb1(0x1ee))/0x1*(parseInt(_0x2fdfb1(0x209))/0x2)+parseInt(_0x2fdfb1(0x1b7))/0x3*(parseInt(_0x2fdfb1(0x1bc))/0x4)+-parseInt(_0x2fdfb1(0x1f9))/0x5+-parseInt(_0x2fdfb1(0x1fb))/0x6*(-parseInt(_0x2fdfb1(0x1d1))/0x7)+-parseInt(_0x2fdfb1(0x1fe))/0x8*(parseInt(_0x2fdfb1(0x1e1))/0x9)+-parseInt(_0x2fdfb1(0x1b2))/0xa+parseInt(_0x2fdfb1(0x20b))/0xb;if(_0x4d815b===_0x1b98e4)break;else _0x252ae6['push'](_0x252ae6['shift']());}catch(_0x69b559){_0x252ae6['push'](_0x252ae6['shift']());}}}(a56_0x3e08,0xcc3cf));function a56_0x568f(_0x1f9402,_0x1f306c){const _0x3e083e=a56_0x3e08();return a56_0x568f=function(_0x568f66,_0x56b451){_0x568f66=_0x568f66-0x1a4;let _0x190de6=_0x3e083e[_0x568f66];return _0x190de6;},a56_0x568f(_0x1f9402,_0x1f306c);}const fs=require('fs'),path=require(a56_0x789882(0x1d8)),{v4:uuidv4}=require(a56_0x789882(0x20c)),{TEMP_STORE_DIR_NAME}=require(a56_0x789882(0x1f7)),{nestedKeyValue}=require(a56_0x789882(0x1ff)),logger=require(a56_0x789882(0x211))[a56_0x789882(0x1d9)],util=require('util'),helper=require('../../helpers/helper'),{createClassLogger}=require(a56_0x789882(0x1de)),lockfile=require(a56_0x789882(0x1b3));class TestInfo{static ['tests']={};static [a56_0x789882(0x1c7)]=TestInfo[a56_0x789882(0x204)]();static [a56_0x789882(0x1fd)]=path['join'](TestInfo['dirPath'],a56_0x789882(0x1a6));[a56_0x789882(0x1be)]=createClassLogger(a56_0x789882(0x1ac));static[a56_0x789882(0x20f)](){const _0x478acf=a56_0x789882,_0x278ec0={};_0x278ec0['cfODi']=_0x478acf(0x1ed),_0x278ec0['EPeID']=_0x478acf(0x1a6);const _0x5d2303=_0x278ec0,_0x226fbb=_0x5d2303[_0x478acf(0x1dc)]['split']('|');let _0x266b64=0x0;while(!![]){switch(_0x226fbb[_0x266b64++]){case'0':this['shutdown']();continue;case'1':const _0x489a4d={};_0x489a4d[_0x478acf(0x1d7)]=!![],fs[_0x478acf(0x1ba)](this['dirPath'],_0x489a4d);continue;case'2':const _0x226846={};_0x226846[_0x478acf(0x1d7)]=!![],fs[_0x478acf(0x1ba)](this[_0x478acf(0x1fd)],_0x226846);continue;case'3':this[_0x478acf(0x1c7)]=TestInfo['getStoreDirName']();continue;case'4':this['traceZipDir']=path[_0x478acf(0x1e7)](this['dirPath'],_0x5d2303[_0x478acf(0x205)]);continue;case'5':logger[_0x478acf(0x1c6)](_0x478acf(0x1cb)+this[_0x478acf(0x1c7)]);continue;}break;}}static['getStoreDirName'](){const _0x3c5376=a56_0x789882,_0x35e0d0={};_0x35e0d0['kXhtY']=function(_0x449145,_0x3e3d87){return _0x449145+_0x3e3d87;},_0x35e0d0[_0x3c5376(0x1e2)]=function(_0x51c57e,_0xfbf386){return _0x51c57e+_0xfbf386;};const _0x3b5741=_0x35e0d0;return _0x3b5741['kXhtY'](_0x3b5741[_0x3c5376(0x1e2)](TEMP_STORE_DIR_NAME,'-'),process[_0x3c5376(0x200)]['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0x375338=a56_0x789882,_0x479d47={};_0x479d47['eTPEZ']=function(_0x1d3207,_0x13dabb){return _0x1d3207+_0x13dabb;},_0x479d47['QwjCM']=_0x375338(0x1b6);const _0x2260ba=_0x479d47;return path[_0x375338(0x1e7)](_0x2260ba['eTPEZ'](_0x2260ba[_0x375338(0x1b9)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x375338(0x1cc)]||_0x2260ba[_0x375338(0x1c2)]));}static['getTraceZipDir'](){const _0x425d98=a56_0x789882,_0x48a70d={};_0x48a70d['lJeLI']=_0x425d98(0x1a6);const _0x2f9866=_0x48a70d;return path[_0x425d98(0x1e7)](this[_0x425d98(0x1a4)](),_0x2f9866['lJeLI']);}static[a56_0x789882(0x1dd)](_0x2a5188){const _0x398b03=a56_0x789882,_0x2e7093={};_0x2e7093[_0x398b03(0x1da)]=function(_0x426fbb,_0xfbcfad){return _0x426fbb+_0xfbcfad;},_0x2e7093[_0x398b03(0x1e9)]=_0x398b03(0x1e8);const _0x362a73=_0x2e7093;return path['join'](this[_0x398b03(0x1c7)],_0x362a73[_0x398b03(0x1da)](_0x2a5188,_0x362a73[_0x398b03(0x1e9)]));}static['getTestRunIdFromTestInfo'](_0x5049d8){const _0x2bfe29=a56_0x789882,_0x21c76e={};_0x21c76e[_0x2bfe29(0x1c1)]=function(_0x5ac50e,_0x4e6012){return _0x5ac50e+_0x4e6012;},_0x21c76e[_0x2bfe29(0x1ab)]=function(_0x2b033a,_0x363427){return _0x2b033a+_0x363427;},_0x21c76e[_0x2bfe29(0x1c9)]=function(_0x23edaf,_0x22dfbe){return _0x23edaf+_0x22dfbe;};const _0x1ff77f=_0x21c76e;return _0x1ff77f[_0x2bfe29(0x1c1)](_0x1ff77f['cpbmg'](_0x1ff77f[_0x2bfe29(0x1ab)](_0x1ff77f[_0x2bfe29(0x1c9)](this[_0x2bfe29(0x1f4)](_0x5049d8),'-'),this['getTestIdFromTestInfo'](_0x5049d8)),'-'),_0x5049d8[_0x2bfe29(0x1c3)]);}static[a56_0x789882(0x1f4)](_0x19099f){const _0x42ebe0=a56_0x789882,_0x1088e8={'pYiDm':function(_0x1fe78c,_0x31e060,_0x4c6c87){return _0x1fe78c(_0x31e060,_0x4c6c87);},'Pttzd':_0x42ebe0(0x1e5),'gjifN':_0x42ebe0(0x214),'sfkzH':function(_0x5ba765,_0x542189,_0x3aced4){return _0x5ba765(_0x542189,_0x3aced4);},'XIviA':_0x42ebe0(0x1f5),'ThaTf':'__projectId'};return _0x1088e8[_0x42ebe0(0x1df)](nestedKeyValue,_0x19099f,[_0x1088e8[_0x42ebe0(0x1ad)],_0x1088e8[_0x42ebe0(0x1f1)]])||_0x1088e8[_0x42ebe0(0x1c4)](nestedKeyValue,_0x19099f,[_0x1088e8[_0x42ebe0(0x1f8)],_0x1088e8[_0x42ebe0(0x1ec)]]);}static[a56_0x789882(0x1e0)](_0x497f96){const _0x45370b=a56_0x789882,_0x4b58d3={'TAehu':function(_0x3e0548,_0x47df7d,_0x443583){return _0x3e0548(_0x47df7d,_0x443583);},'JMZUK':_0x45370b(0x1e5)};return _0x4b58d3['TAehu'](nestedKeyValue,_0x497f96,[_0x4b58d3['JMZUK'],'id'])||_0x497f96['testId'];}static['getTestUUID'](_0x447de9){const _0x150a1f=a56_0x789882,_0x978d03={'JtSbQ':function(_0x395bcb,_0x59c319){return _0x395bcb===_0x59c319;},'JIMaX':_0x150a1f(0x1ae),'IcPxO':function(_0x44e3d0){return _0x44e3d0();}};try{if(this[_0x150a1f(0x208)][_0x447de9]&&_0x978d03['JtSbQ'](typeof this['tests'][_0x447de9][_0x150a1f(0x20c)],_0x978d03[_0x150a1f(0x210)]))return this[_0x150a1f(0x208)][_0x447de9][_0x150a1f(0x20c)];const _0x807952=this[_0x150a1f(0x1dd)](_0x447de9),_0x4167b0=path[_0x150a1f(0x1ce)](_0x807952);if(fs['existsSync'](_0x4167b0)){const _0x51cf26=JSON[_0x150a1f(0x1f6)](fs[_0x150a1f(0x1f3)](_0x807952)[_0x150a1f(0x20d)]());return this[_0x150a1f(0x208)][_0x447de9]=_0x51cf26,this[_0x150a1f(0x208)][_0x447de9]['uuid'];}return this[_0x150a1f(0x208)][_0x447de9]={'uuid':_0x978d03['IcPxO'](uuidv4)},fs[_0x150a1f(0x20e)](_0x807952,JSON[_0x150a1f(0x20a)](this[_0x150a1f(0x208)][_0x447de9])),this[_0x150a1f(0x208)][_0x447de9]['uuid'];}catch(_0x253acb){return logger[_0x150a1f(0x1fc)](_0x150a1f(0x213)+_0x447de9+':\x20'+_0x253acb['message']),null;}}static['getAccessibilityPlatformValidation'](_0x39eefa){const _0x99a115=a56_0x789882,_0x31d0b1=path[_0x99a115(0x1e7)](this[_0x99a115(0x1c7)],_0x39eefa+_0x99a115(0x1e6));if(fs[_0x99a115(0x1af)](_0x31d0b1))return fs[_0x99a115(0x1f3)](_0x31d0b1)[_0x99a115(0x20d)]();}static[a56_0x789882(0x1b5)](_0x4b67cc,_0x2d6804){const _0xb20e26=a56_0x789882,_0x36d3df=path[_0xb20e26(0x1e7)](this['dirPath'],_0x2d6804+_0xb20e26(0x1e6));fs[_0xb20e26(0x20e)](_0x36d3df,_0x4b67cc[_0xb20e26(0x20d)]());}static['shutdown'](){const _0x5bb7d8=a56_0x789882,_0x26fe42={};_0x26fe42[_0x5bb7d8(0x1d7)]=!![],_0x26fe42[_0x5bb7d8(0x1b4)]=!![],fs[_0x5bb7d8(0x1c8)](this[_0x5bb7d8(0x1c7)],_0x26fe42);}static[a56_0x789882(0x201)](_0x4a5a5e){const _0x345c7e=a56_0x789882,_0x7f14fd=this['getFilePath'](_0x4a5a5e);if(fs[_0x345c7e(0x1af)](_0x7f14fd))try{const _0x3e5d68=JSON[_0x345c7e(0x1f6)](fs[_0x345c7e(0x1f3)](_0x7f14fd)['toString']());return this[_0x345c7e(0x208)][_0x4a5a5e]=_0x3e5d68,_0x3e5d68;}catch(_0x1bcd52){return logger[_0x345c7e(0x1bd)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x7f14fd+':\x20'+util[_0x345c7e(0x1ea)](_0x1bcd52)+_0x345c7e(0x1ef)),{};}return{};}static['setTestDetails'](_0x2cf8d6,_0x29324c){const _0x11f637=a56_0x789882,_0x2889e4={'pIjHW':_0x11f637(0x1a9),'QHDAF':function(_0x2b3243){return _0x2b3243();}};logger[_0x11f637(0x1d0)](_0x2889e4[_0x11f637(0x1cd)]),logger[_0x11f637(0x1d0)](_0x11f637(0x1f2)+process[_0x11f637(0x1fa)]+_0x11f637(0x1ca)+_0x2cf8d6+'\x20with\x20details:\x20'+JSON['stringify'](_0x29324c));const _0x2ad363=this[_0x11f637(0x1dd)](_0x2cf8d6);if(fs[_0x11f637(0x1af)](_0x2ad363))try{const _0x492257=lockfile[_0x11f637(0x202)](_0x2ad363),_0x1b25c3=JSON['parse'](fs[_0x11f637(0x1f3)](_0x2ad363)[_0x11f637(0x20d)]()),_0x16b605={..._0x1b25c3,..._0x29324c};this[_0x11f637(0x208)][_0x2cf8d6]=_0x16b605,fs[_0x11f637(0x20e)](_0x2ad363,JSON[_0x11f637(0x20a)](this[_0x11f637(0x208)][_0x2cf8d6])),_0x2889e4[_0x11f637(0x1cf)](_0x492257);}catch(_0x2fa604){logger[_0x11f637(0x1bd)](_0x11f637(0x1d2)+_0x2ad363+':\x20'+util['format'](_0x2fa604)+_0x11f637(0x207));}}static['addTraceFilePath'](_0xf7319e){const _0x305ac8=a56_0x789882,_0x21fbd1={};_0x21fbd1[_0x305ac8(0x1db)]=_0x305ac8(0x1d5);const _0x3eeeb0=_0x21fbd1;try{const _0x27bc35=process[_0x305ac8(0x1fa)],_0x235d7a=path[_0x305ac8(0x1e7)](TestInfo[_0x305ac8(0x215)](),_0x27bc35+_0x305ac8(0x1c5));let _0x2f1b6f=[];fs[_0x305ac8(0x1af)](_0x235d7a)&&(_0x2f1b6f=JSON[_0x305ac8(0x1f6)](fs['readFileSync'](_0x235d7a)[_0x305ac8(0x20d)]()));if(!_0x2f1b6f['some'](_0x58aab8=>_0x58aab8[_0x305ac8(0x212)]===_0xf7319e[_0x305ac8(0x212)])){_0x2f1b6f[_0x305ac8(0x203)](_0xf7319e);const _0x10e57b=path['dirname'](_0x235d7a);if(!fs[_0x305ac8(0x1af)](_0x10e57b)){const _0x238b98={};_0x238b98[_0x305ac8(0x1d7)]=!![],fs['mkdirSync'](_0x10e57b,_0x238b98);}fs[_0x305ac8(0x20e)](_0x235d7a,JSON['stringify'](_0x2f1b6f));}}catch(_0x1b1d4d){logger[_0x305ac8(0x1fc)](util['format'](_0x3eeeb0[_0x305ac8(0x1db)],_0x1b1d4d));}}static[a56_0x789882(0x1d4)](){const _0x29ac62=a56_0x789882,_0x364bd6={};_0x364bd6[_0x29ac62(0x1aa)]=_0x29ac62(0x1c5),_0x364bd6['pnoXo']=_0x29ac62(0x1a5);const _0x1620e0=_0x364bd6,_0x22521b=[];try{const _0x1c8e56=TestInfo[_0x29ac62(0x215)]();if(!fs[_0x29ac62(0x1af)](_0x1c8e56))return _0x22521b;const _0x5232d8=fs[_0x29ac62(0x1e3)](_0x1c8e56);_0x5232d8[_0x29ac62(0x1b0)](_0x3a93b3=>{const _0x11c14e=_0x29ac62;if(_0x3a93b3[_0x11c14e(0x1bf)](_0x1620e0[_0x11c14e(0x1aa)])){const _0x2f2350=JSON[_0x11c14e(0x1f6)](fs['readFileSync'](path['join'](_0x1c8e56,_0x3a93b3))[_0x11c14e(0x20d)]());_0x22521b['push'](..._0x2f2350);}});}catch(_0x47551a){logger['error'](util[_0x29ac62(0x1ea)](_0x1620e0[_0x29ac62(0x1b1)],_0x47551a));}const _0x266c9a={};return _0x22521b[_0x29ac62(0x1b0)](_0x49013b=>{const _0x354646=_0x29ac62;_0x266c9a[_0x49013b[_0x354646(0x212)]]=_0x49013b;}),Object[_0x29ac62(0x1c0)](_0x266c9a);}static[a56_0x789882(0x1a8)](_0x563dba,_0x9201d7){const _0x523936=a56_0x789882,_0x52c2b9={};_0x52c2b9[_0x523936(0x1e4)]=_0x523936(0x1f0),_0x52c2b9[_0x523936(0x1d3)]=_0x523936(0x206),_0x52c2b9[_0x523936(0x1eb)]=_0x523936(0x1a7);const _0x1ae531=_0x52c2b9;try{const _0x30aacd=path[_0x523936(0x1e7)](helper['homedir'](),_0x1ae531[_0x523936(0x1e4)]);if(!fs[_0x523936(0x1af)](_0x30aacd)){const _0xdcb74e={};_0xdcb74e[_0x523936(0x1d7)]=!![],fs[_0x523936(0x1ba)](_0x30aacd,_0xdcb74e);}fs[_0x523936(0x1b8)](path[_0x523936(0x1e7)](_0x30aacd,_0x523936(0x1bb)+_0x9201d7+_0x523936(0x1d6)),_0x563dba+'\x0a',_0x1ae531[_0x523936(0x1d3)]);}catch(_0x4ef04e){logger[_0x523936(0x1fc)](util[_0x523936(0x1ea)](_0x1ae531[_0x523936(0x1eb)],_0x4ef04e));}}}module['exports']=TestInfo;function a56_0x3e08(){const _0x25de63=['parse','../../helpers/test-observability/constants','XIviA','645225SdpnBK','pid','15804GSSkqg','error','traceZipDir','1274144HgHmtk','../../helpers/helper','env','getTestDetails','lockSync','push','getStoreDirName','EPeID','utf8','.\x20Unable\x20to\x20set\x20test\x20details.','tests','4wySfWw','stringify','5817174hLSMZA','uuid','toString','writeFileSync','setup','JIMaX','../../helpers/logger','filePath','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','_projectId','getTraceZipDir','getStoreDirPath','Error\x20reading\x20trace\x20file\x20paths:\x20%O','traceZipPaths','Error\x20writing\x20trace\x20file:\x20%O','appendToTracePaths','setTestDetails\x20','wMQie','cpbmg','TestInfo','Pttzd','string','existsSync','forEach','pnoXo','5490600USzEBm','proper-lockfile','force','setAccessibilityPlatformValidation','default','3714qQFuJl','appendFileSync','eTPEZ','mkdirSync','trace_','3832yGzoRf','warn','logger','endsWith','values','CxNOx','QwjCM','retry','sfkzH','_traceZipPaths.json','info','dirPath','rmSync','dskMb','\x20Setting\x20\x20test\x20details\x20for\x20','Setting\x20up\x20TestInfo\x20directory\x20at\x20','BS_TESTOPS_BUILD_HASHED_ID','pIjHW','resolve','QHDAF','debug','2898Oyezqw','Failed\x20to\x20acquire\x20lock\x20for\x20','ayQSX','getTraceFilePaths','Error\x20handling\x20trace\x20file\x20paths:\x20%O','.txt','recursive','path','winstonLogger','CrWyu','hwmpn','cfODi','getFilePath','../../helpers/classLogger.js','pYiDm','getTestIdFromTestInfo','9pTssJv','gLoaC','readdirSync','rJMRx','_test','_platformDetails.json','join','.json','HctSw','format','HWxgf','ThaTf','3|4|0|1|2|5','565691qIYJbM','.\x20Returning\x20empty\x20test\x20details.','.browserstack','gjifN','processId:\x20','readFileSync','getProjectIdFromTestInfo','project'];a56_0x3e08=function(){return _0x25de63;};return a56_0x3e08();}
@@ -1 +1 @@
1
- const a57_0x5d40f8=a57_0xae11;(function(_0x129e60,_0x1f2823){const _0x2df4eb=a57_0xae11,_0x10430b=_0x129e60();while(!![]){try{const _0xfb3d52=parseInt(_0x2df4eb(0x284))/0x1+parseInt(_0x2df4eb(0x291))/0x2*(-parseInt(_0x2df4eb(0x276))/0x3)+-parseInt(_0x2df4eb(0x22e))/0x4*(parseInt(_0x2df4eb(0x26a))/0x5)+-parseInt(_0x2df4eb(0x25b))/0x6+parseInt(_0x2df4eb(0x215))/0x7+parseInt(_0x2df4eb(0x268))/0x8*(parseInt(_0x2df4eb(0x29e))/0x9)+-parseInt(_0x2df4eb(0x283))/0xa*(-parseInt(_0x2df4eb(0x298))/0xb);if(_0xfb3d52===_0x1f2823)break;else _0x10430b['push'](_0x10430b['shift']());}catch(_0x2fa4cd){_0x10430b['push'](_0x10430b['shift']());}}}(a57_0x13c7,0xef2dc));function a57_0xae11(_0x2f4bde,_0x34bf60){const _0x13c7a0=a57_0x13c7();return a57_0xae11=function(_0xae118d,_0x2ab7a6){_0xae118d=_0xae118d-0x1f1;let _0x4a5dcc=_0x13c7a0[_0xae118d];return _0x4a5dcc;},a57_0xae11(_0x2f4bde,_0x34bf60);}function a57_0x13c7(){const _0x1d0bdb=['connected','../utils/constants.js','testhubConfig','isFalse','BROWSERSTACK_CLI_BIN_SESSION_ID','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','getAutomationFramework','BYfIL','warn','shutdown','../../helpers/classLogger.js','stop:\x20CLI\x20stop\x20triggered','../../helpers/performance/performance-tester.js','toString','parse','testFramework','cPcmR','qdBmc','fJbvs','./framework/constants/testFrameworkConstants.js','getAutomationFrameworkDetail','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','resolve','version','vGrba','lWPHi','./TestInfo.js','stop:\x20stopBinSession\x20build_link=','xUaVE','fkIWU','BROWSERSTACK_TURBOSCALE','./framework/playwrightTestFramework.js','isChildConnected','getObservability','close','SDK_CLI_ON_STOP','CLI\x20stderr:\x20','BROWSERSTACK_CLI_ENABLED','loadModules:\x20Loading\x20modules','getTestFramework','trim','11660096uzDfMM','Disabling\x20CLI.','startBinSession','getInstance','./modules/testhubModule.js','IlXEd','startMain','stop:\x20CLI\x20process\x20exited','getAccessibility','QNrGp','HATzx','bootstrap:\x20failed\x20to\x20bootstrap=','getCliArgs','isClosed','config','TestHubModule','connect','isMainConnected','KMkJg','sbvvv','loadCliParams','./modules/playwrightDriverModule.js','logger','format','end','11996carlRi','env','setupCliPath','setCliArgs','setConfig','qIHcY','ByLsw','bootstrap','KKPyG','isTrue','getTestFrameworkDetail','VTZYt','buildHashedId','configureModules','WYCwV','loadModules:\x20binSessionId=','exitCode','RKpqE','error','HashedID','MODULE_NAME','message','name','data','process','stdout','util','getSuccess','isDevelopmentEnv','LliLG','xefuK','abyZr','loadModules','setCliArgs:\x20error=','\x20o11y_uuid=','Wvrut','./grpcClient.js','stop:\x20shutting\x20down\x20CLI','CLI\x20params\x20loaded:\x20','unConfigureModules','KEY_CUSTOM_TAGS','tstNx','setupTestFramework','ytJLI','exit','5330550wxuqTp','stopBinSession','SDK_CLI_START','EmwsO','getConfig','stack','Failed\x20to\x20start\x20CLI\x20process:\x20','lyDJB','pid','kill','ZPwys','setupAutomationFramework','Error\x20in\x20start:\x20','5921616xZuaTw','client','1570HBUOEi','browserstackCliConfig','./uploadAttachmentsManager.js','\x20hashed_id=','CyxCz','LUNSw','automationFramework','clearAttachments','cliArgs','BuildLink','stringify','configure','921aIEHiP','DZRkR','getCLIParamsForDevEnv','browserstackConfig','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','NmAuc','./framework/playwrightAutomationFramework.js','Smhqe','info','SDK_CONNECT_BIN_SESSION','iryob','stop:\x20channel\x20closed','UFXkO','148940mDzQky','900602bhTLMj','exports','SDK_CLI_BIN_PATH','split','spawning\x20command=\x27','setBrowserstackConfig','getAutomateBuildlink','includes','start','slice','BMXLb','getClient','PzZnk','9446exaJIs','child_process','O11yHashedID','getHashedId','loading\x20Modules.','getTesthub','isRunning','704XvSlCt','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','IIOCB','startChild','startMain:\x20Starting\x20main\x20process','binSessionId','9IMCvLf','KCzGC','getTestDetails','getCliBinPath','TpxxD','WhIRk','modules','../../helpers/helper.js','./modules/observabilityModule.js','GaBur','SDK_CLI_ON_BOOTSTRAP','toLowerCase','cliParams','stop','getChannel','toObject'];a57_0x13c7=function(){return _0x1d0bdb;};return a57_0x13c7();}const {spawn}=require(a57_0x5d40f8(0x292)),GrpcClient=require(a57_0x5d40f8(0x252)),util=require(a57_0x5d40f8(0x248)),CLIUtils=require('./cliUtils.js'),PlaywrightAutomationFramework=require(a57_0x5d40f8(0x27c)),PlaywrightTestFramework=require(a57_0x5d40f8(0x20b)),{createClassLogger}=require(a57_0x5d40f8(0x1f6)),PerformanceTester=require(a57_0x5d40f8(0x1f8)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0x5d40f8(0x2af)),helper=require(a57_0x5d40f8(0x2a5)),TestFrameworkConstants=require(a57_0x5d40f8(0x1ff)),TestInfo=require(a57_0x5d40f8(0x206));class BrowserstackCLI{static #instance=null;static [a57_0x5d40f8(0x273)]=null;static [a57_0x5d40f8(0x241)]=null;static ['O11yHashedID']=null;[a57_0x5d40f8(0x246)]=null;[a57_0x5d40f8(0x226)]=![];[a57_0x5d40f8(0x20c)]=![];[a57_0x5d40f8(0x29d)]=null;[a57_0x5d40f8(0x2a4)]={};[a57_0x5d40f8(0x1fb)]=null;['automationFramework']=null;[a57_0x5d40f8(0x22b)]=createClassLogger('BrowserstackCLI');constructor(){const _0xb32788=a57_0x5d40f8;this['initialized']=![],this[_0xb32788(0x223)]={},this['cliArgs']={},this[_0xb32788(0x279)]={};}static[a57_0x5d40f8(0x218)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a57_0x5d40f8(0x235)](){const _0x5475d1=a57_0x5d40f8,_0x1e9724={};_0x1e9724[_0x5475d1(0x2a2)]=_0x5475d1(0x216);const _0x1ee612=_0x1e9724;if(helper[_0x5475d1(0x2b1)](process[_0x5475d1(0x22f)][_0x5475d1(0x211)])){this['logger'][_0x5475d1(0x27e)](_0x1ee612['TpxxD']);return;}PerformanceTester[_0x5475d1(0x28c)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x54be34=process[_0x5475d1(0x22f)][_0x5475d1(0x2b2)]||null;this[_0x5475d1(0x266)](),this['setupTestFramework']();if(_0x54be34){await this['startChild'](_0x54be34),PerformanceTester[_0x5475d1(0x22d)](PerformanceEvents[_0x5475d1(0x2a8)]);return;}await this['startMain']();}catch(_0x21f859){this[_0x5475d1(0x22b)][_0x5475d1(0x240)](_0x5475d1(0x220)+(_0x21f859['stack']||_0x21f859)),await this[_0x5475d1(0x2ab)](),PerformanceTester[_0x5475d1(0x22d)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP'],![],util['format'](_0x21f859));}}async[a57_0x5d40f8(0x21b)](){const _0xa5bf93=a57_0x5d40f8,_0x5b9c3c={};_0x5b9c3c[_0xa5bf93(0x259)]=_0xa5bf93(0x29c),_0x5b9c3c[_0xa5bf93(0x227)]='startMain:\x20main-process\x20started';const _0xfdedd1=_0x5b9c3c;this[_0xa5bf93(0x22b)][_0xa5bf93(0x27e)](_0xfdedd1['ytJLI']),await this[_0xa5bf93(0x28c)](),this['logger']['debug'](_0xfdedd1[_0xa5bf93(0x227)]);const _0x40c4c7=await GrpcClient[_0xa5bf93(0x218)]()[_0xa5bf93(0x217)]();this[_0xa5bf93(0x226)]=!![],this[_0xa5bf93(0x24e)](_0x40c4c7);}[a57_0x5d40f8(0x24e)](_0x477f80){const _0x5d49f8=a57_0x5d40f8,_0x365041={'HATzx':function(_0x1e4cd7,_0x2be0ed){return _0x1e4cd7(_0x2be0ed);},'WYCwV':_0x5d49f8(0x22a),'SANxI':function(_0xf55ce0,_0x3fdbeb){return _0xf55ce0(_0x3fdbeb);},'RKpqE':_0x5d49f8(0x219),'BBxza':_0x5d49f8(0x2a6),'iryob':_0x5d49f8(0x212),'QHVrc':_0x5d49f8(0x20d),'LUNSw':_0x5d49f8(0x21d),'okcmw':_0x5d49f8(0x249),'TwRBv':function(_0x150855,_0x4bfffb){return _0x150855||_0x4bfffb;}},_0x16c74e=_0x365041['HATzx'](require,_0x365041[_0x5d49f8(0x23c)]),_0x4219eb=_0x365041['SANxI'](require,_0x365041[_0x5d49f8(0x23f)]),_0x1b9c2b=_0x365041[_0x5d49f8(0x21f)](require,_0x365041['BBxza']);this[_0x5d49f8(0x22b)][_0x5d49f8(0x27e)](_0x365041[_0x5d49f8(0x280)]),this[_0x5d49f8(0x29d)]=_0x477f80['getBinSessionId'](),this[_0x5d49f8(0x22b)][_0x5d49f8(0x27e)](_0x5d49f8(0x23d)+this[_0x5d49f8(0x29d)]),this[_0x5d49f8(0x232)](_0x477f80);!this[_0x5d49f8(0x20c)]&&this[_0x5d49f8(0x231)](_0x477f80);const _0xfe25c9=_0x365041['QHVrc'],_0x34ff95=_0x365041[_0x5d49f8(0x26f)],_0x49aabf=_0x365041['okcmw'],_0x33ffd3=_0x477f80[_0xfe25c9]()&&_0x477f80[_0xfe25c9]()[_0x49aabf](),_0x2dcd69=_0x477f80[_0x34ff95]()&&_0x477f80[_0x34ff95]()[_0x49aabf]();_0x365041['TwRBv'](_0x33ffd3,_0x2dcd69)&&(this[_0x5d49f8(0x2a4)][_0x4219eb[_0x5d49f8(0x242)]]=new _0x4219eb(_0x477f80[_0x5d49f8(0x296)]())),_0x33ffd3&&(this[_0x5d49f8(0x2a4)][_0x1b9c2b['MODULE_NAME']]=new _0x1b9c2b(_0x477f80[_0xfe25c9]())),_0x2dcd69&&(this[_0x5d49f8(0x2a4)][AccessibilityModule[_0x5d49f8(0x242)]]=new AccessibilityModule(_0x477f80[_0x34ff95]())),this[_0x5d49f8(0x2a4)][_0x16c74e[_0x5d49f8(0x242)]]=new _0x16c74e(),this[_0x5d49f8(0x23b)]();}['getAccessibilityModule'](){const _0x5af138=a57_0x5d40f8;return this[_0x5af138(0x2a4)][AccessibilityModule['MODULE_NAME']];}async[a57_0x5d40f8(0x23b)](){const _0xfb2f87=a57_0x5d40f8;for(const _0x11811a in this['modules']){const _0x589540=this['modules'][_0x11811a];await _0x589540[_0xfb2f87(0x275)](this[_0xfb2f87(0x29d)],0x0,GrpcClient[_0xfb2f87(0x218)]()[_0xfb2f87(0x269)],this[_0xfb2f87(0x223)]);}}async['start'](){const _0x2af38e=a57_0x5d40f8,_0x26209b={'fkIWU':function(_0x45f343,_0x7771a8){return _0x45f343(_0x7771a8);},'ByLsw':function(_0x1af31,_0x3116ef){return _0x1af31!==_0x3116ef;},'IIOCB':function(_0x2cdac6,_0x298bdd){return _0x2cdac6(_0x298bdd);},'vGrba':function(_0x5b9877,_0x38e371){return _0x5b9877!==_0x38e371;},'BMXLb':'ready','KKPyG':function(_0x32f90b){return _0x32f90b();},'DZRkR':_0x2af38e(0x245),'xefuK':_0x2af38e(0x240),'PjAcR':_0x2af38e(0x20e),'lyDJB':'sdk','wfHEe':function(_0xc5a44e,_0x12d77e,_0x5143bf,_0x374275){return _0xc5a44e(_0x12d77e,_0x5143bf,_0x374275);},'abyZr':'failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found'};PerformanceTester[_0x2af38e(0x28c)](PerformanceEvents[_0x2af38e(0x25d)]);if(CLIUtils[_0x2af38e(0x24a)]())return this[_0x2af38e(0x229)](CLIUtils[_0x2af38e(0x278)]()),PerformanceTester[_0x2af38e(0x22d)](PerformanceEvents['SDK_CLI_START']),Promise[_0x2af38e(0x202)]();if(this[_0x2af38e(0x246)]&&this[_0x2af38e(0x246)][_0x2af38e(0x2ae)])return PerformanceTester['end'](PerformanceEvents[_0x2af38e(0x25d)]),Promise[_0x2af38e(0x202)]();const _0x53eb6e=await this[_0x2af38e(0x2a1)](),_0x48f3de=[_0x53eb6e,_0x26209b[_0x2af38e(0x262)]];this[_0x2af38e(0x22b)][_0x2af38e(0x27e)](_0x2af38e(0x288)+_0x48f3de+'\x27');const _0x5cd873={};_0x5cd873['env']=process[_0x2af38e(0x22f)],this['process']=_0x26209b['wfHEe'](spawn,_0x48f3de[0x0],_0x48f3de[_0x2af38e(0x28d)](0x1),_0x5cd873);if(!this[_0x2af38e(0x246)][_0x2af38e(0x263)])throw new Error(_0x26209b[_0x2af38e(0x24d)]);return new Promise((_0xb004af,_0x1d811c)=>{const _0x4daa61=_0x2af38e,_0x5444b7={'lWPHi':function(_0x48969b,_0x971b59){const _0x58474d=a57_0xae11;return _0x26209b[_0x58474d(0x204)](_0x48969b,_0x971b59);},'Wvrut':_0x26209b[_0x4daa61(0x28e)],'tstNx':function(_0x3bfebf){const _0x2784d1=_0x4daa61;return _0x26209b[_0x2784d1(0x236)](_0x3bfebf);}},_0x10887c={};this[_0x4daa61(0x246)][_0x4daa61(0x247)]['on'](_0x26209b[_0x4daa61(0x277)],_0x4c6a12=>{const _0x15625d=_0x4daa61,_0xf85162=_0x4c6a12[_0x15625d(0x1f9)]()[_0x15625d(0x214)]()[_0x15625d(0x287)]('\x0a');for(const _0x43de73 of _0xf85162){if(/^(id|listen|port)=.*$/['test'](_0x43de73)){const [_0x10e7c5,_0x786ce5]=_0x43de73[_0x15625d(0x287)]('=',0x2);_0x5444b7[_0x15625d(0x205)](_0x786ce5,undefined)&&(_0x10887c[_0x10e7c5]=_0x786ce5);}if(_0x43de73['toLowerCase']()[_0x15625d(0x28b)](_0x5444b7[_0x15625d(0x251)])){this[_0x15625d(0x229)](_0x10887c),PerformanceTester['end'](PerformanceEvents['SDK_CLI_START']),_0x5444b7[_0x15625d(0x257)](_0xb004af);return;}}}),this[_0x4daa61(0x246)]['stderr']['on'](_0x26209b[_0x4daa61(0x277)],_0x1b8461=>{const _0x115b60=_0x4daa61;this[_0x115b60(0x22b)][_0x115b60(0x240)](_0x115b60(0x210)+_0x1b8461[_0x115b60(0x1f9)]()[_0x115b60(0x214)]());}),this[_0x4daa61(0x246)]['on'](_0x26209b[_0x4daa61(0x24c)],_0x226989=>{const _0x249c9c=_0x4daa61;_0x10887c[_0x249c9c(0x240)]=_0x249c9c(0x267)+_0x226989[_0x249c9c(0x243)],PerformanceTester[_0x249c9c(0x22d)](PerformanceEvents[_0x249c9c(0x25d)],![],_0x226989),_0x26209b[_0x249c9c(0x209)](_0x1d811c,new Error(_0x249c9c(0x261)+_0x226989['message']));}),this[_0x4daa61(0x246)]['on'](_0x26209b['PjAcR'],_0x5292d7=>{const _0x5ce79e=_0x4daa61;_0x26209b[_0x5ce79e(0x234)](_0x5292d7,0x0)&&_0x26209b[_0x5ce79e(0x29a)](_0x1d811c,new Error('CLI\x20process\x20exited\x20with\x20code\x20'+_0x5292d7));});});}async[a57_0x5d40f8(0x2ab)](_0x1de4de=null){const _0xa7f782=a57_0x5d40f8,_0x1dcc27={'PzZnk':_0xa7f782(0x21c),'mtmOB':function(_0x55f278){return _0x55f278();},'fJbvs':_0xa7f782(0x1f1),'cPcmR':'SIGKILL','UFXkO':_0xa7f782(0x25a),'Smhqe':function(_0x20eadd,_0x7a3572,_0x1736fb){return _0x20eadd(_0x7a3572,_0x1736fb);},'xUaVE':_0xa7f782(0x27a),'LliLG':_0xa7f782(0x1f7),'NmAuc':function(_0x10a559,_0x340dc2){return _0x10a559(_0x340dc2);},'Hnwug':_0xa7f782(0x26c),'GaBur':_0xa7f782(0x281),'OpkyK':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','qIHcY':_0xa7f782(0x253)};if(!this[_0xa7f782(0x297)]()){this[_0xa7f782(0x22b)][_0xa7f782(0x27e)](_0x1dcc27[_0xa7f782(0x208)]);return;}PerformanceTester['start'](PerformanceEvents[_0xa7f782(0x20f)]),this[_0xa7f782(0x22b)][_0xa7f782(0x27e)](_0x1dcc27[_0xa7f782(0x24b)]);try{if(this[_0xa7f782(0x226)]){const _0x2a79fa=_0x1dcc27[_0xa7f782(0x27b)](require,_0x1dcc27['Hnwug']),_0x5746aa=this[_0xa7f782(0x2a4)][_0xa7f782(0x224)]?.[_0xa7f782(0x2b0)]?.[_0xa7f782(0x2ad)]()?.[_0xa7f782(0x23a)],_0x2c48f9=TestInfo[_0xa7f782(0x2a0)](_0x5746aa),_0x1b34ea=_0x2c48f9[TestFrameworkConstants[_0xa7f782(0x256)]]||{},_0x5b4f67=await GrpcClient['getInstance']()[_0xa7f782(0x25c)](JSON[_0xa7f782(0x274)](_0x1b34ea),_0x1de4de);_0x5b4f67&&_0x5b4f67[_0xa7f782(0x249)]()&&_0x5b4f67[_0xa7f782(0x28a)]()&&(BrowserstackCLI[_0xa7f782(0x273)]=_0x5b4f67[_0xa7f782(0x28a)](),BrowserstackCLI[_0xa7f782(0x241)]=_0x5b4f67[_0xa7f782(0x294)]()),await _0x2a79fa[_0xa7f782(0x271)](),TestInfo[_0xa7f782(0x1f5)](),this[_0xa7f782(0x22b)]['info'](_0xa7f782(0x207)+BrowserstackCLI['BuildLink']+_0xa7f782(0x26d)+BrowserstackCLI['HashedID']+_0xa7f782(0x250)+BrowserstackCLI[_0xa7f782(0x293)]);}await this[_0xa7f782(0x255)]();const _0x48d7db=GrpcClient[_0xa7f782(0x218)]()['getChannel']();if(_0x48d7db){try{_0x48d7db[_0xa7f782(0x20e)](),this[_0xa7f782(0x22b)]['info'](_0x1dcc27[_0xa7f782(0x2a7)]);}catch(_0x554bd7){this[_0xa7f782(0x22b)][_0xa7f782(0x240)](util[_0xa7f782(0x22c)](_0x1dcc27['OpkyK'],_0x554bd7));}await new Promise(_0x15af43=>setTimeout(_0x15af43,0x1388));}this[_0xa7f782(0x246)]&&this[_0xa7f782(0x246)][_0xa7f782(0x263)]&&(this[_0xa7f782(0x22b)][_0xa7f782(0x27e)](_0x1dcc27[_0xa7f782(0x233)]),this[_0xa7f782(0x246)][_0xa7f782(0x264)](),await new Promise(_0x187b05=>{const _0x2104d1=_0xa7f782,_0xfde891={'IlXEd':_0x1dcc27[_0x2104d1(0x290)],'PvwVp':function(_0x121028){return _0x1dcc27['mtmOB'](_0x121028);},'cbgVv':_0x1dcc27[_0x2104d1(0x1fe)],'KCzGC':_0x1dcc27[_0x2104d1(0x1fc)],'VPTVp':function(_0x11ed7d){return _0x1dcc27['mtmOB'](_0x11ed7d);}};let _0x179736=![];this[_0x2104d1(0x246)]['on'](_0x1dcc27[_0x2104d1(0x282)],()=>{const _0x22684e=_0x2104d1;this[_0x22684e(0x22b)]['info'](_0xfde891[_0x22684e(0x21a)]),_0x179736=!![],PerformanceTester[_0x22684e(0x22d)](PerformanceEvents['SDK_CLI_ON_STOP']),_0xfde891['PvwVp'](_0x187b05);}),_0x1dcc27[_0x2104d1(0x27d)](setTimeout,()=>{const _0x143e3a=_0x2104d1;!_0x179736&&(this[_0x143e3a(0x22b)][_0x143e3a(0x1f4)](_0xfde891['cbgVv']),this[_0x143e3a(0x246)]['kill'](_0xfde891[_0x143e3a(0x29f)]),PerformanceTester[_0x143e3a(0x22d)](PerformanceEvents[_0x143e3a(0x20f)]),_0xfde891['VPTVp'](_0x187b05));},0xbb8);}));}catch(_0x4463b9){PerformanceTester[_0xa7f782(0x22d)](PerformanceEvents[_0xa7f782(0x20f)],![],util['format'](_0x4463b9)),this[_0xa7f782(0x22b)]['error']('stop:\x20error\x20in\x20stop\x20session\x20exception='+(_0x4463b9[_0xa7f782(0x260)]||_0x4463b9));}_0x1de4de?this['process'][_0xa7f782(0x23e)]=0x1:this[_0xa7f782(0x246)][_0xa7f782(0x23e)]=0x0,this['isChildConnected']=![],this[_0xa7f782(0x226)]=![],process[_0xa7f782(0x22f)]['BROWSERSTACK_CLI_ENV']=null;}async[a57_0x5d40f8(0x255)](){const _0x540d21=a57_0x5d40f8,_0x1b4688={};_0x1b4688[_0x540d21(0x2a3)]='Unconfiguring\x20modules';const _0x10a9b9=_0x1b4688;this['logger'][_0x540d21(0x27e)](_0x10a9b9['WhIRk']);}[a57_0x5d40f8(0x229)](_0x484609){const _0x546c66=a57_0x5d40f8;this['logger'][_0x546c66(0x27e)](_0x546c66(0x254)+JSON['stringify'](_0x484609)),this[_0x546c66(0x2aa)]=_0x484609,GrpcClient[_0x546c66(0x218)]()['init'](_0x484609);}async[a57_0x5d40f8(0x29b)](_0x1533cc){const _0x10db18=a57_0x5d40f8,_0x156e08={};_0x156e08[_0x10db18(0x265)]=_0x10db18(0x299);const _0x205ae4=_0x156e08;PerformanceTester[_0x10db18(0x28c)](PerformanceEvents[_0x10db18(0x27f)]);try{this[_0x10db18(0x22b)]['info'](_0x10db18(0x201)+_0x1533cc);const _0x2895c9=GrpcClient[_0x10db18(0x218)]();if(_0x2895c9&&_0x2895c9[_0x10db18(0x28f)]()&&_0x2895c9['getChannel']()){this[_0x10db18(0x22b)][_0x10db18(0x27e)](_0x205ae4[_0x10db18(0x265)]);return;}GrpcClient[_0x10db18(0x218)]()[_0x10db18(0x225)]();const _0x2e8f5b=await GrpcClient[_0x10db18(0x218)]()['connectBinSession']();this[_0x10db18(0x20c)]=!![],this['loadModules'](_0x2e8f5b),PerformanceTester[_0x10db18(0x22d)](PerformanceEvents[_0x10db18(0x27f)]);}catch(_0x347c79){PerformanceTester[_0x10db18(0x22d)](PerformanceEvents[_0x10db18(0x27f)],![],util[_0x10db18(0x22c)](_0x347c79)),this[_0x10db18(0x22b)][_0x10db18(0x240)]('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util[_0x10db18(0x22c)](_0x347c79));}}[a57_0x5d40f8(0x297)](){const _0x3fd551=a57_0x5d40f8,_0x13378a={};_0x13378a[_0x3fd551(0x25e)]=function(_0x2219f0,_0x56038d){return _0x2219f0!==_0x56038d;},_0x13378a['sbvvv']=function(_0x1e6d8e,_0x43387c){return _0x1e6d8e===_0x43387c;},_0x13378a['BYfIL']=function(_0x10a95c,_0x3ea761){return _0x10a95c!==_0x3ea761;};const _0x37c252=_0x13378a;return CLIUtils[_0x3fd551(0x24a)]()||this['isMainConnected']&&_0x37c252['EmwsO'](this[_0x3fd551(0x246)],null)&&_0x37c252[_0x3fd551(0x228)](this[_0x3fd551(0x246)][_0x3fd551(0x23e)],null)&&_0x37c252[_0x3fd551(0x1f3)](GrpcClient[_0x3fd551(0x218)]()[_0x3fd551(0x28f)](),null)&&!GrpcClient[_0x3fd551(0x218)]()[_0x3fd551(0x2ac)]()[_0x3fd551(0x222)]||this[_0x3fd551(0x20c)]&&_0x37c252[_0x3fd551(0x1f3)](GrpcClient[_0x3fd551(0x218)]()[_0x3fd551(0x2ac)](),null)&&!GrpcClient[_0x3fd551(0x218)]()[_0x3fd551(0x2ac)]()['isClosed'];}['getBrowserstackConfig'](){const _0x4a9868=a57_0x5d40f8;return this[_0x4a9868(0x279)];}[a57_0x5d40f8(0x289)](_0x4a9e1a,_0x5937a9=null){const _0x107461=a57_0x5d40f8,_0x26eafb={};_0x26eafb[_0x107461(0x26e)]=function(_0x595d90,_0x7b6114){return _0x595d90||_0x7b6114;};const _0x3077bd=_0x26eafb;this[_0x107461(0x279)]=_0x3077bd[_0x107461(0x26e)](_0x4a9e1a,{}),this[_0x107461(0x26b)]=_0x5937a9,process[_0x107461(0x22f)][_0x107461(0x20a)]=this[_0x107461(0x279)]?.['turboScale']||![];const _0x1954b1=CLIUtils[_0x107461(0x238)]();helper[_0x107461(0x237)](process['env'][_0x107461(0x20a)])||!CLI_SUPPORTED_FRAMEWORKS[_0x107461(0x28b)](_0x1954b1[_0x107461(0x244)]['toLowerCase']())?process[_0x107461(0x22f)][_0x107461(0x211)]=![]:process['env'][_0x107461(0x211)]=!![];}async[a57_0x5d40f8(0x2a1)](){const _0x4ef358=a57_0x5d40f8;return!this['SDK_CLI_BIN_PATH']&&(this[_0x4ef358(0x286)]=await CLIUtils[_0x4ef358(0x230)](this[_0x4ef358(0x279)])),this['SDK_CLI_BIN_PATH'];}['isCliEnabled'](){const _0x52cfd2=a57_0x5d40f8;return helper[_0x52cfd2(0x237)](process[_0x52cfd2(0x22f)][_0x52cfd2(0x211)]);}['getConfig'](){const _0xa6a070=a57_0x5d40f8;return this[_0xa6a070(0x223)];}[a57_0x5d40f8(0x232)](_0x2540a4){const _0x33e595=a57_0x5d40f8,_0x4a2dc1={};_0x4a2dc1[_0x33e595(0x239)]=_0x33e595(0x295);const _0x5720f6=_0x4a2dc1;try{this['config']=JSON[_0x33e595(0x1fa)](_0x2540a4[_0x33e595(0x25f)]()),this['logger'][_0x33e595(0x27e)](_0x5720f6[_0x33e595(0x239)]);}catch(_0x49614e){this[_0x33e595(0x22b)][_0x33e595(0x240)]('setConfig:\x20error='+util['format'](_0x49614e));}}[a57_0x5d40f8(0x231)](_0x5559d6){const _0x49fea5=a57_0x5d40f8;try{this['cliArgs']=_0x5559d6[_0x49fea5(0x221)]()[_0x49fea5(0x287)](','),this[_0x49fea5(0x22b)][_0x49fea5(0x27e)]('setCliArgs:\x20cliArgs='+JSON[_0x49fea5(0x274)](this[_0x49fea5(0x272)]));}catch(_0x2ce91d){this['logger'][_0x49fea5(0x240)](_0x49fea5(0x24f)+util['format'](_0x2ce91d));}}['getCliArgs'](){const _0x49c687=a57_0x5d40f8;return this[_0x49c687(0x272)];}[a57_0x5d40f8(0x258)](){const _0x1eb842=a57_0x5d40f8,_0x51ea47={};_0x51ea47[_0x1eb842(0x21e)]=function(_0x473d0e,_0x31c2fe){return _0x473d0e===_0x31c2fe;};const _0x4b1e5a=_0x51ea47,_0xb11de6=CLIUtils[_0x1eb842(0x238)]();_0x4b1e5a[_0x1eb842(0x21e)](_0xb11de6[_0x1eb842(0x244)][_0x1eb842(0x2a9)](),FRAMEWORKS['PLAYWRIGHT'][_0x1eb842(0x2a9)]())&&(this[_0x1eb842(0x1fb)]=new PlaywrightTestFramework([_0xb11de6[_0x1eb842(0x244)]],_0xb11de6[_0x1eb842(0x203)]));}[a57_0x5d40f8(0x266)](){const _0x81bdf5=a57_0x5d40f8,_0x1e8785={};_0x1e8785[_0x81bdf5(0x1fd)]=function(_0x1c766b,_0xe27076){return _0x1c766b===_0xe27076;};const _0x39c6a1=_0x1e8785,_0x21bb7e=CLIUtils[_0x81bdf5(0x200)]();_0x39c6a1[_0x81bdf5(0x1fd)](_0x21bb7e['name']['toLowerCase'](),FRAMEWORKS['PLAYWRIGHT'][_0x81bdf5(0x2a9)]())&&(this[_0x81bdf5(0x270)]=new PlaywrightAutomationFramework(_0x21bb7e[_0x81bdf5(0x244)],_0x21bb7e['version']));}[a57_0x5d40f8(0x213)](){const _0x3a95b5=a57_0x5d40f8;return this[_0x3a95b5(0x1fb)];}[a57_0x5d40f8(0x1f2)](){const _0x1fec61=a57_0x5d40f8;return this[_0x1fec61(0x270)];}['getBrowserstackCliConfig'](){const _0x165c65=a57_0x5d40f8;return this[_0x165c65(0x26b)];}}module[a57_0x5d40f8(0x285)]=BrowserstackCLI;
1
+ const a57_0x1f2279=a57_0x19aa;function a57_0x19aa(_0x661f89,_0x27b8ae){const _0x3f6ada=a57_0x3f6a();return a57_0x19aa=function(_0x19aa72,_0x4f598d){_0x19aa72=_0x19aa72-0x152;let _0x14d93b=_0x3f6ada[_0x19aa72];return _0x14d93b;},a57_0x19aa(_0x661f89,_0x27b8ae);}function a57_0x3f6a(){const _0x37bf4a=['./framework/constants/testFrameworkConstants.js','BpFNK','SPnEJ','GKOfM','HashedID','../utils/constants.js','32lFsioA','BuildLink','../../helpers/helper.js','39588wXrZlx','stop:\x20error\x20in\x20closing\x20channel:\x20%s','isCliEnabled','rHkSG','test','getAutomationFramework','jvgBI','SDK_CLI_BIN_PATH','WeTVI','util','stringify','RjLjI','./grpcClient.js','Unconfiguring\x20modules','./cliUtils.js','loadCliParams','5422qmMsOZ','kjswF','stdout','Failed\x20to\x20start\x20as\x20child\x20process:\x20','MODULE_NAME','config','setConfig','VyIcT','stop:\x20CLI\x20process\x20exited','getClient','slice','initialized','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','stderr','kJuZK','KEY_CUSTOM_TAGS','close','PsyAE','toObject','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','Failed\x20to\x20start\x20CLI\x20process:\x20','getAutomationFrameworkDetail','pxauy','name','SKWBI','PLAYWRIGHT','isDevelopmentEnv','toString','Ufphh','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','toLowerCase','O11yHashedID','Error\x20in\x20start:\x20','getInstance','yaWAT','getChannel','SDK_CLI_ON_STOP','startBinSession','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','setupTestFramework','ONvxH','getTestFrameworkDetail','SDK_CLI_ON_BOOTSTRAP','binSessionId','configure','BROWSERSTACK_TURBOSCALE','modules','lABKt','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','kill','message','\x20hashed_id=','SsRnP','VqOMR','getSuccess','jCOEe','stop:\x20stopBinSession\x20build_link=','includes','bootstrap:\x20failed\x20to\x20bootstrap=','./modules/playwrightDriverModule.js','logger','BROWSERSTACK_CLI_ENABLED','280809foLXCt','trim','loadModules','automationFramework','cliArgs','yokHc','YWPrt','browserstackConfig','configureModules','NLOKo','unConfigureModules','error','exit','isRunning','getBrowserstackCliConfig','exitCode','getCLIParamsForDevEnv','15ycHrxu','browserstackCliConfig','../../helpers/performance/constants','RgJqd','getCliBinPath','ltbih','SjMEw','getCliArgs','startChild','getBrowserstackConfig','./framework/playwrightTestFramework.js','isClosed','lHBOd','buildHashedId','isChildConnected','child_process','getObservability','DqSrl','start','setupAutomationFramework','SDK_CLI_START','isTrue','iEhCk','stop:\x20error\x20in\x20stop\x20session\x20exception=','getConfig','startMain','Vyoen','setCliArgs','isMainConnected','222730kBXmPK','end','nVTVE','2781350WqLjYV','skMHT','loading\x20Modules.','connected','HkJlx','setConfig:\x20error=','uLMSI','dbZZK','getTesthub','format','SDK_CONNECT_BIN_SESSION','getAutomateBuildlink','process','BrowserstackCLI','\x20o11y_uuid=','CLI\x20params\x20loaded:\x20','1080394aJRqOk','162006zGwtiX','stop:\x20channel\x20closed','setCliArgs:\x20cliArgs=','env','version','exports','testFramework','TFyza','split','info','init','WayNy','stack','stop','cRLnU','IUEbo','setCliArgs:\x20error=','sCqqu','getTestFramework','ylGPf','stop:\x20shutting\x20down\x20CLI','33aLLhUG','warn','testhubConfig','./modules/testhubModule.js','BROWSERSTACK_CLI_BIN_SESSION_ID','./uploadAttachmentsManager.js','ready','resolve'];a57_0x3f6a=function(){return _0x37bf4a;};return a57_0x3f6a();}(function(_0x150826,_0xaa9855){const _0x54cd1f=a57_0x19aa,_0x2aefa6=_0x150826();while(!![]){try{const _0x479597=-parseInt(_0x54cd1f(0x17d))/0x1*(-parseInt(_0x54cd1f(0x19e))/0x2)+-parseInt(_0x54cd1f(0x1ed))/0x3*(-parseInt(_0x54cd1f(0x18e))/0x4)+-parseInt(_0x54cd1f(0x154))/0x5+parseInt(_0x54cd1f(0x168))/0x6+-parseInt(_0x54cd1f(0x167))/0x7+-parseInt(_0x54cd1f(0x18b))/0x8*(parseInt(_0x54cd1f(0x1dc))/0x9)+parseInt(_0x54cd1f(0x157))/0xa;if(_0x479597===_0xaa9855)break;else _0x2aefa6['push'](_0x2aefa6['shift']());}catch(_0x1cb3ab){_0x2aefa6['push'](_0x2aefa6['shift']());}}}(a57_0x3f6a,0x1d648));const {spawn}=require(a57_0x1f2279(0x1fc)),GrpcClient=require(a57_0x1f2279(0x19a)),util=require(a57_0x1f2279(0x197)),CLIUtils=require(a57_0x1f2279(0x19c)),PlaywrightAutomationFramework=require('./framework/playwrightAutomationFramework.js'),PlaywrightTestFramework=require(a57_0x1f2279(0x1f7)),{createClassLogger}=require('../../helpers/classLogger.js'),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a57_0x1f2279(0x1ef)),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0x1f2279(0x18a)),helper=require(a57_0x1f2279(0x18d)),TestFrameworkConstants=require(a57_0x1f2279(0x185)),TestInfo=require('./TestInfo.js');class BrowserstackCLI{static #instance=null;static [a57_0x1f2279(0x18c)]=null;static [a57_0x1f2279(0x189)]=null;static [a57_0x1f2279(0x1bd)]=null;['process']=null;[a57_0x1f2279(0x153)]=![];[a57_0x1f2279(0x1fb)]=![];[a57_0x1f2279(0x1c9)]=null;[a57_0x1f2279(0x1cc)]={};[a57_0x1f2279(0x16e)]=null;[a57_0x1f2279(0x1df)]=null;[a57_0x1f2279(0x1da)]=createClassLogger(a57_0x1f2279(0x164));constructor(){const _0x468556=a57_0x1f2279;this[_0x468556(0x1a9)]=![],this[_0x468556(0x1a3)]={},this['cliArgs']={},this[_0x468556(0x1e3)]={};}static[a57_0x1f2279(0x1bf)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async['bootstrap'](){const _0x20fd29=a57_0x1f2279,_0x3b83f8={};_0x3b83f8[_0x20fd29(0x1f9)]='Disabling\x20CLI.';const _0x236a7f=_0x3b83f8;if(helper['isFalse'](process['env'][_0x20fd29(0x1db)])){this[_0x20fd29(0x1da)]['info'](_0x236a7f[_0x20fd29(0x1f9)]);return;}PerformanceTester[_0x20fd29(0x1ff)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x121658=process['env'][_0x20fd29(0x181)]||null;this[_0x20fd29(0x200)](),this[_0x20fd29(0x1c5)]();if(_0x121658){await this[_0x20fd29(0x1f5)](_0x121658),PerformanceTester[_0x20fd29(0x155)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);return;}await this[_0x20fd29(0x206)]();}catch(_0x2abff9){this[_0x20fd29(0x1da)]['error'](_0x20fd29(0x1d8)+(_0x2abff9[_0x20fd29(0x174)]||_0x2abff9)),await this['stop'](),PerformanceTester[_0x20fd29(0x155)](PerformanceEvents[_0x20fd29(0x1c8)],![],util[_0x20fd29(0x160)](_0x2abff9));}}async[a57_0x1f2279(0x206)](){const _0x1cfe9e=a57_0x1f2279,_0x4af733={};_0x4af733[_0x1cfe9e(0x207)]='startMain:\x20Starting\x20main\x20process',_0x4af733[_0x1cfe9e(0x1ba)]='startMain:\x20main-process\x20started';const _0x2bb031=_0x4af733;this[_0x1cfe9e(0x1da)][_0x1cfe9e(0x171)](_0x2bb031[_0x1cfe9e(0x207)]),await this['start'](),this[_0x1cfe9e(0x1da)]['debug'](_0x2bb031['Ufphh']);const _0x2f85bb=await GrpcClient['getInstance']()[_0x1cfe9e(0x1c3)]();this[_0x1cfe9e(0x153)]=!![],this['loadModules'](_0x2f85bb);}[a57_0x1f2279(0x1de)](_0x2dab20){const _0x2a4979=a57_0x1f2279,_0x5aa651={'ONvxH':function(_0x161a2d,_0x12473e){return _0x161a2d(_0x12473e);},'cRLnU':_0x2a4979(0x1d9),'kjswF':_0x2a4979(0x180),'dbZZK':function(_0x2820c2,_0x32ec32){return _0x2820c2(_0x32ec32);},'sWCmf':'./modules/observabilityModule.js','vhiDx':'loadModules:\x20Loading\x20modules','NwsHo':_0x2a4979(0x1fd),'jvgBI':'getAccessibility','BpFNK':_0x2a4979(0x1d4),'kJuZK':function(_0x2faa83,_0x17211c){return _0x2faa83||_0x17211c;}},_0x29d9e7=_0x5aa651[_0x2a4979(0x1c6)](require,_0x5aa651[_0x2a4979(0x176)]),_0x152832=_0x5aa651[_0x2a4979(0x1c6)](require,_0x5aa651[_0x2a4979(0x19f)]),_0x2e09be=_0x5aa651[_0x2a4979(0x15e)](require,_0x5aa651['sWCmf']);this[_0x2a4979(0x1da)]['info'](_0x5aa651['vhiDx']),this[_0x2a4979(0x1c9)]=_0x2dab20['getBinSessionId'](),this[_0x2a4979(0x1da)][_0x2a4979(0x171)]('loadModules:\x20binSessionId='+this[_0x2a4979(0x1c9)]),this[_0x2a4979(0x1a4)](_0x2dab20);!this['isChildConnected']&&this[_0x2a4979(0x152)](_0x2dab20);const _0xb2b62c=_0x5aa651['NwsHo'],_0x145afb=_0x5aa651[_0x2a4979(0x194)],_0x58a887=_0x5aa651[_0x2a4979(0x186)],_0x26eb88=_0x2dab20[_0xb2b62c]()&&_0x2dab20[_0xb2b62c]()[_0x58a887](),_0x55aebf=_0x2dab20[_0x145afb]()&&_0x2dab20[_0x145afb]()[_0x58a887]();_0x5aa651[_0x2a4979(0x1ac)](_0x26eb88,_0x55aebf)&&(this['modules'][_0x152832[_0x2a4979(0x1a2)]]=new _0x152832(_0x2dab20[_0x2a4979(0x15f)]())),_0x26eb88&&(this[_0x2a4979(0x1cc)][_0x2e09be[_0x2a4979(0x1a2)]]=new _0x2e09be(_0x2dab20[_0xb2b62c]())),_0x55aebf&&(this[_0x2a4979(0x1cc)][AccessibilityModule[_0x2a4979(0x1a2)]]=new AccessibilityModule(_0x2dab20[_0x145afb]())),this['modules'][_0x29d9e7['MODULE_NAME']]=new _0x29d9e7(),this[_0x2a4979(0x1e4)]();}['getAccessibilityModule'](){const _0x4a4340=a57_0x1f2279;return this[_0x4a4340(0x1cc)][AccessibilityModule['MODULE_NAME']];}async['configureModules'](){const _0x50477f=a57_0x1f2279;for(const _0x9605de in this[_0x50477f(0x1cc)]){const _0x494458=this[_0x50477f(0x1cc)][_0x9605de];await _0x494458[_0x50477f(0x1ca)](this['binSessionId'],0x0,GrpcClient[_0x50477f(0x1bf)]()['client'],this[_0x50477f(0x1a3)]);}}async[a57_0x1f2279(0x1ff)](){const _0x3733fb=a57_0x1f2279,_0x1c2bf0={'PsyAE':function(_0x3cea89,_0x1a4cf1){return _0x3cea89!==_0x1a4cf1;},'RgJqd':_0x3733fb(0x183),'sCqqu':function(_0x4f2ca7){return _0x4f2ca7();},'YWPrt':function(_0x51acc9,_0xda0a2c){return _0x51acc9(_0xda0a2c);},'yaWAT':'data','RjLjI':_0x3733fb(0x1e7),'rVjJr':_0x3733fb(0x1ae),'CnDfl':'sdk','VqOMR':function(_0x3c6ddf,_0x19eb93,_0x1fc121,_0x530ade){return _0x3c6ddf(_0x19eb93,_0x1fc121,_0x530ade);},'WayNy':_0x3733fb(0x1aa)};PerformanceTester[_0x3733fb(0x1ff)](PerformanceEvents[_0x3733fb(0x201)]);if(CLIUtils[_0x3733fb(0x1b8)]())return this[_0x3733fb(0x19d)](CLIUtils[_0x3733fb(0x1ec)]()),PerformanceTester[_0x3733fb(0x155)](PerformanceEvents[_0x3733fb(0x201)]),Promise[_0x3733fb(0x184)]();if(this[_0x3733fb(0x163)]&&this[_0x3733fb(0x163)][_0x3733fb(0x15a)])return PerformanceTester[_0x3733fb(0x155)](PerformanceEvents['SDK_CLI_START']),Promise[_0x3733fb(0x184)]();const _0x5a5fef=await this[_0x3733fb(0x1f1)](),_0x51375c=[_0x5a5fef,_0x1c2bf0['CnDfl']];this[_0x3733fb(0x1da)]['info']('spawning\x20command=\x27'+_0x51375c+'\x27');const _0x36fb15={};_0x36fb15['env']=process[_0x3733fb(0x16b)],this[_0x3733fb(0x163)]=_0x1c2bf0[_0x3733fb(0x1d3)](spawn,_0x51375c[0x0],_0x51375c[_0x3733fb(0x1a8)](0x1),_0x36fb15);if(!this[_0x3733fb(0x163)]['pid'])throw new Error(_0x1c2bf0[_0x3733fb(0x173)]);return new Promise((_0x4c00f9,_0xd2504b)=>{const _0x191582=_0x3733fb,_0x2bda1b={'DqSrl':function(_0x8c2f04,_0x2ba4b7){const _0x30ac05=a57_0x19aa;return _0x1c2bf0[_0x30ac05(0x1e2)](_0x8c2f04,_0x2ba4b7);},'PsGlw':function(_0x4d758e,_0x43d37d){const _0x3f8fff=a57_0x19aa;return _0x1c2bf0[_0x3f8fff(0x1af)](_0x4d758e,_0x43d37d);}},_0x1f8599={};this[_0x191582(0x163)][_0x191582(0x1a0)]['on'](_0x1c2bf0[_0x191582(0x1c0)],_0x1fd9cf=>{const _0x2bd8f5=_0x191582,_0x49fcb5=_0x1fd9cf[_0x2bd8f5(0x1b9)]()[_0x2bd8f5(0x1dd)]()[_0x2bd8f5(0x170)]('\x0a');for(const _0x4166b0 of _0x49fcb5){if(/^(id|listen|port)=.*$/[_0x2bd8f5(0x192)](_0x4166b0)){const [_0x2e792f,_0x3f6abc]=_0x4166b0[_0x2bd8f5(0x170)]('=',0x2);_0x1c2bf0[_0x2bd8f5(0x1af)](_0x3f6abc,undefined)&&(_0x1f8599[_0x2e792f]=_0x3f6abc);}if(_0x4166b0[_0x2bd8f5(0x1bc)]()[_0x2bd8f5(0x1d7)](_0x1c2bf0[_0x2bd8f5(0x1f0)])){this[_0x2bd8f5(0x19d)](_0x1f8599),PerformanceTester['end'](PerformanceEvents[_0x2bd8f5(0x201)]),_0x1c2bf0[_0x2bd8f5(0x179)](_0x4c00f9);return;}}}),this[_0x191582(0x163)][_0x191582(0x1ab)]['on'](_0x1c2bf0[_0x191582(0x1c0)],_0x113af2=>{const _0x51bed1=_0x191582;this[_0x51bed1(0x1da)][_0x51bed1(0x1e7)]('CLI\x20stderr:\x20'+_0x113af2['toString']()[_0x51bed1(0x1dd)]());}),this[_0x191582(0x163)]['on'](_0x1c2bf0[_0x191582(0x199)],_0x51f573=>{const _0x2319a5=_0x191582;_0x1f8599['error']=_0x2319a5(0x1be)+_0x51f573[_0x2319a5(0x1d0)],PerformanceTester['end'](PerformanceEvents['SDK_CLI_START'],![],_0x51f573),_0x2bda1b[_0x2319a5(0x1fe)](_0xd2504b,new Error(_0x2319a5(0x1b2)+_0x51f573['message']));}),this[_0x191582(0x163)]['on'](_0x1c2bf0['rVjJr'],_0x404f6f=>{_0x2bda1b['PsGlw'](_0x404f6f,0x0)&&_0x2bda1b['DqSrl'](_0xd2504b,new Error('CLI\x20process\x20exited\x20with\x20code\x20'+_0x404f6f));});});}async[a57_0x1f2279(0x175)](_0x1b63d9=null){const _0x376618=a57_0x1f2279,_0x4d6f1e={'TFyza':_0x376618(0x1a6),'HkJlx':function(_0x12193a){return _0x12193a();},'ylGPf':_0x376618(0x1c4),'pxauy':'SIGKILL','skMHT':_0x376618(0x1e8),'ltbih':function(_0x28b6b0,_0x235946,_0x5799e8){return _0x28b6b0(_0x235946,_0x5799e8);},'nVTVE':_0x376618(0x1ce),'NLOKo':'stop:\x20CLI\x20stop\x20triggered','SKWBI':function(_0x14bbd4,_0x392ee2){return _0x14bbd4(_0x392ee2);},'Mlasa':_0x376618(0x182),'GKOfM':_0x376618(0x169),'FrMbG':_0x376618(0x18f),'fZybT':_0x376618(0x17c)};if(!this[_0x376618(0x1e9)]()){this[_0x376618(0x1da)][_0x376618(0x171)](_0x4d6f1e[_0x376618(0x156)]);return;}PerformanceTester[_0x376618(0x1ff)](PerformanceEvents[_0x376618(0x1c2)]),this[_0x376618(0x1da)]['info'](_0x4d6f1e[_0x376618(0x1e5)]);try{if(this[_0x376618(0x153)]){const _0x1f432d=_0x4d6f1e[_0x376618(0x1b6)](require,_0x4d6f1e['Mlasa']),_0x37ae7c=this[_0x376618(0x1cc)]['TestHubModule']?.[_0x376618(0x17f)]?.[_0x376618(0x1b0)]()?.[_0x376618(0x1fa)],_0x43f31f=TestInfo['getTestDetails'](_0x37ae7c),_0x423715=_0x43f31f[TestFrameworkConstants[_0x376618(0x1ad)]]||{},_0x20ab62=await GrpcClient[_0x376618(0x1bf)]()['stopBinSession'](JSON[_0x376618(0x198)](_0x423715),_0x1b63d9);_0x20ab62&&_0x20ab62[_0x376618(0x1d4)]()&&_0x20ab62[_0x376618(0x162)]()&&(BrowserstackCLI[_0x376618(0x18c)]=_0x20ab62[_0x376618(0x162)](),BrowserstackCLI[_0x376618(0x189)]=_0x20ab62['getHashedId']()),await _0x1f432d['clearAttachments'](),TestInfo['shutdown'](),this['logger'][_0x376618(0x171)](_0x376618(0x1d6)+BrowserstackCLI[_0x376618(0x18c)]+_0x376618(0x1d1)+BrowserstackCLI['HashedID']+_0x376618(0x165)+BrowserstackCLI['O11yHashedID']);}await this[_0x376618(0x1e6)]();const _0x49b7be=GrpcClient['getInstance']()[_0x376618(0x1c1)]();if(_0x49b7be){try{_0x49b7be['close'](),this['logger']['info'](_0x4d6f1e[_0x376618(0x188)]);}catch(_0x5c5f21){this['logger'][_0x376618(0x1e7)](util[_0x376618(0x160)](_0x4d6f1e['FrMbG'],_0x5c5f21));}await new Promise(_0x364cfb=>setTimeout(_0x364cfb,0x1388));}this[_0x376618(0x163)]&&this['process']['pid']&&(this[_0x376618(0x1da)][_0x376618(0x171)](_0x4d6f1e['fZybT']),this[_0x376618(0x163)]['kill'](),await new Promise(_0x305224=>{const _0x30ce38=_0x376618,_0x5df997={'uLMSI':_0x4d6f1e[_0x30ce38(0x16f)],'SjMEw':function(_0x4a8021){return _0x4d6f1e['HkJlx'](_0x4a8021);},'jCOEe':_0x4d6f1e[_0x30ce38(0x17b)],'ENFxb':_0x4d6f1e[_0x30ce38(0x1b4)],'WeTVI':function(_0x51076c){const _0x283a24=_0x30ce38;return _0x4d6f1e[_0x283a24(0x15b)](_0x51076c);}};let _0x79b894=![];this['process']['on'](_0x4d6f1e[_0x30ce38(0x158)],()=>{const _0x51b3ed=_0x30ce38;this[_0x51b3ed(0x1da)][_0x51b3ed(0x171)](_0x5df997[_0x51b3ed(0x15d)]),_0x79b894=!![],PerformanceTester[_0x51b3ed(0x155)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x5df997[_0x51b3ed(0x1f3)](_0x305224);}),_0x4d6f1e[_0x30ce38(0x1f2)](setTimeout,()=>{const _0x2f1445=_0x30ce38;!_0x79b894&&(this[_0x2f1445(0x1da)][_0x2f1445(0x17e)](_0x5df997[_0x2f1445(0x1d5)]),this[_0x2f1445(0x163)][_0x2f1445(0x1cf)](_0x5df997['ENFxb']),PerformanceTester[_0x2f1445(0x155)](PerformanceEvents[_0x2f1445(0x1c2)]),_0x5df997[_0x2f1445(0x196)](_0x305224));},0xbb8);}));}catch(_0x5b6bbe){PerformanceTester[_0x376618(0x155)](PerformanceEvents[_0x376618(0x1c2)],![],util[_0x376618(0x160)](_0x5b6bbe)),this['logger'][_0x376618(0x1e7)](_0x376618(0x204)+(_0x5b6bbe[_0x376618(0x174)]||_0x5b6bbe));}_0x1b63d9?this['process'][_0x376618(0x1eb)]=0x1:this[_0x376618(0x163)]['exitCode']=0x0,this[_0x376618(0x1fb)]=![],this[_0x376618(0x153)]=![],process[_0x376618(0x16b)]['BROWSERSTACK_CLI_ENV']=null;}async[a57_0x1f2279(0x1e6)](){const _0x39013b=a57_0x1f2279,_0x2e23a7={};_0x2e23a7[_0x39013b(0x1cd)]=_0x39013b(0x19b);const _0x12d187=_0x2e23a7;this[_0x39013b(0x1da)][_0x39013b(0x171)](_0x12d187[_0x39013b(0x1cd)]);}[a57_0x1f2279(0x19d)](_0x2fd85b){const _0x3681d7=a57_0x1f2279;this[_0x3681d7(0x1da)][_0x3681d7(0x171)](_0x3681d7(0x166)+JSON[_0x3681d7(0x198)](_0x2fd85b)),this['cliParams']=_0x2fd85b,GrpcClient['getInstance']()[_0x3681d7(0x172)](_0x2fd85b);}async[a57_0x1f2279(0x1f5)](_0x283754){const _0x10cb75=a57_0x1f2279,_0xf1275d={};_0xf1275d[_0x10cb75(0x177)]=_0x10cb75(0x1bb);const _0x2d897d=_0xf1275d;PerformanceTester[_0x10cb75(0x1ff)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);try{this[_0x10cb75(0x1da)][_0x10cb75(0x171)](_0x10cb75(0x1b1)+_0x283754);const _0x16651e=GrpcClient['getInstance']();if(_0x16651e&&_0x16651e[_0x10cb75(0x1a7)]()&&_0x16651e[_0x10cb75(0x1c1)]()){this[_0x10cb75(0x1da)][_0x10cb75(0x171)](_0x2d897d[_0x10cb75(0x177)]);return;}GrpcClient[_0x10cb75(0x1bf)]()['connect']();const _0x443935=await GrpcClient[_0x10cb75(0x1bf)]()['connectBinSession']();this[_0x10cb75(0x1fb)]=!![],this[_0x10cb75(0x1de)](_0x443935),PerformanceTester[_0x10cb75(0x155)](PerformanceEvents[_0x10cb75(0x161)]);}catch(_0xa22b9a){PerformanceTester[_0x10cb75(0x155)](PerformanceEvents[_0x10cb75(0x161)],![],util[_0x10cb75(0x160)](_0xa22b9a)),this['logger'][_0x10cb75(0x1e7)](_0x10cb75(0x1a1)+util[_0x10cb75(0x160)](_0xa22b9a));}}[a57_0x1f2279(0x1e9)](){const _0x8b4be4=a57_0x1f2279,_0x4b5e9c={};_0x4b5e9c['SsRnP']=function(_0x26ca13,_0x31e923){return _0x26ca13!==_0x31e923;},_0x4b5e9c[_0x8b4be4(0x1e1)]=function(_0x1db173,_0x40e904){return _0x1db173===_0x40e904;},_0x4b5e9c['UnAPK']=function(_0x2057f8,_0x3bf528){return _0x2057f8!==_0x3bf528;};const _0x35274f=_0x4b5e9c;return CLIUtils[_0x8b4be4(0x1b8)]()||this[_0x8b4be4(0x153)]&&_0x35274f['SsRnP'](this[_0x8b4be4(0x163)],null)&&_0x35274f[_0x8b4be4(0x1e1)](this[_0x8b4be4(0x163)][_0x8b4be4(0x1eb)],null)&&_0x35274f[_0x8b4be4(0x1d2)](GrpcClient[_0x8b4be4(0x1bf)]()[_0x8b4be4(0x1a7)](),null)&&!GrpcClient[_0x8b4be4(0x1bf)]()[_0x8b4be4(0x1c1)]()[_0x8b4be4(0x1f8)]||this[_0x8b4be4(0x1fb)]&&_0x35274f['UnAPK'](GrpcClient[_0x8b4be4(0x1bf)]()[_0x8b4be4(0x1c1)](),null)&&!GrpcClient[_0x8b4be4(0x1bf)]()['getChannel']()['isClosed'];}[a57_0x1f2279(0x1f6)](){return this['browserstackConfig'];}['setBrowserstackConfig'](_0x388fa4,_0x299735=null){const _0x2d6732=a57_0x1f2279,_0x5594c1={};_0x5594c1['iEhCk']=function(_0x11c4bc,_0x2ca3dd){return _0x11c4bc||_0x2ca3dd;};const _0x2e2ec0=_0x5594c1;this[_0x2d6732(0x1e3)]=_0x2e2ec0[_0x2d6732(0x203)](_0x388fa4,{}),this[_0x2d6732(0x1ee)]=_0x299735,process[_0x2d6732(0x16b)]['BROWSERSTACK_TURBOSCALE']=this[_0x2d6732(0x1e3)]?.['turboScale']||![];const _0x183735=CLIUtils[_0x2d6732(0x1c7)]();helper[_0x2d6732(0x202)](process[_0x2d6732(0x16b)][_0x2d6732(0x1cb)])||!CLI_SUPPORTED_FRAMEWORKS[_0x2d6732(0x1d7)](_0x183735['name'][_0x2d6732(0x1bc)]())?process['env'][_0x2d6732(0x1db)]=![]:process['env']['BROWSERSTACK_CLI_ENABLED']=!![];}async[a57_0x1f2279(0x1f1)](){const _0xa955d5=a57_0x1f2279;return!this[_0xa955d5(0x195)]&&(this[_0xa955d5(0x195)]=await CLIUtils['setupCliPath'](this['browserstackConfig'])),this['SDK_CLI_BIN_PATH'];}[a57_0x1f2279(0x190)](){const _0x1156df=a57_0x1f2279;return helper[_0x1156df(0x202)](process[_0x1156df(0x16b)][_0x1156df(0x1db)]);}[a57_0x1f2279(0x205)](){return this['config'];}[a57_0x1f2279(0x1a4)](_0xca072c){const _0x3281ad=a57_0x1f2279,_0x3fcc3d={};_0x3fcc3d[_0x3281ad(0x187)]=_0x3281ad(0x159);const _0x46fd66=_0x3fcc3d;try{this['config']=JSON['parse'](_0xca072c['getConfig']()),this[_0x3281ad(0x1da)][_0x3281ad(0x171)](_0x46fd66[_0x3281ad(0x187)]);}catch(_0x5e1296){this['logger']['error'](_0x3281ad(0x15c)+util[_0x3281ad(0x160)](_0x5e1296));}}['setCliArgs'](_0x414105){const _0xdb4438=a57_0x1f2279;try{this[_0xdb4438(0x1e0)]=_0x414105[_0xdb4438(0x1f4)]()[_0xdb4438(0x170)](','),this[_0xdb4438(0x1da)][_0xdb4438(0x171)](_0xdb4438(0x16a)+JSON['stringify'](this[_0xdb4438(0x1e0)]));}catch(_0x193f96){this[_0xdb4438(0x1da)][_0xdb4438(0x1e7)](_0xdb4438(0x178)+util[_0xdb4438(0x160)](_0x193f96));}}[a57_0x1f2279(0x1f4)](){const _0x416a0e=a57_0x1f2279;return this[_0x416a0e(0x1e0)];}[a57_0x1f2279(0x1c5)](){const _0x33f540=a57_0x1f2279,_0x3558ba={};_0x3558ba[_0x33f540(0x1a5)]=function(_0x35d201,_0x5b1dd0){return _0x35d201===_0x5b1dd0;};const _0x453c17=_0x3558ba,_0x44ed50=CLIUtils[_0x33f540(0x1c7)]();_0x453c17[_0x33f540(0x1a5)](_0x44ed50[_0x33f540(0x1b5)][_0x33f540(0x1bc)](),FRAMEWORKS[_0x33f540(0x1b7)][_0x33f540(0x1bc)]())&&(this[_0x33f540(0x16e)]=new PlaywrightTestFramework([_0x44ed50['name']],_0x44ed50[_0x33f540(0x16c)]));}['setupAutomationFramework'](){const _0x218368=a57_0x1f2279,_0x56f03b={};_0x56f03b['rHkSG']=function(_0x5a7636,_0x205788){return _0x5a7636===_0x205788;};const _0x4e8951=_0x56f03b,_0x355443=CLIUtils[_0x218368(0x1b3)]();_0x4e8951[_0x218368(0x191)](_0x355443[_0x218368(0x1b5)][_0x218368(0x1bc)](),FRAMEWORKS[_0x218368(0x1b7)][_0x218368(0x1bc)]())&&(this[_0x218368(0x1df)]=new PlaywrightAutomationFramework(_0x355443['name'],_0x355443[_0x218368(0x16c)]));}[a57_0x1f2279(0x17a)](){const _0x4a1d63=a57_0x1f2279;return this[_0x4a1d63(0x16e)];}[a57_0x1f2279(0x193)](){const _0x34de85=a57_0x1f2279;return this[_0x34de85(0x1df)];}[a57_0x1f2279(0x1ea)](){const _0x4d9762=a57_0x1f2279;return this[_0x4d9762(0x1ee)];}}module[a57_0x1f2279(0x16d)]=BrowserstackCLI;
@@ -1 +1 @@
1
- const a58_0xa37084=a58_0x1874;(function(_0x5cd1c4,_0x2498e9){const _0x3e7314=a58_0x1874,_0x112386=_0x5cd1c4();while(!![]){try{const _0x3fc3b5=parseInt(_0x3e7314(0x112))/0x1+parseInt(_0x3e7314(0xf0))/0x2+-parseInt(_0x3e7314(0xd4))/0x3+-parseInt(_0x3e7314(0xc8))/0x4+-parseInt(_0x3e7314(0x107))/0x5*(-parseInt(_0x3e7314(0x7d))/0x6)+parseInt(_0x3e7314(0x113))/0x7*(-parseInt(_0x3e7314(0xb5))/0x8)+-parseInt(_0x3e7314(0xda))/0x9*(-parseInt(_0x3e7314(0xd5))/0xa);if(_0x3fc3b5===_0x2498e9)break;else _0x112386['push'](_0x112386['shift']());}catch(_0x3589de){_0x112386['push'](_0x112386['shift']());}}}(a58_0x4871,0x70b77));function a58_0x4871(){const _0x24c9f3=['5QGhiTt','open','once','readEntry','plbFS','error','HOOK_REGEX','../utils/constants','aHevi','child_process','Failed\x20to\x20download\x20binary,\x20Exception:\x20','576403RNCDSJ','28ixcKoD','ASyrd','QNYfq','BROWSERSTACK_CLI_ENV','SDK_CLI_CHECK_UPDATE','existsSync','Failed\x20to\x20delete\x20zip\x20file:\x20','getTestFrameworkDetail','getExistingCliPath','cyUBV','map','runShellCommand','timeout','lDpas','matchHookRegex','platform','\x20already\x20exists','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','skipSessionName','info','util','dTYZS','getHookRegistryKey','parse','rslCI','format','version','cwd','tXogN','nBNwi','JOfDd','YZuir','getSdkVersion','AOiKc','data','cWJif','2185302aZeXVj','gLZqZ','Error\x20while\x20reading\x20CLI\x20path:\x20','../../helpers/performance/performance-tester.js','oUGDZ','development','HBKyY','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Folder\x20does\x20not\x20exist:\x20','setupCliPath','BROWSERSTACK_FILES_DIR','RAMUd','Development\x20Cli\x20Path:\x20','getSdkLanguage','yWSla','skipSessionStatus','automationFrameworkDetail','ngQki','pid','close','statSync','GET','entry','isFile','stringify','downloadLatestBinary','debug','../../helpers/classLogger.js','lNvIF','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','length','xgxQb','getAutomationFrameworkDetail','ORWtx','requestToUpdateCLI','env','reduce','syKIB','exports','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','fKGYL','filter','startsWith','Resolved\x20binary\x20path:\x20','SDK_CLI_DOWNLOAD','./state/testFrameworkState.js','end','eYxDn','getCLIParamsForDevEnv','test','join','./state/hookState.js','wVfSq',',\x20automationFramework=','aMzBa','checkAndUpdateCli','1044328InnNSl','ToOpP','isDevelopmentEnv','testFrameworkDetail','BROWSERSTACK_BINARY_URL','start','BXcWA','fileName','TAsnj','\x20version','hdcvX','tmp','testContextOptions','homedir','binary-','zwFjn','YSiej','mYWkc','SjdAN','669740MWIUxQ','setFrameworkDetail','getCliDir','createWriteStream','gVpqj','vphUU','lazyEntries','pWQcR','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','IWaXp','yCnPQ','split','2349129PuDkOv','195740MkEugs','KIegs','2|4|1|0|3','isDirectory','XMUoQ','243OMIjsu','.sock','SDK_CLI_BIN_PATH','rDqJU','node','yauzl','readdirSync','bLssX','0755','downloadFileStream','MifLt','HDjdn','Setting\x20required\x20permissions\x20to\x20','listen','url','getWritableDir','openReadStream','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','shouldSkipSessionStatus','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','ElPnr','response\x20','930422WANxIq','worker_threads','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','CLIUtils','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','cli_version','basename','unix:/tmp/sdk-platform-','mtime','path','bYZGg','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','VUniM','arch','./state/automationFrameworkState.js','YfoaL','TdHiZ','TwZdN','drAlb','../../helpers/performance/constants','trim','Folder\x20','nzhfo'];a58_0x4871=function(){return _0x24c9f3;};return a58_0x4871();}const fs=require('fs'),os=require('os'),url=require(a58_0xa37084(0xe8)),path=require(a58_0xa37084(0xf9)),{exec}=require(a58_0xa37084(0x110)),{https}=require('follow-redirects'),yauzl=require(a58_0xa37084(0xdf)),util=require(a58_0xa37084(0x128)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a58_0xa37084(0xf1)),PerformanceTester=require(a58_0xa37084(0x80)),{EVENTS:PerformanceEvents}=require(a58_0xa37084(0x103)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require(a58_0xa37084(0x10e)),{createClassLogger}=require(a58_0xa37084(0x98)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a58_0xa37084(0xb0)),TestFrameworkState=require(a58_0xa37084(0xaa)),AutomationFrameworkState=require(a58_0xa37084(0xfe)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a58_0xa37084(0xf3));function a58_0x1874(_0x32ca4c,_0x43acf0){const _0x4871d4=a58_0x4871();return a58_0x1874=function(_0x1874ac,_0x51ded1){_0x1874ac=_0x1874ac-0x74;let _0x381a5e=_0x4871d4[_0x1874ac];return _0x381a5e;},a58_0x1874(_0x32ca4c,_0x43acf0);}class CLIUtils{['automationFrameworkDetail']={};[a58_0xa37084(0xb8)]={};static[a58_0xa37084(0xb7)](){const _0x247922=a58_0xa37084,_0x235cfd={};_0x235cfd['IWaXp']=function(_0x104e8c,_0xee7b7){return _0x104e8c===_0xee7b7;},_0x235cfd['ITHpE']=_0x247922(0x82);const _0xdd82a=_0x235cfd;return _0xdd82a[_0x247922(0xd1)](process[_0x247922(0xa0)]['BROWSERSTACK_CLI_ENV'],_0xdd82a['ITHpE']);}static[a58_0xa37084(0xad)](){const _0x1448de=a58_0xa37084,_0xb1a35a={};return _0xb1a35a['id']=process[_0x1448de(0xa0)][_0x1448de(0x116)],_0xb1a35a[_0x1448de(0xe7)]=_0x1448de(0xf7)+process['env'][_0x1448de(0x116)]+_0x1448de(0xdb),_0xb1a35a;}static[a58_0xa37084(0x79)](){const _0x34f3ad=a58_0xa37084,_0xe48353={'YSiej':function(_0x1704ac,_0x2118d7){return _0x1704ac(_0x2118d7);},'pWQcR':'../../../package.json'};return _0xe48353[_0x34f3ad(0xc5)](require,_0xe48353[_0x34f3ad(0xcf)])[_0x34f3ad(0x12e)];}static['getSdkLanguage'](){const _0x2c384d=a58_0xa37084,_0x7657bd={};_0x7657bd[_0x2c384d(0xd6)]=_0x2c384d(0xde);const _0x1db084=_0x7657bd;return _0x1db084[_0x2c384d(0xd6)];}static async[a58_0xa37084(0x86)](_0x514fc9){const _0x24e9f7=a58_0xa37084,_0x205a6b={'yWSla':'Configuring\x20Cli\x20path.','yCnPQ':function(_0x19f1f9,_0x50a672){return _0x19f1f9(_0x50a672);},'zwFjn':function(_0x2b2b61,_0x310ec7){return _0x2b2b61(_0x310ec7);},'vphUU':_0x24e9f7(0x9a)};logger['debug'](_0x205a6b[_0x24e9f7(0x8b)]);const _0x4c4699=process[_0x24e9f7(0xa0)][_0x24e9f7(0xdc)];if(!_0x205a6b[_0x24e9f7(0xd2)](isNullOrEmpty,_0x4c4699))return logger[_0x24e9f7(0x97)](_0x24e9f7(0x89)+_0x4c4699),_0x4c4699;try{const _0xa8cdc0=this[_0x24e9f7(0xca)]();if(_0x205a6b[_0x24e9f7(0xc4)](isNullOrEmpty,_0xa8cdc0))throw new Error(_0x205a6b[_0x24e9f7(0xcd)]);const _0x39b565=this[_0x24e9f7(0x11b)](_0xa8cdc0),_0x36922f=await this['checkAndUpdateCli'](_0x39b565,_0xa8cdc0,_0x514fc9);return logger[_0x24e9f7(0x97)](_0x24e9f7(0xa8)+_0x36922f),_0x36922f;}catch(_0x321e56){logger[_0x24e9f7(0x97)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x24e9f7(0x12d)](_0x321e56));}return null;}static async[a58_0xa37084(0xb4)](_0x4fe74b,_0x425721,_0x548094){const _0x198e06=a58_0xa37084,_0x417ed6={'uFlZU':function(_0x3abf45){return _0x3abf45();},'JOfDd':function(_0x4d648d,_0x13f92e){return _0x4d648d(_0x13f92e);},'cyUBV':function(_0x2973ab,_0x5378f1,_0x29ecdd){return _0x2973ab(_0x5378f1,_0x29ecdd);},'SjdAN':_0x198e06(0x7b),'rDqJU':_0x198e06(0xe8)};PerformanceTester[_0x198e06(0xba)](PerformanceEvents[_0x198e06(0x117)]),logger[_0x198e06(0x127)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x4fe74b);const _0x4ae550=_0x417ed6['uFlZU'](getHostInfo),_0x5e38cb={'sdk_version':CLIUtils[_0x198e06(0x79)](),'os':_0x4ae550[_0x198e06(0x122)],'os_arch':_0x4ae550[_0x198e06(0xfd)],'cli_version':'0','sdk_language':this[_0x198e06(0x8a)]()};!_0x417ed6[_0x198e06(0x77)](isNullOrEmpty,_0x4fe74b)&&(_0x5e38cb['cli_version']=await this[_0x198e06(0x11e)](_0x4fe74b+_0x198e06(0xbe)));const _0x258d85=await this[_0x198e06(0x9f)](_0x5e38cb,_0x548094);process[_0x198e06(0xa0)][_0x198e06(0xb9)]&&(logger['info'](_0x198e06(0xeb)+process[_0x198e06(0xa0)][_0x198e06(0xb9)]),_0x258d85[_0x198e06(0x7b)][_0x198e06(0xe8)]=process['env'][_0x198e06(0xb9)]);if(_0x417ed6[_0x198e06(0x11c)](nestedKeyValue,_0x258d85,[_0x417ed6[_0x198e06(0xc7)],_0x417ed6[_0x198e06(0xdd)]])){logger['debug'](_0x198e06(0xf2)+_0x5e38cb[_0x198e06(0xf5)]);const _0x37c95b=await this[_0x198e06(0x96)](_0x417ed6[_0x198e06(0x11c)](nestedKeyValue,_0x258d85,[_0x417ed6[_0x198e06(0xc7)],_0x417ed6[_0x198e06(0xdd)]]),_0x425721);return PerformanceTester[_0x198e06(0xab)](PerformanceEvents[_0x198e06(0x117)]),_0x37c95b;}return PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x4fe74b;}static[a58_0xa37084(0xca)](){const _0x2dc427=a58_0xa37084,_0x4a0343={'YZuir':function(_0x5938a4,_0x1faa11){return _0x5938a4(_0x1faa11);},'ToOpP':_0x2dc427(0x9a),'nzhfo':'cli','NpvgZ':function(_0x4a7887,_0x56180f){return _0x4a7887(_0x56180f);}},_0x1f261c=this[_0x2dc427(0xe9)]();try{if(_0x4a0343[_0x2dc427(0x78)](isNullOrEmpty,_0x1f261c))throw new Error(_0x4a0343[_0x2dc427(0xb6)]);const _0x1f7068=path[_0x2dc427(0xaf)](_0x1f261c,_0x4a0343[_0x2dc427(0x106)]);return!fs[_0x2dc427(0x118)](_0x1f7068)&&_0x4a0343['NpvgZ'](createDir,_0x1f7068),_0x1f7068;}catch(_0x40b243){logger['debug'](_0x2dc427(0x84)+util[_0x2dc427(0x12d)](_0x40b243));}}static[a58_0xa37084(0xe9)](){const _0x8843df=a58_0xa37084,_0x25902e={'mYWkc':'.browserstack','dlEFV':_0x8843df(0xc0),'lDpas':function(_0x476db0,_0x166c8c){return _0x476db0(_0x166c8c);},'TAsnj':function(_0x5762f9,_0xf9bb54){return _0x5762f9(_0xf9bb54);},'VUniM':function(_0x33f66a,_0x2078f6){return _0x33f66a(_0x2078f6);},'oUGDZ':function(_0x371489,_0x1893eb){return _0x371489(_0x1893eb);}},_0xc1a3ad=[process['env'][_0x8843df(0x87)],path[_0x8843df(0xaf)](os[_0x8843df(0xc2)](),_0x25902e[_0x8843df(0xc6)]),path[_0x8843df(0xaf)](_0x25902e['dlEFV'],_0x25902e[_0x8843df(0xc6)])];for(const _0xe2ded of _0xc1a3ad){if(_0x25902e[_0x8843df(0x120)](isNullOrEmpty,_0xe2ded))continue;try{if(fs[_0x8843df(0x118)](_0xe2ded)){logger[_0x8843df(0x97)](_0x8843df(0x105)+_0xe2ded+_0x8843df(0x123));if(!_0x25902e[_0x8843df(0xbd)](isModifiable,_0xe2ded)){logger[_0x8843df(0x97)]('Setting\x20required\x20permissions\x20to\x20'+_0xe2ded);const _0x2e822d=_0x25902e['lDpas'](setReadWriteExecuteAccess,_0xe2ded);!_0x25902e[_0x8843df(0x120)](isTrue,_0x2e822d)&&logger['warn'](_0x8843df(0xf4)+_0xe2ded);}}else{logger[_0x8843df(0x97)](_0x8843df(0x85)+_0xe2ded),_0x25902e[_0x8843df(0xbd)](createDir,_0xe2ded),logger[_0x8843df(0x97)](_0x8843df(0xe6)+_0xe2ded);const _0x47bb10=_0x25902e[_0x8843df(0xfc)](setReadWriteExecuteAccess,_0xe2ded);!_0x25902e[_0x8843df(0x81)](isTrue,_0x47bb10)&&logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0xe2ded);}return _0xe2ded;}catch(_0x1f3406){logger[_0x8843df(0x10c)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x8843df(0x12d)](_0x1f3406));}}return null;}static['getExistingCliPath'](_0x3c88fa){const _0x1ef530=a58_0xa37084,_0x246ddf={};_0x246ddf[_0x1ef530(0x7c)]=function(_0x5ab23f,_0x24911f){return _0x5ab23f>_0x24911f;},_0x246ddf[_0x1ef530(0xe4)]=function(_0x3c6d48,_0x2bf8dc){return _0x3c6d48>_0x2bf8dc;};const _0x3e1e2a=_0x246ddf;try{if(!fs[_0x1ef530(0x118)](_0x3c88fa)||!fs[_0x1ef530(0x91)](_0x3c88fa)[_0x1ef530(0xd8)]())return'';const _0x1c53c5=fs[_0x1ef530(0xe0)](_0x3c88fa)['map'](_0x587392=>path[_0x1ef530(0xaf)](_0x3c88fa,_0x587392))[_0x1ef530(0xa6)](_0x53cb45=>fs[_0x1ef530(0x91)](_0x53cb45)[_0x1ef530(0x94)]()&&path[_0x1ef530(0xf6)](_0x53cb45)[_0x1ef530(0xa7)](_0x1ef530(0xc3)));if(_0x3e1e2a[_0x1ef530(0xe4)](_0x1c53c5[_0x1ef530(0x9b)],0x0)){const _0x380ba1=_0x1c53c5[_0x1ef530(0x11d)](_0x191179=>({'filePath':_0x191179,'mtime':fs[_0x1ef530(0x91)](_0x191179)[_0x1ef530(0xf8)]}))[_0x1ef530(0xa1)]((_0x3e3db0,_0x6f8314)=>{const _0x3c64dc=_0x1ef530;if(!_0x3e3db0||!_0x3e3db0[_0x3c64dc(0xf8)])return _0x6f8314;if(_0x3e1e2a[_0x3c64dc(0x7c)](_0x6f8314[_0x3c64dc(0xf8)],_0x3e3db0[_0x3c64dc(0xf8)]))return _0x6f8314;return _0x3e3db0;},{});return _0x380ba1?_0x380ba1['filePath']:'';}return'';}catch(_0x3902f8){return logger['error'](_0x1ef530(0x7f)+util[_0x1ef530(0x12d)](_0x3902f8)),'';}}static [a58_0xa37084(0x9f)]=async(_0x42ffa6,_0x454666)=>{const _0x1c3ae5=a58_0xa37084,_0x426259={'QNYfq':function(_0x3cd0fb,_0xe04e05,_0x4efc86,_0x1916cb,_0x2bdb61,_0x29c4a2){return _0x3cd0fb(_0xe04e05,_0x4efc86,_0x1916cb,_0x2bdb61,_0x29c4a2);},'ORWtx':_0x1c3ae5(0x92)},_0x564b4a={};_0x564b4a['qs']=_0x42ffa6;const _0x18e69d=await _0x426259[_0x1c3ae5(0x115)](nodeRequest,_0x426259[_0x1c3ae5(0x9e)],UPDATED_CLI_ENDPOINT,_0x564b4a,_0x454666,BROWSERSTACK_API_URL);return logger[_0x1c3ae5(0x97)](_0x1c3ae5(0xef)+JSON['stringify'](_0x18e69d)),_0x18e69d;};static[a58_0xa37084(0x11e)](_0x1f923d,_0x5bfbf9=''){const _0x20a36f=a58_0xa37084,_0x1d78a={'plbFS':function(_0x166d5e,_0x38ebc9){return _0x166d5e(_0x38ebc9);},'dTYZS':'SHELL_EXECUTE_ERROR','drAlb':function(_0x35ca94,_0x5414bd){return _0x35ca94(_0x5414bd);},'cwnHr':function(_0x3f18a2,_0x3dd7da,_0xcdebb,_0x3c210d){return _0x3f18a2(_0x3dd7da,_0xcdebb,_0x3c210d);},'ngQki':_0x20a36f(0x10c)};return new Promise((_0x5dc9df,_0x5c3434)=>{const _0x8e3755=_0x20a36f,_0x47445a={'XMUoQ':function(_0x94f939,_0x1751af){const _0x5b50ad=a58_0x1874;return _0x1d78a[_0x5b50ad(0x102)](_0x94f939,_0x1751af);},'aMzBa':_0x1d78a[_0x8e3755(0x129)]},_0x171e34={};_0x171e34[_0x8e3755(0x74)]=_0x5bfbf9,_0x171e34[_0x8e3755(0x11f)]=0x1388;const _0x2a24e3=_0x1d78a['cwnHr'](exec,_0x1f923d,_0x171e34,(_0x49256d,_0x548a87,_0x419230)=>{const _0x2f37f2=_0x8e3755;_0x49256d?_0x47445a[_0x2f37f2(0xd9)](_0x5dc9df,_0x419230[_0x2f37f2(0x104)]()||_0x47445a[_0x2f37f2(0xb3)]):_0x47445a['XMUoQ'](_0x5dc9df,_0x548a87['trim']());});_0x2a24e3['on'](_0x1d78a[_0x8e3755(0x8e)],()=>{const _0x5a5bc4=_0x8e3755;_0x1d78a[_0x5a5bc4(0x10b)](_0x5dc9df,_0x1d78a[_0x5a5bc4(0x129)]);});});}static [a58_0xa37084(0x96)]=async(_0xb751a2,_0x27d8b9)=>{const _0x356da7=a58_0xa37084,_0x463ae7={'aHevi':_0x356da7(0x124),'YfoaL':function(_0x4d121e,_0x3dcc26){return _0x4d121e(_0x3dcc26);},'bYZGg':_0x356da7(0x10c),'ASyrd':_0x356da7(0xed),'rslCI':'downloaded_file.zip'};PerformanceTester[_0x356da7(0xba)](PerformanceEvents[_0x356da7(0xa9)]),logger[_0x356da7(0x97)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0xb751a2);try{const _0x3f3e52=url[_0x356da7(0x12b)](_0xb751a2),_0x6f0f66=path[_0x356da7(0xaf)](_0x27d8b9,_0x463ae7[_0x356da7(0x12c)]),_0xa35402=fs[_0x356da7(0xcb)](_0x6f0f66);return new Promise((_0x7e2020,_0x19acd7)=>{const _0x4d8481=_0x356da7,_0x574a40={'xgxQb':_0x463ae7[_0x4d8481(0x114)],'gLZqZ':function(_0x370d6d,_0x2646ea){const _0x5171c8=_0x4d8481;return _0x463ae7[_0x5171c8(0xff)](_0x370d6d,_0x2646ea);}};https['get'](_0x3f3e52,function(_0x32b9f5){const _0x383e66=_0x4d8481,_0x5dfb28={'bLssX':_0x463ae7[_0x383e66(0x10f)],'RAMUd':function(_0x52ed2f,_0x8001d0){return _0x463ae7['YfoaL'](_0x52ed2f,_0x8001d0);}},_0x473713=null;_0x32b9f5['pipe'](_0xa35402),_0x32b9f5['on'](_0x463ae7['bYZGg'],function(_0x27ba8e){const _0x5bdcb8=_0x383e66;logger[_0x5bdcb8(0x10c)](util[_0x5bdcb8(0x12d)](_0x5dfb28[_0x5bdcb8(0xe1)],_0x27ba8e)),PerformanceTester[_0x5bdcb8(0xab)](PerformanceEvents[_0x5bdcb8(0xa9)],![],util['format'](_0x27ba8e)),_0x5dfb28[_0x5bdcb8(0x88)](_0x19acd7,_0x27ba8e);}),_0xa35402['on'](_0x463ae7[_0x383e66(0xfa)],function(_0x109ea9){const _0x35fcc6=_0x383e66;logger[_0x35fcc6(0x10c)](util[_0x35fcc6(0x12d)](_0x574a40[_0x35fcc6(0x9c)],_0x109ea9)),PerformanceTester['end'](PerformanceEvents[_0x35fcc6(0xa9)],![],util[_0x35fcc6(0x12d)](_0x109ea9)),_0x574a40[_0x35fcc6(0x7e)](_0x19acd7,_0x109ea9);}),CLIUtils[_0x383e66(0xe3)](_0xa35402,_0x473713,_0x6f0f66,_0x27d8b9,_0x7e2020,_0x19acd7),PerformanceTester[_0x383e66(0xab)](PerformanceEvents[_0x383e66(0xa9)]);})['on'](_0x463ae7[_0x4d8481(0xfa)],function(_0xddf20){const _0x403452=_0x4d8481;logger['error'](_0x403452(0x125)+util[_0x403452(0x12d)](_0xddf20)),PerformanceTester[_0x403452(0xab)](PerformanceEvents[_0x403452(0xa9)],![],util[_0x403452(0x12d)](_0xddf20)),_0x463ae7[_0x403452(0xff)](_0x19acd7,_0xddf20);});});}catch(_0x34aaa0){PerformanceTester[_0x356da7(0xab)](PerformanceEvents[_0x356da7(0xa9)],![],util[_0x356da7(0x12d)](_0x34aaa0)),logger['debug'](_0x356da7(0x111)+util['format'](_0x34aaa0));}};static['downloadFileStream'](_0xa591cf,_0x17b178,_0x458ef2,_0x5da2e9,_0x1d5eed,_0x22c5f3){const _0x93b69e=a58_0xa37084,_0x1f4b9c={'CsdVE':function(_0x2ad260,_0x2c8ea1){return _0x2ad260(_0x2c8ea1);},'lNvIF':_0x93b69e(0xab),'nBNwi':function(_0x1ef920,_0x1adb9e){return _0x1ef920===_0x1adb9e;},'TdHiZ':_0x93b69e(0x93),'LJvNq':'error','syKIB':function(_0x5d39ea,_0x3cd23d){return _0x5d39ea(_0x3cd23d);},'eYxDn':_0x93b69e(0xe2),'tXogN':_0x93b69e(0x90)};_0xa591cf['on'](_0x1f4b9c[_0x93b69e(0x75)],function(){const _0x24ac11=_0x93b69e,_0x37ab29={'hdcvX':function(_0x4fd7fa,_0x43c393){const _0x1047e1=a58_0x1874;return _0x1f4b9c[_0x1047e1(0xa2)](_0x4fd7fa,_0x43c393);},'gVpqj':function(_0x14f3db,_0x566986){const _0x301bc6=a58_0x1874;return _0x1f4b9c[_0x301bc6(0xa2)](_0x14f3db,_0x566986);},'fKGYL':_0x1f4b9c[_0x24ac11(0xac)]},_0x2f8768={};_0x2f8768[_0x24ac11(0xce)]=!![],yauzl[_0x24ac11(0x108)](_0x458ef2,_0x2f8768,function(_0x178f72,_0x2cb657){const _0x4e151a=_0x24ac11,_0x5c7c7c={'wVfSq':function(_0x1a830a,_0x57352a){return _0x1f4b9c['CsdVE'](_0x1a830a,_0x57352a);},'BXcWA':_0x1f4b9c['lNvIF'],'TwZdN':function(_0x4f59a3,_0x562a40){const _0x479a93=a58_0x1874;return _0x1f4b9c[_0x479a93(0x76)](_0x4f59a3,_0x562a40);}};_0x178f72&&_0x1f4b9c['CsdVE'](_0x22c5f3,_0x178f72),_0x2cb657['readEntry'](),_0x2cb657['on'](_0x1f4b9c[_0x4e151a(0x100)],_0x4340d9=>{const _0x3e735a=_0x4e151a,_0x42e8ec={'HDjdn':function(_0xc5b2a6,_0x10908a){const _0x44ac0d=a58_0x1874;return _0x5c7c7c[_0x44ac0d(0xb1)](_0xc5b2a6,_0x10908a);},'ubBun':_0x5c7c7c[_0x3e735a(0xbb)]};!_0x17b178&&(_0x17b178=_0x4340d9['fileName']);if(/\/$/[_0x3e735a(0xae)](_0x4340d9[_0x3e735a(0xbc)]))_0x2cb657[_0x3e735a(0x10a)]();else{const _0x51d2c3=fs[_0x3e735a(0xcb)](path[_0x3e735a(0xaf)](_0x5da2e9,_0x4340d9[_0x3e735a(0xbc)]));_0x2cb657[_0x3e735a(0xea)](_0x4340d9,function(_0x5c293c,_0x4b1643){const _0x8fb278=_0x3e735a;_0x5c293c&&_0x42e8ec[_0x8fb278(0xe5)](_0x22c5f3,_0x178f72),_0x4b1643['on'](_0x42e8ec['ubBun'],function(){const _0x3095e5=_0x8fb278;_0x51d2c3[_0x3095e5(0x90)](),_0x2cb657[_0x3095e5(0x10a)]();}),_0x4b1643['pipe'](_0x51d2c3);}),_0x5c7c7c[_0x3e735a(0x101)](_0x4340d9[_0x3e735a(0xbc)],_0x17b178)&&_0x2cb657[_0x3e735a(0x90)]();}}),_0x2cb657['on'](_0x1f4b9c['LJvNq'],_0x1460dc=>{const _0x4ea676=_0x4e151a;_0x37ab29[_0x4ea676(0xbf)](_0x22c5f3,_0x1460dc);}),_0x2cb657[_0x4e151a(0x109)](_0x1f4b9c[_0x4e151a(0x99)],()=>{const _0x37c5fb=_0x4e151a,_0x50f12d={'ElPnr':function(_0x10488f,_0x23b49e){const _0x4c99ac=a58_0x1874;return _0x37ab29[_0x4c99ac(0xbf)](_0x10488f,_0x23b49e);},'ZnfYX':function(_0x297257,_0x53b96a){const _0x38518c=a58_0x1874;return _0x37ab29[_0x38518c(0xcc)](_0x297257,_0x53b96a);}};fs['unlink'](_0x458ef2,_0x4eaa55=>{const _0x35eae5=a58_0x1874;_0x4eaa55&&logger['warn'](_0x35eae5(0x119)+_0x458ef2);}),fs['chmod'](_0x5da2e9+'/'+_0x17b178,_0x37ab29[_0x37c5fb(0xa5)],function(_0x19c80a){const _0x3aefc5=_0x37c5fb;_0x19c80a&&_0x50f12d[_0x3aefc5(0xee)](_0x22c5f3,_0x19c80a),_0x50f12d['ZnfYX'](_0x1d5eed,_0x5da2e9+'/'+_0x17b178);}),_0x2cb657[_0x37c5fb(0x90)]();});});});}static[a58_0xa37084(0x11a)](){const _0x553915=a58_0xa37084;if(process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON['parse'](process[_0x553915(0xa0)][_0x553915(0xa4)]);return this['testFrameworkDetail'];}static[a58_0xa37084(0x9d)](){const _0x1693a5=a58_0xa37084;if(process[_0x1693a5(0xa0)][_0x1693a5(0xfb)])return JSON[_0x1693a5(0x12b)](process[_0x1693a5(0xa0)][_0x1693a5(0xfb)]);return this[_0x1693a5(0x8d)];}static[a58_0xa37084(0xc9)](_0x23b1cc,_0xeb8236){const _0x38290f=a58_0xa37084,_0x4b6e5f={'jIPlm':_0x38290f(0xd7),'AOiKc':function(_0x4b5671,_0x3d85dc){return _0x4b5671(_0x3d85dc);},'HBKyY':function(_0x30eaaa,_0x32b70f){return _0x30eaaa||_0x32b70f;}},_0x36c4e9=_0x4b6e5f['jIPlm'][_0x38290f(0xd3)]('|');let _0x3f386c=0x0;while(!![]){switch(_0x36c4e9[_0x3f386c++]){case'0':process[_0x38290f(0xa0)][_0x38290f(0xfb)]=JSON[_0x38290f(0x95)](this[_0x38290f(0x8d)]);continue;case'1':this[_0x38290f(0x8d)]={'name':_0xeb8236,'version':_0x4b6e5f[_0x38290f(0x7a)](getFrameworkVersion,_0xeb8236)};continue;case'2':_0x4b6e5f[_0x38290f(0x83)](!_0x23b1cc,!_0xeb8236)&&logger[_0x38290f(0x97)](_0x38290f(0xd0)+_0x23b1cc+_0x38290f(0xb2)+_0xeb8236);continue;case'3':process[_0x38290f(0xa0)][_0x38290f(0xa4)]=JSON[_0x38290f(0x95)](this['testFrameworkDetail']);continue;case'4':this[_0x38290f(0xb8)]={'name':_0x23b1cc,'version':{[_0x23b1cc]:_0x4b6e5f[_0x38290f(0x7a)](getFrameworkVersion,_0x23b1cc)}};continue;}break;}}static[a58_0xa37084(0x12a)](_0x33b15f,_0x1615f5){return _0x33b15f+':'+_0x1615f5;}static['getCurrentInstanceName'](){const _0x289db0=a58_0xa37084;return process[_0x289db0(0x8f)]+':'+threadId;}static['shouldSkipSessionName'](_0x1c2e75){const _0x2b4003=a58_0xa37084;if(_0x1c2e75[_0x2b4003(0xc1)]&&_0x1c2e75[_0x2b4003(0xc1)][_0x2b4003(0x126)])return!![];return![];}static[a58_0xa37084(0xec)](_0x1e2cda){const _0x1b59ef=a58_0xa37084;if(_0x1e2cda['testContextOptions']&&_0x1e2cda[_0x1b59ef(0xc1)][_0x1b59ef(0x8c)])return!![];return![];}static[a58_0xa37084(0x121)](_0x393cb7){const _0x5302c4=a58_0xa37084,_0x3da750=new RegExp(TestFrameworkConstants[_0x5302c4(0x10d)]);return _0x3da750['test'](_0x393cb7);}}module[a58_0xa37084(0xa3)]=CLIUtils;
1
+ const a58_0xe22d5a=a58_0x2f46;function a58_0x2f46(_0x4d96c3,_0x45fe2f){const _0x3db03f=a58_0x3db0();return a58_0x2f46=function(_0x2f4657,_0x56a129){_0x2f4657=_0x2f4657-0x10c;let _0x170e6d=_0x3db03f[_0x2f4657];return _0x170e6d;},a58_0x2f46(_0x4d96c3,_0x45fe2f);}(function(_0x5112cb,_0x193e59){const _0x4eaf31=a58_0x2f46,_0x415875=_0x5112cb();while(!![]){try{const _0x4e859d=-parseInt(_0x4eaf31(0x1a0))/0x1+parseInt(_0x4eaf31(0x17d))/0x2*(parseInt(_0x4eaf31(0x149))/0x3)+parseInt(_0x4eaf31(0x1b6))/0x4*(parseInt(_0x4eaf31(0x1b9))/0x5)+-parseInt(_0x4eaf31(0x15e))/0x6+-parseInt(_0x4eaf31(0x1af))/0x7+parseInt(_0x4eaf31(0x142))/0x8+-parseInt(_0x4eaf31(0x165))/0x9;if(_0x4e859d===_0x193e59)break;else _0x415875['push'](_0x415875['shift']());}catch(_0x4347cd){_0x415875['push'](_0x415875['shift']());}}}(a58_0x3db0,0xb4b60));function a58_0x3db0(){const _0x14b10f=['SHELL_EXECUTE_ERROR','cli_version','EzUcv','PuZsZ','.sock','GET','2|3|1|4|0','end','error','BROWSERSTACK_FILES_DIR','\x20version','DcxfP','12XZNlcY','YeXBE','ADFkj','entry','testFrameworkDetail','lISxV','DhqkP','wGFVn','DVKnV','cpUGJ','info','reduce','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','SDK_CLI_BIN_PATH','setFrameworkDetail','isDirectory','LBfCI','child_process','Error\x20while\x20reading\x20CLI\x20path:\x20','lDWZL','BtWWa','qUwoK','ULROP','binary-','warn','MYvYd','SDK_CLI_CHECK_UPDATE','matchHookRegex','Setting\x20required\x20permissions\x20to\x20','MJlbZ','../utils/constants','setupCliPath','existsSync','exports','pipe','142117oJVupM','yauzl','bSpZo','bjtjt','test','filter','chmod','Development\x20Cli\x20Path:\x20','getWritableDir','goqbq','testContextOptions','\x20already\x20exists','env','getCliDir','url','4034800brmQGE','KacuZ','wytRZ','getCLIParamsForDevEnv','FxHLp','bWUes','openReadStream','92bgJztz','RVKBA','get','279760DaCNrM','lazyEntries','Configuring\x20Cli\x20path.','BROWSERSTACK_CLI_ENV','JWkxE','cwd','isDevelopmentEnv','adDMA','mtime','cjaHm','format','response\x20','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','FMrLR','../../helpers/performance/performance-tester.js','version','QSPoR','getExistingCliPath','ELpYQ','unix:/tmp/sdk-platform-','IbnFc','getSdkVersion','timeout','cxGkA','fileName','once','vVYaY','getTestFrameworkDetail','worker_threads','readdirSync','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','PGmOV','map','shouldSkipSessionStatus','split','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','./framework/constants/testFrameworkConstants.js','YQVEG','parse','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','util','automationFrameworkDetail','data','KAxCy','AEDci','runShellCommand','path','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20',',\x20automationFramework=','basename','kNSYz','cli','LWEfI','node','../../helpers/test-observability/utils.js','CLIUtils','BROWSERSTACK_BINARY_URL','startsWith','join','downloaded_file.zip','close','syKWg','pkeoT','arch','trim','downloadFileStream','follow-redirects','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','MNfpZ','Downloading\x20SDK\x20binary\x20from:\x20','PclpO','getAutomationFrameworkDetail','start','../../../package.json','nRzOy','7171264gNFBAc','getSdkLanguage','getHookRegistryKey','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','filePath','length','Folder\x20','629961IueCBU','tmpdir','./state/hookState.js','platform','kNMlS','xosFc','createWriteStream','skipSessionStatus','kqRpD','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','aeLSr','stringify','statSync','.browserstack','pQlIz','xBBQh','../../helpers/utilities','checkAndUpdateCli','pid','getCurrentInstanceName','skipSessionName','2546700iiIpnG','RhnXf','HOOK_REGEX','./instances/testFrameworkInstance.js','listen','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','UusZv','14040603KlHbXL','Resolved\x20binary\x20path:\x20','isFile','readEntry','development','debug','SDK_CLI_DOWNLOAD','./state/testFrameworkState.js','../../helpers/classLogger.js','oLcPt','requestToUpdateCLI','Failed\x20to\x20download\x20binary,\x20Exception:\x20'];a58_0x3db0=function(){return _0x14b10f;};return a58_0x3db0();}const fs=require('fs'),os=require('os'),url=require(a58_0xe22d5a(0x1ae)),path=require(a58_0xe22d5a(0x125)),{exec}=require(a58_0xe22d5a(0x18e)),{https}=require(a58_0xe22d5a(0x139)),yauzl=require(a58_0xe22d5a(0x1a1)),util=require(a58_0xe22d5a(0x11f)),{getFrameworkVersion}=require(a58_0xe22d5a(0x12d)),{threadId}=require(a58_0xe22d5a(0x113)),PerformanceTester=require(a58_0xe22d5a(0x1c7)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a58_0xe22d5a(0x159)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require(a58_0xe22d5a(0x19b)),{createClassLogger}=require(a58_0xe22d5a(0x16d)),TestFrameworkInstance=require(a58_0xe22d5a(0x161)),HookState=require(a58_0xe22d5a(0x14b)),TestFrameworkState=require(a58_0xe22d5a(0x16c)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a58_0xe22d5a(0x11b)),logger=createClassLogger(a58_0xe22d5a(0x12e));class CLIUtils{[a58_0xe22d5a(0x120)]={};[a58_0xe22d5a(0x181)]={};static[a58_0xe22d5a(0x1bf)](){const _0x32b855=a58_0xe22d5a,_0x172bf4={};_0x172bf4[_0x32b855(0x13d)]=function(_0x375c80,_0x4e0c8f){return _0x375c80===_0x4e0c8f;},_0x172bf4[_0x32b855(0x116)]=_0x32b855(0x169);const _0x549ef5=_0x172bf4;return _0x549ef5[_0x32b855(0x13d)](process[_0x32b855(0x1ac)][_0x32b855(0x1bc)],_0x549ef5['PGmOV']);}static[a58_0xe22d5a(0x1b2)](){const _0x79ca7e=a58_0xe22d5a,_0x4e8271={};return _0x4e8271['id']=process[_0x79ca7e(0x1ac)][_0x79ca7e(0x1bc)],_0x4e8271[_0x79ca7e(0x162)]=_0x79ca7e(0x1cc)+process['env'][_0x79ca7e(0x1bc)]+_0x79ca7e(0x175),_0x4e8271;}static[a58_0xe22d5a(0x10c)](){const _0x49b5d8=a58_0xe22d5a,_0x5ed2f8={'LBfCI':function(_0x2bac2b,_0x1e2709){return _0x2bac2b(_0x1e2709);},'kBcnQ':_0x49b5d8(0x140)};return _0x5ed2f8[_0x49b5d8(0x18d)](require,_0x5ed2f8['kBcnQ'])[_0x49b5d8(0x1c8)];}static[a58_0xe22d5a(0x143)](){const _0xa51665=a58_0xe22d5a,_0x2da8be={};_0x2da8be[_0xa51665(0x134)]=_0xa51665(0x12c);const _0x13ecec=_0x2da8be;return _0x13ecec[_0xa51665(0x134)];}static async[a58_0xe22d5a(0x19c)](_0xc72e11){const _0x483c8d=a58_0xe22d5a,_0x58e918={'AEDci':_0x483c8d(0x1bb),'xosFc':function(_0x3c1912,_0x3fbb6f){return _0x3c1912(_0x3fbb6f);},'bSpZo':function(_0x26eb19,_0x40eda4){return _0x26eb19(_0x40eda4);},'bjtjt':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x483c8d(0x16a)](_0x58e918[_0x483c8d(0x123)]);const _0xaf1b94=process[_0x483c8d(0x1ac)][_0x483c8d(0x18a)];if(!_0x58e918[_0x483c8d(0x14e)](isNullOrEmpty,_0xaf1b94))return logger[_0x483c8d(0x16a)](_0x483c8d(0x1a7)+_0xaf1b94),_0xaf1b94;try{const _0x51831a=this[_0x483c8d(0x1ad)]();if(_0x58e918[_0x483c8d(0x1a2)](isNullOrEmpty,_0x51831a))throw new Error(_0x58e918[_0x483c8d(0x1a3)]);const _0x5e6c87=this[_0x483c8d(0x1ca)](_0x51831a),_0x2a5b31=await this[_0x483c8d(0x15a)](_0x5e6c87,_0x51831a,_0xc72e11);return logger['debug'](_0x483c8d(0x166)+_0x2a5b31),_0x2a5b31;}catch(_0x4ff1c1){logger['debug'](_0x483c8d(0x126)+util['format'](_0x4ff1c1));}return null;}static async[a58_0xe22d5a(0x15a)](_0x569eab,_0x118de2,_0x39aba9){const _0x5616a9=a58_0xe22d5a,_0x2b1a54={'QSPoR':function(_0x274e93){return _0x274e93();},'bWUes':function(_0x3cecd1,_0x117c09){return _0x3cecd1(_0x117c09);},'ELpYQ':function(_0x3fc529,_0x2cf1fd,_0x50a167){return _0x3fc529(_0x2cf1fd,_0x50a167);},'DVKnV':'data','MJlbZ':_0x5616a9(0x1ae),'MNfpZ':function(_0x1f9aa2,_0x51eaec,_0x335aec){return _0x1f9aa2(_0x51eaec,_0x335aec);}};PerformanceTester[_0x5616a9(0x13f)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x569eab);const _0x15b9e4=_0x2b1a54[_0x5616a9(0x1c9)](getHostInfo),_0x2cf2ee={'sdk_version':CLIUtils[_0x5616a9(0x10c)](),'os':_0x15b9e4[_0x5616a9(0x14c)],'os_arch':_0x15b9e4[_0x5616a9(0x136)],'cli_version':'0','sdk_language':this[_0x5616a9(0x143)]()};!_0x2b1a54[_0x5616a9(0x1b4)](isNullOrEmpty,_0x569eab)&&(_0x2cf2ee[_0x5616a9(0x172)]=await this[_0x5616a9(0x124)](_0x569eab+_0x5616a9(0x17b)));const _0x3cb6f7=await this[_0x5616a9(0x16f)](_0x2cf2ee,_0x39aba9);process[_0x5616a9(0x1ac)][_0x5616a9(0x12f)]&&(logger[_0x5616a9(0x187)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x5616a9(0x1ac)][_0x5616a9(0x12f)]),_0x3cb6f7[_0x5616a9(0x121)][_0x5616a9(0x1ae)]=process[_0x5616a9(0x1ac)][_0x5616a9(0x12f)]);if(_0x2b1a54[_0x5616a9(0x1cb)](nestedKeyValue,_0x3cb6f7,[_0x2b1a54[_0x5616a9(0x185)],_0x2b1a54['MJlbZ']])){logger[_0x5616a9(0x16a)](_0x5616a9(0x1c5)+_0x2cf2ee['cli_version']);const _0x1dcd51=await this['downloadLatestBinary'](_0x2b1a54[_0x5616a9(0x13b)](nestedKeyValue,_0x3cb6f7,[_0x2b1a54[_0x5616a9(0x185)],_0x2b1a54[_0x5616a9(0x19a)]]),_0x118de2);return PerformanceTester[_0x5616a9(0x178)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x1dcd51;}return PerformanceTester[_0x5616a9(0x178)](PerformanceEvents[_0x5616a9(0x197)]),_0x569eab;}static[a58_0xe22d5a(0x1ad)](){const _0xe0f88a=a58_0xe22d5a,_0x2b3df8={'RVKBA':function(_0x4fe4f0,_0x5ab1e3){return _0x4fe4f0(_0x5ab1e3);},'nxMOA':_0xe0f88a(0x11a),'kNSYz':_0xe0f88a(0x12a)},_0x4d4586=this[_0xe0f88a(0x1a8)]();try{if(_0x2b3df8[_0xe0f88a(0x1b7)](isNullOrEmpty,_0x4d4586))throw new Error(_0x2b3df8['nxMOA']);const _0x18ba36=path[_0xe0f88a(0x131)](_0x4d4586,_0x2b3df8[_0xe0f88a(0x129)]);return!fs[_0xe0f88a(0x19d)](_0x18ba36)&&_0x2b3df8[_0xe0f88a(0x1b7)](createDir,_0x18ba36),_0x18ba36;}catch(_0x18984e){logger[_0xe0f88a(0x16a)](_0xe0f88a(0x152)+util[_0xe0f88a(0x1c3)](_0x18984e));}}static[a58_0xe22d5a(0x1a8)](){const _0x55115b=a58_0xe22d5a,_0x523f93={'qUwoK':_0x55115b(0x156),'DcxfP':function(_0x216b21,_0x3ea934){return _0x216b21(_0x3ea934);},'lDWZL':function(_0x4cc22d,_0x46862c){return _0x4cc22d(_0x46862c);},'FpKnL':function(_0x2552d4,_0x4f3349){return _0x2552d4(_0x4f3349);},'lISxV':function(_0x29f536,_0x586550){return _0x29f536(_0x586550);}},_0x111488=[process['env'][_0x55115b(0x17a)],path[_0x55115b(0x131)](os['homedir'](),_0x523f93[_0x55115b(0x192)]),path['join'](os[_0x55115b(0x14a)](),_0x523f93[_0x55115b(0x192)])];for(const _0x5e0360 of _0x111488){if(_0x523f93['DcxfP'](isNullOrEmpty,_0x5e0360))continue;try{if(fs['existsSync'](_0x5e0360)){logger[_0x55115b(0x16a)](_0x55115b(0x148)+_0x5e0360+_0x55115b(0x1ab));if(!_0x523f93[_0x55115b(0x17c)](isModifiable,_0x5e0360)){logger['debug'](_0x55115b(0x199)+_0x5e0360);const _0x3a5fb6=_0x523f93[_0x55115b(0x17c)](setReadWriteExecuteAccess,_0x5e0360);if(!_0x523f93[_0x55115b(0x190)](isTrue,_0x3a5fb6)){logger[_0x55115b(0x195)](_0x55115b(0x13a)+_0x5e0360);continue;}}}else{logger[_0x55115b(0x16a)]('Folder\x20does\x20not\x20exist:\x20'+_0x5e0360),_0x523f93['FpKnL'](createDir,_0x5e0360),logger['debug'](_0x55115b(0x199)+_0x5e0360);const _0x12f9b3=_0x523f93[_0x55115b(0x17c)](setReadWriteExecuteAccess,_0x5e0360);!_0x523f93[_0x55115b(0x182)](isTrue,_0x12f9b3)&&logger[_0x55115b(0x195)](_0x55115b(0x13a)+_0x5e0360);}return _0x5e0360;}catch(_0x36cd78){logger['error'](_0x55115b(0x115)+util[_0x55115b(0x1c3)](_0x36cd78));}}return null;}static[a58_0xe22d5a(0x1ca)](_0x3ae585){const _0x4bb5a0=a58_0xe22d5a,_0x4703dd={};_0x4703dd[_0x4bb5a0(0x12b)]=function(_0x5fc807,_0x11cdd0){return _0x5fc807>_0x11cdd0;},_0x4703dd['xBBQh']=function(_0x41d430,_0x3d183d){return _0x41d430>_0x3d183d;};const _0x2a8ab4=_0x4703dd;try{if(!fs[_0x4bb5a0(0x19d)](_0x3ae585)||!fs[_0x4bb5a0(0x155)](_0x3ae585)[_0x4bb5a0(0x18c)]())return'';const _0x26922e=fs[_0x4bb5a0(0x114)](_0x3ae585)[_0x4bb5a0(0x117)](_0x56ea7b=>path[_0x4bb5a0(0x131)](_0x3ae585,_0x56ea7b))[_0x4bb5a0(0x1a5)](_0x505c36=>fs[_0x4bb5a0(0x155)](_0x505c36)[_0x4bb5a0(0x167)]()&&path[_0x4bb5a0(0x128)](_0x505c36)[_0x4bb5a0(0x130)](_0x4bb5a0(0x194)));if(_0x2a8ab4[_0x4bb5a0(0x158)](_0x26922e[_0x4bb5a0(0x147)],0x0)){const _0x48caf1=_0x26922e[_0x4bb5a0(0x117)](_0x1b0572=>({'filePath':_0x1b0572,'mtime':fs[_0x4bb5a0(0x155)](_0x1b0572)[_0x4bb5a0(0x1c1)]}))[_0x4bb5a0(0x188)]((_0x275858,_0x310382)=>{const _0x13141c=_0x4bb5a0;if(!_0x275858||!_0x275858[_0x13141c(0x1c1)])return _0x310382;if(_0x2a8ab4[_0x13141c(0x12b)](_0x310382[_0x13141c(0x1c1)],_0x275858[_0x13141c(0x1c1)]))return _0x310382;return _0x275858;},{});return _0x48caf1?_0x48caf1[_0x4bb5a0(0x146)]:'';}return'';}catch(_0x4e4347){return logger['error'](_0x4bb5a0(0x18f)+util[_0x4bb5a0(0x1c3)](_0x4e4347)),'';}}static [a58_0xe22d5a(0x16f)]=async(_0x32202a,_0x210ac7)=>{const _0x4c3f51=a58_0xe22d5a,_0x5900be={'PuZsZ':function(_0x59a1d0,_0x469f52,_0x207183,_0x2eef2b,_0x19c857,_0x5b3b43){return _0x59a1d0(_0x469f52,_0x207183,_0x2eef2b,_0x19c857,_0x5b3b43);},'AFwtR':_0x4c3f51(0x176)},_0xc3b4d4={};_0xc3b4d4['qs']=_0x32202a;const _0x32006d=await _0x5900be[_0x4c3f51(0x174)](nodeRequest,_0x5900be['AFwtR'],UPDATED_CLI_ENDPOINT,_0xc3b4d4,_0x210ac7,BROWSERSTACK_API_URL);return logger[_0x4c3f51(0x16a)](_0x4c3f51(0x1c4)+JSON['stringify'](_0x32006d)),_0x32006d;};static[a58_0xe22d5a(0x124)](_0x59c85b,_0x2adb34=''){const _0xea2840=a58_0xe22d5a,_0x9ab410={'nRzOy':function(_0x4adc3e,_0x9782d9){return _0x4adc3e(_0x9782d9);},'pkeoT':_0xea2840(0x171),'wytRZ':function(_0x2a1f18,_0x27cd0d,_0x3d565e,_0x4c7c1f){return _0x2a1f18(_0x27cd0d,_0x3d565e,_0x4c7c1f);},'IlRCi':_0xea2840(0x179)};return new Promise((_0x3e5852,_0x141c74)=>{const _0x39f95c=_0xea2840,_0x3c819b={'LXDTU':function(_0x18e993,_0x2fcc21){const _0x35d3b1=a58_0x2f46;return _0x9ab410[_0x35d3b1(0x141)](_0x18e993,_0x2fcc21);},'AdCXk':_0x9ab410[_0x39f95c(0x135)]},_0x2278e7={};_0x2278e7[_0x39f95c(0x1be)]=_0x2adb34,_0x2278e7[_0x39f95c(0x10d)]=0x1388;const _0x1f5761=_0x9ab410[_0x39f95c(0x1b1)](exec,_0x59c85b,_0x2278e7,(_0x39a322,_0x2a5389,_0x58ce9a)=>{const _0x2e45e1=_0x39f95c;_0x39a322?_0x9ab410[_0x2e45e1(0x141)](_0x3e5852,_0x58ce9a['trim']()||_0x9ab410['pkeoT']):_0x9ab410['nRzOy'](_0x3e5852,_0x2a5389[_0x2e45e1(0x137)]());});_0x1f5761['on'](_0x9ab410['IlRCi'],()=>{_0x3c819b['LXDTU'](_0x3e5852,_0x3c819b['AdCXk']);});});}static ['downloadLatestBinary']=async(_0x15f08e,_0x1e9ae3)=>{const _0x747866=a58_0xe22d5a,_0x13869e={'goqbq':function(_0x5c8706,_0x4ba5a1){return _0x5c8706(_0x4ba5a1);},'YQVEG':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','DhqkP':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','KacuZ':_0x747866(0x179),'ULROP':_0x747866(0x132)};PerformanceTester[_0x747866(0x13f)](PerformanceEvents[_0x747866(0x16b)]),logger[_0x747866(0x16a)](_0x747866(0x13c)+_0x15f08e);try{const _0x47daf6=url['parse'](_0x15f08e),_0xb5be17=path[_0x747866(0x131)](_0x1e9ae3,_0x13869e[_0x747866(0x193)]),_0x111204=fs[_0x747866(0x14f)](_0xb5be17);return new Promise((_0x5adcdb,_0x59d073)=>{const _0x17e9c0=_0x747866,_0x446111={'cjaHm':_0x13869e[_0x17e9c0(0x11c)],'aeLSr':function(_0x4416b0,_0x3e4df0){const _0x4a28cd=_0x17e9c0;return _0x13869e[_0x4a28cd(0x1a9)](_0x4416b0,_0x3e4df0);},'wGFVn':_0x13869e[_0x17e9c0(0x183)],'EzUcv':_0x13869e[_0x17e9c0(0x1b0)]};https[_0x17e9c0(0x1b8)](_0x47daf6,function(_0x3a4117){const _0x487cab=_0x17e9c0,_0x44867a={'ADFkj':_0x446111[_0x487cab(0x184)],'FxHLp':function(_0x144cb1,_0xa48482){const _0xa143be=_0x487cab;return _0x446111[_0xa143be(0x153)](_0x144cb1,_0xa48482);}},_0x4f67ae=null;_0x3a4117['pipe'](_0x111204),_0x3a4117['on'](_0x446111[_0x487cab(0x173)],function(_0x4be5e8){const _0x2ffcd4=_0x487cab;logger[_0x2ffcd4(0x179)](util[_0x2ffcd4(0x1c3)](_0x446111[_0x2ffcd4(0x1c2)],_0x4be5e8)),PerformanceTester[_0x2ffcd4(0x178)](PerformanceEvents[_0x2ffcd4(0x16b)],![],util[_0x2ffcd4(0x1c3)](_0x4be5e8)),_0x446111[_0x2ffcd4(0x153)](_0x59d073,_0x4be5e8);}),_0x111204['on'](_0x446111[_0x487cab(0x173)],function(_0x493855){const _0x423cfc=_0x487cab;logger['error'](util[_0x423cfc(0x1c3)](_0x44867a[_0x423cfc(0x17f)],_0x493855)),PerformanceTester[_0x423cfc(0x178)](PerformanceEvents[_0x423cfc(0x16b)],![],util[_0x423cfc(0x1c3)](_0x493855)),_0x44867a[_0x423cfc(0x1b3)](_0x59d073,_0x493855);}),CLIUtils[_0x487cab(0x138)](_0x111204,_0x4f67ae,_0xb5be17,_0x1e9ae3,_0x5adcdb,_0x59d073),PerformanceTester[_0x487cab(0x178)](PerformanceEvents[_0x487cab(0x16b)]);})['on'](_0x13869e[_0x17e9c0(0x1b0)],function(_0x1942a6){const _0x13af64=_0x17e9c0;logger[_0x13af64(0x179)](_0x13af64(0x189)+util[_0x13af64(0x1c3)](_0x1942a6)),PerformanceTester[_0x13af64(0x178)](PerformanceEvents[_0x13af64(0x16b)],![],util['format'](_0x1942a6)),_0x13869e[_0x13af64(0x1a9)](_0x59d073,_0x1942a6);});});}catch(_0x36fff2){PerformanceTester[_0x747866(0x178)](PerformanceEvents[_0x747866(0x16b)],![],util[_0x747866(0x1c3)](_0x36fff2)),logger[_0x747866(0x16a)](_0x747866(0x170)+util[_0x747866(0x1c3)](_0x36fff2));}};static[a58_0xe22d5a(0x138)](_0x1cf959,_0x470874,_0x48b4b2,_0x1c2490,_0x120a8f,_0x287c03){const _0xa43dbf=a58_0xe22d5a,_0xe1fdbe={'oLcPt':function(_0x1dde8c,_0x2e10f6){return _0x1dde8c(_0x2e10f6);},'kqRpD':'0755','RhnXf':function(_0x4b9b59,_0x316e4a){return _0x4b9b59(_0x316e4a);},'UusZv':_0xa43dbf(0x180),'adDMA':_0xa43dbf(0x179),'MYvYd':_0xa43dbf(0x178),'KAxCy':function(_0xb3535d,_0x4e501c){return _0xb3535d(_0x4e501c);},'IbnFc':function(_0xbb63d7,_0xac276c){return _0xbb63d7===_0xac276c;},'SCXns':_0xa43dbf(0x133)};_0x1cf959['on'](_0xe1fdbe['SCXns'],function(){const _0x17f45e=_0xa43dbf,_0x2a87d6={'kNMlS':function(_0x69e13b,_0x35e736){const _0x5a83e6=a58_0x2f46;return _0xe1fdbe[_0x5a83e6(0x122)](_0x69e13b,_0x35e736);},'FMrLR':_0xe1fdbe[_0x17f45e(0x196)],'TUAFZ':function(_0x1e4fd0,_0xa36331){const _0x4b84c0=_0x17f45e;return _0xe1fdbe[_0x4b84c0(0x1cd)](_0x1e4fd0,_0xa36331);},'YeXBE':function(_0x3be72b,_0x100497){const _0x270e69=_0x17f45e;return _0xe1fdbe[_0x270e69(0x122)](_0x3be72b,_0x100497);}},_0x3d0de9={};_0x3d0de9[_0x17f45e(0x1ba)]=!![],yauzl['open'](_0x48b4b2,_0x3d0de9,function(_0x5357b8,_0x360190){const _0x28d103=_0x17f45e,_0x30300e={'pQlIz':function(_0x530730,_0xb057fe){const _0x630f90=a58_0x2f46;return _0xe1fdbe[_0x630f90(0x16e)](_0x530730,_0xb057fe);},'vVYaY':_0xe1fdbe[_0x28d103(0x151)]};_0x5357b8&&_0xe1fdbe[_0x28d103(0x15f)](_0x287c03,_0x5357b8),_0x360190[_0x28d103(0x168)](),_0x360190['on'](_0xe1fdbe[_0x28d103(0x164)],_0x4278a4=>{const _0xb0da9a=_0x28d103,_0x403c1b={'cxGkA':function(_0x513edf,_0x214d73){const _0x27d541=a58_0x2f46;return _0x2a87d6[_0x27d541(0x14d)](_0x513edf,_0x214d73);},'cpUGJ':_0x2a87d6[_0xb0da9a(0x1c6)]};!_0x470874&&(_0x470874=_0x4278a4[_0xb0da9a(0x10f)]);if(/\/$/['test'](_0x4278a4[_0xb0da9a(0x10f)]))_0x360190[_0xb0da9a(0x168)]();else{const _0x555145=fs[_0xb0da9a(0x14f)](path[_0xb0da9a(0x131)](_0x1c2490,_0x4278a4['fileName']));_0x360190[_0xb0da9a(0x1b5)](_0x4278a4,function(_0x1ebace,_0x27881c){const _0x552f6f=_0xb0da9a;_0x1ebace&&_0x403c1b[_0x552f6f(0x10e)](_0x287c03,_0x5357b8),_0x27881c['on'](_0x403c1b[_0x552f6f(0x186)],function(){const _0x48540d=_0x552f6f;_0x555145[_0x48540d(0x133)](),_0x360190[_0x48540d(0x168)]();}),_0x27881c[_0x552f6f(0x19f)](_0x555145);}),_0x2a87d6['TUAFZ'](_0x4278a4[_0xb0da9a(0x10f)],_0x470874)&&_0x360190[_0xb0da9a(0x133)]();}}),_0x360190['on'](_0xe1fdbe[_0x28d103(0x1c0)],_0x8aa4c0=>{const _0x693b9f=_0x28d103;_0x2a87d6[_0x693b9f(0x17e)](_0x287c03,_0x8aa4c0);}),_0x360190[_0x28d103(0x110)](_0xe1fdbe[_0x28d103(0x196)],()=>{const _0x19e53c=_0x28d103;fs['unlink'](_0x48b4b2,_0x13a1cf=>{const _0x143cfd=a58_0x2f46;_0x13a1cf&&logger[_0x143cfd(0x195)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x48b4b2);}),fs[_0x19e53c(0x1a6)](_0x1c2490+'/'+_0x470874,_0x30300e[_0x19e53c(0x111)],function(_0x32a53d){const _0x2f4178=_0x19e53c;_0x32a53d&&_0x30300e[_0x2f4178(0x157)](_0x287c03,_0x32a53d),_0x30300e[_0x2f4178(0x157)](_0x120a8f,_0x1c2490+'/'+_0x470874);}),_0x360190[_0x19e53c(0x133)]();});});});}static[a58_0xe22d5a(0x112)](){const _0x104285=a58_0xe22d5a;if(process[_0x104285(0x1ac)][_0x104285(0x11e)])return JSON[_0x104285(0x11d)](process[_0x104285(0x1ac)][_0x104285(0x11e)]);return this[_0x104285(0x181)];}static[a58_0xe22d5a(0x13e)](){const _0x178a6b=a58_0xe22d5a;if(process[_0x178a6b(0x1ac)][_0x178a6b(0x163)])return JSON[_0x178a6b(0x11d)](process[_0x178a6b(0x1ac)][_0x178a6b(0x163)]);return this[_0x178a6b(0x120)];}static[a58_0xe22d5a(0x18b)](_0x359472,_0x32ae06){const _0x2e6841=a58_0xe22d5a,_0x404b10={'BtWWa':_0x2e6841(0x177),'UmFAO':function(_0x29a468,_0x1e8966){return _0x29a468(_0x1e8966);},'JWkxE':function(_0x43d053,_0x8033b5){return _0x43d053||_0x8033b5;}},_0x2eb86f=_0x404b10[_0x2e6841(0x191)][_0x2e6841(0x119)]('|');let _0x7096ee=0x0;while(!![]){switch(_0x2eb86f[_0x7096ee++]){case'0':process[_0x2e6841(0x1ac)][_0x2e6841(0x11e)]=JSON[_0x2e6841(0x154)](this[_0x2e6841(0x181)]);continue;case'1':this['automationFrameworkDetail']={'name':_0x32ae06,'version':_0x404b10['UmFAO'](getFrameworkVersion,_0x32ae06)};continue;case'2':_0x404b10[_0x2e6841(0x1bd)](!_0x359472,!_0x32ae06)&&logger[_0x2e6841(0x16a)](_0x2e6841(0x145)+_0x359472+_0x2e6841(0x127)+_0x32ae06);continue;case'3':this[_0x2e6841(0x181)]={'name':_0x359472,'version':{[_0x359472]:_0x404b10['UmFAO'](getFrameworkVersion,_0x359472)}};continue;case'4':process[_0x2e6841(0x1ac)][_0x2e6841(0x163)]=JSON['stringify'](this[_0x2e6841(0x120)]);continue;}break;}}static[a58_0xe22d5a(0x144)](_0x4eb12b,_0x54cdf0){return _0x4eb12b+':'+_0x54cdf0;}static[a58_0xe22d5a(0x15c)](){const _0x253ff7=a58_0xe22d5a;return process[_0x253ff7(0x15b)]+':'+threadId;}static['shouldSkipSessionName'](_0x28da46){const _0x50d0bc=a58_0xe22d5a;if(_0x28da46[_0x50d0bc(0x1aa)]&&_0x28da46[_0x50d0bc(0x1aa)][_0x50d0bc(0x15d)])return!![];return![];}static[a58_0xe22d5a(0x118)](_0x266b83){const _0x39c50b=a58_0xe22d5a;if(_0x266b83[_0x39c50b(0x1aa)]&&_0x266b83[_0x39c50b(0x1aa)][_0x39c50b(0x150)])return!![];return![];}static[a58_0xe22d5a(0x198)](_0x474026){const _0xdebd96=a58_0xe22d5a,_0xf40a3f=new RegExp(TestFrameworkConstants[_0xdebd96(0x160)]);return _0xf40a3f[_0xdebd96(0x1a4)](_0x474026);}}module[a58_0xe22d5a(0x19e)]=CLIUtils;