browserstack-node-sdk 1.40.3 → 1.40.5

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
- const a50_0x384304=a50_0x4b60;(function(_0x2e5edc,_0x14d586){const _0x8b0c78=a50_0x4b60,_0x3c5a69=_0x2e5edc();while(!![]){try{const _0x560f05=parseInt(_0x8b0c78(0x1a9))/0x1*(-parseInt(_0x8b0c78(0x1a7))/0x2)+parseInt(_0x8b0c78(0x1ab))/0x3+-parseInt(_0x8b0c78(0x19f))/0x4+parseInt(_0x8b0c78(0x197))/0x5*(-parseInt(_0x8b0c78(0x1a6))/0x6)+parseInt(_0x8b0c78(0x195))/0x7*(parseInt(_0x8b0c78(0x19d))/0x8)+parseInt(_0x8b0c78(0x1a5))/0x9*(parseInt(_0x8b0c78(0x19b))/0xa)+parseInt(_0x8b0c78(0x1ad))/0xb;if(_0x560f05===_0x14d586)break;else _0x3c5a69['push'](_0x3c5a69['shift']());}catch(_0x2f44ad){_0x3c5a69['push'](_0x3c5a69['shift']());}}}(a50_0x59ea,0x3581a));const PerformanceEvents=require(a50_0x384304(0x1ac))[a50_0x384304(0x1b0)],PerformanceTester=require(a50_0x384304(0x1b2)),{sleep}=require(a50_0x384304(0x1a0));function a50_0x4b60(_0x19839e,_0x16a0bf){const _0x59eab1=a50_0x59ea();return a50_0x4b60=function(_0x4b60aa,_0x126b3b){_0x4b60aa=_0x4b60aa-0x195;let _0x3b983f=_0x59eab1[_0x4b60aa];return _0x3b983f;},a50_0x4b60(_0x19839e,_0x16a0bf);}exports['runTest']=async(_0x83f3e2,_0x5c5b32)=>{const _0xd7fe4c=a50_0x384304,_0x485c7f={'xSQGS':function(_0x3f7b88,_0x6efc4f){return _0x3f7b88(_0x6efc4f);},'ErXaM':_0xd7fe4c(0x196),'KbbXi':_0xd7fe4c(0x1a4),'cYeuM':function(_0x5f454c,_0x826b1c){return _0x5f454c(_0x826b1c);}};PerformanceTester['startMonitoring']();const _0x318b95=_0x485c7f[_0xd7fe4c(0x1a3)](require,_0x485c7f[_0xd7fe4c(0x19c)]),_0x34bed2=new _0x318b95(_0x485c7f['KbbXi'],_0x83f3e2,_0x5c5b32),_0x4700ba=await _0x34bed2[_0xd7fe4c(0x1a1)]();return PerformanceTester[_0xd7fe4c(0x1aa)](PerformanceEvents['SDK_POST_TEST']),await _0x485c7f[_0xd7fe4c(0x1a8)](sleep,0x3e8),PerformanceTester[_0xd7fe4c(0x19a)](),_0x4700ba;},exports[a50_0x384304(0x1ae)]=async(_0x29565b,_0x1da143,_0x258baa,_0x272d51,_0x32bf8f)=>{const _0x50d82c=a50_0x384304,_0x15bc2c={'Ywhyc':function(_0x32f341,_0x2dfe30){return _0x32f341(_0x2dfe30);},'uTuba':'../launcher/launcher','qQEVA':_0x50d82c(0x1a2)},_0x3ca764={'capability':_0x29565b,..._0x1da143},_0x8a50c6={};_0x8a50c6[_0x50d82c(0x1b3)]=_0x3ca764,_0x8a50c6[_0x50d82c(0x198)]=_0x32bf8f;const _0xf4c135=_0x8a50c6,_0x5d6c0a=_0x15bc2c[_0x50d82c(0x1af)](require,_0x15bc2c['uTuba']),_0x20c7fe=new _0x5d6c0a(_0x15bc2c['qQEVA'],_0xf4c135,_0x258baa,_0x272d51);return await _0x20c7fe[_0x50d82c(0x1a1)]();},exports['runVanillaTest']=async _0x446fd1=>{const _0x26a857=a50_0x384304,_0x5a39e2={'reTYF':function(_0x52a847,_0x1b920e){return _0x52a847(_0x1b920e);},'dnfvk':'../launcher/launcher','vLolm':'vanilla'},_0xcaf598=_0x5a39e2[_0x26a857(0x19e)](require,_0x5a39e2[_0x26a857(0x1b1)]),_0x2a935e=new _0xcaf598(_0x5a39e2[_0x26a857(0x199)],_0x446fd1);return await _0x2a935e[_0x26a857(0x1a1)]();};function a50_0x59ea(){const _0x18f2c5=['mocha','18ayetiQ','12soOlkX','482102QEKyXS','cYeuM','1WdLLcD','end','1024725eCFcKE','../../helpers/performance/constants','5485282tRMgRK','runCucumberTest','Ywhyc','EVENTS','dnfvk','../../helpers/performance/performance-tester','configuration','7lQEYGk','../launcher/launcher','337455pMwjPu','formatter','vLolm','stopMonitoring','62910oQMWTZ','ErXaM','1158536xjNYZK','reTYF','1609764tKdJHF','../../helpers/test-observability/utils','run','cucumber-js','xSQGS'];a50_0x59ea=function(){return _0x18f2c5;};return a50_0x59ea();}
1
+ function a50_0x6e75(){const _0x1cdbae=['zdChd','1253524ohoxbO','340458qfXhYJ','jJCiy','runVanillaTest','vanilla','SDK_POST_TEST','../../helpers/performance/constants','1269bcElON','265uRDMHP','9136uHCRWt','27360GeLdmt','stopMonitoring','4739aMezDS','rLNaW','3641gBOtQJ','configuration','FquCF','1240315MNXvLD','sMuSd','../../helpers/performance/performance-tester','EVENTS','run','HAjwR','pLDIc','../launcher/launcher','startMonitoring','56120zMjGGH','JDMjM','1668Vhcmke','utyBF','mocha'];a50_0x6e75=function(){return _0x1cdbae;};return a50_0x6e75();}const a50_0x237958=a50_0x1c39;(function(_0x5e1d04,_0x6aeba8){const _0xdf9592=a50_0x1c39,_0x37ce9c=_0x5e1d04();while(!![]){try{const _0x4009b5=-parseInt(_0xdf9592(0x162))/0x1+-parseInt(_0xdf9592(0x151))/0x2+-parseInt(_0xdf9592(0x152))/0x3+-parseInt(_0xdf9592(0x15a))/0x4*(-parseInt(_0xdf9592(0x159))/0x5)+parseInt(_0xdf9592(0x14d))/0x6*(parseInt(_0xdf9592(0x15d))/0x7)+parseInt(_0xdf9592(0x15b))/0x8*(parseInt(_0xdf9592(0x158))/0x9)+-parseInt(_0xdf9592(0x16b))/0xa*(-parseInt(_0xdf9592(0x15f))/0xb);if(_0x4009b5===_0x6aeba8)break;else _0x37ce9c['push'](_0x37ce9c['shift']());}catch(_0xb690c1){_0x37ce9c['push'](_0x37ce9c['shift']());}}}(a50_0x6e75,0xa3347));function a50_0x1c39(_0x475958,_0x17de22){const _0x6e75b2=a50_0x6e75();return a50_0x1c39=function(_0x1c39c8,_0x15081a){_0x1c39c8=_0x1c39c8-0x14d;let _0x5d4aa3=_0x6e75b2[_0x1c39c8];return _0x5d4aa3;},a50_0x1c39(_0x475958,_0x17de22);}const PerformanceEvents=require(a50_0x237958(0x157))[a50_0x237958(0x165)],PerformanceTester=require(a50_0x237958(0x164)),{sleep}=require('../../helpers/test-observability/utils');exports['runTest']=async(_0x30900f,_0x42950a)=>{const _0x377989=a50_0x237958,_0x4da5d9={'jJCiy':function(_0x15112f,_0x3a813a){return _0x15112f(_0x3a813a);},'pLDIc':_0x377989(0x169),'rLNaW':_0x377989(0x14f)};PerformanceTester[_0x377989(0x16a)]();const _0x44441c=_0x4da5d9[_0x377989(0x153)](require,_0x4da5d9[_0x377989(0x168)]),_0x415300=new _0x44441c(_0x4da5d9[_0x377989(0x15e)],_0x30900f,_0x42950a),_0x2ab7da=await _0x415300[_0x377989(0x166)]();return PerformanceTester['end'](PerformanceEvents[_0x377989(0x156)]),await _0x4da5d9[_0x377989(0x153)](sleep,0x3e8),PerformanceTester[_0x377989(0x15c)](),_0x2ab7da;},exports['runCucumberTest']=async(_0x1231ad,_0x152f19,_0x44c038,_0x1098f3,_0x1678e2)=>{const _0x1f5d3b=a50_0x237958,_0x42b690={'zdChd':function(_0x2a91cc,_0x4f6784){return _0x2a91cc(_0x4f6784);},'HAjwR':_0x1f5d3b(0x169),'FquCF':'cucumber-js'},_0x2d879c={'capability':_0x1231ad,..._0x152f19},_0x33b636={};_0x33b636[_0x1f5d3b(0x160)]=_0x2d879c,_0x33b636['formatter']=_0x1678e2;const _0x47b935=_0x33b636,_0x5626d7=_0x42b690[_0x1f5d3b(0x150)](require,_0x42b690[_0x1f5d3b(0x167)]),_0x18cdcd=new _0x5626d7(_0x42b690[_0x1f5d3b(0x161)],_0x47b935,_0x44c038,_0x1098f3);return await _0x18cdcd[_0x1f5d3b(0x166)]();},exports[a50_0x237958(0x154)]=async _0xd09754=>{const _0x44fb8b=a50_0x237958,_0x12f68b={'utyBF':function(_0x1d01fa,_0x3802f1){return _0x1d01fa(_0x3802f1);},'sMuSd':_0x44fb8b(0x169),'JDMjM':_0x44fb8b(0x155)},_0x533ad9=_0x12f68b[_0x44fb8b(0x14e)](require,_0x12f68b[_0x44fb8b(0x163)]),_0x43bbcc=new _0x533ad9(_0x12f68b[_0x44fb8b(0x16c)],_0xd09754);return await _0x43bbcc['run']();};
@@ -1 +1 @@
1
- function a51_0x506b(_0x6f081,_0x51bb7d){const _0x4d1919=a51_0x4d19();return a51_0x506b=function(_0x506b59,_0x3d3e41){_0x506b59=_0x506b59-0xc6;let _0x18586e=_0x4d1919[_0x506b59];return _0x18586e;},a51_0x506b(_0x6f081,_0x51bb7d);}const a51_0x2d1300=a51_0x506b;(function(_0x11b113,_0x4c4fe5){const _0x226c31=a51_0x506b,_0x17e899=_0x11b113();while(!![]){try{const _0x147c42=-parseInt(_0x226c31(0xd2))/0x1*(-parseInt(_0x226c31(0xd0))/0x2)+-parseInt(_0x226c31(0xc8))/0x3+-parseInt(_0x226c31(0xc7))/0x4*(-parseInt(_0x226c31(0xd4))/0x5)+-parseInt(_0x226c31(0xcb))/0x6*(-parseInt(_0x226c31(0xcc))/0x7)+parseInt(_0x226c31(0xc9))/0x8+-parseInt(_0x226c31(0xc6))/0x9+parseInt(_0x226c31(0xd1))/0xa*(-parseInt(_0x226c31(0xca))/0xb);if(_0x147c42===_0x4c4fe5)break;else _0x17e899['push'](_0x17e899['shift']());}catch(_0xa6724e){_0x17e899['push'](_0x17e899['shift']());}}}(a51_0x4d19,0x9a548));const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');exports['worker']=async(_0x2c1a18,_0x485b1c)=>{const _0x59bf28=a51_0x506b,_0x451e49={'URBXg':function(_0x1b8e82,_0x351e9d,_0x43403b){return _0x1b8e82(_0x351e9d,_0x43403b);}};return await _0x451e49[_0x59bf28(0xd3)](runTest,_0x2c1a18,_0x485b1c);},exports[a51_0x2d1300(0xcd)]=async(_0x48a5a1,_0x5b673a,_0x1a0065,_0x1eb95c,_0x3a3c2c)=>{const _0x377553={'mgYAj':function(_0x2dd097,_0x3957cc,_0x48b12a,_0x31e0a9,_0x196ffd,_0x2dc5ea){return _0x2dd097(_0x3957cc,_0x48b12a,_0x31e0a9,_0x196ffd,_0x2dc5ea);}};return await _0x377553['mgYAj'](runCucumberTest,_0x48a5a1,_0x5b673a,_0x1a0065,_0x1eb95c,_0x3a3c2c);},exports[a51_0x2d1300(0xce)]=async _0x3523ee=>{const _0x4d00de=a51_0x2d1300,_0xcdfe22={'rEPBA':function(_0x10f927,_0x1871ec){return _0x10f927(_0x1871ec);}};return await _0xcdfe22[_0x4d00de(0xcf)](runVanillaTest,_0x3523ee);};function a51_0x4d19(){const _0x5bab84=['7zDEFcV','URBXg','40OmqRoi','627975SDBNYd','518572FHmSQd','3286407XOJzOg','3826608vOBKrT','11RfRBox','931446PGGqwL','56qeFHyC','cucumberWorker','vanillaWorker','rEPBA','50366gtxRjI','11362990TxCAyP'];a51_0x4d19=function(){return _0x5bab84;};return a51_0x4d19();}
1
+ function a51_0x3bbe(_0x112d2e,_0x44f418){const _0x43db50=a51_0x43db();return a51_0x3bbe=function(_0x3bbef0,_0x435907){_0x3bbef0=_0x3bbef0-0x1b9;let _0x18d2db=_0x43db50[_0x3bbef0];return _0x18d2db;},a51_0x3bbe(_0x112d2e,_0x44f418);}const a51_0x50964d=a51_0x3bbe;function a51_0x43db(){const _0xfcb185=['cucumberWorker','1429758TPqlwr','OEKEk','worker','JUiFL','./runTest','2TLbqAe','934177lsZniD','20pxhKQV','5269516CtamEO','3762070fAtPtv','5254515GPtLnD','18210zmJRBF','548WoHNbs','5070328jlXSOT'];a51_0x43db=function(){return _0xfcb185;};return a51_0x43db();}(function(_0x2c498b,_0x5eb236){const _0x10d866=a51_0x3bbe,_0x3ae64a=_0x2c498b();while(!![]){try{const _0x1ad633=parseInt(_0x10d866(0x1c6))/0x1*(parseInt(_0x10d866(0x1c5))/0x2)+parseInt(_0x10d866(0x1bc))/0x3*(parseInt(_0x10d866(0x1bd))/0x4)+parseInt(_0x10d866(0x1c7))/0x5*(-parseInt(_0x10d866(0x1c0))/0x6)+-parseInt(_0x10d866(0x1b9))/0x7+parseInt(_0x10d866(0x1be))/0x8+-parseInt(_0x10d866(0x1bb))/0x9+parseInt(_0x10d866(0x1ba))/0xa;if(_0x1ad633===_0x5eb236)break;else _0x3ae64a['push'](_0x3ae64a['shift']());}catch(_0x2a51c1){_0x3ae64a['push'](_0x3ae64a['shift']());}}}(a51_0x43db,0x76a52));const {runTest,runCucumberTest,runVanillaTest}=require(a51_0x50964d(0x1c4));exports[a51_0x50964d(0x1c2)]=async(_0x4f9cea,_0x73ab24)=>{const _0x34df15={'gZvBI':function(_0x433c40,_0x93525d,_0x106a45){return _0x433c40(_0x93525d,_0x106a45);}};return await _0x34df15['gZvBI'](runTest,_0x4f9cea,_0x73ab24);},exports[a51_0x50964d(0x1bf)]=async(_0x23ff2a,_0x39f889,_0x21ad78,_0x4cb611,_0x4af099)=>{const _0x149a1b=a51_0x50964d,_0x2e80d9={'JUiFL':function(_0x17ac8c,_0x3cdc7f,_0x1a7904,_0x4388ca,_0x2b9571,_0x3ba6a6){return _0x17ac8c(_0x3cdc7f,_0x1a7904,_0x4388ca,_0x2b9571,_0x3ba6a6);}};return await _0x2e80d9[_0x149a1b(0x1c3)](runCucumberTest,_0x23ff2a,_0x39f889,_0x21ad78,_0x4cb611,_0x4af099);},exports['vanillaWorker']=async _0x2a9c3f=>{const _0x483f1d=a51_0x50964d,_0x99b225={'OEKEk':function(_0xf262e5,_0x5463e7){return _0xf262e5(_0x5463e7);}};return await _0x99b225[_0x483f1d(0x1c1)](runVanillaTest,_0x2a9c3f);};
@@ -1 +1 @@
1
- const a52_0x56d72c=a52_0x6292;(function(_0x1a2f47,_0xde36f8){const _0x4b341a=a52_0x6292,_0x4e8919=_0x1a2f47();while(!![]){try{const _0x324d4c=parseInt(_0x4b341a(0x1c6))/0x1+-parseInt(_0x4b341a(0x1a9))/0x2*(parseInt(_0x4b341a(0x257))/0x3)+parseInt(_0x4b341a(0x22f))/0x4*(-parseInt(_0x4b341a(0x19b))/0x5)+-parseInt(_0x4b341a(0x206))/0x6+parseInt(_0x4b341a(0x225))/0x7*(parseInt(_0x4b341a(0x1d7))/0x8)+-parseInt(_0x4b341a(0x1a1))/0x9*(parseInt(_0x4b341a(0x259))/0xa)+parseInt(_0x4b341a(0x21e))/0xb*(parseInt(_0x4b341a(0x1bf))/0xc);if(_0x324d4c===_0xde36f8)break;else _0x4e8919['push'](_0x4e8919['shift']());}catch(_0x27c421){_0x4e8919['push'](_0x4e8919['shift']());}}}(a52_0x1006,0xca730));const a52_0x12259c={};a52_0x12259c['INFO']=a52_0x56d72c(0x249),a52_0x12259c[a52_0x56d72c(0x1d0)]=a52_0x56d72c(0x1e7);const a52_0xbeb7f5={};a52_0xbeb7f5['INFO']=a52_0x56d72c(0x1ed);const a52_0x44a8e4={};a52_0x44a8e4['INFO']='Run\x20mocha\x20tests\x20on\x20browserstack';const a52_0x237d4a={};a52_0x237d4a[a52_0x56d72c(0x1bd)]=a52_0x56d72c(0x1f7);const a52_0x3180a5={};a52_0x3180a5[a52_0x56d72c(0x1bd)]=a52_0x56d72c(0x1af);const a52_0x508bca={};a52_0x508bca['INFO']='Run\x20nightwatch\x20tests\x20on\x20browserstack';const a52_0xe2578a={};a52_0xe2578a['INFO']=a52_0x56d72c(0x23d);const a52_0x30acd4={};a52_0x30acd4['INFO']=a52_0x56d72c(0x23f);const a52_0x1c8c67={};a52_0x1c8c67[a52_0x56d72c(0x1bd)]=a52_0x56d72c(0x1a2);const a52_0x3f69da={};a52_0x3f69da[a52_0x56d72c(0x1bd)]=a52_0x56d72c(0x230);const a52_0x537164={};a52_0x537164[a52_0x56d72c(0x23c)]=a52_0x56d72c(0x224),a52_0x537164[a52_0x56d72c(0x20e)]='mocha',a52_0x537164[a52_0x56d72c(0x247)]='jest',a52_0x537164['CODECEPT']=a52_0x56d72c(0x21f),a52_0x537164[a52_0x56d72c(0x20f)]=a52_0x56d72c(0x1cf),a52_0x537164['CUCUMBER']=a52_0x56d72c(0x1ee);function a52_0x1006(){const _0x3d9225=['HUB_URL_REGEX','staging','codeceptjs-cucumber','HELP','APP_AUTOMATE','wss://cdp-preprod.bsstag.com/playwright?caps=','parallelsPerPlatform','ERR_FAILED','https://automate-devtestops.bsstag.com/dashboard/v2/builds/','proxyPassword','7536fdqmFl','https://eds.browserstack.com','POLL_HEALING_RESULT_TIMEOUT','httpsProxy','SDKTestTcgDownResponse','strictFileInteractability','acceptSslCerts','NUDGE_LOCAL_ERRORS','https://api.browserstack.com','httpProxy','https://api-preprod.bsstag.com','TEST_FRAMEWORK_HOOK_TIMEOUT','O11Y_URL','TCG_AUTH_TIMEOUT','invalidKeys','ERR_SOCKS_CONNECTION_FAILED','Specify\x20--help\x20for\x20available\x20options','Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file','mandatoryDependency','browserStackLocalOptions','testOrchestrationOptions','MAX_GIT_META_DATA_SIZE_IN_BYTES','Run\x20jest\x20tests\x20on\x20browserstack','cucumber','CLI_SUPPORTED_FRAMEWORKS','bsstag','accessKey','timeouts','AI_INIT_FAILURE','SDKTestTcgAuthFailure','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','https://hub-preprod.bsstag.com/wd/hub','Run\x20cucumber-js\x20tests\x20on\x20browserstack','AI_ENABLED_FRAMEWORK','./browserstack-artifacts/','bsstag.com','percyCaptureMode','...[TRUNCATED]','app-automate','https://upload-observability-devtestops-ssi.bsstag.com','COMMONJS','SET_TCG_TOKEN_TIMEOUT','BSTACK_URL','prod','/usage.log','TCG_URL','https://tcg.bsstag.com','4822944cpvdjD','.apk','toLowerCase','testContextOptions','APP_UPLOAD_URL','Mocha','https://automate-preprod.bsstag.com/dashboard/v2/builds/','CODECEPTJS','MOCHA','CODECEPT_CUCUMBER','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','logLevel','accessibility','https://app-automate.browserstack.com/dashboard/v2/builds/','UPDATED_CLI_ENDPOINT','proxyUrl','ATS_WSS_URL_REGEX','AUTOLOGCAPTURE_NOTIFICATION','ATS_HUB_URL_REGEX','FUNNEL_INSTRUMENTATION_API_URL','ROOT_REGEX','turboScaleOptions','SDKTestInitFailedResponse','ERR_SOCKET_NOT_CONNECTED','1122CDshOW','codeceptjs','userName','PACKAGE_TYPE','3|10|6|1|7|4|0|8|5|11|12|2|9','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','Playwright','6552OcIBiS','chromeOptions','ERR_PROXY_CONNECTION_FAILED','BROWSERSTACK','accessibilityOptions','turboScale','Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','SDK_INSTRUMENTATION_CONFIG','5|6|10|8|3|11|12|7|2|9|0|4|1','VERSION','4649180ZeCTpH','Connect\x20on\x20prem\x20instances\x20to\x20Browserstack','platforms','PLAYWRIGHT_TRACE_LOGS','REDACTED_KEYS','authToken','NIGHTWATCH','Upgrade\x20required','.ipa','BSTACK_DELTA','localProxyUser','AUTOMATE','stag','PLAYWRIGHT','Run\x20playwright\x20tests\x20on\x20Browserstack','CI_ARTIFACTS_PATH','Run\x20codeceptjs\x20tests\x20on\x20browserstack','MODULE','BROWSERSTACK_APP_AUTOMATE_URL','split','sdk/v1/update_cli','ERR_CONNECTION_REFUSED','testObservabilityOptions','ERR_CONNECTION_FAILED','JEST','ERR_NETWORK_CHANGED','shows\x20version\x20information','browserstack.com','BROWSERSTACK_API_URL','testObservability','https://observability-devtestops.bsstag.com','customVariables','mocha','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE','https://edsstaging.bsstag.com','PLAYWRIGHT_CONFIG_OPTION_ERRORS','BSTACK_ATS_URL','automate','INTEGRATIONS','rerunTests','12icfOtG','SDKTestInvalidTcgAuthResponseWithUserImpact','16519420joEvpq','https://api-cloud-devtestops.bsstag.com','browserstack.userName','vanilla','VANILLA','exports','ERR_NAME_NOT_RESOLVED','INVALID_INIT_RESP_WITH_USER_IMPACT','EDS_URL','VALID_APP_EXTENSION','percy','ERR_CONNECTION_ABORTED','ERR_ADDRESS_INVALID','localOptions','preprod','5kofwVR','HEALING_LOG_DATA_TIMEOUT','browserstackAutomation','ieOptions','BROWSERSTACK_AUTOMATE_URL','PLAYWRIGHT_HUB_URL','9flMvTm','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','PRIVATE_DOMAIN_OR_IP_REGEX','FRAMEWORKS','https://api-cloud.browserstack.com','observability','env','TCG_AUTH_FAILURE','687334vujzpK','browserstack.overridelocalInfo.userAuthToken','AUTOMATE_PRODUCTS','browserstackLocal','OBSERVABILITY_UPLOAD_URL','disableAutoCaptureLogs','Run\x20js\x20tests\x20on\x20browserstack','OBSERVABILITY_SUPPORTED_FWS','hubUrl','^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$','CUSTOM_ID_REGEX','https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/','CUCUMBER','https://tcg-preprod.bsstag.com','framework','acceptInsecureCerts','browserName','/usage-debug.log','ERR_ADDRESS_UNREACHABLE','https://automate.browserstack.com/dashboard/v2/builds/','INFO','https://hub.browserstack.com/wd/hub','580512WirdfC','ERR_CONNECTION_RESET','https://observability.browserstack.com','browserstack','LOG_FILE_NAME','browserVersion','ERR_CONNECTION_CLOSED','5897pRYqZn','proxySettings','TCG_REGION','jest','TCG_DOWN','pre-prod','APP_AUTOMATE_PRODUCTS'];a52_0x1006=function(){return _0x3d9225;};return a52_0x1006();}const a52_0x5cc920={};a52_0x5cc920[a52_0x56d72c(0x1e5)]=a52_0x56d72c(0x22b),a52_0x5cc920['uniqueDependency']='name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file',a52_0x5cc920[a52_0x56d72c(0x1e9)]=a52_0x56d72c(0x223),a52_0x5cc920['invalidTestInputType']=a52_0x56d72c(0x1e8);const a52_0x25381c={};a52_0x25381c[a52_0x56d72c(0x1ff)]='commonjs',a52_0x25381c[a52_0x56d72c(0x240)]='module';const a52_0xed51ec={};a52_0xed51ec[a52_0x56d72c(0x20b)]=0xfde8,a52_0xed51ec['Cucumber-JS']=0xfde8,a52_0xed51ec['Jest']=0x186a0;const a52_0x359053={};a52_0x359053['root']=[a52_0x56d72c(0x220),a52_0x56d72c(0x1f1),'httpProxy',a52_0x56d72c(0x1da),a52_0x56d72c(0x24e),a52_0x56d72c(0x25b),'browserstack.accessKey',a52_0x56d72c(0x1d6),a52_0x56d72c(0x234),a52_0x56d72c(0x215),a52_0x56d72c(0x1aa)],a52_0x359053['browserStackLocalOptions']=['proxyUser','proxyPass',a52_0x56d72c(0x239),'localProxyPass'];const a52_0x1a1f21={};a52_0x1a1f21[a52_0x56d72c(0x1ac)]='browserstackLocal',a52_0x1a1f21[a52_0x56d72c(0x1ea)]=a52_0x56d72c(0x1ea),a52_0x1a1f21[a52_0x56d72c(0x266)]=a52_0x56d72c(0x1ea),a52_0x1a1f21[a52_0x56d72c(0x1d3)]=a52_0x56d72c(0x1d3),a52_0x1a1f21[a52_0x56d72c(0x231)]=a52_0x56d72c(0x231),a52_0x1a1f21['logLevel']=a52_0x56d72c(0x211),a52_0x1a1f21[a52_0x56d72c(0x1e0)]=a52_0x56d72c(0x1e0),a52_0x1a1f21[a52_0x56d72c(0x1da)]='httpsProxy',a52_0x1a1f21[a52_0x56d72c(0x1b7)]=a52_0x56d72c(0x1b7),a52_0x1a1f21[a52_0x56d72c(0x209)]='testContextOptions',a52_0x1a1f21[a52_0x56d72c(0x24c)]=a52_0x56d72c(0x24c),a52_0x1a1f21[a52_0x56d72c(0x245)]=a52_0x56d72c(0x245),a52_0x1a1f21[a52_0x56d72c(0x24e)]=a52_0x56d72c(0x24e),a52_0x1a1f21['automation']=a52_0x56d72c(0x19d),a52_0x1a1f21[a52_0x56d72c(0x19d)]='browserstackAutomation',a52_0x1a1f21['rerunTests']=a52_0x56d72c(0x256),a52_0x1a1f21[a52_0x56d72c(0x263)]='percy',a52_0x1a1f21['percyOptions']='percyOptions',a52_0x1a1f21[a52_0x56d72c(0x1fb)]='percyCaptureMode',a52_0x1a1f21[a52_0x56d72c(0x1ae)]=a52_0x56d72c(0x1ae),a52_0x1a1f21[a52_0x56d72c(0x212)]=a52_0x56d72c(0x212),a52_0x1a1f21[a52_0x56d72c(0x229)]=a52_0x56d72c(0x229),a52_0x1a1f21[a52_0x56d72c(0x22a)]=a52_0x56d72c(0x22a),a52_0x1a1f21[a52_0x56d72c(0x21b)]='turboScaleOptions',a52_0x1a1f21[a52_0x56d72c(0x1c7)]='proxySettings',a52_0x1a1f21[a52_0x56d72c(0x1eb)]='testOrchestrationOptions';function a52_0x6292(_0x13cbb1,_0x40d400){const _0x100668=a52_0x1006();return a52_0x6292=function(_0x6292ca,_0x2393ba){_0x6292ca=_0x6292ca-0x19b;let _0x1c35c2=_0x100668[_0x6292ca];return _0x1c35c2;},a52_0x6292(_0x13cbb1,_0x40d400);}const a52_0x3c0902={};a52_0x3c0902[a52_0x56d72c(0x22e)]=a52_0x12259c,a52_0x3c0902[a52_0x56d72c(0x247)]=a52_0xbeb7f5,a52_0x3c0902[a52_0x56d72c(0x20e)]=a52_0x44a8e4,a52_0x3c0902[a52_0x56d72c(0x1b5)]=a52_0x237d4a,a52_0x3c0902[a52_0x56d72c(0x25d)]=a52_0x3180a5,a52_0x3c0902[a52_0x56d72c(0x235)]=a52_0x508bca,a52_0x3c0902[a52_0x56d72c(0x23c)]=a52_0xe2578a,a52_0x3c0902[a52_0x56d72c(0x20d)]=a52_0x30acd4,a52_0x3c0902['HST']=a52_0x1c8c67,a52_0x3c0902[a52_0x56d72c(0x255)]=a52_0x3f69da,a52_0x3c0902[a52_0x56d72c(0x238)]=0xf*0x3c*0x3e8,a52_0x3c0902['hubUrl']=a52_0x56d72c(0x1be),a52_0x3c0902[a52_0x56d72c(0x204)]='https://tcg.browserstack.com',a52_0x3c0902[a52_0x56d72c(0x1c8)]='use',a52_0x3c0902[a52_0x56d72c(0x1cd)]=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x3c0902[a52_0x56d72c(0x218)]=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x3c0902[a52_0x56d72c(0x216)]=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x3c0902['ROOT_CAPS']=[a52_0x56d72c(0x1b8),'pageLoadStrategy',a52_0x56d72c(0x1dc),'unhandledPromptBehavior',a52_0x56d72c(0x1f2),a52_0x56d72c(0x1b9),a52_0x56d72c(0x1c4),a52_0x56d72c(0x1dd),'acceptSslCert',a52_0x56d72c(0x226),'firefoxOptions','edgeOptions',a52_0x56d72c(0x19e)],a52_0x3c0902[a52_0x56d72c(0x21a)]=/^[\w-]+:.*$/,a52_0x3c0902[a52_0x56d72c(0x1a3)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x3c0902[a52_0x56d72c(0x261)]=a52_0x56d72c(0x1d8),a52_0x3c0902[a52_0x56d72c(0x24b)]=a52_0x56d72c(0x1df),a52_0x3c0902[a52_0x56d72c(0x20a)]=a52_0x56d72c(0x1a5),a52_0x3c0902[a52_0x56d72c(0x214)]=a52_0x56d72c(0x243),a52_0x3c0902[a52_0x56d72c(0x219)]='sdk/v1/event',a52_0x3c0902[a52_0x56d72c(0x1ab)]=[a52_0x56d72c(0x254),'observability'],a52_0x3c0902[a52_0x56d72c(0x1cc)]=[a52_0x56d72c(0x1fd),a52_0x56d72c(0x1a6)],a52_0x3c0902[a52_0x56d72c(0x1f5)]=[a52_0x56d72c(0x1a6)],a52_0x3c0902[a52_0x56d72c(0x1ad)]='https://upload-observability.browserstack.com',a52_0x3c0902[a52_0x56d72c(0x1b0)]=[a52_0x56d72c(0x24f),a52_0x56d72c(0x224)],a52_0x3c0902[a52_0x56d72c(0x23a)]=[a52_0x56d72c(0x254)],a52_0x3c0902['BROWSERSTACK_AUTOMATE_URL']=a52_0x56d72c(0x1bc),a52_0x3c0902[a52_0x56d72c(0x241)]=a52_0x56d72c(0x213),a52_0x3c0902[a52_0x56d72c(0x1d1)]=[a52_0x56d72c(0x1fd)],a52_0x3c0902[a52_0x56d72c(0x1de)]=[a52_0x56d72c(0x1d4),'ERR_TIMED_OUT','ERR_BLOCKED_BY_CLIENT',a52_0x56d72c(0x248),a52_0x56d72c(0x21d),a52_0x56d72c(0x1c5),a52_0x56d72c(0x1c0),a52_0x56d72c(0x244),a52_0x56d72c(0x264),a52_0x56d72c(0x246),a52_0x56d72c(0x25f),a52_0x56d72c(0x265),a52_0x56d72c(0x1bb),'ERR_TUNNEL_CONNECTION_FAILED','ERR_CONNECTION_TIMED_OUT',a52_0x56d72c(0x1e6),a52_0x56d72c(0x250),a52_0x56d72c(0x227),a52_0x56d72c(0x25f),'ERR_NAME_RESOLUTION_FAILED','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED'],a52_0x3c0902[a52_0x56d72c(0x262)]=[a52_0x56d72c(0x207),'.aab',a52_0x56d72c(0x237)],a52_0x3c0902[a52_0x56d72c(0x1b3)]='^[a-zA-Z0-9_.-]*$',a52_0x3c0902['SHAREABLE_ID_REGEX']=a52_0x56d72c(0x1b2),a52_0x3c0902[a52_0x56d72c(0x23e)]=a52_0x56d72c(0x1f9),a52_0x3c0902['PLAYWRIGHT_HUB_URL']='wss://cdp.browserstack.com/playwright?caps=',a52_0x3c0902[a52_0x56d72c(0x1a4)]=a52_0x537164,a52_0x3c0902['PERCY_SUPPORTED_FRAMEWORKS']=[a52_0x56d72c(0x1c9),a52_0x56d72c(0x24f)],a52_0x3c0902[a52_0x56d72c(0x252)]=a52_0x5cc920,a52_0x3c0902[a52_0x56d72c(0x217)]=a52_0x56d72c(0x210),a52_0x3c0902[a52_0x56d72c(0x221)]=a52_0x25381c,a52_0x3c0902[a52_0x56d72c(0x1ec)]=0x40*0x400,a52_0x3c0902['GIT_META_DATA_TRUNCATED']=a52_0x56d72c(0x1fc),a52_0x3c0902['UPGRADE_REQUIRED']=a52_0x56d72c(0x236),a52_0x3c0902[a52_0x56d72c(0x1ca)]=a52_0x56d72c(0x1db),a52_0x3c0902[a52_0x56d72c(0x260)]=a52_0x56d72c(0x258),a52_0x3c0902[a52_0x56d72c(0x1a8)]=a52_0x56d72c(0x1f4),a52_0x3c0902['AI_INIT_SUCCESSFUL']='SDKTestTcgtInitSuccessful',a52_0x3c0902[a52_0x56d72c(0x1f3)]=a52_0x56d72c(0x21c),a52_0x3c0902['AI_PROXY_FAILURE']='SDKTestTcgProxyFailure',a52_0x3c0902[a52_0x56d72c(0x1e4)]=0x1388,a52_0x3c0902[a52_0x56d72c(0x200)]=0x1388,a52_0x3c0902[a52_0x56d72c(0x19c)]=0x1388,a52_0x3c0902['HEALING_FAILURE_TIMEOUT']=0x1388,a52_0x3c0902[a52_0x56d72c(0x1d9)]=0xc350,a52_0x3c0902[a52_0x56d72c(0x1e2)]=a52_0xed51ec,a52_0x3c0902[a52_0x56d72c(0x233)]=a52_0x359053,a52_0x3c0902[a52_0x56d72c(0x1f8)]=[a52_0x56d72c(0x25c),'codeceptjs'],a52_0x3c0902[a52_0x56d72c(0x22c)]=a52_0x1a1f21,a52_0x3c0902[a52_0x56d72c(0x1c3)]=a52_0x56d72c(0x203),a52_0x3c0902['DEBUG_LOG_FILE_NAME']=a52_0x56d72c(0x1ba),a52_0x3c0902[a52_0x56d72c(0x201)]=a52_0x56d72c(0x24a),a52_0x3c0902[a52_0x56d72c(0x253)]='browserstack-ats.com',a52_0x3c0902['O11Y_URL']=a52_0x56d72c(0x1c1),a52_0x3c0902[a52_0x56d72c(0x228)]=a52_0x56d72c(0x1c2),a52_0x3c0902[a52_0x56d72c(0x1ef)]=['playwright'],a52_0x3c0902[a52_0x56d72c(0x232)]='PLAYWRIGHT_TRACE_LOGS',module[a52_0x56d72c(0x25e)]=a52_0x3c0902;const _env=(process[a52_0x56d72c(0x1a7)]['BROWSERSTACK_ENV']||a52_0x56d72c(0x202))[a52_0x56d72c(0x208)]();if(_env===a52_0x56d72c(0x1ce)||_env===a52_0x56d72c(0x23b)){const WnAymo=a52_0x56d72c(0x222)[a52_0x56d72c(0x242)]('|');let hFGdcj=0x0;while(!![]){switch(WnAymo[hFGdcj++]){case'0':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x20a)]=a52_0x56d72c(0x25a);continue;case'1':module['exports'][a52_0x56d72c(0x1cd)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'2':module[a52_0x56d72c(0x25e)]['EDS_URL']='https://edsstaging.bsstag.com';continue;case'3':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1b1)]='https://hub-devtestops.bsstag.com/wd/hub';continue;case'4':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x241)]=a52_0x56d72c(0x1b4);continue;case'5':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x201)]=a52_0x56d72c(0x1fa);continue;case'6':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x204)]=a52_0x56d72c(0x205);continue;case'7':module[a52_0x56d72c(0x25e)]['BROWSERSTACK_AUTOMATE_URL']=a52_0x56d72c(0x1d5);continue;case'8':module[a52_0x56d72c(0x25e)]['PLAYWRIGHT_HUB_URL']='wss://cdp-devtestops.bsstag.com/playwright?caps=';continue;case'9':module['exports'][a52_0x56d72c(0x228)]='bsstag';continue;case'10':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x24b)]='https://apidevtestops.bsstag.com';continue;case'11':module[a52_0x56d72c(0x25e)]['O11Y_URL']=a52_0x56d72c(0x24d);continue;case'12':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1ad)]=a52_0x56d72c(0x1fe);continue;}break;}}else{if(_env===a52_0x56d72c(0x267)||_env===a52_0x56d72c(0x1cb)){const LmUwBm=a52_0x56d72c(0x22d)[a52_0x56d72c(0x242)]('|');let gqayYF=0x0;while(!![]){switch(LmUwBm[gqayYF++]){case'0':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1ad)]='https://upload-observability-preprod.bsstag.com';continue;case'1':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x228)]=a52_0x56d72c(0x1f0);continue;case'2':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x201)]='bsstag.com';continue;case'3':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x19f)]=a52_0x56d72c(0x20c);continue;case'4':module[a52_0x56d72c(0x25e)]['EDS_URL']=a52_0x56d72c(0x251);continue;case'5':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1b1)]=a52_0x56d72c(0x1f6);continue;case'6':module['exports'][a52_0x56d72c(0x24b)]=a52_0x56d72c(0x1e1);continue;case'7':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1a0)]=a52_0x56d72c(0x1d2);continue;case'8':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x1cd)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'9':module['exports'][a52_0x56d72c(0x1e3)]='https://observability-preprod.bsstag.com';continue;case'10':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x204)]=a52_0x56d72c(0x1b6);continue;case'11':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x241)]='https://app-automate-preprod.bsstag.com/dashboard/v2/builds/';continue;case'12':module[a52_0x56d72c(0x25e)][a52_0x56d72c(0x20a)]=a52_0x56d72c(0x1e1);continue;}break;}}}
1
+ const a52_0x4e0833=a52_0x4e32;(function(_0x4239a4,_0x18c164){const _0x119418=a52_0x4e32,_0x1c83bf=_0x4239a4();while(!![]){try{const _0x48dee5=parseInt(_0x119418(0x154))/0x1+parseInt(_0x119418(0x1ec))/0x2*(parseInt(_0x119418(0x1da))/0x3)+-parseInt(_0x119418(0x1bb))/0x4*(-parseInt(_0x119418(0x1ea))/0x5)+parseInt(_0x119418(0x183))/0x6*(-parseInt(_0x119418(0x1d1))/0x7)+-parseInt(_0x119418(0x1b6))/0x8*(-parseInt(_0x119418(0x12d))/0x9)+parseInt(_0x119418(0x18f))/0xa*(-parseInt(_0x119418(0x1cc))/0xb)+-parseInt(_0x119418(0x14c))/0xc;if(_0x48dee5===_0x18c164)break;else _0x1c83bf['push'](_0x1c83bf['shift']());}catch(_0x123a75){_0x1c83bf['push'](_0x1c83bf['shift']());}}}(a52_0x5b3b,0x75fe1));const a52_0x13f8fa={};a52_0x13f8fa['INFO']=a52_0x4e0833(0x1f0),a52_0x13f8fa[a52_0x4e0833(0x1f5)]='Specify\x20--help\x20for\x20available\x20options';const a52_0x3cb505={};a52_0x3cb505[a52_0x4e0833(0x149)]='Run\x20jest\x20tests\x20on\x20browserstack';const a52_0x15b778={};a52_0x15b778[a52_0x4e0833(0x149)]='Run\x20mocha\x20tests\x20on\x20browserstack';const a52_0x136595={};a52_0x136595[a52_0x4e0833(0x149)]=a52_0x4e0833(0x13c);const a52_0x22aa2c={};a52_0x22aa2c[a52_0x4e0833(0x149)]=a52_0x4e0833(0x1b0);const a52_0x32d99={};a52_0x32d99[a52_0x4e0833(0x149)]=a52_0x4e0833(0x1a4);const a52_0x3a3e7a={};a52_0x3a3e7a['INFO']=a52_0x4e0833(0x193);const a52_0x189c82={};a52_0x189c82[a52_0x4e0833(0x149)]='Run\x20codeceptjs\x20tests\x20on\x20browserstack';const a52_0x154a7a={};a52_0x154a7a[a52_0x4e0833(0x149)]=a52_0x4e0833(0x189);const a52_0x4f3aad={};a52_0x4f3aad[a52_0x4e0833(0x149)]=a52_0x4e0833(0x1e0);const a52_0x48ca75={};a52_0x48ca75[a52_0x4e0833(0x1df)]=a52_0x4e0833(0x1d4),a52_0x48ca75[a52_0x4e0833(0x138)]=a52_0x4e0833(0x127),a52_0x48ca75[a52_0x4e0833(0x165)]=a52_0x4e0833(0x13e),a52_0x48ca75[a52_0x4e0833(0x187)]=a52_0x4e0833(0x1c0),a52_0x48ca75[a52_0x4e0833(0x17b)]=a52_0x4e0833(0x1bf),a52_0x48ca75[a52_0x4e0833(0x1b7)]=a52_0x4e0833(0x131);const a52_0x60248e={};a52_0x60248e[a52_0x4e0833(0x1a3)]=a52_0x4e0833(0x13d),a52_0x60248e[a52_0x4e0833(0x174)]=a52_0x4e0833(0x166),a52_0x60248e[a52_0x4e0833(0x1f9)]=a52_0x4e0833(0x17f),a52_0x60248e[a52_0x4e0833(0x15d)]=a52_0x4e0833(0x168);const a52_0x2e4264={};a52_0x2e4264[a52_0x4e0833(0x179)]=a52_0x4e0833(0x1b8),a52_0x2e4264[a52_0x4e0833(0x188)]='module';const a52_0x40ae83={};a52_0x40ae83['Mocha']=0xfde8,a52_0x40ae83[a52_0x4e0833(0x1b4)]=0xfde8,a52_0x40ae83['Jest']=0x186a0;const a52_0x1b0f74={};a52_0x1b0f74[a52_0x4e0833(0x1e3)]=[a52_0x4e0833(0x18b),'accessKey',a52_0x4e0833(0x135),a52_0x4e0833(0x1ee),a52_0x4e0833(0x148),a52_0x4e0833(0x176),'browserstack.accessKey',a52_0x4e0833(0x1cb),'authToken',a52_0x4e0833(0x17a),'browserstack.overridelocalInfo.userAuthToken'],a52_0x1b0f74['browserStackLocalOptions']=[a52_0x4e0833(0x134),a52_0x4e0833(0x1ba),a52_0x4e0833(0x12e),'localProxyPass'];function a52_0x4e32(_0x65688a,_0x5874d3){const _0x5b3bec=a52_0x5b3b();return a52_0x4e32=function(_0x4e3295,_0x3997fc){_0x4e3295=_0x4e3295-0x126;let _0x3d0cc0=_0x5b3bec[_0x4e3295];return _0x3d0cc0;},a52_0x4e32(_0x65688a,_0x5874d3);}const a52_0x5dcc66={};a52_0x5dcc66[a52_0x4e0833(0x1db)]=a52_0x4e0833(0x1db),a52_0x5dcc66[a52_0x4e0833(0x1fc)]=a52_0x4e0833(0x1fc),a52_0x5dcc66[a52_0x4e0833(0x1be)]=a52_0x4e0833(0x1fc),a52_0x5dcc66['parallelsPerPlatform']=a52_0x4e0833(0x1a7),a52_0x5dcc66[a52_0x4e0833(0x17d)]=a52_0x4e0833(0x17d),a52_0x5dcc66[a52_0x4e0833(0x1bc)]=a52_0x4e0833(0x1bc),a52_0x5dcc66[a52_0x4e0833(0x135)]='httpProxy',a52_0x5dcc66[a52_0x4e0833(0x1ee)]=a52_0x4e0833(0x1ee),a52_0x5dcc66[a52_0x4e0833(0x181)]=a52_0x4e0833(0x181),a52_0x5dcc66[a52_0x4e0833(0x12b)]=a52_0x4e0833(0x12b),a52_0x5dcc66[a52_0x4e0833(0x19e)]=a52_0x4e0833(0x19e),a52_0x5dcc66[a52_0x4e0833(0x186)]=a52_0x4e0833(0x186),a52_0x5dcc66[a52_0x4e0833(0x148)]=a52_0x4e0833(0x148),a52_0x5dcc66[a52_0x4e0833(0x145)]=a52_0x4e0833(0x1f4),a52_0x5dcc66['browserstackAutomation']=a52_0x4e0833(0x1f4),a52_0x5dcc66[a52_0x4e0833(0x1af)]=a52_0x4e0833(0x1af),a52_0x5dcc66['percy']=a52_0x4e0833(0x1c8),a52_0x5dcc66[a52_0x4e0833(0x16c)]=a52_0x4e0833(0x16c),a52_0x5dcc66[a52_0x4e0833(0x16f)]='percyCaptureMode',a52_0x5dcc66[a52_0x4e0833(0x197)]=a52_0x4e0833(0x197),a52_0x5dcc66['accessibility']=a52_0x4e0833(0x155),a52_0x5dcc66[a52_0x4e0833(0x1a6)]=a52_0x4e0833(0x1a6),a52_0x5dcc66[a52_0x4e0833(0x1fa)]=a52_0x4e0833(0x1fa),a52_0x5dcc66['turboScaleOptions']=a52_0x4e0833(0x137),a52_0x5dcc66['proxySettings']=a52_0x4e0833(0x1d8),a52_0x5dcc66['testOrchestrationOptions']='testOrchestrationOptions';const a52_0x307220={};a52_0x307220[a52_0x4e0833(0x170)]=a52_0x13f8fa,a52_0x307220[a52_0x4e0833(0x165)]=a52_0x3cb505,a52_0x307220[a52_0x4e0833(0x138)]=a52_0x15b778,a52_0x307220[a52_0x4e0833(0x1b7)]=a52_0x136595,a52_0x307220['VANILLA']=a52_0x22aa2c,a52_0x307220[a52_0x4e0833(0x1e9)]=a52_0x32d99,a52_0x307220['PLAYWRIGHT']=a52_0x3a3e7a,a52_0x307220[a52_0x4e0833(0x163)]=a52_0x189c82,a52_0x307220[a52_0x4e0833(0x1de)]=a52_0x154a7a,a52_0x307220[a52_0x4e0833(0x17e)]=a52_0x4f3aad,a52_0x307220[a52_0x4e0833(0x15f)]=0xf*0x3c*0x3e8,a52_0x307220[a52_0x4e0833(0x1a1)]=a52_0x4e0833(0x151),a52_0x307220[a52_0x4e0833(0x12f)]=a52_0x4e0833(0x160),a52_0x307220[a52_0x4e0833(0x1b3)]=a52_0x4e0833(0x1f7),a52_0x307220['HUB_URL_REGEX']=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x307220[a52_0x4e0833(0x1e5)]=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x307220[a52_0x4e0833(0x162)]=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x307220[a52_0x4e0833(0x14b)]=[a52_0x4e0833(0x1c9),'pageLoadStrategy',a52_0x4e0833(0x1c2),a52_0x4e0833(0x1e6),a52_0x4e0833(0x1a2),a52_0x4e0833(0x12a),a52_0x4e0833(0x13f),a52_0x4e0833(0x150),a52_0x4e0833(0x128),a52_0x4e0833(0x156),a52_0x4e0833(0x136),a52_0x4e0833(0x1fd),a52_0x4e0833(0x177)],a52_0x307220[a52_0x4e0833(0x1f3)]=/^[\w-]+:.*$/,a52_0x307220[a52_0x4e0833(0x16a)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x307220[a52_0x4e0833(0x1e2)]='https://eds.browserstack.com',a52_0x307220[a52_0x4e0833(0x1ad)]=a52_0x4e0833(0x195),a52_0x307220[a52_0x4e0833(0x16e)]=a52_0x4e0833(0x147),a52_0x307220[a52_0x4e0833(0x1f1)]='sdk/v1/update_cli',a52_0x307220[a52_0x4e0833(0x1ae)]=a52_0x4e0833(0x199),a52_0x307220['AUTOMATE_PRODUCTS']=[a52_0x4e0833(0x171),a52_0x4e0833(0x1c7)],a52_0x307220[a52_0x4e0833(0x19a)]=[a52_0x4e0833(0x1b5),a52_0x4e0833(0x1c7)],a52_0x307220[a52_0x4e0833(0x1d9)]=[a52_0x4e0833(0x1c7)],a52_0x307220[a52_0x4e0833(0x161)]=a52_0x4e0833(0x1ef),a52_0x307220[a52_0x4e0833(0x198)]=['mocha',a52_0x4e0833(0x1d4)],a52_0x307220[a52_0x4e0833(0x1f6)]=[a52_0x4e0833(0x171)],a52_0x307220[a52_0x4e0833(0x1ed)]=a52_0x4e0833(0x1ac),a52_0x307220[a52_0x4e0833(0x191)]=a52_0x4e0833(0x15e),a52_0x307220[a52_0x4e0833(0x152)]=[a52_0x4e0833(0x1b5)],a52_0x307220[a52_0x4e0833(0x140)]=[a52_0x4e0833(0x1a0),a52_0x4e0833(0x1aa),a52_0x4e0833(0x129),'ERR_NETWORK_CHANGED',a52_0x4e0833(0x1ce),a52_0x4e0833(0x1eb),a52_0x4e0833(0x16d),'ERR_CONNECTION_REFUSED',a52_0x4e0833(0x14f),a52_0x4e0833(0x15a),a52_0x4e0833(0x18c),a52_0x4e0833(0x153),a52_0x4e0833(0x1f8),a52_0x4e0833(0x1d3),a52_0x4e0833(0x1ca),'ERR_SOCKS_CONNECTION_FAILED','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE',a52_0x4e0833(0x1a8),'ERR_NAME_NOT_RESOLVED',a52_0x4e0833(0x139),a52_0x4e0833(0x184)],a52_0x307220[a52_0x4e0833(0x1c6)]=[a52_0x4e0833(0x1c1),'.aab',a52_0x4e0833(0x1a9)],a52_0x307220[a52_0x4e0833(0x19c)]=a52_0x4e0833(0x1ff),a52_0x307220[a52_0x4e0833(0x185)]=a52_0x4e0833(0x18d),a52_0x307220[a52_0x4e0833(0x196)]=a52_0x4e0833(0x1b9),a52_0x307220[a52_0x4e0833(0x157)]='wss://cdp.browserstack.com/playwright?caps=',a52_0x307220['FRAMEWORKS']=a52_0x48ca75,a52_0x307220[a52_0x4e0833(0x180)]=[a52_0x4e0833(0x13e),a52_0x4e0833(0x127)],a52_0x307220[a52_0x4e0833(0x164)]=a52_0x60248e,a52_0x307220[a52_0x4e0833(0x1fe)]=a52_0x4e0833(0x1bd),a52_0x307220[a52_0x4e0833(0x1fb)]=a52_0x2e4264,a52_0x307220[a52_0x4e0833(0x126)]=0x40*0x400,a52_0x307220['GIT_META_DATA_TRUNCATED']='...[TRUNCATED]',a52_0x307220[a52_0x4e0833(0x142)]=a52_0x4e0833(0x178),a52_0x307220[a52_0x4e0833(0x15b)]=a52_0x4e0833(0x16b),a52_0x307220[a52_0x4e0833(0x1e8)]=a52_0x4e0833(0x18e),a52_0x307220[a52_0x4e0833(0x1f2)]=a52_0x4e0833(0x173),a52_0x307220['AI_INIT_SUCCESSFUL']=a52_0x4e0833(0x1e1),a52_0x307220[a52_0x4e0833(0x172)]=a52_0x4e0833(0x190),a52_0x307220['AI_PROXY_FAILURE']=a52_0x4e0833(0x1b2),a52_0x307220[a52_0x4e0833(0x14a)]=0x1388,a52_0x307220[a52_0x4e0833(0x14e)]=0x1388,a52_0x307220['HEALING_LOG_DATA_TIMEOUT']=0x1388,a52_0x307220[a52_0x4e0833(0x1dc)]=0x1388,a52_0x307220[a52_0x4e0833(0x13a)]=0xc350,a52_0x307220[a52_0x4e0833(0x18a)]=a52_0x40ae83,a52_0x307220['REDACTED_KEYS']=a52_0x1b0f74,a52_0x307220[a52_0x4e0833(0x15c)]=['vanilla',a52_0x4e0833(0x1c0)],a52_0x307220['SDK_INSTRUMENTATION_CONFIG']=a52_0x5dcc66,a52_0x307220['LOG_FILE_NAME']=a52_0x4e0833(0x1b1),a52_0x307220['DEBUG_LOG_FILE_NAME']='/usage-debug.log',a52_0x307220[a52_0x4e0833(0x192)]=a52_0x4e0833(0x1c4),a52_0x307220[a52_0x4e0833(0x133)]=a52_0x4e0833(0x1c3),a52_0x307220[a52_0x4e0833(0x1d7)]=a52_0x4e0833(0x1ab),a52_0x307220[a52_0x4e0833(0x14d)]=a52_0x4e0833(0x1dd),a52_0x307220[a52_0x4e0833(0x159)]=[a52_0x4e0833(0x19f)],a52_0x307220[a52_0x4e0833(0x19b)]=a52_0x4e0833(0x19b),module['exports']=a52_0x307220;const _env=(process['env'][a52_0x4e0833(0x143)]||a52_0x4e0833(0x132))[a52_0x4e0833(0x144)]();function a52_0x5b3b(){const _0x270fab=['browserstack','HST','PLAYWRIGHT','Connect\x20on\x20prem\x20instances\x20to\x20Browserstack','SDKTestTcgtInitSuccessful','EDS_URL','root','bsstag','ATS_HUB_URL_REGEX','unhandledPromptBehavior','wss://cdp-preprod.bsstag.com/playwright?caps=','INVALID_INIT_RESP_WITH_USER_IMPACT','NIGHTWATCH','3405SgKMPL','ERR_CONNECTION_CLOSED','2MWMJFs','BROWSERSTACK_AUTOMATE_URL','httpsProxy','https://upload-observability.browserstack.com','shows\x20version\x20information','UPDATED_CLI_ENDPOINT','TCG_AUTH_FAILURE','ROOT_REGEX','browserstackAutomation','HELP','AUTOMATE','use','ERR_ADDRESS_UNREACHABLE','mandatoryDependency','turboScale','PACKAGE_TYPE','browserStackLocalOptions','edgeOptions','AUTOLOGCAPTURE_NOTIFICATION','^[a-zA-Z0-9_.-]*$','MAX_GIT_META_DATA_SIZE_IN_BYTES','mocha','acceptSslCert','ERR_BLOCKED_BY_CLIENT','browserName','testContextOptions','https://upload-observability-devtestops-ssi.bsstag.com','459byrQyd','localProxyUser','TCG_URL','https://api-cloud-devtestops.bsstag.com','cucumber','prod','BSTACK_ATS_URL','proxyUser','httpProxy','firefoxOptions','turboScaleOptions','MOCHA','ERR_NAME_RESOLUTION_FAILED','POLL_HEALING_RESULT_TIMEOUT','https://automate-preprod.bsstag.com/dashboard/v2/builds/','Run\x20cucumber-js\x20tests\x20on\x20browserstack','Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','jest','browserVersion','NUDGE_LOCAL_ERRORS','preprod','UPGRADE_REQUIRED','BROWSERSTACK_ENV','toLowerCase','automation','https://app-automate-preprod.bsstag.com/dashboard/v2/builds/','https://api-cloud.browserstack.com','customVariables','INFO','TCG_AUTH_TIMEOUT','ROOT_CAPS','6598080UMvwvH','BROWSERSTACK','SET_TCG_TOKEN_TIMEOUT','ERR_CONNECTION_ABORTED','acceptSslCerts','https://hub.browserstack.com/wd/hub','APP_AUTOMATE','ERR_ADDRESS_INVALID','184184XROuer','accessibility','chromeOptions','PLAYWRIGHT_HUB_URL','https://apidevtestops.bsstag.com','CLI_SUPPORTED_FRAMEWORKS','ERR_CONNECTION_FAILED','TCG_DOWN','AI_ENABLED_FRAMEWORK','invalidTestInputType','https://app-automate.browserstack.com/dashboard/v2/builds/','BSTACK_DELTA','https://tcg.browserstack.com','OBSERVABILITY_UPLOAD_URL','ATS_WSS_URL_REGEX','CODECEPTJS','PLAYWRIGHT_CONFIG_OPTION_ERRORS','JEST','name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','exports','Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file','https://hub-preprod.bsstag.com/wd/hub','PRIVATE_DOMAIN_OR_IP_REGEX','SDKTestTcgDownResponse','percyOptions','ERR_CONNECTION_RESET','APP_UPLOAD_URL','percyCaptureMode','VERSION','automate','AI_INIT_FAILURE','SDKTestTcgAuthFailure','uniqueDependency','pre-prod','browserstack.userName','ieOptions','Upgrade\x20required','COMMONJS','proxyUrl','CODECEPT_CUCUMBER','https://api-preprod.bsstag.com','platforms','INTEGRATIONS','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','PERCY_SUPPORTED_FRAMEWORKS','framework','staging','6fHIsOj','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED','SHAREABLE_ID_REGEX','testObservabilityOptions','CODECEPT','MODULE','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','TEST_FRAMEWORK_HOOK_TIMEOUT','userName','ERR_NAME_NOT_RESOLVED','^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$','SDKTestInvalidTcgAuthResponseWithUserImpact','276650zpLjPU','SDKTestInitFailedResponse','BROWSERSTACK_APP_AUTOMATE_URL','BSTACK_URL','Run\x20playwright\x20tests\x20on\x20Browserstack','wss://cdp-devtestops.bsstag.com/playwright?caps=','https://api.browserstack.com','CI_ARTIFACTS_PATH','disableAutoCaptureLogs','OBSERVABILITY_SUPPORTED_FWS','sdk/v1/event','APP_AUTOMATE_PRODUCTS','PLAYWRIGHT_TRACE_LOGS','CUSTOM_ID_REGEX','bsstag.com','testObservability','playwright','ERR_FAILED','hubUrl','timeouts','invalidKeys','Run\x20nightwatch\x20tests\x20on\x20browserstack','https://tcg.bsstag.com','accessibilityOptions','parallelsPerPlatform','ERR_PROXY_CONNECTION_FAILED','.ipa','ERR_TIMED_OUT','https://observability.browserstack.com','https://automate.browserstack.com/dashboard/v2/builds/','BROWSERSTACK_API_URL','FUNNEL_INSTRUMENTATION_API_URL','rerunTests','Run\x20js\x20tests\x20on\x20browserstack','/usage.log','SDKTestTcgProxyFailure','TCG_REGION','Cucumber-JS','app-automate','132944rZjTyg','CUCUMBER','commonjs','./browserstack-artifacts/','proxyPass','2900qrKxZu','logLevel','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','localOptions','codeceptjs-cucumber','codeceptjs','.apk','strictFileInteractability','browserstack-ats.com','browserstack.com','https://tcg-preprod.bsstag.com','VALID_APP_EXTENSION','observability','percy','acceptInsecureCerts','ERR_CONNECTION_TIMED_OUT','proxyPassword','198xQYjGX','https://upload-observability-preprod.bsstag.com','ERR_SOCKET_NOT_CONNECTED','split','https://automate-devtestops.bsstag.com/dashboard/v2/builds/','2132977ofilbE','HUB_URL_REGEX','ERR_TUNNEL_CONNECTION_FAILED','Playwright','https://edsstaging.bsstag.com','stag','O11Y_URL','proxySettings','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','931173MvayZG','browserstackLocal','HEALING_FAILURE_TIMEOUT'];a52_0x5b3b=function(){return _0x270fab;};return a52_0x5b3b();}if(_env===a52_0x4e0833(0x182)||_env===a52_0x4e0833(0x1d6)){const DExhVF='0|9|12|1|11|7|3|2|4|8|5|10|6'[a52_0x4e0833(0x1cf)]('|');let fHVvOF=0x0;while(!![]){switch(DExhVF[fHVvOF++]){case'0':module[a52_0x4e0833(0x167)]['hubUrl']='https://hub-devtestops.bsstag.com/wd/hub';continue;case'1':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x1d2)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'2':module['exports']['PLAYWRIGHT_HUB_URL']=a52_0x4e0833(0x194);continue;case'3':module['exports']['APP_UPLOAD_URL']=a52_0x4e0833(0x130);continue;case'4':module['exports'][a52_0x4e0833(0x192)]=a52_0x4e0833(0x19d);continue;case'5':module[a52_0x4e0833(0x167)]['OBSERVABILITY_UPLOAD_URL']=a52_0x4e0833(0x12c);continue;case'6':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x14d)]=a52_0x4e0833(0x1e4);continue;case'7':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x191)]='https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/';continue;case'8':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x1d7)]='https://observability-devtestops.bsstag.com';continue;case'9':module[a52_0x4e0833(0x167)]['BROWSERSTACK_API_URL']=a52_0x4e0833(0x158);continue;case'10':module[a52_0x4e0833(0x167)]['EDS_URL']=a52_0x4e0833(0x1d5);continue;case'11':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x1ed)]=a52_0x4e0833(0x1d0);continue;case'12':module['exports'][a52_0x4e0833(0x12f)]=a52_0x4e0833(0x1a5);continue;}break;}}else{if(_env===a52_0x4e0833(0x141)||_env===a52_0x4e0833(0x175)){const jMfHOw='10|2|3|12|0|7|4|9|5|8|1|6|11'['split']('|');let IYgtpL=0x0;while(!![]){switch(jMfHOw[IYgtpL++]){case'0':module[a52_0x4e0833(0x167)]['BROWSERSTACK_AUTOMATE_URL']=a52_0x4e0833(0x13b);continue;case'1':module[a52_0x4e0833(0x167)]['OBSERVABILITY_UPLOAD_URL']=a52_0x4e0833(0x1cd);continue;case'2':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x1ad)]=a52_0x4e0833(0x17c);continue;case'3':module['exports'][a52_0x4e0833(0x12f)]=a52_0x4e0833(0x1c5);continue;case'4':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x16e)]=a52_0x4e0833(0x17c);continue;case'5':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x192)]=a52_0x4e0833(0x19d);continue;case'6':module['exports'][a52_0x4e0833(0x1e2)]=a52_0x4e0833(0x1d5);continue;case'7':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x191)]=a52_0x4e0833(0x146);continue;case'8':module['exports'][a52_0x4e0833(0x1d7)]='https://observability-preprod.bsstag.com';continue;case'9':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x157)]=a52_0x4e0833(0x1e7);continue;case'10':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x1a1)]=a52_0x4e0833(0x169);continue;case'11':module['exports'][a52_0x4e0833(0x14d)]='bsstag';continue;case'12':module[a52_0x4e0833(0x167)][a52_0x4e0833(0x1d2)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;}break;}}}
@@ -1 +1 @@
1
- const a53_0x39a6d7=a53_0x42f4;(function(_0x58233d,_0x548d33){const _0x4e1dc3=a53_0x42f4,_0xb2faa8=_0x58233d();while(!![]){try{const _0xc5675d=-parseInt(_0x4e1dc3(0x12e))/0x1*(-parseInt(_0x4e1dc3(0x138))/0x2)+parseInt(_0x4e1dc3(0x137))/0x3+parseInt(_0x4e1dc3(0x139))/0x4+-parseInt(_0x4e1dc3(0x131))/0x5+parseInt(_0x4e1dc3(0x136))/0x6*(-parseInt(_0x4e1dc3(0x12f))/0x7)+-parseInt(_0x4e1dc3(0x129))/0x8*(parseInt(_0x4e1dc3(0x134))/0x9)+parseInt(_0x4e1dc3(0x133))/0xa*(parseInt(_0x4e1dc3(0x12b))/0xb);if(_0xc5675d===_0x548d33)break;else _0xb2faa8['push'](_0xb2faa8['shift']());}catch(_0x35bcd3){_0xb2faa8['push'](_0xb2faa8['shift']());}}}(a53_0x3d91,0x4df63));const logReportingAPI=require(a53_0x39a6d7(0x135)),BSTestOpsLogger=new logReportingAPI({});function a53_0x42f4(_0x21d866,_0x43fe48){const _0x3d91a3=a53_0x3d91();return a53_0x42f4=function(_0x42f480,_0x34a14f){_0x42f480=_0x42f480-0x128;let _0x309705=_0x3d91a3[_0x42f480];return _0x309705;},a53_0x42f4(_0x21d866,_0x43fe48);}function BSTestOpsLog4JSAppender(_0x24cc6a,_0x5a2717){return _0x2c1cc0=>{const _0x5b3038=a53_0x42f4;BSTestOpsLogger[_0x5b3038(0x130)]({'level':_0x2c1cc0[_0x5b3038(0x12d)]?_0x2c1cc0[_0x5b3038(0x12d)][_0x5b3038(0x13a)]:null,'message':_0x2c1cc0[_0x5b3038(0x128)]?_0x2c1cc0[_0x5b3038(0x128)][_0x5b3038(0x13b)]('\x20'):null});};}exports['configure']=(_0x3db835,_0x256577)=>{const _0xe9ca68=a53_0x39a6d7,_0x285fa7={'xANKo':function(_0x5dbbf2,_0x58e25b,_0x3a5731){return _0x5dbbf2(_0x58e25b,_0x3a5731);}};let _0x2c2911=_0x256577[_0xe9ca68(0x12a)];return _0x3db835[_0xe9ca68(0x12c)]&&(_0x2c2911=_0x256577[_0xe9ca68(0x12c)](_0x3db835[_0xe9ca68(0x12c)][_0xe9ca68(0x132)],_0x3db835[_0xe9ca68(0x12c)])),_0x285fa7['xANKo'](BSTestOpsLog4JSAppender,_0x2c2911,_0x3db835['timezoneOffset']);};function a53_0x3d91(){const _0xc517e0=['14FYEars','log','1585485SVxaEy','type','122270UexKXn','3440007hDzPWC','./logReportingAPI','1450122zFWjlM','1193022YfZGux','504272KuqCxq','2381792QTwoSO','levelStr','join','data','8GUKkFd','colouredLayout','231rTFfyJ','layout','level','1NmUhXr'];a53_0x3d91=function(){return _0xc517e0;};return a53_0x3d91();}
1
+ const a53_0x16d12c=a53_0x2e4f;(function(_0x49f934,_0x3884b0){const _0x26ff4f=a53_0x2e4f,_0x144b2c=_0x49f934();while(!![]){try{const _0x13df03=-parseInt(_0x26ff4f(0x12d))/0x1+-parseInt(_0x26ff4f(0x130))/0x2*(-parseInt(_0x26ff4f(0x124))/0x3)+parseInt(_0x26ff4f(0x128))/0x4*(parseInt(_0x26ff4f(0x120))/0x5)+parseInt(_0x26ff4f(0x122))/0x6*(-parseInt(_0x26ff4f(0x129))/0x7)+-parseInt(_0x26ff4f(0x12a))/0x8+-parseInt(_0x26ff4f(0x127))/0x9+parseInt(_0x26ff4f(0x131))/0xa*(parseInt(_0x26ff4f(0x12f))/0xb);if(_0x13df03===_0x3884b0)break;else _0x144b2c['push'](_0x144b2c['shift']());}catch(_0x5dc8fd){_0x144b2c['push'](_0x144b2c['shift']());}}}(a53_0x5a2e,0x9e3ec));const logReportingAPI=require(a53_0x16d12c(0x12c)),BSTestOpsLogger=new logReportingAPI({});function a53_0x5a2e(){const _0x489ac9=['layout','dOCBI','8197398EWlGDh','20JsSunk','2842iTdCku','644152BbUzvI','type','./logReportingAPI','620144OdbIVy','data','16659203SDwyRy','708976FYamVU','10rCmzdL','join','level','1206350FvanIO','colouredLayout','12054olqeUs','log','3JBSmVN'];a53_0x5a2e=function(){return _0x489ac9;};return a53_0x5a2e();}function a53_0x2e4f(_0x5a61bb,_0xd0ce09){const _0x5a2e11=a53_0x5a2e();return a53_0x2e4f=function(_0x2e4f58,_0x3f42f4){_0x2e4f58=_0x2e4f58-0x120;let _0x537da3=_0x5a2e11[_0x2e4f58];return _0x537da3;},a53_0x2e4f(_0x5a61bb,_0xd0ce09);}function BSTestOpsLog4JSAppender(_0x166bc9,_0x3b9fad){return _0x55c580=>{const _0x378b8a=a53_0x2e4f;BSTestOpsLogger[_0x378b8a(0x123)]({'level':_0x55c580[_0x378b8a(0x133)]?_0x55c580[_0x378b8a(0x133)]['levelStr']:null,'message':_0x55c580[_0x378b8a(0x12e)]?_0x55c580[_0x378b8a(0x12e)][_0x378b8a(0x132)]('\x20'):null});};}exports['configure']=(_0x4c13bd,_0x3103fa)=>{const _0x4f9a94=a53_0x16d12c,_0x3eff43={'dOCBI':function(_0x28bf4e,_0x468d27,_0x4fb41c){return _0x28bf4e(_0x468d27,_0x4fb41c);}};let _0x383323=_0x3103fa[_0x4f9a94(0x121)];return _0x4c13bd[_0x4f9a94(0x125)]&&(_0x383323=_0x3103fa[_0x4f9a94(0x125)](_0x4c13bd[_0x4f9a94(0x125)][_0x4f9a94(0x12b)],_0x4c13bd[_0x4f9a94(0x125)])),_0x3eff43[_0x4f9a94(0x126)](BSTestOpsLog4JSAppender,_0x383323,_0x4c13bd['timezoneOffset']);};
@@ -1 +1 @@
1
- const a54_0x37c813=a54_0x2a4c;(function(_0x4e1d54,_0xe9278f){const _0x2eb39d=a54_0x2a4c,_0x2ce594=_0x4e1d54();while(!![]){try{const _0x268ad6=parseInt(_0x2eb39d(0x15f))/0x1*(-parseInt(_0x2eb39d(0x156))/0x2)+-parseInt(_0x2eb39d(0x162))/0x3+parseInt(_0x2eb39d(0x157))/0x4*(parseInt(_0x2eb39d(0x14e))/0x5)+-parseInt(_0x2eb39d(0x14f))/0x6+-parseInt(_0x2eb39d(0x152))/0x7+-parseInt(_0x2eb39d(0x161))/0x8*(parseInt(_0x2eb39d(0x165))/0x9)+parseInt(_0x2eb39d(0x15e))/0xa;if(_0x268ad6===_0xe9278f)break;else _0x2ce594['push'](_0x2ce594['shift']());}catch(_0x4ad59b){_0x2ce594['push'](_0x2ce594['shift']());}}}(a54_0x9f81,0xda2c1));function a54_0x9f81(){const _0x4173bd=['7689143BrlDXv','DEBUG','toUpperCase','toLowerCase','20eVJwUZ','228NGGuGc','INFO','winston-transport','ERROR','info','bs:addLog:','WARN','42106720TTeexd','113705mtuvYG','logToTestOps','8BLxuyS','1554201bQLujR','warn','tIdLL','9139347weZrhx','TRACE','join','../../helpers/test-observability/constants','error','exports','46445zJnCFs','464778zHRuoJ','emit','TEST_LOG'];a54_0x9f81=function(){return _0x4173bd;};return a54_0x9f81();}const Transport=require(a54_0x37c813(0x159)),{consoleHolder}=require(a54_0x37c813(0x14b)),a54_0x3f15a0={};a54_0x3f15a0[a54_0x37c813(0x158)]=a54_0x37c813(0x158),a54_0x3f15a0[a54_0x37c813(0x15a)]='ERROR',a54_0x3f15a0[a54_0x37c813(0x153)]='DEBUG',a54_0x3f15a0[a54_0x37c813(0x166)]=a54_0x37c813(0x166),a54_0x3f15a0[a54_0x37c813(0x15d)]=a54_0x37c813(0x15d);function a54_0x2a4c(_0x366e47,_0x2d3520){const _0x9f81b0=a54_0x9f81();return a54_0x2a4c=function(_0x2a4c13,_0x5172ce){_0x2a4c13=_0x2a4c13-0x14a;let _0x18bb17=_0x9f81b0[_0x2a4c13];return _0x18bb17;},a54_0x2a4c(_0x366e47,_0x2d3520);}const LOG_LEVELS=a54_0x3f15a0;class logPatcher extends Transport{constructor(_0x2fe499){super(_0x2fe499);}['logToTestOps']=(_0xceca29=LOG_LEVELS[a54_0x37c813(0x158)],_0x50864d=[''])=>{const _0xca43bb=a54_0x37c813,_0x1e4759={};_0x1e4759['tIdLL']=_0xca43bb(0x151);const _0xfb8d5d=_0x1e4759;consoleHolder[_0xceca29[_0xca43bb(0x155)]()](..._0x50864d),process[_0xca43bb(0x150)](_0xca43bb(0x15c)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':_0xceca29[_0xca43bb(0x154)](),'message':'\x22'+_0x50864d[_0xca43bb(0x14a)](',\x20')+'\x22','kind':_0xfb8d5d[_0xca43bb(0x164)],'http_response':{}});};['trace']=(..._0x12e5ab)=>{const _0x29e9e3=a54_0x37c813;this['logToTestOps'](LOG_LEVELS[_0x29e9e3(0x166)],_0x12e5ab);};['debug']=(..._0x85ddcc)=>{const _0x5bed68=a54_0x37c813;this[_0x5bed68(0x160)](LOG_LEVELS['DEBUG'],_0x85ddcc);};[a54_0x37c813(0x15b)]=(..._0x332bc5)=>{const _0x15dfb6=a54_0x37c813;this['logToTestOps'](LOG_LEVELS[_0x15dfb6(0x158)],_0x332bc5);};[a54_0x37c813(0x163)]=(..._0x14c6f3)=>{const _0xb4e010=a54_0x37c813;this[_0xb4e010(0x160)](LOG_LEVELS[_0xb4e010(0x15d)],_0x14c6f3);};[a54_0x37c813(0x14c)]=(..._0x574f6f)=>{const _0x3d826d=a54_0x37c813;this[_0x3d826d(0x160)](LOG_LEVELS[_0x3d826d(0x15a)],_0x574f6f);};['log']=(..._0x4783da)=>{const _0x4b74c9=a54_0x37c813;this['logToTestOps'](LOG_LEVELS[_0x4b74c9(0x158)],_0x4783da);};};module[a54_0x37c813(0x14d)]=logPatcher;
1
+ function a54_0x1249(_0x3f6d09,_0x2d001b){const _0x1234ac=a54_0x1234();return a54_0x1249=function(_0x124989,_0x4f743d){_0x124989=_0x124989-0x6d;let _0x1c5569=_0x1234ac[_0x124989];return _0x1c5569;},a54_0x1249(_0x3f6d09,_0x2d001b);}const a54_0x564e10=a54_0x1249;(function(_0x5ce3da,_0x2ce76c){const _0x562622=a54_0x1249,_0x5760f0=_0x5ce3da();while(!![]){try{const _0x343ffb=parseInt(_0x562622(0x84))/0x1*(parseInt(_0x562622(0x7a))/0x2)+parseInt(_0x562622(0x71))/0x3*(parseInt(_0x562622(0x7b))/0x4)+parseInt(_0x562622(0x7f))/0x5+parseInt(_0x562622(0x7e))/0x6*(parseInt(_0x562622(0x86))/0x7)+-parseInt(_0x562622(0x70))/0x8+-parseInt(_0x562622(0x80))/0x9+parseInt(_0x562622(0x7c))/0xa*(parseInt(_0x562622(0x8a))/0xb);if(_0x343ffb===_0x2ce76c)break;else _0x5760f0['push'](_0x5760f0['shift']());}catch(_0x18c2f3){_0x5760f0['push'](_0x5760f0['shift']());}}}(a54_0x1234,0x3817a));const Transport=require('winston-transport'),{consoleHolder}=require(a54_0x564e10(0x74)),a54_0x1c1386={};a54_0x1c1386[a54_0x564e10(0x81)]=a54_0x564e10(0x81),a54_0x1c1386[a54_0x564e10(0x78)]=a54_0x564e10(0x78),a54_0x1c1386[a54_0x564e10(0x75)]=a54_0x564e10(0x75),a54_0x1c1386['TRACE']=a54_0x564e10(0x6d),a54_0x1c1386[a54_0x564e10(0x6e)]=a54_0x564e10(0x6e);function a54_0x1234(){const _0x109534=['1waXfYz','emit','7twcpxS','warn','logToTestOps','TEST_LOG','11zgkzpO','TRACE','WARN','oegqo','3610680HLWmxA','12BkIWIe','log','trace','../../helpers/test-observability/constants','DEBUG','toLowerCase','error','ERROR','pid','261346uzYvte','70448OgxvoT','7092170MQVtQk','debug','723084HPFouV','165950eZnyUz','3446577vbVuzx','INFO','exports','toUpperCase'];a54_0x1234=function(){return _0x109534;};return a54_0x1234();}const LOG_LEVELS=a54_0x1c1386;class logPatcher extends Transport{constructor(_0x3af7dd){super(_0x3af7dd);}[a54_0x564e10(0x88)]=(_0x2c1866=LOG_LEVELS[a54_0x564e10(0x81)],_0x1e249d=[''])=>{const _0x3d4ad6=a54_0x564e10,_0x4677cb={};_0x4677cb[_0x3d4ad6(0x6f)]=_0x3d4ad6(0x89);const _0x53b9aa=_0x4677cb;consoleHolder[_0x2c1866[_0x3d4ad6(0x76)]()](..._0x1e249d),process[_0x3d4ad6(0x85)]('bs:addLog:'+process[_0x3d4ad6(0x79)],{'timestamp':new Date()['toISOString'](),'level':_0x2c1866[_0x3d4ad6(0x83)](),'message':'\x22'+_0x1e249d['join'](',\x20')+'\x22','kind':_0x53b9aa['oegqo'],'http_response':{}});};[a54_0x564e10(0x73)]=(..._0x7727b2)=>{const _0x1ef6e5=a54_0x564e10;this[_0x1ef6e5(0x88)](LOG_LEVELS[_0x1ef6e5(0x6d)],_0x7727b2);};[a54_0x564e10(0x7d)]=(..._0x5ee1b0)=>{const _0x32eea0=a54_0x564e10;this[_0x32eea0(0x88)](LOG_LEVELS[_0x32eea0(0x75)],_0x5ee1b0);};['info']=(..._0x188102)=>{const _0x13d7be=a54_0x564e10;this[_0x13d7be(0x88)](LOG_LEVELS[_0x13d7be(0x81)],_0x188102);};[a54_0x564e10(0x87)]=(..._0x55b462)=>{const _0x1e81f2=a54_0x564e10;this[_0x1e81f2(0x88)](LOG_LEVELS['WARN'],_0x55b462);};[a54_0x564e10(0x77)]=(..._0x404dac)=>{const _0x549032=a54_0x564e10;this[_0x549032(0x88)](LOG_LEVELS[_0x549032(0x78)],_0x404dac);};[a54_0x564e10(0x72)]=(..._0x10d197)=>{const _0x4205f6=a54_0x564e10;this[_0x4205f6(0x88)](LOG_LEVELS['INFO'],_0x10d197);};};module[a54_0x564e10(0x82)]=logPatcher;
@@ -1 +1 @@
1
- const a55_0x324b7a=a55_0x46a6;(function(_0x1be100,_0x4a6bc9){const _0x404271=a55_0x46a6,_0x3803a8=_0x1be100();while(!![]){try{const _0x29564f=-parseInt(_0x404271(0x142))/0x1+parseInt(_0x404271(0x11e))/0x2+parseInt(_0x404271(0x126))/0x3+parseInt(_0x404271(0x123))/0x4*(parseInt(_0x404271(0x144))/0x5)+parseInt(_0x404271(0x13e))/0x6+-parseInt(_0x404271(0x12b))/0x7+parseInt(_0x404271(0x122))/0x8*(-parseInt(_0x404271(0x130))/0x9);if(_0x29564f===_0x4a6bc9)break;else _0x3803a8['push'](_0x3803a8['shift']());}catch(_0x1d4f0e){_0x3803a8['push'](_0x3803a8['shift']());}}}(a55_0x5211,0xd65f7));const Transport=require(a55_0x324b7a(0x13a)),{consoleHolder}=require(a55_0x324b7a(0x127)),a55_0x5196fd={};a55_0x5196fd[a55_0x324b7a(0x13d)]=a55_0x324b7a(0x13d),a55_0x5196fd[a55_0x324b7a(0x135)]=a55_0x324b7a(0x135),a55_0x5196fd[a55_0x324b7a(0x13b)]=a55_0x324b7a(0x13b),a55_0x5196fd['TRACE']=a55_0x324b7a(0x125),a55_0x5196fd['WARN']=a55_0x324b7a(0x12c);function a55_0x5211(){const _0x27255f=['3149600JtbnOH','trace','debug','log','8vCODsQ','4JXCBVT','level','TRACE','1603035YbTyjT','../../helpers/test-observability/constants','logged','toISOString','exports','4757340vGfbCL','WARN','info','Ubkgt','error','8988741krHZiX','emit','pid','ewEok','GIheZ','ERROR','logToTestOps','XHMOy','object','kcaii','winston-transport','DEBUG','toLowerCase','INFO','3809934WJjghD','warn','toUpperCase','TEST_LOG','862165QjzwaZ','bs:addLog:','3372355TklqXP'];a55_0x5211=function(){return _0x27255f;};return a55_0x5211();}const LOG_LEVELS=a55_0x5196fd;function a55_0x46a6(_0xd0d1ef,_0x35a133){const _0x521160=a55_0x5211();return a55_0x46a6=function(_0x46a600,_0x9b2d45){_0x46a600=_0x46a600-0x11e;let _0xf7f5ac=_0x521160[_0x46a600];return _0xf7f5ac;},a55_0x46a6(_0xd0d1ef,_0x35a133);}class logReportingAPI extends Transport{constructor(_0x333632){super(_0x333632);}[a55_0x324b7a(0x121)](_0x4ce028,_0x57824c){const _0x3e63ea=a55_0x324b7a,_0x2091a7={'GIheZ':_0x3e63ea(0x128),'ewEok':function(_0x248f1f,_0x497271){return _0x248f1f(_0x497271);},'hOlsh':function(_0x29b919,_0x14c2f9){return _0x29b919===_0x14c2f9;},'kcaii':_0x3e63ea(0x138),'Ubkgt':function(_0x2cb934){return _0x2cb934();}};_0x2091a7[_0x3e63ea(0x133)](setImmediate,()=>{const _0x1b6610=_0x3e63ea;this[_0x1b6610(0x131)](_0x2091a7[_0x1b6610(0x134)],_0x4ce028);}),_0x2091a7['hOlsh'](typeof _0x4ce028,_0x2091a7[_0x3e63ea(0x139)])?this[_0x3e63ea(0x136)](_0x4ce028[_0x3e63ea(0x124)]||LOG_LEVELS[_0x3e63ea(0x13d)],_0x4ce028['message'],![]):this[_0x3e63ea(0x136)](LOG_LEVELS['INFO'],_0x4ce028),_0x57824c&&_0x2091a7[_0x3e63ea(0x12e)](_0x57824c);}[a55_0x324b7a(0x136)]=(_0xebfb92=LOG_LEVELS['INFO'],_0x6dd05f='',_0x511a0b=!![])=>{const _0x486ca3=a55_0x324b7a,_0x3d3879={};_0x3d3879[_0x486ca3(0x137)]=_0x486ca3(0x141);const _0x4e6386=_0x3d3879;_0x511a0b&&consoleHolder[_0xebfb92[_0x486ca3(0x13c)]()](_0x6dd05f),process[_0x486ca3(0x131)](_0x486ca3(0x143)+process[_0x486ca3(0x132)],{'timestamp':new Date()[_0x486ca3(0x129)](),'level':_0xebfb92[_0x486ca3(0x140)](),'message':_0x6dd05f,'kind':_0x4e6386['XHMOy'],'http_response':{}});};[a55_0x324b7a(0x11f)]=(_0x461aa3,_0x3efdde)=>{const _0xa8f243=a55_0x324b7a;this[_0xa8f243(0x136)](LOG_LEVELS[_0xa8f243(0x125)],_0x461aa3);};[a55_0x324b7a(0x120)]=(_0x55580e,_0x1be5a4)=>{const _0x1fb5d1=a55_0x324b7a;this[_0x1fb5d1(0x136)](LOG_LEVELS[_0x1fb5d1(0x13b)],_0x55580e);};[a55_0x324b7a(0x12d)]=(_0x3b5f92,_0x5b2f66)=>{const _0x2ddb9b=a55_0x324b7a;this['logToTestOps'](LOG_LEVELS[_0x2ddb9b(0x13d)],_0x3b5f92);};[a55_0x324b7a(0x13f)]=(_0xd5af92,_0x313750)=>{const _0x2c0b51=a55_0x324b7a;this[_0x2c0b51(0x136)](LOG_LEVELS[_0x2c0b51(0x12c)],_0xd5af92);};[a55_0x324b7a(0x12f)]=(_0x3395e4,_0x3ea628)=>{const _0x127a50=a55_0x324b7a;this['logToTestOps'](LOG_LEVELS[_0x127a50(0x135)],_0x3395e4);};};module[a55_0x324b7a(0x12a)]=logReportingAPI;
1
+ const a55_0x25a04b=a55_0x3035;(function(_0x33ec9c,_0x2e242f){const _0x2eb4b7=a55_0x3035,_0x5172a8=_0x33ec9c();while(!![]){try{const _0x359f4f=-parseInt(_0x2eb4b7(0x181))/0x1+parseInt(_0x2eb4b7(0x19b))/0x2*(parseInt(_0x2eb4b7(0x187))/0x3)+-parseInt(_0x2eb4b7(0x196))/0x4+-parseInt(_0x2eb4b7(0x19d))/0x5+parseInt(_0x2eb4b7(0x1a0))/0x6+parseInt(_0x2eb4b7(0x194))/0x7+-parseInt(_0x2eb4b7(0x18c))/0x8*(-parseInt(_0x2eb4b7(0x190))/0x9);if(_0x359f4f===_0x2e242f)break;else _0x5172a8['push'](_0x5172a8['shift']());}catch(_0x5a094b){_0x5172a8['push'](_0x5172a8['shift']());}}}(a55_0xf2ca,0xa9b98));const Transport=require(a55_0x25a04b(0x18f)),{consoleHolder}=require('../../helpers/test-observability/constants'),a55_0x24800e={};a55_0x24800e[a55_0x25a04b(0x189)]=a55_0x25a04b(0x189),a55_0x24800e[a55_0x25a04b(0x19e)]=a55_0x25a04b(0x19e),a55_0x24800e[a55_0x25a04b(0x18e)]=a55_0x25a04b(0x18e),a55_0x24800e[a55_0x25a04b(0x188)]=a55_0x25a04b(0x188),a55_0x24800e['WARN']=a55_0x25a04b(0x180);const LOG_LEVELS=a55_0x24800e;class logReportingAPI extends Transport{constructor(_0x42059d){super(_0x42059d);}[a55_0x25a04b(0x199)](_0x344a76,_0x30037d){const _0x30fcaa=a55_0x25a04b,_0x59d017={'YBvQr':_0x30fcaa(0x182),'cSxCB':function(_0x14d328,_0x1b48f5){return _0x14d328(_0x1b48f5);},'YnWmA':function(_0x1110ef,_0x945162){return _0x1110ef===_0x945162;},'Gtuln':_0x30fcaa(0x191),'DihSD':function(_0x4fe3df){return _0x4fe3df();}};_0x59d017['cSxCB'](setImmediate,()=>{const _0x58b886=_0x30fcaa;this[_0x58b886(0x18b)](_0x59d017[_0x58b886(0x197)],_0x344a76);}),_0x59d017[_0x30fcaa(0x18a)](typeof _0x344a76,_0x59d017[_0x30fcaa(0x1a1)])?this[_0x30fcaa(0x19c)](_0x344a76[_0x30fcaa(0x19f)]||LOG_LEVELS[_0x30fcaa(0x189)],_0x344a76[_0x30fcaa(0x17f)],![]):this[_0x30fcaa(0x19c)](LOG_LEVELS['INFO'],_0x344a76),_0x30037d&&_0x59d017[_0x30fcaa(0x185)](_0x30037d);}[a55_0x25a04b(0x19c)]=(_0x36a129=LOG_LEVELS[a55_0x25a04b(0x189)],_0x4ae48e='',_0x41c724=!![])=>{const _0x2b54d2=a55_0x25a04b,_0x56f561={};_0x56f561[_0x2b54d2(0x186)]=_0x2b54d2(0x192);const _0x28ad98=_0x56f561;_0x41c724&&consoleHolder[_0x36a129['toLowerCase']()](_0x4ae48e),process[_0x2b54d2(0x18b)](_0x2b54d2(0x183)+process[_0x2b54d2(0x19a)],{'timestamp':new Date()['toISOString'](),'level':_0x36a129[_0x2b54d2(0x195)](),'message':_0x4ae48e,'kind':_0x28ad98[_0x2b54d2(0x186)],'http_response':{}});};[a55_0x25a04b(0x198)]=(_0x4c77a1,_0x8e0242)=>{const _0xb7b23c=a55_0x25a04b;this[_0xb7b23c(0x19c)](LOG_LEVELS[_0xb7b23c(0x188)],_0x4c77a1);};['debug']=(_0x3da535,_0x2f00aa)=>{const _0x5c40cb=a55_0x25a04b;this[_0x5c40cb(0x19c)](LOG_LEVELS[_0x5c40cb(0x18e)],_0x3da535);};[a55_0x25a04b(0x18d)]=(_0x39c9f5,_0x3a2aba)=>{const _0x457d81=a55_0x25a04b;this['logToTestOps'](LOG_LEVELS[_0x457d81(0x189)],_0x39c9f5);};[a55_0x25a04b(0x193)]=(_0x3658d7,_0x3a7900)=>{const _0x3af542=a55_0x25a04b;this[_0x3af542(0x19c)](LOG_LEVELS['WARN'],_0x3658d7);};[a55_0x25a04b(0x184)]=(_0xb1b76e,_0x1813bb)=>{const _0x5895e9=a55_0x25a04b;this[_0x5895e9(0x19c)](LOG_LEVELS['ERROR'],_0xb1b76e);};}function a55_0xf2ca(){const _0x3e28f2=['5392665lszbof','ERROR','level','655176NlehCc','Gtuln','message','WARN','1163981QBFszT','logged','bs:addLog:','error','DihSD','BHgCa','522CyEpWS','TRACE','INFO','YnWmA','emit','32dqhqLO','info','DEBUG','winston-transport','5768433dwVoJY','object','TEST_LOG','warn','6072388cwPMaB','toUpperCase','3217552LATOPA','YBvQr','trace','log','pid','2318pgNBxp','logToTestOps'];a55_0xf2ca=function(){return _0x3e28f2;};return a55_0xf2ca();}function a55_0x3035(_0x49b0a3,_0x365ba2){const _0xf2ca35=a55_0xf2ca();return a55_0x3035=function(_0x3035bc,_0x4f00d9){_0x3035bc=_0x3035bc-0x17f;let _0x10b2d8=_0xf2ca35[_0x3035bc];return _0x10b2d8;},a55_0x3035(_0x49b0a3,_0x365ba2);};module['exports']=logReportingAPI;
@@ -1 +1 @@
1
- const a56_0x2bc7cb=a56_0x1f77;(function(_0x3eee17,_0x1d537a){const _0x3ef102=a56_0x1f77,_0x1d932d=_0x3eee17();while(!![]){try{const _0x5c9353=-parseInt(_0x3ef102(0xfc))/0x1+parseInt(_0x3ef102(0xd8))/0x2+parseInt(_0x3ef102(0x107))/0x3+-parseInt(_0x3ef102(0x137))/0x4+-parseInt(_0x3ef102(0xe1))/0x5*(parseInt(_0x3ef102(0x132))/0x6)+parseInt(_0x3ef102(0xf2))/0x7+parseInt(_0x3ef102(0xdb))/0x8;if(_0x5c9353===_0x1d537a)break;else _0x1d932d['push'](_0x1d932d['shift']());}catch(_0x49934f){_0x1d932d['push'](_0x1d932d['shift']());}}}(a56_0x4a89,0xe53b5));function a56_0x1f77(_0x149143,_0x4ac9ee){const _0x4a896e=a56_0x4a89();return a56_0x1f77=function(_0x1f77a7,_0x305224){_0x1f77a7=_0x1f77a7-0xd7;let _0x1ee9f3=_0x4a896e[_0x1f77a7];return _0x1ee9f3;},a56_0x1f77(_0x149143,_0x4ac9ee);}const fs=require('fs'),path=require(a56_0x2bc7cb(0x13c)),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require('../../helpers/test-observability/constants'),{nestedKeyValue}=require(a56_0x2bc7cb(0x128)),logger=require(a56_0x2bc7cb(0x12f))[a56_0x2bc7cb(0xd7)],util=require(a56_0x2bc7cb(0x12e)),helper=require(a56_0x2bc7cb(0x128)),{createClassLogger}=require(a56_0x2bc7cb(0x115)),lockfile=require('proper-lockfile');function a56_0x4a89(){const _0x327f0b=['setTestDetails\x20','__projectId','1618422TCoeKb','join','Setting\x20up\x20TestInfo\x20directory\x20at\x20','uuid','existsSync','forEach','OByac','AlBai','dirPath','getTestUUID','GcDfX','3783510wbbgPc','getAccessibilityPlatformValidation','Error\x20handling\x20trace\x20file\x20paths:\x20%O','mkdirSync','getStoreDirName','shutdown','appendFileSync','recursive','\x20Setting\x20\x20test\x20details\x20for\x20','project','stringify','TestInfo','getTestRunIdFromTestInfo','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','../../helpers/classLogger.js','tests','appendToTracePaths','gkesd','utf8','parse','getTestIdFromTestInfo','traceZipPaths','force','filePath','processId:\x20','_traceZipPaths.json','dqsKr','getTraceZipDir','TtKVR','debug','readdirSync','dirname','pid','../../helpers/helper','error','_platformDetails.json','string','dkCoC','homedir','util','../../helpers/logger','IJnIB','env','337554WKWaJz','RPbyK','getStoreDirPath','.browserstack','split','3599712SxMUCA','traceZipDir','qCmFS','some','resolve','path','rkZpt','setAccessibilityPlatformValidation','push','winstonLogger','670400QirCLQ','endsWith','getProjectIdFromTestInfo','779776OhwSCN','Error\x20reading\x20trace\x20file\x20paths:\x20%O','BS_TESTOPS_BUILD_HASHED_ID','exports','rmSync','KWuMO','10GttuHC','default','_projectId','testId','bkouL','setup','getFilePath','toString','_test','addTraceFilePath','readFileSync','jgHem','warn','Wlehp','.json','logger','.txt','13131713VxCYLQ','ZiHRt','Failed\x20to\x20acquire\x20lock\x20for\x20','format','\x20with\x20details:\x20','pAsuj','writeFileSync','HUEgZ'];a56_0x4a89=function(){return _0x327f0b;};return a56_0x4a89();}class TestInfo{static [a56_0x2bc7cb(0x116)]={};static [a56_0x2bc7cb(0x104)]=TestInfo[a56_0x2bc7cb(0x10b)]();static [a56_0x2bc7cb(0x138)]=path[a56_0x2bc7cb(0xfd)](TestInfo[a56_0x2bc7cb(0x104)],'traceZipPaths');[a56_0x2bc7cb(0xf0)]=createClassLogger(a56_0x2bc7cb(0x112));static[a56_0x2bc7cb(0xe6)](){const _0x368752=a56_0x2bc7cb,_0x2e0922={};_0x2e0922[_0x368752(0x133)]='4|3|5|2|0|1',_0x2e0922[_0x368752(0xf9)]=_0x368752(0x11c);const _0xa90468=_0x2e0922,_0x427ddf=_0xa90468[_0x368752(0x133)][_0x368752(0x136)]('|');let _0x49fe00=0x0;while(!![]){switch(_0x427ddf[_0x49fe00++]){case'0':const _0x2080af={};_0x2080af[_0x368752(0x10e)]=!![],fs['mkdirSync'](this[_0x368752(0x138)],_0x2080af);continue;case'1':logger['info'](_0x368752(0xfe)+this[_0x368752(0x104)]);continue;case'2':const _0x359d83={};_0x359d83[_0x368752(0x10e)]=!![],fs[_0x368752(0x10a)](this['dirPath'],_0x359d83);continue;case'3':this[_0x368752(0x138)]=path[_0x368752(0xfd)](this['dirPath'],_0xa90468[_0x368752(0xf9)]);continue;case'4':this[_0x368752(0x104)]=TestInfo[_0x368752(0x10b)]();continue;case'5':this[_0x368752(0x10c)]();continue;}break;}}static[a56_0x2bc7cb(0x10b)](){const _0x105280=a56_0x2bc7cb,_0x215a19={};_0x215a19[_0x105280(0xee)]=function(_0x9e2163,_0x4345a3){return _0x9e2163+_0x4345a3;};const _0x523037=_0x215a19;return _0x523037[_0x105280(0xee)](_0x523037[_0x105280(0xee)](TEMP_STORE_DIR_NAME,'-'),process[_0x105280(0x131)][_0x105280(0xdd)]);}static['getStoreDirPath'](){const _0x2476ba=a56_0x2bc7cb,_0x53c44f={};_0x53c44f['dqsKr']=function(_0xa47d75,_0x2388a3){return _0xa47d75+_0x2388a3;},_0x53c44f['IJnIB']=_0x2476ba(0xe2);const _0x144783=_0x53c44f;return path['join'](_0x144783[_0x2476ba(0x121)](_0x144783[_0x2476ba(0x121)](TEMP_STORE_DIR_NAME,'-'),process[_0x2476ba(0x131)][_0x2476ba(0xdd)]||_0x144783[_0x2476ba(0x130)]));}static[a56_0x2bc7cb(0x122)](){const _0x29ea29=a56_0x2bc7cb,_0x534d9a={};_0x534d9a['nTskW']='traceZipPaths';const _0x3df69d=_0x534d9a;return path[_0x29ea29(0xfd)](this[_0x29ea29(0x134)](),_0x3df69d['nTskW']);}static[a56_0x2bc7cb(0xe7)](_0x3e2fcf){const _0x1f5afe=a56_0x2bc7cb,_0x139b88={};_0x139b88['IptcI']=function(_0x1457e7,_0x2324ca){return _0x1457e7+_0x2324ca;},_0x139b88['ZiHRt']=_0x1f5afe(0xef);const _0x482be7=_0x139b88;return path[_0x1f5afe(0xfd)](this[_0x1f5afe(0x104)],_0x482be7['IptcI'](_0x3e2fcf,_0x482be7[_0x1f5afe(0xf3)]));}static[a56_0x2bc7cb(0x113)](_0x3602aa){const _0x5c5e57=a56_0x2bc7cb,_0x293b41={};_0x293b41['GcDfX']=function(_0x2ee76e,_0x14dc51){return _0x2ee76e+_0x14dc51;};const _0x3c55d5=_0x293b41;return _0x3c55d5[_0x5c5e57(0x106)](_0x3c55d5[_0x5c5e57(0x106)](_0x3c55d5[_0x5c5e57(0x106)](_0x3c55d5[_0x5c5e57(0x106)](this[_0x5c5e57(0xda)](_0x3602aa),'-'),this[_0x5c5e57(0x11b)](_0x3602aa)),'-'),_0x3602aa['retry']);}static[a56_0x2bc7cb(0xda)](_0x1de74d){const _0x8d4699=a56_0x2bc7cb,_0x21fdc4={'gkesd':function(_0x278c9d,_0x41e67e,_0x2ec57b){return _0x278c9d(_0x41e67e,_0x2ec57b);},'bkouL':_0x8d4699(0xe9),'VPilN':_0x8d4699(0xe3),'RiLta':_0x8d4699(0x110),'cUGmO':_0x8d4699(0xfb)};return _0x21fdc4[_0x8d4699(0x118)](nestedKeyValue,_0x1de74d,[_0x21fdc4[_0x8d4699(0xe5)],_0x21fdc4['VPilN']])||_0x21fdc4[_0x8d4699(0x118)](nestedKeyValue,_0x1de74d,[_0x21fdc4['RiLta'],_0x21fdc4['cUGmO']]);}static['getTestIdFromTestInfo'](_0x228e42){const _0x518620=a56_0x2bc7cb,_0x14c25b={'Knofm':function(_0x1dd8f2,_0x22cf77,_0x4507c5){return _0x1dd8f2(_0x22cf77,_0x4507c5);},'rkZpt':_0x518620(0xe9)};return _0x14c25b['Knofm'](nestedKeyValue,_0x228e42,[_0x14c25b[_0x518620(0x13d)],'id'])||_0x228e42[_0x518620(0xe4)];}static[a56_0x2bc7cb(0x105)](_0x1862a3){const _0x1a787b=a56_0x2bc7cb,_0x15e817={'pAsuj':function(_0x1fb02a,_0x4b1e5c){return _0x1fb02a===_0x4b1e5c;},'qCmFS':_0x1a787b(0x12b),'oQDlR':function(_0x83b5f6){return _0x83b5f6();}};try{if(this[_0x1a787b(0x116)][_0x1862a3]&&_0x15e817[_0x1a787b(0xf7)](typeof this[_0x1a787b(0x116)][_0x1862a3][_0x1a787b(0xff)],_0x15e817[_0x1a787b(0x139)]))return this[_0x1a787b(0x116)][_0x1862a3][_0x1a787b(0xff)];const _0x295399=this[_0x1a787b(0xe7)](_0x1862a3),_0x3ecdbf=path[_0x1a787b(0x13b)](_0x295399);if(fs[_0x1a787b(0x100)](_0x3ecdbf)){const _0x3116bf=JSON[_0x1a787b(0x11a)](fs[_0x1a787b(0xeb)](_0x295399)[_0x1a787b(0xe8)]());return this[_0x1a787b(0x116)][_0x1862a3]=_0x3116bf,this['tests'][_0x1862a3]['uuid'];}return this['tests'][_0x1862a3]={'uuid':_0x15e817['oQDlR'](uuidv4)},fs['writeFileSync'](_0x295399,JSON[_0x1a787b(0x111)](this['tests'][_0x1862a3])),this[_0x1a787b(0x116)][_0x1862a3][_0x1a787b(0xff)];}catch(_0x245c84){return logger[_0x1a787b(0x129)](_0x1a787b(0x114)+_0x1862a3+':\x20'+_0x245c84['message']),null;}}static[a56_0x2bc7cb(0x108)](_0x4ca043){const _0x1eb785=a56_0x2bc7cb,_0x251182=path[_0x1eb785(0xfd)](this[_0x1eb785(0x104)],_0x4ca043+'_platformDetails.json');if(fs[_0x1eb785(0x100)](_0x251182))return fs[_0x1eb785(0xeb)](_0x251182)[_0x1eb785(0xe8)]();}static[a56_0x2bc7cb(0x13e)](_0x419ceb,_0x575c62){const _0x2bfc10=a56_0x2bc7cb,_0x39d704=path[_0x2bfc10(0xfd)](this[_0x2bfc10(0x104)],_0x575c62+_0x2bfc10(0x12a));fs[_0x2bfc10(0xf8)](_0x39d704,_0x419ceb[_0x2bfc10(0xe8)]());}static['shutdown'](){const _0x77533b=a56_0x2bc7cb,_0x183650={};_0x183650['recursive']=!![],_0x183650[_0x77533b(0x11d)]=!![],fs[_0x77533b(0xdf)](this[_0x77533b(0x104)],_0x183650);}static['getTestDetails'](_0x322aa1){const _0xde977f=a56_0x2bc7cb,_0x8503d5=this[_0xde977f(0xe7)](_0x322aa1);if(fs[_0xde977f(0x100)](_0x8503d5))try{const _0x44268b=JSON['parse'](fs['readFileSync'](_0x8503d5)[_0xde977f(0xe8)]());return this['tests'][_0x322aa1]=_0x44268b,_0x44268b;}catch(_0x3aef20){return logger['warn'](_0xde977f(0xf4)+_0x8503d5+':\x20'+util[_0xde977f(0xf5)](_0x3aef20)+'.\x20Returning\x20empty\x20test\x20details.'),{};}return{};}static['setTestDetails'](_0x24dfe0,_0x11189d){const _0x57f487=a56_0x2bc7cb,_0x217aa0={'bBhle':_0x57f487(0xfa),'KXzLL':function(_0x4a7bd4){return _0x4a7bd4();}};logger[_0x57f487(0x124)](_0x217aa0['bBhle']),logger[_0x57f487(0x124)](_0x57f487(0x11f)+process[_0x57f487(0x127)]+_0x57f487(0x10f)+_0x24dfe0+_0x57f487(0xf6)+JSON[_0x57f487(0x111)](_0x11189d));const _0x52d51e=this[_0x57f487(0xe7)](_0x24dfe0);if(fs[_0x57f487(0x100)](_0x52d51e))try{const _0x31aed6=lockfile['lockSync'](_0x52d51e),_0x5c4aa3=JSON[_0x57f487(0x11a)](fs[_0x57f487(0xeb)](_0x52d51e)['toString']()),_0x36c1a6={..._0x5c4aa3,..._0x11189d};this['tests'][_0x24dfe0]=_0x36c1a6,fs[_0x57f487(0xf8)](_0x52d51e,JSON['stringify'](this[_0x57f487(0x116)][_0x24dfe0])),_0x217aa0['KXzLL'](_0x31aed6);}catch(_0x36e931){logger[_0x57f487(0xed)](_0x57f487(0xf4)+_0x52d51e+':\x20'+util[_0x57f487(0xf5)](_0x36e931)+'.\x20Unable\x20to\x20set\x20test\x20details.');}}static[a56_0x2bc7cb(0xea)](_0x1c5a5a){const _0x1f22af=a56_0x2bc7cb,_0x4e56ba={};_0x4e56ba[_0x1f22af(0x103)]=_0x1f22af(0x109);const _0x5c325d=_0x4e56ba;try{const _0x298c58=process[_0x1f22af(0x127)],_0x320156=path['join'](TestInfo[_0x1f22af(0x122)](),_0x298c58+_0x1f22af(0x120));let _0x57d453=[];fs['existsSync'](_0x320156)&&(_0x57d453=JSON['parse'](fs['readFileSync'](_0x320156)[_0x1f22af(0xe8)]()));if(!_0x57d453[_0x1f22af(0x13a)](_0x50ce3b=>_0x50ce3b[_0x1f22af(0x11e)]===_0x1c5a5a[_0x1f22af(0x11e)])){_0x57d453[_0x1f22af(0x13f)](_0x1c5a5a);const _0x1ed487=path[_0x1f22af(0x126)](_0x320156);if(!fs[_0x1f22af(0x100)](_0x1ed487)){const _0x34267b={};_0x34267b[_0x1f22af(0x10e)]=!![],fs[_0x1f22af(0x10a)](_0x1ed487,_0x34267b);}fs[_0x1f22af(0xf8)](_0x320156,JSON[_0x1f22af(0x111)](_0x57d453));}}catch(_0x53f6e4){logger[_0x1f22af(0x129)](util['format'](_0x5c325d[_0x1f22af(0x103)],_0x53f6e4));}}static['getTraceFilePaths'](){const _0x5a994c=a56_0x2bc7cb,_0x307f2={};_0x307f2[_0x5a994c(0x12c)]=_0x5a994c(0x120),_0x307f2[_0x5a994c(0x102)]=_0x5a994c(0xdc);const _0x5afc0c=_0x307f2,_0x15c137=[];try{const _0x1c3181=TestInfo[_0x5a994c(0x122)]();if(!fs[_0x5a994c(0x100)](_0x1c3181))return _0x15c137;const _0x4b4d6b=fs[_0x5a994c(0x125)](_0x1c3181);_0x4b4d6b[_0x5a994c(0x101)](_0x37651b=>{const _0x4d0051=_0x5a994c;if(_0x37651b[_0x4d0051(0xd9)](_0x5afc0c['dkCoC'])){const _0x2fe127=JSON[_0x4d0051(0x11a)](fs['readFileSync'](path[_0x4d0051(0xfd)](_0x1c3181,_0x37651b))[_0x4d0051(0xe8)]());_0x15c137[_0x4d0051(0x13f)](..._0x2fe127);}});}catch(_0x1aad2d){logger[_0x5a994c(0x129)](util['format'](_0x5afc0c[_0x5a994c(0x102)],_0x1aad2d));}const _0x438dcf={};return _0x15c137[_0x5a994c(0x101)](_0xacbda0=>{const _0x372a73=_0x5a994c;_0x438dcf[_0xacbda0[_0x372a73(0x11e)]]=_0xacbda0;}),Object['values'](_0x438dcf);}static[a56_0x2bc7cb(0x117)](_0x415188,_0x2b9ec2){const _0x48d0cc=a56_0x2bc7cb,_0xb4a8={};_0xb4a8[_0x48d0cc(0xe0)]=_0x48d0cc(0x135),_0xb4a8[_0x48d0cc(0x123)]=_0x48d0cc(0x119),_0xb4a8[_0x48d0cc(0xec)]='Error\x20writing\x20trace\x20file:\x20%O';const _0x486c88=_0xb4a8;try{const _0x3608ff=path[_0x48d0cc(0xfd)](helper[_0x48d0cc(0x12d)](),_0x486c88[_0x48d0cc(0xe0)]);if(!fs['existsSync'](_0x3608ff)){const _0x11e62e={};_0x11e62e[_0x48d0cc(0x10e)]=!![],fs['mkdirSync'](_0x3608ff,_0x11e62e);}fs[_0x48d0cc(0x10d)](path['join'](_0x3608ff,'trace_'+_0x2b9ec2+_0x48d0cc(0xf1)),_0x415188+'\x0a',_0x486c88[_0x48d0cc(0x123)]);}catch(_0x4d9739){logger[_0x48d0cc(0x129)](util[_0x48d0cc(0xf5)](_0x486c88['jgHem'],_0x4d9739));}}}module[a56_0x2bc7cb(0xde)]=TestInfo;
1
+ const a56_0x550476=a56_0x2879;(function(_0xd955af,_0x5d5ff4){const _0x472f20=a56_0x2879,_0x1c6681=_0xd955af();while(!![]){try{const _0x2e5560=-parseInt(_0x472f20(0x10c))/0x1+-parseInt(_0x472f20(0xff))/0x2*(-parseInt(_0x472f20(0xb3))/0x3)+-parseInt(_0x472f20(0xda))/0x4+parseInt(_0x472f20(0x115))/0x5*(-parseInt(_0x472f20(0xb8))/0x6)+-parseInt(_0x472f20(0xd3))/0x7*(parseInt(_0x472f20(0x107))/0x8)+parseInt(_0x472f20(0xdb))/0x9*(parseInt(_0x472f20(0xec))/0xa)+parseInt(_0x472f20(0xcf))/0xb*(parseInt(_0x472f20(0xfb))/0xc);if(_0x2e5560===_0x5d5ff4)break;else _0x1c6681['push'](_0x1c6681['shift']());}catch(_0x3682e8){_0x1c6681['push'](_0x1c6681['shift']());}}}(a56_0x546e,0x8aff9));const fs=require('fs'),path=require(a56_0x550476(0x10d)),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require('../../helpers/test-observability/constants'),{nestedKeyValue}=require(a56_0x550476(0xcd)),logger=require(a56_0x550476(0x106))['winstonLogger'],util=require(a56_0x550476(0xbe)),helper=require('../../helpers/helper'),{createClassLogger}=require(a56_0x550476(0xb6)),lockfile=require('proper-lockfile');function a56_0x2879(_0x14e0c1,_0xfa2838){const _0x546e90=a56_0x546e();return a56_0x2879=function(_0x28799f,_0x3849ea){_0x28799f=_0x28799f-0xb3;let _0x6ea183=_0x546e90[_0x28799f];return _0x6ea183;},a56_0x2879(_0x14e0c1,_0xfa2838);}class TestInfo{static [a56_0x550476(0xd2)]={};static [a56_0x550476(0xd7)]=TestInfo[a56_0x550476(0x124)]();static [a56_0x550476(0xde)]=path[a56_0x550476(0xfa)](TestInfo[a56_0x550476(0xd7)],a56_0x550476(0xcc));['logger']=createClassLogger(a56_0x550476(0xba));static[a56_0x550476(0x103)](){const _0x2cd6c3=a56_0x550476,_0x31da05={};_0x31da05[_0x2cd6c3(0xb7)]=_0x2cd6c3(0x101),_0x31da05[_0x2cd6c3(0xf9)]=_0x2cd6c3(0xcc);const _0xd94bcb=_0x31da05,_0x1362ea=_0xd94bcb['YAZFt']['split']('|');let _0x29801d=0x0;while(!![]){switch(_0x1362ea[_0x29801d++]){case'0':const _0x5d4c52={};_0x5d4c52[_0x2cd6c3(0x118)]=!![],fs[_0x2cd6c3(0x102)](this[_0x2cd6c3(0xde)],_0x5d4c52);continue;case'1':const _0x51b691={};_0x51b691[_0x2cd6c3(0x118)]=!![],fs[_0x2cd6c3(0x102)](this[_0x2cd6c3(0xd7)],_0x51b691);continue;case'2':logger['info'](_0x2cd6c3(0xbd)+this['dirPath']);continue;case'3':this[_0x2cd6c3(0xd7)]=TestInfo['getStoreDirName']();continue;case'4':this[_0x2cd6c3(0x113)]();continue;case'5':this['traceZipDir']=path['join'](this[_0x2cd6c3(0xd7)],_0xd94bcb['iaTYd']);continue;}break;}}static[a56_0x550476(0x124)](){const _0x558b88=a56_0x550476,_0x300997={};_0x300997[_0x558b88(0x121)]=function(_0x394a95,_0x938f90){return _0x394a95+_0x938f90;};const _0x412784=_0x300997;return _0x412784['ZFCmV'](_0x412784[_0x558b88(0x121)](TEMP_STORE_DIR_NAME,'-'),process[_0x558b88(0xf0)][_0x558b88(0x114)]);}static[a56_0x550476(0xd6)](){const _0x21cbe2=a56_0x550476,_0x239c91={};_0x239c91['SRKMO']=function(_0x2d3e71,_0x49935b){return _0x2d3e71+_0x49935b;},_0x239c91[_0x21cbe2(0xea)]='default';const _0xd51813=_0x239c91;return path[_0x21cbe2(0xfa)](_0xd51813[_0x21cbe2(0x109)](_0xd51813[_0x21cbe2(0x109)](TEMP_STORE_DIR_NAME,'-'),process[_0x21cbe2(0xf0)][_0x21cbe2(0x114)]||_0xd51813['AQWrD']));}static[a56_0x550476(0xc8)](){const _0x59b531=a56_0x550476,_0x1b53fe={};_0x1b53fe[_0x59b531(0xe9)]=_0x59b531(0xcc);const _0x15774b=_0x1b53fe;return path['join'](this[_0x59b531(0xd6)](),_0x15774b[_0x59b531(0xe9)]);}static[a56_0x550476(0xe3)](_0x4b868e){const _0x3e310b=a56_0x550476,_0x31092b={};_0x31092b[_0x3e310b(0xfd)]=function(_0xa0c448,_0x475686){return _0xa0c448+_0x475686;},_0x31092b[_0x3e310b(0xb4)]=_0x3e310b(0x11e);const _0x5d1f3f=_0x31092b;return path[_0x3e310b(0xfa)](this[_0x3e310b(0xd7)],_0x5d1f3f['xcBbS'](_0x4b868e,_0x5d1f3f[_0x3e310b(0xb4)]));}static[a56_0x550476(0xc3)](_0xb93de1){const _0x1dcc75=a56_0x550476,_0x2e812a={};_0x2e812a[_0x1dcc75(0xed)]=function(_0x10d441,_0x394f0){return _0x10d441+_0x394f0;},_0x2e812a[_0x1dcc75(0xdd)]=function(_0xc3a5,_0x3cdb5d){return _0xc3a5+_0x3cdb5d;},_0x2e812a['ymCFC']=function(_0x4531aa,_0x120713){return _0x4531aa+_0x120713;};const _0x5c571f=_0x2e812a;return _0x5c571f[_0x1dcc75(0xed)](_0x5c571f[_0x1dcc75(0xdd)](_0x5c571f[_0x1dcc75(0xed)](_0x5c571f[_0x1dcc75(0x119)](this[_0x1dcc75(0xd8)](_0xb93de1),'-'),this[_0x1dcc75(0xe0)](_0xb93de1)),'-'),_0xb93de1[_0x1dcc75(0xf7)]);}static['getProjectIdFromTestInfo'](_0x3b04b3){const _0x30054c=a56_0x550476,_0x3fb046={'sQTQK':function(_0x200b0c,_0x41c4cb,_0x237b9f){return _0x200b0c(_0x41c4cb,_0x237b9f);},'PDFcD':_0x30054c(0x11a),'EzmPc':'_projectId','XvFzC':function(_0x58070e,_0x5c0121,_0x1432c4){return _0x58070e(_0x5c0121,_0x1432c4);},'hkxiV':'project','qzPYl':_0x30054c(0xdc)};return _0x3fb046[_0x30054c(0xf1)](nestedKeyValue,_0x3b04b3,[_0x3fb046[_0x30054c(0xe7)],_0x3fb046[_0x30054c(0x11b)]])||_0x3fb046[_0x30054c(0x117)](nestedKeyValue,_0x3b04b3,[_0x3fb046[_0x30054c(0x120)],_0x3fb046[_0x30054c(0xef)]]);}static[a56_0x550476(0xe0)](_0x2016c3){const _0x590886=a56_0x550476,_0x4137ce={'NtVIN':function(_0x296a97,_0x1f17f2,_0x25d5f3){return _0x296a97(_0x1f17f2,_0x25d5f3);},'zygvg':_0x590886(0x11a)};return _0x4137ce[_0x590886(0xcb)](nestedKeyValue,_0x2016c3,[_0x4137ce[_0x590886(0xdf)],'id'])||_0x2016c3[_0x590886(0xe5)];}static[a56_0x550476(0xc0)](_0x22cc73){const _0x5649bb=a56_0x550476,_0x48b83e={'TPrFr':function(_0x34ecc6,_0x4c3ce0){return _0x34ecc6===_0x4c3ce0;},'RysCb':_0x5649bb(0xfc),'cqRsu':function(_0x38bfc1){return _0x38bfc1();}};try{if(this[_0x5649bb(0xd2)][_0x22cc73]&&_0x48b83e['TPrFr'](typeof this[_0x5649bb(0xd2)][_0x22cc73][_0x5649bb(0xc9)],_0x48b83e[_0x5649bb(0xd5)]))return this[_0x5649bb(0xd2)][_0x22cc73][_0x5649bb(0xc9)];const _0xb86fd7=this[_0x5649bb(0xe3)](_0x22cc73),_0x15822d=path[_0x5649bb(0x11c)](_0xb86fd7);if(fs[_0x5649bb(0xe2)](_0x15822d)){const _0x257b00=JSON[_0x5649bb(0xbc)](fs[_0x5649bb(0xbb)](_0xb86fd7)[_0x5649bb(0xee)]());return this['tests'][_0x22cc73]=_0x257b00,this['tests'][_0x22cc73][_0x5649bb(0xc9)];}return this[_0x5649bb(0xd2)][_0x22cc73]={'uuid':_0x48b83e[_0x5649bb(0xd0)](uuidv4)},fs[_0x5649bb(0x100)](_0xb86fd7,JSON[_0x5649bb(0x116)](this['tests'][_0x22cc73])),this['tests'][_0x22cc73]['uuid'];}catch(_0xf1aa53){return logger[_0x5649bb(0xe1)](_0x5649bb(0x108)+_0x22cc73+':\x20'+_0xf1aa53[_0x5649bb(0xd4)]),null;}}static[a56_0x550476(0x105)](_0x412ece){const _0x2f5b47=a56_0x550476,_0x807961=path['join'](this[_0x2f5b47(0xd7)],_0x412ece+_0x2f5b47(0xfe));if(fs[_0x2f5b47(0xe2)](_0x807961))return fs[_0x2f5b47(0xbb)](_0x807961)[_0x2f5b47(0xee)]();}static[a56_0x550476(0xf2)](_0x3d0f6c,_0x5b241b){const _0x5e2f8f=a56_0x550476,_0x53220b=path['join'](this[_0x5e2f8f(0xd7)],_0x5b241b+'_platformDetails.json');fs[_0x5e2f8f(0x100)](_0x53220b,_0x3d0f6c[_0x5e2f8f(0xee)]());}static[a56_0x550476(0x113)](){const _0x5dda19=a56_0x550476,_0x4b6a06={};_0x4b6a06[_0x5dda19(0x118)]=!![],_0x4b6a06[_0x5dda19(0xbf)]=!![],fs[_0x5dda19(0xc7)](this[_0x5dda19(0xd7)],_0x4b6a06);}static[a56_0x550476(0x10a)](_0x854a98){const _0x493265=a56_0x550476,_0x202be4=this[_0x493265(0xe3)](_0x854a98);if(fs['existsSync'](_0x202be4))try{const _0x710fb1=JSON['parse'](fs[_0x493265(0xbb)](_0x202be4)[_0x493265(0xee)]());return this['tests'][_0x854a98]=_0x710fb1,_0x710fb1;}catch(_0x41b5fc){return logger[_0x493265(0x10e)](_0x493265(0x123)+_0x202be4+':\x20'+util[_0x493265(0xc2)](_0x41b5fc)+_0x493265(0xf4)),{};}return{};}static['setTestDetails'](_0x3fceb3,_0x4e808b){const _0x5d4425=a56_0x550476,_0x2ec7de={'TkeGa':'setTestDetails\x20','McPuV':function(_0x3260fc){return _0x3260fc();}};logger[_0x5d4425(0xe6)](_0x2ec7de[_0x5d4425(0xd9)]),logger[_0x5d4425(0xe6)]('processId:\x20'+process[_0x5d4425(0xf3)]+_0x5d4425(0x10b)+_0x3fceb3+_0x5d4425(0x110)+JSON[_0x5d4425(0x116)](_0x4e808b));const _0x499aa0=this[_0x5d4425(0xe3)](_0x3fceb3);if(fs['existsSync'](_0x499aa0))try{const _0x2a4ba3=lockfile[_0x5d4425(0xc1)](_0x499aa0),_0x3d58d=JSON[_0x5d4425(0xbc)](fs[_0x5d4425(0xbb)](_0x499aa0)[_0x5d4425(0xee)]()),_0x1bc54b={..._0x3d58d,..._0x4e808b};this['tests'][_0x3fceb3]=_0x1bc54b,fs['writeFileSync'](_0x499aa0,JSON['stringify'](this['tests'][_0x3fceb3])),_0x2ec7de['McPuV'](_0x2a4ba3);}catch(_0x441c62){logger[_0x5d4425(0x10e)](_0x5d4425(0x123)+_0x499aa0+':\x20'+util[_0x5d4425(0xc2)](_0x441c62)+_0x5d4425(0xe4));}}static[a56_0x550476(0xeb)](_0x459bbb){const _0x4dce24=a56_0x550476,_0x24f2e2={};_0x24f2e2[_0x4dce24(0xc4)]='Error\x20handling\x20trace\x20file\x20paths:\x20%O';const _0xec47b=_0x24f2e2;try{const _0xc54a93=process[_0x4dce24(0xf3)],_0x56e8bf=path[_0x4dce24(0xfa)](TestInfo[_0x4dce24(0xc8)](),_0xc54a93+_0x4dce24(0x112));let _0x557ee1=[];fs['existsSync'](_0x56e8bf)&&(_0x557ee1=JSON['parse'](fs[_0x4dce24(0xbb)](_0x56e8bf)['toString']()));if(!_0x557ee1[_0x4dce24(0xb9)](_0x294cdb=>_0x294cdb[_0x4dce24(0x104)]===_0x459bbb[_0x4dce24(0x104)])){_0x557ee1[_0x4dce24(0xc6)](_0x459bbb);const _0x4d2c23=path[_0x4dce24(0xf6)](_0x56e8bf);if(!fs[_0x4dce24(0xe2)](_0x4d2c23)){const _0x127f42={};_0x127f42[_0x4dce24(0x118)]=!![],fs[_0x4dce24(0x102)](_0x4d2c23,_0x127f42);}fs[_0x4dce24(0x100)](_0x56e8bf,JSON[_0x4dce24(0x116)](_0x557ee1));}}catch(_0x5d5984){logger[_0x4dce24(0xe1)](util[_0x4dce24(0xc2)](_0xec47b['jVrcy'],_0x5d5984));}}static[a56_0x550476(0xce)](){const _0x38188b=a56_0x550476,_0x314ccf={};_0x314ccf[_0x38188b(0xf5)]=_0x38188b(0x112),_0x314ccf['piVSA']='Error\x20reading\x20trace\x20file\x20paths:\x20%O';const _0x3eed98=_0x314ccf,_0x2de047=[];try{const _0x289b58=TestInfo[_0x38188b(0xc8)]();if(!fs[_0x38188b(0xe2)](_0x289b58))return _0x2de047;const _0x4037b4=fs[_0x38188b(0xe8)](_0x289b58);_0x4037b4['forEach'](_0x1203af=>{const _0x1f453d=_0x38188b;if(_0x1203af[_0x1f453d(0x122)](_0x3eed98[_0x1f453d(0xf5)])){const _0x106b68=JSON[_0x1f453d(0xbc)](fs[_0x1f453d(0xbb)](path[_0x1f453d(0xfa)](_0x289b58,_0x1203af))[_0x1f453d(0xee)]());_0x2de047[_0x1f453d(0xc6)](..._0x106b68);}});}catch(_0x37aebb){logger[_0x38188b(0xe1)](util[_0x38188b(0xc2)](_0x3eed98['piVSA'],_0x37aebb));}const _0x10c3f9={};return _0x2de047[_0x38188b(0xd1)](_0x4f8870=>{const _0x4a372c=_0x38188b;_0x10c3f9[_0x4f8870[_0x4a372c(0x104)]]=_0x4f8870;}),Object['values'](_0x10c3f9);}static[a56_0x550476(0x11f)](_0x210d8b,_0x5a85ce){const _0x493499=a56_0x550476,_0x29e6eb={};_0x29e6eb['qZKEr']='.browserstack',_0x29e6eb[_0x493499(0xb5)]='utf8',_0x29e6eb[_0x493499(0x10f)]=_0x493499(0x11d);const _0x3195ca=_0x29e6eb;try{const _0x6c445=path[_0x493499(0xfa)](helper[_0x493499(0xc5)](),_0x3195ca[_0x493499(0xca)]);if(!fs[_0x493499(0xe2)](_0x6c445)){const _0x4fcc5d={};_0x4fcc5d[_0x493499(0x118)]=!![],fs[_0x493499(0x102)](_0x6c445,_0x4fcc5d);}fs['appendFileSync'](path['join'](_0x6c445,_0x493499(0x111)+_0x5a85ce+'.txt'),_0x210d8b+'\x0a',_0x3195ca[_0x493499(0xb5)]);}catch(_0x1bd22f){logger['error'](util[_0x493499(0xc2)](_0x3195ca[_0x493499(0x10f)],_0x1bd22f));}}}function a56_0x546e(){const _0xe0a65d=['5xQBnTC','stringify','XvFzC','recursive','ymCFC','_test','EzmPc','resolve','Error\x20writing\x20trace\x20file:\x20%O','.json','appendToTracePaths','hkxiV','ZFCmV','endsWith','Failed\x20to\x20acquire\x20lock\x20for\x20','getStoreDirName','219fXJLTY','BMJkz','Wveij','../../helpers/classLogger.js','YAZFt','4492146XFqJJN','some','TestInfo','readFileSync','parse','Setting\x20up\x20TestInfo\x20directory\x20at\x20','util','force','getTestUUID','lockSync','format','getTestRunIdFromTestInfo','jVrcy','homedir','push','rmSync','getTraceZipDir','uuid','qZKEr','NtVIN','traceZipPaths','../../helpers/helper','getTraceFilePaths','7965980tqgryS','cqRsu','forEach','tests','264369cXUpna','message','RysCb','getStoreDirPath','dirPath','getProjectIdFromTestInfo','TkeGa','3826856dNlYEl','2785554VaBveh','__projectId','esQzb','traceZipDir','zygvg','getTestIdFromTestInfo','error','existsSync','getFilePath','.\x20Unable\x20to\x20set\x20test\x20details.','testId','debug','PDFcD','readdirSync','hMxis','AQWrD','addTraceFilePath','20JxApdC','dYedV','toString','qzPYl','env','sQTQK','setAccessibilityPlatformValidation','pid','.\x20Returning\x20empty\x20test\x20details.','iEiuz','dirname','retry','exports','iaTYd','join','24PJQMFE','string','xcBbS','_platformDetails.json','19976CoCaXr','writeFileSync','3|5|4|1|0|2','mkdirSync','setup','filePath','getAccessibilityPlatformValidation','../../helpers/logger','88wvJhrG','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','SRKMO','getTestDetails','\x20Setting\x20\x20test\x20details\x20for\x20','106317ohTxJI','path','warn','gSGkk','\x20with\x20details:\x20','trace_','_traceZipPaths.json','shutdown','BS_TESTOPS_BUILD_HASHED_ID'];a56_0x546e=function(){return _0xe0a65d;};return a56_0x546e();}module[a56_0x550476(0xf8)]=TestInfo;
@@ -1 +1 @@
1
- const a57_0xd94aa0=a57_0x4147;(function(_0x1b6a00,_0x4be91c){const _0x4245db=a57_0x4147,_0x1226a2=_0x1b6a00();while(!![]){try{const _0x387f4e=-parseInt(_0x4245db(0x237))/0x1*(-parseInt(_0x4245db(0x23d))/0x2)+parseInt(_0x4245db(0x220))/0x3*(-parseInt(_0x4245db(0x20f))/0x4)+-parseInt(_0x4245db(0x292))/0x5+-parseInt(_0x4245db(0x1e7))/0x6*(-parseInt(_0x4245db(0x298))/0x7)+parseInt(_0x4245db(0x26a))/0x8*(-parseInt(_0x4245db(0x254))/0x9)+-parseInt(_0x4245db(0x296))/0xa+parseInt(_0x4245db(0x28f))/0xb;if(_0x387f4e===_0x4be91c)break;else _0x1226a2['push'](_0x1226a2['shift']());}catch(_0x49a1d1){_0x1226a2['push'](_0x1226a2['shift']());}}}(a57_0x1cf0,0xab866));function a57_0x4147(_0x8f76ca,_0xb88e1b){const _0x1cf02b=a57_0x1cf0();return a57_0x4147=function(_0x4147cf,_0x1235f9){_0x4147cf=_0x4147cf-0x1d9;let _0x41234f=_0x1cf02b[_0x4147cf];return _0x41234f;},a57_0x4147(_0x8f76ca,_0xb88e1b);}const {spawn}=require('child_process'),GrpcClient=require(a57_0xd94aa0(0x27a)),util=require('util'),CLIUtils=require(a57_0xd94aa0(0x25a)),PlaywrightAutomationFramework=require(a57_0xd94aa0(0x27e)),PlaywrightTestFramework=require(a57_0xd94aa0(0x26d)),{createClassLogger}=require('../../helpers/classLogger.js'),PerformanceTester=require(a57_0xd94aa0(0x29b)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),AccessibilityModule=require(a57_0xd94aa0(0x265)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0xd94aa0(0x259)),helper=require(a57_0xd94aa0(0x20a)),TestFrameworkConstants=require(a57_0xd94aa0(0x248)),TestInfo=require(a57_0xd94aa0(0x206));class BrowserstackCLI{static #instance=null;static [a57_0xd94aa0(0x291)]=null;static [a57_0xd94aa0(0x1dd)]=null;static [a57_0xd94aa0(0x23c)]=null;[a57_0xd94aa0(0x255)]=null;[a57_0xd94aa0(0x293)]=![];[a57_0xd94aa0(0x264)]=![];['binSessionId']=null;[a57_0xd94aa0(0x268)]={};[a57_0xd94aa0(0x280)]=null;[a57_0xd94aa0(0x267)]=null;[a57_0xd94aa0(0x20b)]=createClassLogger(a57_0xd94aa0(0x244));constructor(){const _0x1fe7b5=a57_0xd94aa0;this[_0x1fe7b5(0x25d)]=![],this[_0x1fe7b5(0x21c)]={},this[_0x1fe7b5(0x238)]={},this['browserstackConfig']={};}static['getInstance'](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a57_0xd94aa0(0x1f0)](){const _0x14c926=a57_0xd94aa0,_0x38d0c3={};_0x38d0c3[_0x14c926(0x1e4)]=_0x14c926(0x25b);const _0x4cc265=_0x38d0c3;if(helper[_0x14c926(0x289)](process['env'][_0x14c926(0x23b)])){this[_0x14c926(0x20b)][_0x14c926(0x251)](_0x4cc265['RGJmt']);return;}PerformanceTester[_0x14c926(0x232)](PerformanceEvents[_0x14c926(0x24d)]);try{const _0x57903f=process[_0x14c926(0x272)][_0x14c926(0x22f)]||null;this[_0x14c926(0x22b)](),this[_0x14c926(0x288)]();if(_0x57903f){await this[_0x14c926(0x282)](_0x57903f),PerformanceTester['end'](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);return;}await this[_0x14c926(0x27b)]();}catch(_0x1d688a){this[_0x14c926(0x20b)][_0x14c926(0x234)]('bootstrap:\x20failed\x20to\x20bootstrap='+(_0x1d688a['stack']||_0x1d688a)),await this[_0x14c926(0x1eb)](),PerformanceTester[_0x14c926(0x1dc)](PerformanceEvents[_0x14c926(0x24d)],![],util['format'](_0x1d688a));}}async[a57_0xd94aa0(0x27b)](){const _0xe2ba76=a57_0xd94aa0,_0x34b7dc={};_0x34b7dc[_0xe2ba76(0x210)]=_0xe2ba76(0x26b),_0x34b7dc[_0xe2ba76(0x1db)]=_0xe2ba76(0x229);const _0x117819=_0x34b7dc;this[_0xe2ba76(0x20b)]['info'](_0x117819[_0xe2ba76(0x210)]),await this[_0xe2ba76(0x232)](),this['logger'][_0xe2ba76(0x25c)](_0x117819[_0xe2ba76(0x1db)]);const _0x1e3688=await GrpcClient[_0xe2ba76(0x20c)]()[_0xe2ba76(0x273)]();this[_0xe2ba76(0x293)]=!![],this['loadModules'](_0x1e3688);}[a57_0xd94aa0(0x1fa)](_0x3074a9){const _0x4ec238=a57_0xd94aa0,_0x5515f4={'KdyWI':function(_0x4e238f,_0x338882){return _0x4e238f(_0x338882);},'BkwQU':_0x4ec238(0x24c),'sBJCZ':function(_0x47a4d0,_0x4da9f1){return _0x47a4d0(_0x4da9f1);},'OgHTl':_0x4ec238(0x1e1),'pVgCP':function(_0x577329,_0x3eff1d){return _0x577329(_0x3eff1d);},'IxVgU':_0x4ec238(0x23e),'AgaqX':_0x4ec238(0x1ec),'IjaIc':_0x4ec238(0x1f4),'ZVHOF':_0x4ec238(0x222),'UfOnw':'getSuccess','swoCh':function(_0x10211e,_0x7932cd){return _0x10211e||_0x7932cd;}},_0x525f5c=_0x5515f4[_0x4ec238(0x278)](require,_0x5515f4[_0x4ec238(0x1fc)]),_0x1aa927=_0x5515f4['sBJCZ'](require,_0x5515f4[_0x4ec238(0x226)]),_0x425983=_0x5515f4[_0x4ec238(0x1f5)](require,_0x5515f4['IxVgU']);this[_0x4ec238(0x20b)][_0x4ec238(0x251)](_0x5515f4[_0x4ec238(0x228)]),this[_0x4ec238(0x1fe)]=_0x3074a9['getBinSessionId'](),this[_0x4ec238(0x20b)][_0x4ec238(0x251)]('loadModules:\x20binSessionId='+this[_0x4ec238(0x1fe)]),this[_0x4ec238(0x203)](_0x3074a9);!this['isChildConnected']&&this[_0x4ec238(0x266)](_0x3074a9);const _0x1cceca=_0x5515f4['IjaIc'],_0x353464=_0x5515f4['ZVHOF'],_0x35eddb=_0x5515f4[_0x4ec238(0x214)],_0x39384e=_0x3074a9[_0x1cceca]()&&_0x3074a9[_0x1cceca]()[_0x35eddb](),_0x4a3626=_0x3074a9[_0x353464]()&&_0x3074a9[_0x353464]()[_0x35eddb]();_0x5515f4['swoCh'](_0x39384e,_0x4a3626)&&(this['modules'][_0x1aa927[_0x4ec238(0x26c)]]=new _0x1aa927(_0x3074a9[_0x4ec238(0x207)]())),_0x39384e&&(this[_0x4ec238(0x268)][_0x425983['MODULE_NAME']]=new _0x425983(_0x3074a9[_0x1cceca]())),_0x4a3626&&(this[_0x4ec238(0x268)][AccessibilityModule[_0x4ec238(0x26c)]]=new AccessibilityModule(_0x3074a9[_0x353464]())),this['modules'][_0x525f5c[_0x4ec238(0x26c)]]=new _0x525f5c(),this[_0x4ec238(0x26e)]();}['getAccessibilityModule'](){const _0x2c5ef7=a57_0xd94aa0;return this[_0x2c5ef7(0x268)][AccessibilityModule[_0x2c5ef7(0x26c)]];}async[a57_0xd94aa0(0x26e)](){const _0x195ebd=a57_0xd94aa0;for(const _0x1b877d in this['modules']){const _0xb36621=this[_0x195ebd(0x268)][_0x1b877d];await _0xb36621[_0x195ebd(0x23f)](this[_0x195ebd(0x1fe)],0x0,GrpcClient[_0x195ebd(0x20c)]()[_0x195ebd(0x221)],this[_0x195ebd(0x21c)]);}}async[a57_0xd94aa0(0x232)](){const _0x2f87c8=a57_0xd94aa0,_0xf02645={'XXQQY':function(_0x4f30c2,_0x46ad04){return _0x4f30c2!==_0x46ad04;},'odRsT':_0x2f87c8(0x241),'nhDco':function(_0x96555c){return _0x96555c();},'ihFrf':function(_0x401afd,_0x2c23f1){return _0x401afd(_0x2c23f1);},'SocFC':function(_0x4bab81,_0x469d49){return _0x4bab81!==_0x469d49;},'foqtD':function(_0x4dade2,_0x5a673c){return _0x4dade2(_0x5a673c);},'nfLxM':_0x2f87c8(0x276),'rMEkm':_0x2f87c8(0x234),'dMoPZ':_0x2f87c8(0x21a),'GDnjP':_0x2f87c8(0x24a),'LnINr':function(_0x9df337,_0x3dafc7,_0x3ae5bd,_0x20dc6c){return _0x9df337(_0x3dafc7,_0x3ae5bd,_0x20dc6c);},'yLsSi':_0x2f87c8(0x22e)};PerformanceTester['start'](PerformanceEvents[_0x2f87c8(0x21d)]);if(CLIUtils[_0x2f87c8(0x247)]())return this[_0x2f87c8(0x1fd)](CLIUtils[_0x2f87c8(0x261)]()),PerformanceTester[_0x2f87c8(0x1dc)](PerformanceEvents[_0x2f87c8(0x21d)]),Promise['resolve']();if(this[_0x2f87c8(0x255)]&&this[_0x2f87c8(0x255)][_0x2f87c8(0x28c)])return PerformanceTester[_0x2f87c8(0x1dc)](PerformanceEvents[_0x2f87c8(0x21d)]),Promise[_0x2f87c8(0x256)]();const _0x1209d7=await this['getCliBinPath'](),_0x1f471e=[_0x1209d7,_0xf02645[_0x2f87c8(0x216)]];this[_0x2f87c8(0x20b)][_0x2f87c8(0x251)](_0x2f87c8(0x25f)+_0x1f471e+'\x27');const _0x4880ce={};_0x4880ce[_0x2f87c8(0x272)]=process[_0x2f87c8(0x272)],this[_0x2f87c8(0x255)]=_0xf02645[_0x2f87c8(0x24f)](spawn,_0x1f471e[0x0],_0x1f471e[_0x2f87c8(0x28e)](0x1),_0x4880ce);if(!this[_0x2f87c8(0x255)][_0x2f87c8(0x297)])throw new Error(_0xf02645['yLsSi']);return new Promise((_0x6f553a,_0x5be0f0)=>{const _0x5680e8=_0x2f87c8,_0x32724e={};this[_0x5680e8(0x255)][_0x5680e8(0x1d9)]['on'](_0xf02645[_0x5680e8(0x294)],_0x456dfc=>{const _0x1a731e=_0x5680e8,_0x274523=_0x456dfc[_0x1a731e(0x1f7)]()[_0x1a731e(0x204)]()[_0x1a731e(0x208)]('\x0a');for(const _0x236424 of _0x274523){if(/^(id|listen|port)=.*$/[_0x1a731e(0x270)](_0x236424)){const [_0x54de70,_0x5e0a31]=_0x236424[_0x1a731e(0x208)]('=',0x2);_0xf02645[_0x1a731e(0x1ff)](_0x5e0a31,undefined)&&(_0x32724e[_0x54de70]=_0x5e0a31);}if(_0x236424[_0x1a731e(0x287)]()[_0x1a731e(0x24e)](_0xf02645[_0x1a731e(0x219)])){this[_0x1a731e(0x1fd)](_0x32724e),PerformanceTester[_0x1a731e(0x1dc)](PerformanceEvents[_0x1a731e(0x21d)]),_0xf02645[_0x1a731e(0x28b)](_0x6f553a);return;}}}),this[_0x5680e8(0x255)][_0x5680e8(0x1f8)]['on'](_0xf02645[_0x5680e8(0x294)],_0xe5b12c=>{const _0x35bed4=_0x5680e8;this[_0x35bed4(0x20b)][_0x35bed4(0x234)]('CLI\x20stderr:\x20'+_0xe5b12c[_0x35bed4(0x1f7)]()[_0x35bed4(0x204)]());}),this[_0x5680e8(0x255)]['on'](_0xf02645[_0x5680e8(0x22d)],_0x44227e=>{const _0x19ee77=_0x5680e8;_0x32724e[_0x19ee77(0x234)]=_0x19ee77(0x215)+_0x44227e[_0x19ee77(0x1de)],PerformanceTester[_0x19ee77(0x1dc)](PerformanceEvents[_0x19ee77(0x21d)],![],_0x44227e),_0xf02645[_0x19ee77(0x269)](_0x5be0f0,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0x44227e[_0x19ee77(0x1de)]));}),this[_0x5680e8(0x255)]['on'](_0xf02645[_0x5680e8(0x1fb)],_0x442740=>{const _0x31b6b2=_0x5680e8;_0xf02645[_0x31b6b2(0x1f6)](_0x442740,0x0)&&_0xf02645[_0x31b6b2(0x27d)](_0x5be0f0,new Error(_0x31b6b2(0x20e)+_0x442740));});});}async[a57_0xd94aa0(0x1eb)](_0x53509f=null){const _0x3ae242=a57_0xd94aa0,_0x410cfa={'YTJWB':_0x3ae242(0x242),'GwZbK':function(_0x2d616e){return _0x2d616e();},'HeUNu':_0x3ae242(0x258),'RBcMv':_0x3ae242(0x24b),'olCnb':function(_0x2eed3a){return _0x2eed3a();},'tqffZ':_0x3ae242(0x286),'uJIbC':function(_0x351c10,_0x3d8ce2,_0x2445a5){return _0x351c10(_0x3d8ce2,_0x2445a5);},'rqprp':'stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','fRssx':_0x3ae242(0x235),'pPaCo':function(_0xb575d4,_0x167bf8){return _0xb575d4(_0x167bf8);},'iutzx':'./uploadAttachmentsManager.js','uagiF':_0x3ae242(0x1ed),'Prujw':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','YRScE':_0x3ae242(0x205)};if(!this['isRunning']()){this['logger'][_0x3ae242(0x251)](_0x410cfa[_0x3ae242(0x28d)]);return;}PerformanceTester[_0x3ae242(0x232)](PerformanceEvents[_0x3ae242(0x224)]),this['logger']['info'](_0x410cfa['fRssx']);try{if(this[_0x3ae242(0x293)]){const _0x2b5d8d=_0x410cfa[_0x3ae242(0x283)](require,_0x410cfa[_0x3ae242(0x1e2)]),_0x20180a=this[_0x3ae242(0x268)][_0x3ae242(0x299)]?.['testhubConfig']?.['toObject']()?.['buildHashedId'],_0x9966ec=TestInfo[_0x3ae242(0x1e3)](_0x20180a),_0x19ff5a=_0x9966ec[TestFrameworkConstants[_0x3ae242(0x277)]]||{},_0xed8f9a=await GrpcClient[_0x3ae242(0x20c)]()[_0x3ae242(0x245)](JSON[_0x3ae242(0x260)](_0x19ff5a),_0x53509f);_0xed8f9a&&_0xed8f9a[_0x3ae242(0x230)]()&&_0xed8f9a['getAutomateBuildlink']()&&(BrowserstackCLI[_0x3ae242(0x291)]=_0xed8f9a[_0x3ae242(0x252)](),BrowserstackCLI[_0x3ae242(0x1dd)]=_0xed8f9a[_0x3ae242(0x26f)]()),await _0x2b5d8d[_0x3ae242(0x212)](),TestInfo[_0x3ae242(0x1f2)](),this[_0x3ae242(0x20b)]['info'](_0x3ae242(0x1ea)+BrowserstackCLI['BuildLink']+_0x3ae242(0x200)+BrowserstackCLI[_0x3ae242(0x1dd)]+_0x3ae242(0x21b)+BrowserstackCLI['O11yHashedID']);}await this[_0x3ae242(0x243)]();const _0x5951e6=GrpcClient[_0x3ae242(0x20c)]()[_0x3ae242(0x213)]();if(_0x5951e6){try{_0x5951e6['close'](),this[_0x3ae242(0x20b)]['info'](_0x410cfa[_0x3ae242(0x262)]);}catch(_0x2dbe31){this[_0x3ae242(0x20b)][_0x3ae242(0x234)](util['format'](_0x410cfa[_0x3ae242(0x263)],_0x2dbe31));}await new Promise(_0x3c93b6=>setTimeout(_0x3c93b6,0x1388));}this['process']&&this[_0x3ae242(0x255)]['pid']&&(this[_0x3ae242(0x20b)][_0x3ae242(0x251)](_0x410cfa[_0x3ae242(0x231)]),this['process'][_0x3ae242(0x275)](),await new Promise(_0x37b428=>{const _0x40cdc6=_0x3ae242,_0xb3e885={'amHrE':_0x410cfa[_0x40cdc6(0x29c)],'TgwNN':_0x410cfa[_0x40cdc6(0x1f1)],'izoqM':function(_0x4f2367){return _0x410cfa['olCnb'](_0x4f2367);}};let _0x11f158=![];this[_0x40cdc6(0x255)]['on'](_0x410cfa[_0x40cdc6(0x1ee)],()=>{const _0x936249=_0x40cdc6;this[_0x936249(0x20b)][_0x936249(0x251)](_0x410cfa[_0x936249(0x201)]),_0x11f158=!![],PerformanceTester['end'](PerformanceEvents[_0x936249(0x224)]),_0x410cfa[_0x936249(0x29a)](_0x37b428);}),_0x410cfa[_0x40cdc6(0x239)](setTimeout,()=>{const _0x4dee96=_0x40cdc6;!_0x11f158&&(this[_0x4dee96(0x20b)]['warn'](_0xb3e885[_0x4dee96(0x22a)]),this[_0x4dee96(0x255)][_0x4dee96(0x275)](_0xb3e885['TgwNN']),PerformanceTester[_0x4dee96(0x1dc)](PerformanceEvents[_0x4dee96(0x224)]),_0xb3e885[_0x4dee96(0x209)](_0x37b428));},0xbb8);}));}catch(_0x23f1a5){PerformanceTester['end'](PerformanceEvents[_0x3ae242(0x224)],![],util[_0x3ae242(0x295)](_0x23f1a5)),this['logger'][_0x3ae242(0x234)]('stop:\x20error\x20in\x20stop\x20session\x20exception='+(_0x23f1a5['stack']||_0x23f1a5));}_0x53509f?this[_0x3ae242(0x255)][_0x3ae242(0x1e5)]=0x1:this[_0x3ae242(0x255)][_0x3ae242(0x1e5)]=0x0,this[_0x3ae242(0x264)]=![],this[_0x3ae242(0x293)]=![],process[_0x3ae242(0x272)][_0x3ae242(0x27c)]=null;}async[a57_0xd94aa0(0x243)](){const _0x384319=a57_0xd94aa0,_0x1e694e={};_0x1e694e[_0x384319(0x1f3)]=_0x384319(0x225);const _0x307b7a=_0x1e694e;this[_0x384319(0x20b)]['info'](_0x307b7a['Pzxso']);}[a57_0xd94aa0(0x1fd)](_0x7225ee){const _0x5a4727=a57_0xd94aa0;this['logger'][_0x5a4727(0x251)]('CLI\x20params\x20loaded:\x20'+JSON[_0x5a4727(0x260)](_0x7225ee)),this['cliParams']=_0x7225ee,GrpcClient['getInstance']()['init'](_0x7225ee);}async[a57_0xd94aa0(0x282)](_0x4d22e0){const _0x2281af=a57_0xd94aa0,_0x589b2f={};_0x589b2f[_0x2281af(0x21f)]=_0x2281af(0x211);const _0xe1f83b=_0x589b2f;PerformanceTester[_0x2281af(0x232)](PerformanceEvents[_0x2281af(0x246)]);try{this['logger']['info']('Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20'+_0x4d22e0);const _0x17d989=GrpcClient[_0x2281af(0x20c)]();if(_0x17d989&&_0x17d989['getClient']()&&_0x17d989['getChannel']()){this[_0x2281af(0x20b)]['info'](_0xe1f83b[_0x2281af(0x21f)]);return;}GrpcClient[_0x2281af(0x20c)]()['connect']();const _0x540f1a=await GrpcClient[_0x2281af(0x20c)]()[_0x2281af(0x271)]();this[_0x2281af(0x264)]=!![],this[_0x2281af(0x1fa)](_0x540f1a),PerformanceTester['end'](PerformanceEvents[_0x2281af(0x246)]);}catch(_0x3e861c){PerformanceTester['end'](PerformanceEvents[_0x2281af(0x246)],![],util[_0x2281af(0x295)](_0x3e861c)),this[_0x2281af(0x20b)]['error'](_0x2281af(0x23a)+util['format'](_0x3e861c));}}[a57_0xd94aa0(0x1e9)](){const _0xe60c53=a57_0xd94aa0,_0x1f2636={};_0x1f2636[_0xe60c53(0x29d)]=function(_0x2ef84a,_0x1c5501){return _0x2ef84a!==_0x1c5501;},_0x1f2636[_0xe60c53(0x1da)]=function(_0x1f170d,_0xd15ace){return _0x1f170d===_0xd15ace;},_0x1f2636[_0xe60c53(0x22c)]=function(_0x47600f,_0x7d9fc){return _0x47600f!==_0x7d9fc;};const _0x31ac4d=_0x1f2636;return CLIUtils[_0xe60c53(0x247)]()||this[_0xe60c53(0x293)]&&_0x31ac4d[_0xe60c53(0x29d)](this[_0xe60c53(0x255)],null)&&_0x31ac4d['gUqTV'](this[_0xe60c53(0x255)]['exitCode'],null)&&_0x31ac4d[_0xe60c53(0x29d)](GrpcClient['getInstance']()['getClient'](),null)&&!GrpcClient['getInstance']()[_0xe60c53(0x213)]()[_0xe60c53(0x21e)]||this['isChildConnected']&&_0x31ac4d[_0xe60c53(0x22c)](GrpcClient[_0xe60c53(0x20c)]()[_0xe60c53(0x213)](),null)&&!GrpcClient[_0xe60c53(0x20c)]()['getChannel']()[_0xe60c53(0x21e)];}[a57_0xd94aa0(0x1e0)](){return this['browserstackConfig'];}[a57_0xd94aa0(0x1f9)](_0x308e7f,_0x41615e=null){const _0xc7e436=a57_0xd94aa0,_0x4e4185={};_0x4e4185[_0xc7e436(0x1df)]=function(_0x361d40,_0x2e73e2){return _0x361d40||_0x2e73e2;};const _0x3851dd=_0x4e4185;this[_0xc7e436(0x227)]=_0x3851dd[_0xc7e436(0x1df)](_0x308e7f,{}),this[_0xc7e436(0x1e6)]=_0x41615e,process[_0xc7e436(0x272)][_0xc7e436(0x250)]=this['browserstackConfig']?.[_0xc7e436(0x285)]||![];const _0xa8120f=CLIUtils[_0xc7e436(0x249)]();helper['isTrue'](process['env']['BROWSERSTACK_TURBOSCALE'])||!CLI_SUPPORTED_FRAMEWORKS[_0xc7e436(0x24e)](_0xa8120f[_0xc7e436(0x217)][_0xc7e436(0x287)]())?process['env'][_0xc7e436(0x23b)]=![]:process['env'][_0xc7e436(0x23b)]=!![];}async['getCliBinPath'](){const _0x5aa6d7=a57_0xd94aa0;return!this[_0x5aa6d7(0x240)]&&(this['SDK_CLI_BIN_PATH']=await CLIUtils[_0x5aa6d7(0x28a)](this['browserstackConfig'])),this[_0x5aa6d7(0x240)];}[a57_0xd94aa0(0x290)](){const _0x56a0f1=a57_0xd94aa0;return helper[_0x56a0f1(0x253)](process[_0x56a0f1(0x272)][_0x56a0f1(0x23b)]);}[a57_0xd94aa0(0x233)](){return this['config'];}['setConfig'](_0x2f4a15){const _0x5b8080=a57_0xd94aa0,_0x11361e={};_0x11361e[_0x5b8080(0x236)]=_0x5b8080(0x279);const _0x1b9d5a=_0x11361e;try{this[_0x5b8080(0x21c)]=JSON['parse'](_0x2f4a15[_0x5b8080(0x233)]()),this[_0x5b8080(0x20b)][_0x5b8080(0x251)](_0x1b9d5a[_0x5b8080(0x236)]);}catch(_0xb12e41){this[_0x5b8080(0x20b)][_0x5b8080(0x234)](_0x5b8080(0x1ef)+util[_0x5b8080(0x295)](_0xb12e41));}}[a57_0xd94aa0(0x266)](_0x348cb4){const _0x20f7f6=a57_0xd94aa0;try{this[_0x20f7f6(0x238)]=_0x348cb4[_0x20f7f6(0x223)]()['split'](','),this['logger']['info']('setCliArgs:\x20cliArgs='+JSON[_0x20f7f6(0x260)](this[_0x20f7f6(0x238)]));}catch(_0x64ec28){this['logger'][_0x20f7f6(0x234)](_0x20f7f6(0x25e)+util['format'](_0x64ec28));}}['getCliArgs'](){const _0x1d2e05=a57_0xd94aa0;return this[_0x1d2e05(0x238)];}[a57_0xd94aa0(0x288)](){const _0x3662a7=a57_0xd94aa0,_0x3bcf52={};_0x3bcf52[_0x3662a7(0x218)]=function(_0x337260,_0x5a30f2){return _0x337260===_0x5a30f2;};const _0x25e593=_0x3bcf52,_0x74a09d=CLIUtils['getTestFrameworkDetail']();_0x25e593['TcfiB'](_0x74a09d[_0x3662a7(0x217)][_0x3662a7(0x287)](),FRAMEWORKS[_0x3662a7(0x20d)]['toLowerCase']())&&(this[_0x3662a7(0x280)]=new PlaywrightTestFramework([_0x74a09d[_0x3662a7(0x217)]],_0x74a09d[_0x3662a7(0x274)]));}[a57_0xd94aa0(0x22b)](){const _0x494470=a57_0xd94aa0,_0x1977e3={};_0x1977e3['RYOCD']=function(_0x2d2c5e,_0x4d59b8){return _0x2d2c5e===_0x4d59b8;};const _0x106179=_0x1977e3,_0x32caab=CLIUtils[_0x494470(0x257)]();_0x106179[_0x494470(0x281)](_0x32caab[_0x494470(0x217)][_0x494470(0x287)](),FRAMEWORKS[_0x494470(0x20d)]['toLowerCase']())&&(this[_0x494470(0x267)]=new PlaywrightAutomationFramework(_0x32caab[_0x494470(0x217)],_0x32caab['version']));}[a57_0xd94aa0(0x202)](){const _0x482525=a57_0xd94aa0;return this[_0x482525(0x280)];}[a57_0xd94aa0(0x27f)](){return this['automationFramework'];}[a57_0xd94aa0(0x284)](){const _0x395ca9=a57_0xd94aa0;return this[_0x395ca9(0x1e6)];}}module[a57_0xd94aa0(0x1e8)]=BrowserstackCLI;function a57_0x1cf0(){const _0x5da010=['tqffZ','setConfig:\x20error=','bootstrap','RBcMv','shutdown','Pzxso','getObservability','pVgCP','SocFC','toString','stderr','setBrowserstackConfig','loadModules','dMoPZ','BkwQU','loadCliParams','binSessionId','XXQQY','\x20hashed_id=','YTJWB','getTestFramework','setConfig','trim','stop:\x20shutting\x20down\x20CLI','./TestInfo.js','getTesthub','split','izoqM','../../helpers/helper.js','logger','getInstance','PLAYWRIGHT','CLI\x20process\x20exited\x20with\x20code\x20','358388FGXKph','QSUHW','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','clearAttachments','getChannel','UfOnw','Error\x20in\x20start:\x20','GDnjP','name','TcfiB','odRsT','close','\x20o11y_uuid=','config','SDK_CLI_START','isClosed','Kawcm','15fbkdRa','client','getAccessibility','getCliArgs','SDK_CLI_ON_STOP','Unconfiguring\x20modules','OgHTl','browserstackConfig','AgaqX','startMain:\x20main-process\x20started','amHrE','setupAutomationFramework','RbXIj','rMEkm','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','BROWSERSTACK_CLI_BIN_SESSION_ID','getSuccess','YRScE','start','getConfig','error','stop:\x20CLI\x20stop\x20triggered','PGKko','357rXmamz','cliArgs','uJIbC','Failed\x20to\x20start\x20as\x20child\x20process:\x20','BROWSERSTACK_CLI_ENABLED','O11yHashedID','7046pqTHYZ','./modules/observabilityModule.js','configure','SDK_CLI_BIN_PATH','ready','stop:\x20CLI\x20process\x20exited','unConfigureModules','BrowserstackCLI','stopBinSession','SDK_CONNECT_BIN_SESSION','isDevelopmentEnv','./framework/constants/testFrameworkConstants.js','getTestFrameworkDetail','sdk','SIGKILL','./modules/playwrightDriverModule.js','SDK_CLI_ON_BOOTSTRAP','includes','LnINr','BROWSERSTACK_TURBOSCALE','info','getAutomateBuildlink','isTrue','135DjTTqE','process','resolve','getAutomationFrameworkDetail','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','../utils/constants.js','./cliUtils.js','Disabling\x20CLI.','debug','initialized','setCliArgs:\x20error=','spawning\x20command=\x27','stringify','getCLIParamsForDevEnv','uagiF','Prujw','isChildConnected','./modules/accessibilityModule.js','setCliArgs','automationFramework','modules','ihFrf','543448enffAG','startMain:\x20Starting\x20main\x20process','MODULE_NAME','./framework/playwrightTestFramework.js','configureModules','getHashedId','test','connectBinSession','env','startBinSession','version','kill','data','KEY_CUSTOM_TAGS','KdyWI','loading\x20Modules.','./grpcClient.js','startMain','BROWSERSTACK_CLI_ENV','foqtD','./framework/playwrightAutomationFramework.js','getAutomationFramework','testFramework','RYOCD','startChild','pPaCo','getBrowserstackCliConfig','turboScale','exit','toLowerCase','setupTestFramework','isFalse','setupCliPath','nhDco','connected','rqprp','slice','24477772IcbXQy','isCliEnabled','BuildLink','6457240wPNuhX','isMainConnected','nfLxM','format','237110epJpkr','pid','56vdxhkQ','TestHubModule','GwZbK','../../helpers/performance/performance-tester.js','HeUNu','BjMZp','stdout','gUqTV','fkUcI','end','HashedID','message','xffoG','getBrowserstackConfig','./modules/testhubModule.js','iutzx','getTestDetails','RGJmt','exitCode','browserstackCliConfig','1284Kjcymo','exports','isRunning','stop:\x20stopBinSession\x20build_link=','stop','loadModules:\x20Loading\x20modules','stop:\x20channel\x20closed'];a57_0x1cf0=function(){return _0x5da010;};return a57_0x1cf0();}
1
+ const a57_0x2539d5=a57_0x58dd;function a57_0x1baa(){const _0x3a1e27=['startMain:\x20Starting\x20main\x20process','Failed\x20to\x20start\x20CLI\x20process:\x20','kill','1442BKldXn','GEDar','SDK_CONNECT_BIN_SESSION','stop:\x20error\x20in\x20closing\x20channel:\x20%s','isChildConnected','getAutomationFramework','CLI\x20params\x20loaded:\x20','getObservability','getClient','SHePM','unConfigureModules','turboScale','Disabling\x20CLI.','BROWSERSTACK_CLI_ENABLED','O11yHashedID','resolve','242418VMhrUB','toString','getChannel','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','getTestDetails','child_process','BOFeZ','./modules/accessibilityModule.js','TNQgb','136233buJNBv','exitCode','LFoyt','test','KEY_CUSTOM_TAGS','stop:\x20channel\x20closed','BuildLink','stack','VGbrP','tEUKu','TinUs','getConfig','MODULE_NAME','ianMR','pRtqN','data','start','mGxLI','CqeCW','BrowserstackCLI','getTesthub','end','BROWSERSTACK_TURBOSCALE','EJiuq','../utils/constants.js','NOvjg','4SHbsGr','isMainConnected','QlHmQ','../../helpers/performance/performance-tester.js','BROWSERSTACK_CLI_ENV','close','./modules/observabilityModule.js','browserstackConfig','ItAKM','SDK_CLI_ON_STOP','stopBinSession','FhWmb','stderr','format','loadModules:\x20Loading\x20modules','HashedID','PLAYWRIGHT','init','setupTestFramework','Vrwzw','sdk','DLiya','setupAutomationFramework','isRunning','error','automationFramework','isClosed','binSessionId','startMain','./uploadAttachmentsManager.js','initialized','OLFfe','modules','56600rTgMAE','TestHubModule','\x20hashed_id=','NuVcB','GKgQg','isTrue','LbxRs','isDevelopmentEnv','getAccessibility','./modules/playwrightDriverModule.js','aicju','env','getSuccess','lGHCt','vAxiq','cliArgs','connectBinSession','configure','871374FwXMUU','pISXY','Rucoh','toLowerCase','setCliArgs','pid','SDK_CLI_ON_BOOTSTRAP','49160OCIsrk','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','./grpcClient.js','message','loadModules','SDK_CLI_START','browserstackCliConfig','isFalse','getBrowserstackConfig','SDK_CLI_BIN_PATH','toObject','getHashedId','startChild','setupCliPath','fUGvI','bootstrap','configureModules','stop:\x20shutting\x20down\x20CLI','stop','stop:\x20stopBinSession\x20build_link=','testFramework','slice','SIGKILL','ready','zgvnD','getInstance','BROWSERSTACK_CLI_BIN_SESSION_ID','stringify','getCLIParamsForDevEnv','LYlCc','process','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','\x20o11y_uuid=','KGNKo','connected','version','500WhzRTR','Failed\x20to\x20start\x20as\x20child\x20process:\x20','startMain:\x20main-process\x20started','CLI\x20process\x20exited\x20with\x20code\x20','name','getCliBinPath','logger','testhubConfig','parse','warn','KdciY','./cliUtils.js','wpjEB','mWIJq','buildHashedId','getTestFrameworkDetail','setCliArgs:\x20cliArgs=','PeAvH','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','isCliEnabled','1206120GWLODa','getCliArgs','./framework/playwrightTestFramework.js','ExEYI','1578512WXXXeH','clearAttachments','./modules/testhubModule.js','ICbnb','split','util','stop:\x20error\x20in\x20stop\x20session\x20exception=','loading\x20Modules.','setConfig:\x20error=','./framework/playwrightAutomationFramework.js','includes','info','config','bootstrap:\x20failed\x20to\x20bootstrap=','stdout','ZJILC','getTestFramework','Unconfiguring\x20modules','FiXlY','loadModules:\x20binSessionId=','spawning\x20command=\x27','pqZdl','../../helpers/classLogger.js','client'];a57_0x1baa=function(){return _0x3a1e27;};return a57_0x1baa();}(function(_0x4d4c79,_0x400d10){const _0x443c5e=a57_0x58dd,_0x82c516=_0x4d4c79();while(!![]){try{const _0x140d36=-parseInt(_0x443c5e(0xf2))/0x1+parseInt(_0x443c5e(0xbf))/0x2*(-parseInt(_0x443c5e(0x9c))/0x3)+-parseInt(_0x443c5e(0x71))/0x4+-parseInt(_0x443c5e(0xe0))/0x5+parseInt(_0x443c5e(0x6d))/0x6+parseInt(_0x443c5e(0x8c))/0x7*(parseInt(_0x443c5e(0xf9))/0x8)+-parseInt(_0x443c5e(0xa5))/0x9*(-parseInt(_0x443c5e(0x11d))/0xa);if(_0x140d36===_0x400d10)break;else _0x82c516['push'](_0x82c516['shift']());}catch(_0x1a7a2b){_0x82c516['push'](_0x82c516['shift']());}}}(a57_0x1baa,0xbf9a6));function a57_0x58dd(_0x4b0ddd,_0x1b29c2){const _0x1baaeb=a57_0x1baa();return a57_0x58dd=function(_0x58ddd1,_0xcc287f){_0x58ddd1=_0x58ddd1-0x64;let _0x50d86c=_0x1baaeb[_0x58ddd1];return _0x50d86c;},a57_0x58dd(_0x4b0ddd,_0x1b29c2);}const {spawn}=require(a57_0x2539d5(0xa1)),GrpcClient=require(a57_0x2539d5(0xfb)),util=require(a57_0x2539d5(0x76)),CLIUtils=require(a57_0x2539d5(0x64)),PlaywrightAutomationFramework=require(a57_0x2539d5(0x7a)),PlaywrightTestFramework=require(a57_0x2539d5(0x6f)),{createClassLogger}=require(a57_0x2539d5(0x87)),PerformanceTester=require(a57_0x2539d5(0xc2)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),AccessibilityModule=require(a57_0x2539d5(0xa3)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0x2539d5(0xbd)),helper=require('../../helpers/helper.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),TestInfo=require('./TestInfo.js');class BrowserstackCLI{static #instance=null;static [a57_0x2539d5(0xab)]=null;static [a57_0x2539d5(0xce)]=null;static [a57_0x2539d5(0x9a)]=null;[a57_0x2539d5(0x117)]=null;['isMainConnected']=![];[a57_0x2539d5(0x90)]=![];[a57_0x2539d5(0xda)]=null;[a57_0x2539d5(0xdf)]={};['testFramework']=null;[a57_0x2539d5(0xd8)]=null;[a57_0x2539d5(0x123)]=createClassLogger(a57_0x2539d5(0xb8));constructor(){const _0x4824ac=a57_0x2539d5;this[_0x4824ac(0xdd)]=![],this[_0x4824ac(0x7d)]={},this[_0x4824ac(0xef)]={},this[_0x4824ac(0xc6)]={};}static[a57_0x2539d5(0x112)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a57_0x2539d5(0x108)](){const _0x28f653=a57_0x2539d5,_0x2ba9d3={};_0x2ba9d3[_0x28f653(0xe3)]=_0x28f653(0x98);const _0x189cde=_0x2ba9d3;if(helper[_0x28f653(0x100)](process[_0x28f653(0xeb)][_0x28f653(0x99)])){this[_0x28f653(0x123)][_0x28f653(0x7c)](_0x189cde[_0x28f653(0xe3)]);return;}PerformanceTester[_0x28f653(0xb5)](PerformanceEvents[_0x28f653(0xf8)]);try{const _0x4d1db7=process['env'][_0x28f653(0x113)]||null;this[_0x28f653(0xd5)](),this[_0x28f653(0xd1)]();if(_0x4d1db7){await this[_0x28f653(0x105)](_0x4d1db7),PerformanceTester[_0x28f653(0xba)](PerformanceEvents[_0x28f653(0xf8)]);return;}await this['startMain']();}catch(_0x5a9fa5){this[_0x28f653(0x123)][_0x28f653(0xd7)](_0x28f653(0x7e)+(_0x5a9fa5[_0x28f653(0xac)]||_0x5a9fa5)),await this[_0x28f653(0x10b)](),PerformanceTester['end'](PerformanceEvents[_0x28f653(0xf8)],![],util[_0x28f653(0xcc)](_0x5a9fa5));}}async[a57_0x2539d5(0xdb)](){const _0x50d24c=a57_0x2539d5,_0x4984ae={};_0x4984ae[_0x50d24c(0xb3)]=_0x50d24c(0x89),_0x4984ae[_0x50d24c(0x127)]=_0x50d24c(0x11f);const _0xb23a54=_0x4984ae;this[_0x50d24c(0x123)][_0x50d24c(0x7c)](_0xb23a54[_0x50d24c(0xb3)]),await this[_0x50d24c(0xb5)](),this['logger']['debug'](_0xb23a54['KdciY']);const _0x448816=await GrpcClient[_0x50d24c(0x112)]()['startBinSession']();this['isMainConnected']=!![],this['loadModules'](_0x448816);}['loadModules'](_0x424e13){const _0xf6e026=a57_0x2539d5,_0x236420={'Rucoh':function(_0x31de25,_0x485f87){return _0x31de25(_0x485f87);},'ianMR':_0xf6e026(0xe9),'tEUKu':function(_0x384761,_0x4b79a2){return _0x384761(_0x4b79a2);},'GKgQg':_0xf6e026(0x73),'ICbnb':_0xf6e026(0xc5),'QlHmQ':_0xf6e026(0xcd),'CqeCW':_0xf6e026(0x93),'nCnKg':_0xf6e026(0xe8),'OLFfe':_0xf6e026(0xec),'EJiuq':function(_0x5a10d0,_0x433c5c){return _0x5a10d0||_0x433c5c;}},_0x1d01f6=_0x236420[_0xf6e026(0xf4)](require,_0x236420[_0xf6e026(0xb2)]),_0x179ca7=_0x236420[_0xf6e026(0xae)](require,_0x236420[_0xf6e026(0xe4)]),_0x354578=_0x236420[_0xf6e026(0xf4)](require,_0x236420[_0xf6e026(0x74)]);this['logger'][_0xf6e026(0x7c)](_0x236420[_0xf6e026(0xc1)]),this[_0xf6e026(0xda)]=_0x424e13['getBinSessionId'](),this[_0xf6e026(0x123)]['info'](_0xf6e026(0x84)+this['binSessionId']),this['setConfig'](_0x424e13);!this[_0xf6e026(0x90)]&&this[_0xf6e026(0xf6)](_0x424e13);const _0x2e8a8a=_0x236420[_0xf6e026(0xb7)],_0x542245=_0x236420['nCnKg'],_0x4d06f8=_0x236420[_0xf6e026(0xde)],_0x363e97=_0x424e13[_0x2e8a8a]()&&_0x424e13[_0x2e8a8a]()[_0x4d06f8](),_0x32bf0d=_0x424e13[_0x542245]()&&_0x424e13[_0x542245]()[_0x4d06f8]();_0x236420[_0xf6e026(0xbc)](_0x363e97,_0x32bf0d)&&(this[_0xf6e026(0xdf)][_0x179ca7[_0xf6e026(0xb1)]]=new _0x179ca7(_0x424e13[_0xf6e026(0xb9)]())),_0x363e97&&(this[_0xf6e026(0xdf)][_0x354578[_0xf6e026(0xb1)]]=new _0x354578(_0x424e13[_0x2e8a8a]())),_0x32bf0d&&(this[_0xf6e026(0xdf)][AccessibilityModule[_0xf6e026(0xb1)]]=new AccessibilityModule(_0x424e13[_0x542245]())),this[_0xf6e026(0xdf)][_0x1d01f6[_0xf6e026(0xb1)]]=new _0x1d01f6(),this[_0xf6e026(0x109)]();}['getAccessibilityModule'](){const _0x80b9af=a57_0x2539d5;return this['modules'][AccessibilityModule[_0x80b9af(0xb1)]];}async[a57_0x2539d5(0x109)](){const _0x1bc636=a57_0x2539d5;for(const _0x477193 in this[_0x1bc636(0xdf)]){const _0x359d47=this['modules'][_0x477193];await _0x359d47[_0x1bc636(0xf1)](this[_0x1bc636(0xda)],0x0,GrpcClient[_0x1bc636(0x112)]()[_0x1bc636(0x88)],this[_0x1bc636(0x7d)]);}}async[a57_0x2539d5(0xb5)](){const _0x34b6e8=a57_0x2539d5,_0x2256dc={'LbxRs':function(_0x14905b,_0x337a4c){return _0x14905b!==_0x337a4c;},'mWIJq':_0x34b6e8(0x110),'GIoNo':function(_0x584810){return _0x584810();},'gxmhW':function(_0x4907cd,_0x3e3fed){return _0x4907cd(_0x3e3fed);},'ZJILC':_0x34b6e8(0xb4),'VGbrP':_0x34b6e8(0xd7),'fUGvI':_0x34b6e8(0xc4),'ExEYI':_0x34b6e8(0xd3),'aicju':function(_0x2b5b07,_0x1ed8ab,_0x5dca24,_0x22e73b){return _0x2b5b07(_0x1ed8ab,_0x5dca24,_0x22e73b);},'ECgAB':_0x34b6e8(0x6b)};PerformanceTester[_0x34b6e8(0xb5)](PerformanceEvents[_0x34b6e8(0xfe)]);if(CLIUtils[_0x34b6e8(0xe7)]())return this['loadCliParams'](CLIUtils[_0x34b6e8(0x115)]()),PerformanceTester[_0x34b6e8(0xba)](PerformanceEvents[_0x34b6e8(0xfe)]),Promise[_0x34b6e8(0x9b)]();if(this[_0x34b6e8(0x117)]&&this[_0x34b6e8(0x117)][_0x34b6e8(0x11b)])return PerformanceTester[_0x34b6e8(0xba)](PerformanceEvents[_0x34b6e8(0xfe)]),Promise[_0x34b6e8(0x9b)]();const _0x4f9c80=await this[_0x34b6e8(0x122)](),_0x52fb8e=[_0x4f9c80,_0x2256dc[_0x34b6e8(0x70)]];this['logger'][_0x34b6e8(0x7c)](_0x34b6e8(0x85)+_0x52fb8e+'\x27');const _0x12ebd6={};_0x12ebd6[_0x34b6e8(0xeb)]=process[_0x34b6e8(0xeb)],this[_0x34b6e8(0x117)]=_0x2256dc[_0x34b6e8(0xea)](spawn,_0x52fb8e[0x0],_0x52fb8e[_0x34b6e8(0x10e)](0x1),_0x12ebd6);if(!this[_0x34b6e8(0x117)]['pid'])throw new Error(_0x2256dc['ECgAB']);return new Promise((_0xed1de5,_0x1f91cb)=>{const _0xff53a2=_0x34b6e8,_0x5d2449={'PeAvH':function(_0x4b6dd4,_0x51a970){return _0x2256dc['gxmhW'](_0x4b6dd4,_0x51a970);},'zgvnD':function(_0x3e839e,_0x43a150){const _0x447376=a57_0x58dd;return _0x2256dc[_0x447376(0xe6)](_0x3e839e,_0x43a150);}},_0x4e2e2e={};this[_0xff53a2(0x117)][_0xff53a2(0x7f)]['on'](_0x2256dc[_0xff53a2(0x80)],_0x421b9e=>{const _0x27faf6=_0xff53a2,_0x44fc86=_0x421b9e[_0x27faf6(0x9d)]()['trim']()['split']('\x0a');for(const _0x34c991 of _0x44fc86){if(/^(id|listen|port)=.*$/[_0x27faf6(0xa8)](_0x34c991)){const [_0x2a1afd,_0x2e1411]=_0x34c991['split']('=',0x2);_0x2256dc[_0x27faf6(0xe6)](_0x2e1411,undefined)&&(_0x4e2e2e[_0x2a1afd]=_0x2e1411);}if(_0x34c991[_0x27faf6(0xf5)]()[_0x27faf6(0x7b)](_0x2256dc[_0x27faf6(0x66)])){this['loadCliParams'](_0x4e2e2e),PerformanceTester[_0x27faf6(0xba)](PerformanceEvents['SDK_CLI_START']),_0x2256dc['GIoNo'](_0xed1de5);return;}}}),this[_0xff53a2(0x117)][_0xff53a2(0xcb)]['on'](_0x2256dc[_0xff53a2(0x80)],_0x5e94c4=>{const _0x5b2b04=_0xff53a2;this[_0x5b2b04(0x123)][_0x5b2b04(0xd7)]('CLI\x20stderr:\x20'+_0x5e94c4[_0x5b2b04(0x9d)]()['trim']());}),this['process']['on'](_0x2256dc[_0xff53a2(0xad)],_0x30552b=>{const _0x5a6107=_0xff53a2;_0x4e2e2e['error']='Error\x20in\x20start:\x20'+_0x30552b[_0x5a6107(0xfc)],PerformanceTester[_0x5a6107(0xba)](PerformanceEvents[_0x5a6107(0xfe)],![],_0x30552b),_0x5d2449[_0x5a6107(0x6a)](_0x1f91cb,new Error(_0x5a6107(0x8a)+_0x30552b['message']));}),this[_0xff53a2(0x117)]['on'](_0x2256dc[_0xff53a2(0x107)],_0x515cbf=>{const _0x474a81=_0xff53a2;_0x5d2449[_0x474a81(0x111)](_0x515cbf,0x0)&&_0x5d2449[_0x474a81(0x6a)](_0x1f91cb,new Error(_0x474a81(0x120)+_0x515cbf));});});}async['stop'](_0x534951=null){const _0x4a71d3=a57_0x2539d5,_0x822ca5={'ItAKM':'stop:\x20CLI\x20process\x20exited','NOvjg':function(_0x101842){return _0x101842();},'Utglb':'stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','sXFDM':_0x4a71d3(0x10f),'vAxiq':function(_0x22e3a1){return _0x22e3a1();},'lGHCt':'exit','pqZdl':function(_0x2d6873,_0x423f4f,_0x4db625){return _0x2d6873(_0x423f4f,_0x4db625);},'pISXY':_0x4a71d3(0x118),'FhWmb':'stop:\x20CLI\x20stop\x20triggered','BOFeZ':function(_0x425565,_0x1ac1c4){return _0x425565(_0x1ac1c4);},'Vrwzw':_0x4a71d3(0xdc),'WjnSi':_0x4a71d3(0xaa),'KGNKo':_0x4a71d3(0x8f),'TinUs':_0x4a71d3(0x10a)};if(!this[_0x4a71d3(0xd6)]()){this[_0x4a71d3(0x123)][_0x4a71d3(0x7c)](_0x822ca5[_0x4a71d3(0xf3)]);return;}PerformanceTester['start'](PerformanceEvents[_0x4a71d3(0xc8)]),this[_0x4a71d3(0x123)][_0x4a71d3(0x7c)](_0x822ca5[_0x4a71d3(0xca)]);try{if(this['isMainConnected']){const _0x368258=_0x822ca5[_0x4a71d3(0xa2)](require,_0x822ca5[_0x4a71d3(0xd2)]),_0x59bcc5=this[_0x4a71d3(0xdf)][_0x4a71d3(0xe1)]?.[_0x4a71d3(0x124)]?.[_0x4a71d3(0x103)]()?.[_0x4a71d3(0x67)],_0x44fbb8=TestInfo[_0x4a71d3(0xa0)](_0x59bcc5),_0x428604=_0x44fbb8[TestFrameworkConstants[_0x4a71d3(0xa9)]]||{},_0x12af26=await GrpcClient['getInstance']()[_0x4a71d3(0xc9)](JSON[_0x4a71d3(0x114)](_0x428604),_0x534951);_0x12af26&&_0x12af26[_0x4a71d3(0xec)]()&&_0x12af26['getAutomateBuildlink']()&&(BrowserstackCLI[_0x4a71d3(0xab)]=_0x12af26['getAutomateBuildlink'](),BrowserstackCLI['HashedID']=_0x12af26[_0x4a71d3(0x104)]()),await _0x368258[_0x4a71d3(0x72)](),TestInfo['shutdown'](),this[_0x4a71d3(0x123)][_0x4a71d3(0x7c)](_0x4a71d3(0x10c)+BrowserstackCLI[_0x4a71d3(0xab)]+_0x4a71d3(0xe2)+BrowserstackCLI['HashedID']+_0x4a71d3(0x119)+BrowserstackCLI['O11yHashedID']);}await this[_0x4a71d3(0x96)]();const _0x5c2d02=GrpcClient[_0x4a71d3(0x112)]()[_0x4a71d3(0x9e)]();if(_0x5c2d02){try{_0x5c2d02[_0x4a71d3(0xc4)](),this[_0x4a71d3(0x123)][_0x4a71d3(0x7c)](_0x822ca5['WjnSi']);}catch(_0x5cd4c0){this[_0x4a71d3(0x123)][_0x4a71d3(0xd7)](util['format'](_0x822ca5[_0x4a71d3(0x11a)],_0x5cd4c0));}await new Promise(_0xb2c5f7=>setTimeout(_0xb2c5f7,0x1388));}this[_0x4a71d3(0x117)]&&this['process'][_0x4a71d3(0xf7)]&&(this[_0x4a71d3(0x123)][_0x4a71d3(0x7c)](_0x822ca5[_0x4a71d3(0xaf)]),this[_0x4a71d3(0x117)][_0x4a71d3(0x8b)](),await new Promise(_0x1ed84a=>{const _0x305c9b=_0x4a71d3;let _0x1aea3d=![];this[_0x305c9b(0x117)]['on'](_0x822ca5[_0x305c9b(0xed)],()=>{const _0xfa5b3a=_0x305c9b;this[_0xfa5b3a(0x123)][_0xfa5b3a(0x7c)](_0x822ca5[_0xfa5b3a(0xc7)]),_0x1aea3d=!![],PerformanceTester[_0xfa5b3a(0xba)](PerformanceEvents[_0xfa5b3a(0xc8)]),_0x822ca5[_0xfa5b3a(0xbe)](_0x1ed84a);}),_0x822ca5[_0x305c9b(0x86)](setTimeout,()=>{const _0x45ebcb=_0x305c9b;!_0x1aea3d&&(this[_0x45ebcb(0x123)][_0x45ebcb(0x126)](_0x822ca5['Utglb']),this[_0x45ebcb(0x117)][_0x45ebcb(0x8b)](_0x822ca5['sXFDM']),PerformanceTester[_0x45ebcb(0xba)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x822ca5[_0x45ebcb(0xee)](_0x1ed84a));},0xbb8);}));}catch(_0x43183e){PerformanceTester[_0x4a71d3(0xba)](PerformanceEvents[_0x4a71d3(0xc8)],![],util[_0x4a71d3(0xcc)](_0x43183e)),this['logger'][_0x4a71d3(0xd7)](_0x4a71d3(0x77)+(_0x43183e[_0x4a71d3(0xac)]||_0x43183e));}_0x534951?this[_0x4a71d3(0x117)][_0x4a71d3(0xa6)]=0x1:this[_0x4a71d3(0x117)]['exitCode']=0x0,this[_0x4a71d3(0x90)]=![],this[_0x4a71d3(0xc0)]=![],process[_0x4a71d3(0xeb)][_0x4a71d3(0xc3)]=null;}async[a57_0x2539d5(0x96)](){const _0x16796e=a57_0x2539d5,_0x579b0c={};_0x579b0c['BKxsQ']=_0x16796e(0x82);const _0x41255d=_0x579b0c;this[_0x16796e(0x123)][_0x16796e(0x7c)](_0x41255d['BKxsQ']);}['loadCliParams'](_0x2eab5f){const _0x3acdcd=a57_0x2539d5;this[_0x3acdcd(0x123)]['info'](_0x3acdcd(0x92)+JSON['stringify'](_0x2eab5f)),this['cliParams']=_0x2eab5f,GrpcClient[_0x3acdcd(0x112)]()[_0x3acdcd(0xd0)](_0x2eab5f);}async[a57_0x2539d5(0x105)](_0x34e125){const _0x5c281a=a57_0x2539d5,_0x51df24={};_0x51df24[_0x5c281a(0xd4)]=_0x5c281a(0x9f);const _0x36acb4=_0x51df24;PerformanceTester[_0x5c281a(0xb5)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);try{this[_0x5c281a(0x123)][_0x5c281a(0x7c)](_0x5c281a(0xfa)+_0x34e125);const _0x4250e5=GrpcClient[_0x5c281a(0x112)]();if(_0x4250e5&&_0x4250e5['getClient']()&&_0x4250e5[_0x5c281a(0x9e)]()){this['logger'][_0x5c281a(0x7c)](_0x36acb4[_0x5c281a(0xd4)]);return;}GrpcClient['getInstance']()['connect']();const _0x13d15c=await GrpcClient[_0x5c281a(0x112)]()[_0x5c281a(0xf0)]();this[_0x5c281a(0x90)]=!![],this[_0x5c281a(0xfd)](_0x13d15c),PerformanceTester['end'](PerformanceEvents[_0x5c281a(0x8e)]);}catch(_0x25eac8){PerformanceTester[_0x5c281a(0xba)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util['format'](_0x25eac8)),this[_0x5c281a(0x123)][_0x5c281a(0xd7)](_0x5c281a(0x11e)+util[_0x5c281a(0xcc)](_0x25eac8));}}[a57_0x2539d5(0xd6)](){const _0x43d54e=a57_0x2539d5,_0x281a5a={};_0x281a5a[_0x43d54e(0x65)]=function(_0x208303,_0x3bd6d6){return _0x208303!==_0x3bd6d6;},_0x281a5a[_0x43d54e(0xa4)]=function(_0x2017a2,_0x41ec46){return _0x2017a2===_0x41ec46;},_0x281a5a[_0x43d54e(0xa7)]=function(_0x22bea1,_0x24b8a8){return _0x22bea1!==_0x24b8a8;},_0x281a5a[_0x43d54e(0x83)]=function(_0x33ae9a,_0x3916b1){return _0x33ae9a!==_0x3916b1;};const _0xfe436c=_0x281a5a;return CLIUtils[_0x43d54e(0xe7)]()||this['isMainConnected']&&_0xfe436c['wpjEB'](this['process'],null)&&_0xfe436c[_0x43d54e(0xa4)](this[_0x43d54e(0x117)][_0x43d54e(0xa6)],null)&&_0xfe436c[_0x43d54e(0xa7)](GrpcClient[_0x43d54e(0x112)]()[_0x43d54e(0x94)](),null)&&!GrpcClient['getInstance']()[_0x43d54e(0x9e)]()[_0x43d54e(0xd9)]||this[_0x43d54e(0x90)]&&_0xfe436c[_0x43d54e(0x83)](GrpcClient[_0x43d54e(0x112)]()[_0x43d54e(0x9e)](),null)&&!GrpcClient['getInstance']()[_0x43d54e(0x9e)]()[_0x43d54e(0xd9)];}[a57_0x2539d5(0x101)](){const _0x5ca158=a57_0x2539d5;return this[_0x5ca158(0xc6)];}['setBrowserstackConfig'](_0x5ed50a,_0x408314=null){const _0x4c3412=a57_0x2539d5,_0xe1de56={};_0xe1de56[_0x4c3412(0x116)]=function(_0x3d0ccd,_0x3fe039){return _0x3d0ccd||_0x3fe039;};const _0x520a96=_0xe1de56;this[_0x4c3412(0xc6)]=_0x520a96[_0x4c3412(0x116)](_0x5ed50a,{}),this['browserstackCliConfig']=_0x408314,process[_0x4c3412(0xeb)]['BROWSERSTACK_TURBOSCALE']=this[_0x4c3412(0xc6)]?.[_0x4c3412(0x97)]||![];const _0x209a6b=CLIUtils[_0x4c3412(0x68)]();helper[_0x4c3412(0xe5)](process['env'][_0x4c3412(0xbb)])||!CLI_SUPPORTED_FRAMEWORKS[_0x4c3412(0x7b)](_0x209a6b[_0x4c3412(0x121)][_0x4c3412(0xf5)]())?process['env']['BROWSERSTACK_CLI_ENABLED']=![]:process[_0x4c3412(0xeb)][_0x4c3412(0x99)]=!![];}async[a57_0x2539d5(0x122)](){const _0x141014=a57_0x2539d5;return!this['SDK_CLI_BIN_PATH']&&(this[_0x141014(0x102)]=await CLIUtils[_0x141014(0x106)](this[_0x141014(0xc6)])),this[_0x141014(0x102)];}[a57_0x2539d5(0x6c)](){const _0x565412=a57_0x2539d5;return helper['isTrue'](process[_0x565412(0xeb)][_0x565412(0x99)]);}['getConfig'](){const _0x4ca0ca=a57_0x2539d5;return this[_0x4ca0ca(0x7d)];}['setConfig'](_0x187896){const _0x27aa28=a57_0x2539d5,_0x24ac30={};_0x24ac30[_0x27aa28(0x95)]=_0x27aa28(0x78);const _0x58662c=_0x24ac30;try{this['config']=JSON[_0x27aa28(0x125)](_0x187896[_0x27aa28(0xb0)]()),this[_0x27aa28(0x123)][_0x27aa28(0x7c)](_0x58662c['SHePM']);}catch(_0x3c92e8){this[_0x27aa28(0x123)][_0x27aa28(0xd7)](_0x27aa28(0x79)+util['format'](_0x3c92e8));}}['setCliArgs'](_0x1a4916){const _0x38616e=a57_0x2539d5;try{this[_0x38616e(0xef)]=_0x1a4916[_0x38616e(0x6e)]()[_0x38616e(0x75)](','),this[_0x38616e(0x123)][_0x38616e(0x7c)](_0x38616e(0x69)+JSON[_0x38616e(0x114)](this[_0x38616e(0xef)]));}catch(_0x44d37e){this[_0x38616e(0x123)][_0x38616e(0xd7)]('setCliArgs:\x20error='+util[_0x38616e(0xcc)](_0x44d37e));}}[a57_0x2539d5(0x6e)](){const _0x9a46f5=a57_0x2539d5;return this[_0x9a46f5(0xef)];}[a57_0x2539d5(0xd1)](){const _0x1859ac=a57_0x2539d5,_0xd2c3b6={};_0xd2c3b6[_0x1859ac(0x8d)]=function(_0x223455,_0x1b10b2){return _0x223455===_0x1b10b2;};const _0x174fbb=_0xd2c3b6,_0x25147a=CLIUtils[_0x1859ac(0x68)]();_0x174fbb[_0x1859ac(0x8d)](_0x25147a['name']['toLowerCase'](),FRAMEWORKS[_0x1859ac(0xcf)][_0x1859ac(0xf5)]())&&(this[_0x1859ac(0x10d)]=new PlaywrightTestFramework([_0x25147a[_0x1859ac(0x121)]],_0x25147a[_0x1859ac(0x11c)]));}[a57_0x2539d5(0xd5)](){const _0x48b9a4=a57_0x2539d5,_0x4a098f={};_0x4a098f['mGxLI']=function(_0x5c4b1e,_0x59eb78){return _0x5c4b1e===_0x59eb78;};const _0x3bd7d8=_0x4a098f,_0x54f4a3=CLIUtils['getAutomationFrameworkDetail']();_0x3bd7d8[_0x48b9a4(0xb6)](_0x54f4a3[_0x48b9a4(0x121)][_0x48b9a4(0xf5)](),FRAMEWORKS[_0x48b9a4(0xcf)][_0x48b9a4(0xf5)]())&&(this['automationFramework']=new PlaywrightAutomationFramework(_0x54f4a3['name'],_0x54f4a3[_0x48b9a4(0x11c)]));}[a57_0x2539d5(0x81)](){const _0x5a3456=a57_0x2539d5;return this[_0x5a3456(0x10d)];}[a57_0x2539d5(0x91)](){const _0x5d18df=a57_0x2539d5;return this[_0x5d18df(0xd8)];}['getBrowserstackCliConfig'](){const _0x11254e=a57_0x2539d5;return this[_0x11254e(0xff)];}}module['exports']=BrowserstackCLI;
@@ -1 +1 @@
1
- const a58_0x3a32a8=a58_0x28a0;function a58_0x28a0(_0xe30f8e,_0x34d0f9){const _0x9ab38=a58_0x9ab3();return a58_0x28a0=function(_0x28a092,_0x3ddfb5){_0x28a092=_0x28a092-0x106;let _0x4cd020=_0x9ab38[_0x28a092];return _0x4cd020;},a58_0x28a0(_0xe30f8e,_0x34d0f9);}function a58_0x9ab3(){const _0x4f65bb=['../../helpers/classLogger.js','Failed\x20to\x20delete\x20zip\x20file:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','xPtQZ','development','ZtDbp','xMhfT','fryCR','Skzpe','isFile','end','info','worker_threads','reduce','fWRle','test','UAMAs','openReadStream','pid','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','cwd','lPcPa','Failed\x20to\x20download\x20binary,\x20Exception:\x20','env','existsSync','rylDC','filePath','getCliDir','TRmiq','Resolved\x20binary\x20path:\x20','1135302CYYsTq','Error\x20while\x20reading\x20CLI\x20path:\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','open','aCWxk','kteal','jEsnu','gEaWM','getHookRegistryKey','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','cli','ldYtD','RgzLQ','BSzhH','isDevelopmentEnv','testContextOptions','dxTXS','format','arch','requestToUpdateCLI','getAutomationFrameworkDetail','xwoQr','fileName','Development\x20Cli\x20Path:\x20','cli_version','BROWSERSTACK_CLI_ENV','HTPan','DpOHD','close','pipe','1|3|4|2|0','getTestFrameworkDetail','./instances/testFrameworkInstance.js','2334wMclas','getSdkVersion','iYVPo','follow-redirects','lazyEntries','exports','cUsqL','downloadLatestBinary','SDK_CLI_CHECK_UPDATE','map','getSdkLanguage','wKYul','qUSfI','listen','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','startsWith','UGICd','tmp','entry','../../helpers/test-observability/utils.js','IXwyU','split','createWriteStream','isDirectory','../../helpers/performance/performance-tester.js','NSYFK','1340274QQannq','ALFLa','downloadFileStream','CLIUtils','ukcis','version','PiSIL','FFHJB','./state/automationFrameworkState.js','SDK_CLI_DOWNLOAD','BcFOt','getCLIParamsForDevEnv','hXYaq','SDK_CLI_BIN_PATH','wdrpM','CpCAg','GET','ahBsV','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','path','../../helpers/performance/constants','9qXFkDG','warn','SebJD','runShellCommand','stringify','PPKrC','binary-','jRvcP','./framework/constants/testFrameworkConstants.js','shouldSkipSessionStatus','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','YgVhX','HOOK_REGEX','get','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','LVLLC','shouldSkipSessionName','statSync','WYdjA','./state/testFrameworkState.js','Folder\x20does\x20not\x20exist:\x20','FlfQT','\x20already\x20exists','setupCliPath','debug','parse','child_process','error','XZvsS','getExistingCliPath','EuPKz','qJXKe','hVfdr','17497120Snezve','chmod','SHELL_EXECUTE_ERROR','jegXr','util','skipSessionStatus','3443576tAPTcQ','NbDPg','gwZGP','.sock','./state/hookState.js','3370885jAQRZn','yvjKR','Downloading\x20SDK\x20binary\x20from:\x20','getWritableDir','Configuring\x20Cli\x20path.','testFrameworkDetail','start','url','trim','xGAlP','Current\x20CLI\x20Path\x20Found:\x20','BROWSERSTACK_BINARY_URL','gdPCX','getCurrentInstanceName','22407SFyPRQ','node','772795qKyIJw','rFIDz','automationFrameworkDetail','join','downloaded_file.zip','mtime',',\x20automationFramework=','WxJie','zmjDv','SieGC','response\x20','../utils/constants','data','readEntry'];a58_0x9ab3=function(){return _0x4f65bb;};return a58_0x9ab3();}(function(_0x2fec8e,_0x4ca9aa){const _0x41d585=a58_0x28a0,_0x239e2e=_0x2fec8e();while(!![]){try{const _0x4b7935=parseInt(_0x41d585(0x114))/0x1+-parseInt(_0x41d585(0x140))/0x2+-parseInt(_0x41d585(0x17b))/0x3+parseInt(_0x41d585(0x1b7))/0x4+-parseInt(_0x41d585(0x1bc))/0x5+-parseInt(_0x41d585(0x161))/0x6*(parseInt(_0x41d585(0x112))/0x7)+parseInt(_0x41d585(0x1b1))/0x8*(parseInt(_0x41d585(0x190))/0x9);if(_0x4b7935===_0x4ca9aa)break;else _0x239e2e['push'](_0x239e2e['shift']());}catch(_0x15f0b3){_0x239e2e['push'](_0x239e2e['shift']());}}}(a58_0x9ab3,0xd890e));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a58_0x3a32a8(0x18e)),{exec}=require(a58_0x3a32a8(0x1aa)),{https}=require(a58_0x3a32a8(0x164)),yauzl=require('yauzl'),util=require(a58_0x3a32a8(0x1b5)),{getFrameworkVersion}=require(a58_0x3a32a8(0x174)),{threadId}=require(a58_0x3a32a8(0x12e)),PerformanceTester=require(a58_0x3a32a8(0x179)),{EVENTS:PerformanceEvents}=require(a58_0x3a32a8(0x18f)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require(a58_0x3a32a8(0x11f)),{createClassLogger}=require(a58_0x3a32a8(0x122)),TestFrameworkInstance=require(a58_0x3a32a8(0x160)),HookState=require(a58_0x3a32a8(0x1bb)),TestFrameworkState=require(a58_0x3a32a8(0x1a3)),AutomationFrameworkState=require(a58_0x3a32a8(0x183)),TestFrameworkConstants=require(a58_0x3a32a8(0x198)),logger=createClassLogger(a58_0x3a32a8(0x17e));class CLIUtils{[a58_0x3a32a8(0x116)]={};['testFrameworkDetail']={};static[a58_0x3a32a8(0x14e)](){const _0x4dd570=a58_0x3a32a8,_0x4d40a7={};_0x4d40a7['SieGC']=function(_0x4e105f,_0x2a4c33){return _0x4e105f===_0x2a4c33;},_0x4d40a7[_0x4dd570(0x1b9)]=_0x4dd570(0x126);const _0x27d2cd=_0x4d40a7;return _0x27d2cd[_0x4dd570(0x11d)](process[_0x4dd570(0x139)][_0x4dd570(0x159)],_0x27d2cd[_0x4dd570(0x1b9)]);}static[a58_0x3a32a8(0x186)](){const _0x51661f=a58_0x3a32a8,_0x5a6107={};return _0x5a6107['id']=process['env'][_0x51661f(0x159)],_0x5a6107[_0x51661f(0x16e)]='unix:/tmp/sdk-platform-'+process[_0x51661f(0x139)][_0x51661f(0x159)]+_0x51661f(0x1ba),_0x5a6107;}static[a58_0x3a32a8(0x162)](){const _0x5aa22a=a58_0x3a32a8,_0x54fa4a={'EuPKz':function(_0x128576,_0x3bc1b0){return _0x128576(_0x3bc1b0);},'dxTXS':'../../../package.json'};return _0x54fa4a[_0x5aa22a(0x1ae)](require,_0x54fa4a[_0x5aa22a(0x150)])[_0x5aa22a(0x180)];}static[a58_0x3a32a8(0x16b)](){const _0x3688a4=a58_0x3a32a8,_0x2d5efa={};_0x2d5efa['SebJD']=_0x3688a4(0x113);const _0x5ce8c8=_0x2d5efa;return _0x5ce8c8[_0x3688a4(0x192)];}static async[a58_0x3a32a8(0x1a7)](_0x43888d){const _0x31e472=a58_0x3a32a8,_0x2e26f3={'WxJie':_0x31e472(0x108),'CpCAg':function(_0x26a748,_0x4abef2){return _0x26a748(_0x4abef2);},'yvjKR':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x31e472(0x1a8)](_0x2e26f3[_0x31e472(0x11b)]);const _0xa6d671=process[_0x31e472(0x139)][_0x31e472(0x188)];if(!_0x2e26f3[_0x31e472(0x18a)](isNullOrEmpty,_0xa6d671))return logger[_0x31e472(0x1a8)](_0x31e472(0x157)+_0xa6d671),_0xa6d671;try{const _0x2b7e87=this['getCliDir']();if(_0x2e26f3['CpCAg'](isNullOrEmpty,_0x2b7e87))throw new Error(_0x2e26f3[_0x31e472(0x1bd)]);const _0xa4c06=this[_0x31e472(0x1ad)](_0x2b7e87),_0x4ec38f=await this['checkAndUpdateCli'](_0xa4c06,_0x2b7e87,_0x43888d);return logger[_0x31e472(0x1a8)](_0x31e472(0x13f)+_0x4ec38f),_0x4ec38f;}catch(_0x5a755e){logger['debug'](_0x31e472(0x135)+util[_0x31e472(0x151)](_0x5a755e));}return null;}static async['checkAndUpdateCli'](_0x131102,_0x322152,_0xe72da3){const _0x24163e=a58_0x3a32a8,_0x34e2e4={'ukcis':function(_0x143d51){return _0x143d51();},'YgVhX':function(_0x271389,_0x21c5ec){return _0x271389(_0x21c5ec);},'UGICd':function(_0x21d087,_0x4de199,_0x15af9f){return _0x21d087(_0x4de199,_0x15af9f);},'wdrpM':'data','kteal':_0x24163e(0x10b)};PerformanceTester[_0x24163e(0x10a)](PerformanceEvents[_0x24163e(0x169)]),logger[_0x24163e(0x12d)](_0x24163e(0x10e)+_0x131102);const _0x25e367=_0x34e2e4[_0x24163e(0x17f)](getHostInfo),_0x29c240={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x25e367['platform'],'os_arch':_0x25e367[_0x24163e(0x152)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x34e2e4[_0x24163e(0x19b)](isNullOrEmpty,_0x131102)&&(_0x29c240[_0x24163e(0x158)]=await this['runShellCommand'](_0x131102+'\x20version'));const _0x101286=await this[_0x24163e(0x153)](_0x29c240,_0xe72da3);process['env']['BROWSERSTACK_BINARY_URL']&&(logger[_0x24163e(0x12d)](_0x24163e(0x18d)+process[_0x24163e(0x139)][_0x24163e(0x10f)]),_0x101286[_0x24163e(0x120)]['url']=process[_0x24163e(0x139)]['BROWSERSTACK_BINARY_URL']);if(_0x34e2e4[_0x24163e(0x171)](nestedKeyValue,_0x101286,[_0x34e2e4[_0x24163e(0x189)],_0x34e2e4[_0x24163e(0x145)]])){logger[_0x24163e(0x1a8)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x29c240['cli_version']);const _0x5bcc7d=await this[_0x24163e(0x168)](_0x34e2e4[_0x24163e(0x171)](nestedKeyValue,_0x101286,[_0x34e2e4[_0x24163e(0x189)],_0x34e2e4[_0x24163e(0x145)]]),_0x322152);return PerformanceTester[_0x24163e(0x12c)](PerformanceEvents[_0x24163e(0x169)]),_0x5bcc7d;}return PerformanceTester[_0x24163e(0x12c)](PerformanceEvents[_0x24163e(0x169)]),_0x131102;}static[a58_0x3a32a8(0x13d)](){const _0xbad72=a58_0x3a32a8,_0x4b340a={'jegXr':function(_0x3db144,_0x2d3d80){return _0x3db144(_0x2d3d80);},'MQZdd':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','BcFOt':_0xbad72(0x14a),'FlfQT':function(_0x522165,_0x5135ec){return _0x522165(_0x5135ec);}},_0x5a21af=this[_0xbad72(0x107)]();try{if(_0x4b340a[_0xbad72(0x1b4)](isNullOrEmpty,_0x5a21af))throw new Error(_0x4b340a['MQZdd']);const _0x19fe80=path[_0xbad72(0x117)](_0x5a21af,_0x4b340a[_0xbad72(0x185)]);return!fs['existsSync'](_0x19fe80)&&_0x4b340a[_0xbad72(0x1a5)](createDir,_0x19fe80),_0x19fe80;}catch(_0x2a6a4a){logger[_0xbad72(0x1a8)](_0xbad72(0x142)+util[_0xbad72(0x151)](_0x2a6a4a));}}static[a58_0x3a32a8(0x107)](){const _0x2b7d07=a58_0x3a32a8,_0x2b5208={'zmjDv':'.browserstack','pUdHj':_0x2b7d07(0x172),'cUsqL':function(_0x35f347,_0x53cbec){return _0x35f347(_0x53cbec);},'gdPCX':function(_0x182ab4,_0x54a73b){return _0x182ab4(_0x54a73b);},'ldYtD':function(_0x44f3de,_0x2e7e7b){return _0x44f3de(_0x2e7e7b);},'LVLLC':function(_0x1c1f7a,_0x5337ec){return _0x1c1f7a(_0x5337ec);},'lPcPa':function(_0x5b4ff4,_0x995b25){return _0x5b4ff4(_0x995b25);}},_0xfc2cb1=[process['env']['BROWSERSTACK_FILES_DIR'],path[_0x2b7d07(0x117)](os['homedir'](),_0x2b5208[_0x2b7d07(0x11c)]),path[_0x2b7d07(0x117)](_0x2b5208['pUdHj'],_0x2b5208[_0x2b7d07(0x11c)])];for(const _0x54429b of _0xfc2cb1){if(_0x2b5208[_0x2b7d07(0x167)](isNullOrEmpty,_0x54429b))continue;try{if(fs[_0x2b7d07(0x13a)](_0x54429b)){logger[_0x2b7d07(0x1a8)]('Folder\x20'+_0x54429b+_0x2b7d07(0x1a6));if(!_0x2b5208[_0x2b7d07(0x110)](isModifiable,_0x54429b)){logger[_0x2b7d07(0x1a8)]('Setting\x20required\x20permissions\x20to\x20'+_0x54429b);const _0x2cfafe=_0x2b5208[_0x2b7d07(0x110)](setReadWriteExecuteAccess,_0x54429b);!_0x2b5208[_0x2b7d07(0x14b)](isTrue,_0x2cfafe)&&logger[_0x2b7d07(0x191)](_0x2b7d07(0x124)+_0x54429b);}}else{logger[_0x2b7d07(0x1a8)](_0x2b7d07(0x1a4)+_0x54429b),_0x2b5208[_0x2b7d07(0x19f)](createDir,_0x54429b),logger[_0x2b7d07(0x1a8)]('Setting\x20required\x20permissions\x20to\x20'+_0x54429b);const _0x286cb4=_0x2b5208[_0x2b7d07(0x137)](setReadWriteExecuteAccess,_0x54429b);!_0x2b5208[_0x2b7d07(0x167)](isTrue,_0x286cb4)&&logger[_0x2b7d07(0x191)](_0x2b7d07(0x124)+_0x54429b);}return _0x54429b;}catch(_0x3c4ee8){logger[_0x2b7d07(0x1ab)](_0x2b7d07(0x19a)+util[_0x2b7d07(0x151)](_0x3c4ee8));}}return null;}static[a58_0x3a32a8(0x1ad)](_0x3d8163){const _0x3a114f=a58_0x3a32a8,_0x100a5f={};_0x100a5f['NSYFK']=function(_0x59f5d3,_0x2fec03){return _0x59f5d3>_0x2fec03;},_0x100a5f[_0x3a114f(0x144)]=function(_0x437e5b,_0x244ce7){return _0x437e5b>_0x244ce7;};const _0x48411f=_0x100a5f;try{if(!fs['existsSync'](_0x3d8163)||!fs[_0x3a114f(0x1a1)](_0x3d8163)[_0x3a114f(0x178)]())return'';const _0x23e405=fs['readdirSync'](_0x3d8163)[_0x3a114f(0x16a)](_0x50718a=>path[_0x3a114f(0x117)](_0x3d8163,_0x50718a))['filter'](_0x7ab5b6=>fs[_0x3a114f(0x1a1)](_0x7ab5b6)[_0x3a114f(0x12b)]()&&path['basename'](_0x7ab5b6)[_0x3a114f(0x170)](_0x3a114f(0x196)));if(_0x48411f[_0x3a114f(0x144)](_0x23e405['length'],0x0)){const _0x480e54=_0x23e405['map'](_0x52cdda=>({'filePath':_0x52cdda,'mtime':fs[_0x3a114f(0x1a1)](_0x52cdda)[_0x3a114f(0x119)]}))[_0x3a114f(0x12f)]((_0x25e84b,_0x594a39)=>{const _0x5245a9=_0x3a114f;if(!_0x25e84b||!_0x25e84b[_0x5245a9(0x119)])return _0x594a39;if(_0x48411f[_0x5245a9(0x17a)](_0x594a39['mtime'],_0x25e84b[_0x5245a9(0x119)]))return _0x594a39;return _0x25e84b;},{});return _0x480e54?_0x480e54[_0x3a114f(0x13c)]:'';}return'';}catch(_0x5660eb){return logger[_0x3a114f(0x1ab)](_0x3a114f(0x141)+util['format'](_0x5660eb)),'';}}static [a58_0x3a32a8(0x153)]=async(_0x15c8cf,_0x13794a)=>{const _0x439564=a58_0x3a32a8,_0x9d62eb={'WbAkK':function(_0x7ed898,_0x41ea22,_0x174031,_0x3bcd6a,_0x1a356c,_0xb6a501){return _0x7ed898(_0x41ea22,_0x174031,_0x3bcd6a,_0x1a356c,_0xb6a501);},'Skzpe':_0x439564(0x18b)},_0x200c43={};_0x200c43['qs']=_0x15c8cf;const _0x362cc5=await _0x9d62eb['WbAkK'](nodeRequest,_0x9d62eb[_0x439564(0x12a)],UPDATED_CLI_ENDPOINT,_0x200c43,_0x13794a,BROWSERSTACK_API_URL);return logger[_0x439564(0x1a8)](_0x439564(0x11e)+JSON[_0x439564(0x194)](_0x362cc5)),_0x362cc5;};static[a58_0x3a32a8(0x193)](_0x46f88c,_0x5616d2=''){const _0x423766=a58_0x3a32a8,_0x288187={'HTPan':function(_0xb4ab04,_0x445f21){return _0xb4ab04(_0x445f21);},'iYVPo':_0x423766(0x1b3),'hVfdr':function(_0x441dbd,_0x1ac12f){return _0x441dbd(_0x1ac12f);},'fWRle':function(_0x1dc938,_0x20c70a,_0x502a60,_0x4afd09){return _0x1dc938(_0x20c70a,_0x502a60,_0x4afd09);},'xMhfT':'error'};return new Promise((_0x93cf6d,_0x398513)=>{const _0x3a5af7=_0x423766,_0x22a121={'xPtQZ':function(_0x305e5f,_0x7f6810){const _0x910d26=a58_0x28a0;return _0x288187[_0x910d26(0x15a)](_0x305e5f,_0x7f6810);},'hXYaq':_0x288187[_0x3a5af7(0x163)],'qJXKe':function(_0x4802b0,_0x347413){const _0x3313eb=_0x3a5af7;return _0x288187[_0x3313eb(0x1b0)](_0x4802b0,_0x347413);}},_0x27416f={};_0x27416f[_0x3a5af7(0x136)]=_0x5616d2,_0x27416f['timeout']=0x1388;const _0x27429f=_0x288187[_0x3a5af7(0x130)](exec,_0x46f88c,_0x27416f,(_0x399c9e,_0x3c4817,_0x5e5555)=>{const _0x297689=_0x3a5af7;_0x399c9e?_0x22a121['xPtQZ'](_0x93cf6d,_0x5e5555[_0x297689(0x10c)]()||_0x22a121[_0x297689(0x187)]):_0x22a121[_0x297689(0x125)](_0x93cf6d,_0x3c4817[_0x297689(0x10c)]());});_0x27429f['on'](_0x288187[_0x3a5af7(0x128)],()=>{const _0x5910ea=_0x3a5af7;_0x22a121[_0x5910ea(0x1af)](_0x93cf6d,_0x22a121[_0x5910ea(0x187)]);});});}static [a58_0x3a32a8(0x168)]=async(_0x9f02db,_0x244314)=>{const _0x11bde6=a58_0x3a32a8,_0x2d9d18={'ALFLa':function(_0x52229a,_0x2a36f7){return _0x52229a(_0x2a36f7);},'xGAlP':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','rFIDz':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','jEsnu':_0x11bde6(0x1ab),'DpOHD':_0x11bde6(0x118)};PerformanceTester[_0x11bde6(0x10a)](PerformanceEvents[_0x11bde6(0x184)]),logger[_0x11bde6(0x1a8)](_0x11bde6(0x106)+_0x9f02db);try{const _0x45d8c4=url[_0x11bde6(0x1a9)](_0x9f02db),_0x50e0d1=path[_0x11bde6(0x117)](_0x244314,_0x2d9d18[_0x11bde6(0x15b)]),_0x491382=fs[_0x11bde6(0x177)](_0x50e0d1);return new Promise((_0x31b400,_0x4213fd)=>{const _0xec07d6=_0x11bde6,_0x493a8f={'UAMAs':_0x2d9d18[_0xec07d6(0x10d)],'PPKrC':function(_0x3cd1fe,_0x370b78){return _0x2d9d18['ALFLa'](_0x3cd1fe,_0x370b78);},'gEaWM':_0x2d9d18[_0xec07d6(0x115)],'ZtDbp':function(_0x456a1a,_0x17b4e0){const _0x24e077=_0xec07d6;return _0x2d9d18[_0x24e077(0x17c)](_0x456a1a,_0x17b4e0);},'IXwyU':_0x2d9d18['jEsnu']};https[_0xec07d6(0x19d)](_0x45d8c4,function(_0x5202bc){const _0x569fde=_0xec07d6,_0x30fbdc=null;_0x5202bc[_0x569fde(0x15d)](_0x491382),_0x5202bc['on'](_0x493a8f['IXwyU'],function(_0x30975c){const _0x31af74=_0x569fde;logger[_0x31af74(0x1ab)](util['format'](_0x493a8f[_0x31af74(0x132)],_0x30975c)),PerformanceTester['end'](PerformanceEvents[_0x31af74(0x184)],![],util[_0x31af74(0x151)](_0x30975c)),_0x493a8f[_0x31af74(0x195)](_0x4213fd,_0x30975c);}),_0x491382['on'](_0x493a8f[_0x569fde(0x175)],function(_0x111f0d){const _0x8d0138=_0x569fde;logger['error'](util[_0x8d0138(0x151)](_0x493a8f[_0x8d0138(0x147)],_0x111f0d)),PerformanceTester[_0x8d0138(0x12c)](PerformanceEvents[_0x8d0138(0x184)],![],util['format'](_0x111f0d)),_0x493a8f[_0x8d0138(0x127)](_0x4213fd,_0x111f0d);}),CLIUtils[_0x569fde(0x17d)](_0x491382,_0x30fbdc,_0x50e0d1,_0x244314,_0x31b400,_0x4213fd),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD']);})['on'](_0x2d9d18[_0xec07d6(0x146)],function(_0xe6411a){const _0x4a95f4=_0xec07d6;logger['error'](_0x4a95f4(0x19e)+util[_0x4a95f4(0x151)](_0xe6411a)),PerformanceTester[_0x4a95f4(0x12c)](PerformanceEvents[_0x4a95f4(0x184)],![],util[_0x4a95f4(0x151)](_0xe6411a)),_0x2d9d18[_0x4a95f4(0x17c)](_0x4213fd,_0xe6411a);});});}catch(_0x369bdd){PerformanceTester[_0x11bde6(0x12c)](PerformanceEvents[_0x11bde6(0x184)],![],util[_0x11bde6(0x151)](_0x369bdd)),logger['debug'](_0x11bde6(0x138)+util[_0x11bde6(0x151)](_0x369bdd));}};static[a58_0x3a32a8(0x17d)](_0x149b2c,_0x21e3af,_0x4ecabb,_0x392e38,_0x942618,_0x218837){const _0x1709ce=a58_0x3a32a8,_0x37c783={'OtzNM':function(_0x19eab6,_0xec95f6){return _0x19eab6(_0xec95f6);},'xwoQr':_0x1709ce(0x12c),'FFHJB':function(_0x24b8b3,_0x54d3b5){return _0x24b8b3===_0x54d3b5;},'ahBsV':function(_0x351f71,_0x52f51c){return _0x351f71(_0x52f51c);},'jRvcP':_0x1709ce(0x173),'PiSIL':_0x1709ce(0x1ab),'TRmiq':'0755','jvDlA':'close'};_0x149b2c['on'](_0x37c783['jvDlA'],function(){const _0x2e932e=_0x1709ce,_0x4e2d09={'NbDPg':function(_0x2a72ba,_0x11c173){const _0x38b539=a58_0x28a0;return _0x37c783[_0x38b539(0x18c)](_0x2a72ba,_0x11c173);},'weYln':_0x37c783[_0x2e932e(0x13e)]},_0x18a1a7={};_0x18a1a7[_0x2e932e(0x165)]=!![],yauzl[_0x2e932e(0x143)](_0x4ecabb,_0x18a1a7,function(_0x2b031a,_0x397d18){const _0x19d757=_0x2e932e,_0x33dc90={'XZvsS':function(_0x83fbe0,_0x1a4ea9){return _0x37c783['OtzNM'](_0x83fbe0,_0x1a4ea9);},'wheLP':_0x37c783[_0x19d757(0x155)],'fryCR':function(_0x5f4364,_0x2d1f60){const _0x2d1662=_0x19d757;return _0x37c783[_0x2d1662(0x182)](_0x5f4364,_0x2d1f60);}};_0x2b031a&&_0x37c783[_0x19d757(0x18c)](_0x218837,_0x2b031a),_0x397d18[_0x19d757(0x121)](),_0x397d18['on'](_0x37c783[_0x19d757(0x197)],_0x15a67d=>{const _0x5d91a2=_0x19d757,_0x2d08ee={'gEgrM':function(_0x4fa6d0,_0xaee9ff){const _0xcc59fd=a58_0x28a0;return _0x33dc90[_0xcc59fd(0x1ac)](_0x4fa6d0,_0xaee9ff);},'rylDC':_0x33dc90['wheLP']};!_0x21e3af&&(_0x21e3af=_0x15a67d[_0x5d91a2(0x156)]);if(/\/$/[_0x5d91a2(0x131)](_0x15a67d['fileName']))_0x397d18[_0x5d91a2(0x121)]();else{const _0x35f359=fs['createWriteStream'](path[_0x5d91a2(0x117)](_0x392e38,_0x15a67d[_0x5d91a2(0x156)]));_0x397d18[_0x5d91a2(0x133)](_0x15a67d,function(_0x22f746,_0x4dc457){const _0x562319=_0x5d91a2;_0x22f746&&_0x2d08ee['gEgrM'](_0x218837,_0x2b031a),_0x4dc457['on'](_0x2d08ee[_0x562319(0x13b)],function(){const _0x48b3ec=_0x562319;_0x35f359[_0x48b3ec(0x15c)](),_0x397d18[_0x48b3ec(0x121)]();}),_0x4dc457[_0x562319(0x15d)](_0x35f359);}),_0x33dc90[_0x5d91a2(0x129)](_0x15a67d[_0x5d91a2(0x156)],_0x21e3af)&&_0x397d18[_0x5d91a2(0x15c)]();}}),_0x397d18['on'](_0x37c783[_0x19d757(0x181)],_0x3c7789=>{const _0x4adc9=_0x19d757;_0x33dc90[_0x4adc9(0x1ac)](_0x218837,_0x3c7789);}),_0x397d18['once'](_0x37c783[_0x19d757(0x155)],()=>{const _0x5a6bba=_0x19d757,_0x479399={'BSzhH':function(_0x140ea4,_0x427ad3){const _0x133469=a58_0x28a0;return _0x4e2d09[_0x133469(0x1b8)](_0x140ea4,_0x427ad3);}};fs['unlink'](_0x4ecabb,_0x5e35f5=>{const _0x5651c3=a58_0x28a0;_0x5e35f5&&logger['warn'](_0x5651c3(0x123)+_0x4ecabb);}),fs[_0x5a6bba(0x1b2)](_0x392e38+'/'+_0x21e3af,_0x4e2d09['weYln'],function(_0x374714){const _0x360a39=_0x5a6bba;_0x374714&&_0x479399[_0x360a39(0x14d)](_0x218837,_0x374714),_0x479399[_0x360a39(0x14d)](_0x942618,_0x392e38+'/'+_0x21e3af);}),_0x397d18[_0x5a6bba(0x15c)]();});});});}static[a58_0x3a32a8(0x15f)](){const _0x335e3f=a58_0x3a32a8;if(process['env'][_0x335e3f(0x16f)])return JSON['parse'](process[_0x335e3f(0x139)][_0x335e3f(0x16f)]);return this['testFrameworkDetail'];}static[a58_0x3a32a8(0x154)](){const _0x3f1c0d=a58_0x3a32a8;if(process[_0x3f1c0d(0x139)][_0x3f1c0d(0x149)])return JSON['parse'](process[_0x3f1c0d(0x139)][_0x3f1c0d(0x149)]);return this[_0x3f1c0d(0x116)];}static['setFrameworkDetail'](_0x3241c1,_0x4cd26b){const _0x43d95=a58_0x3a32a8,_0x2c19fa={'RgzLQ':_0x43d95(0x15e),'qUSfI':function(_0x4b33ad,_0x478422){return _0x4b33ad||_0x478422;},'WYdjA':function(_0x11f2d4,_0x56957a){return _0x11f2d4(_0x56957a);},'wKYul':function(_0x4e50ee,_0x25e6c9){return _0x4e50ee(_0x25e6c9);}},_0x32c10f=_0x2c19fa[_0x43d95(0x14c)][_0x43d95(0x176)]('|');let _0x405ae7=0x0;while(!![]){switch(_0x32c10f[_0x405ae7++]){case'0':process[_0x43d95(0x139)][_0x43d95(0x16f)]=JSON[_0x43d95(0x194)](this[_0x43d95(0x109)]);continue;case'1':_0x2c19fa[_0x43d95(0x16d)](!_0x3241c1,!_0x4cd26b)&&logger[_0x43d95(0x1a8)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x3241c1+_0x43d95(0x11a)+_0x4cd26b);continue;case'2':process[_0x43d95(0x139)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x43d95(0x194)](this[_0x43d95(0x116)]);continue;case'3':this[_0x43d95(0x109)]={'name':_0x3241c1,'version':{[_0x3241c1]:_0x2c19fa[_0x43d95(0x1a2)](getFrameworkVersion,_0x3241c1)}};continue;case'4':this[_0x43d95(0x116)]={'name':_0x4cd26b,'version':_0x2c19fa[_0x43d95(0x16c)](getFrameworkVersion,_0x4cd26b)};continue;}break;}}static[a58_0x3a32a8(0x148)](_0x5206d2,_0x129425){return _0x5206d2+':'+_0x129425;}static[a58_0x3a32a8(0x111)](){const _0x442d63=a58_0x3a32a8;return process[_0x442d63(0x134)]+':'+threadId;}static[a58_0x3a32a8(0x1a0)](_0x7f0bfa){const _0x506cb9=a58_0x3a32a8;if(_0x7f0bfa['testContextOptions']&&_0x7f0bfa[_0x506cb9(0x14f)]['skipSessionName'])return!![];return![];}static[a58_0x3a32a8(0x199)](_0x32667f){const _0x402e88=a58_0x3a32a8;if(_0x32667f[_0x402e88(0x14f)]&&_0x32667f['testContextOptions'][_0x402e88(0x1b6)])return!![];return![];}static['matchHookRegex'](_0x347821){const _0xb83b0=a58_0x3a32a8,_0x254c11=new RegExp(TestFrameworkConstants[_0xb83b0(0x19c)]);return _0x254c11[_0xb83b0(0x131)](_0x347821);}}module[a58_0x3a32a8(0x166)]=CLIUtils;
1
+ const a58_0x23a206=a58_0x419a;function a58_0x419a(_0x213eec,_0x3a18a1){const _0x24b16a=a58_0x24b1();return a58_0x419a=function(_0x419ac3,_0x15188d){_0x419ac3=_0x419ac3-0x154;let _0x1ccb09=_0x24b16a[_0x419ac3];return _0x1ccb09;},a58_0x419a(_0x213eec,_0x3a18a1);}(function(_0x1a8dba,_0x3955c6){const _0x4eaa6e=a58_0x419a,_0x3d9ac4=_0x1a8dba();while(!![]){try{const _0x372ad9=parseInt(_0x4eaa6e(0x1a8))/0x1+-parseInt(_0x4eaa6e(0x182))/0x2*(parseInt(_0x4eaa6e(0x1e1))/0x3)+parseInt(_0x4eaa6e(0x154))/0x4+-parseInt(_0x4eaa6e(0x167))/0x5*(parseInt(_0x4eaa6e(0x18c))/0x6)+parseInt(_0x4eaa6e(0x1ab))/0x7*(parseInt(_0x4eaa6e(0x155))/0x8)+-parseInt(_0x4eaa6e(0x1fe))/0x9*(parseInt(_0x4eaa6e(0x158))/0xa)+parseInt(_0x4eaa6e(0x16b))/0xb;if(_0x372ad9===_0x3955c6)break;else _0x3d9ac4['push'](_0x3d9ac4['shift']());}catch(_0x43ef6e){_0x3d9ac4['push'](_0x3d9ac4['shift']());}}}(a58_0x24b1,0x39ded));const fs=require('fs'),os=require('os'),url=require(a58_0x23a206(0x1c8)),path=require(a58_0x23a206(0x196)),{exec}=require(a58_0x23a206(0x178)),{https}=require(a58_0x23a206(0x1d0)),yauzl=require(a58_0x23a206(0x187)),util=require(a58_0x23a206(0x1c6)),{getFrameworkVersion}=require(a58_0x23a206(0x1f6)),{threadId}=require(a58_0x23a206(0x1f1)),PerformanceTester=require(a58_0x23a206(0x172)),{EVENTS:PerformanceEvents}=require(a58_0x23a206(0x195)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a58_0x23a206(0x174)),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require('../utils/constants'),{createClassLogger}=require(a58_0x23a206(0x18b)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a58_0x23a206(0x1de));function a58_0x24b1(){const _0x5902b5=['ZQjXK','LqjDd','open','error','BROWSERSTACK_FILES_DIR','jobfp','version','ZwLgH','debug','isFile','stringify','length','tmp','lazyEntries','ZQQtU','tcEbn','QjrCF','tbEwN','SDgVp','Folder\x20','close','GET','mZKpW','Folder\x20does\x20not\x20exist:\x20','chmod','BBezF','util','setupCliPath','url','Development\x20Cli\x20Path:\x20','setFrameworkDetail','fileName','once','env','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','join','follow-redirects','homedir','xjjoW','ULfhl','ndgrV','YMmEd','test','getExistingCliPath','EONuO','checkAndUpdateCli','XcewW','eHpDc','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Error\x20while\x20reading\x20CLI\x20path:\x20','CLIUtils','response\x20','downloadLatestBinary','3LaKCti','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','end','info','nnuTG','Resolved\x20binary\x20path:\x20','Grtmb','Setting\x20required\x20permissions\x20to\x20','trim','map','UpDCd','yYfbl','getCLIParamsForDevEnv','runShellCommand','start','uGbOc','worker_threads','FVPYw','unix:/tmp/sdk-platform-','\x20already\x20exists','reduce','../../helpers/test-observability/utils.js','yjzDk','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','HAmVc','EODoW','mtime','xDqCC','exports','126sDgxJP','basename','Current\x20CLI\x20Path\x20Found:\x20','ULWYQ','qMFCx','SDK_CLI_CHECK_UPDATE','entry','testFrameworkDetail','../../../package.json','htJCq','eewHg','SDK_CLI_DOWNLOAD','1414820AuJyMG','65768LvyZzp','parse','platform','266870uobVic','UhCJx','getSdkLanguage','downloadFileStream','pid','readEntry','kFTso','automationFrameworkDetail','nsFVZ','XISod','arch','openReadStream','liqWF','cwd','SiDcT','25495IahpKd','PXvFr','sOyah','createWriteStream','1683924ojDTkQ','existsSync','ocNlF','HOLQZ','timeout','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','\x20version','../../helpers/performance/performance-tester.js','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','../../helpers/helper','GKHop','getCurrentInstanceName','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','child_process','getHookRegistryKey','getSdkVersion','OXwZk','kLTEK','BROWSERSTACK_CLI_ENV','listen','0|3|1|4|2','requestToUpdateCLI','downloaded_file.zip','218292ydiGkZ','xKATn','unlink','PyLcb','cli','yauzl','mryAj','0755','matchHookRegex','../../helpers/classLogger.js','372GArAJf','isDirectory','isDevelopmentEnv','readdirSync','vEKvx','ljGag','statSync','data','Failed\x20to\x20delete\x20zip\x20file:\x20','../../helpers/performance/constants','path','get','BROWSERSTACK_BINARY_URL','XyMfC',',\x20automationFramework=','YNYJS','format','RlARo','warn','filePath','RnUOw','testContextOptions','pipe','getCliDir','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','skipSessionName','cli_version','getAutomationFrameworkDetail','307183soTHCS','dGaHb','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','189bwhqPC'];a58_0x24b1=function(){return _0x5902b5;};return a58_0x24b1();}class CLIUtils{[a58_0x23a206(0x15f)]={};['testFrameworkDetail']={};static[a58_0x23a206(0x18e)](){const _0x556563=a58_0x23a206,_0x22eb4a={};_0x22eb4a[_0x556563(0x201)]=function(_0x5ddd74,_0x55588f){return _0x5ddd74===_0x55588f;},_0x22eb4a['HOLQZ']='development';const _0x2b281b=_0x22eb4a;return _0x2b281b['ULWYQ'](process[_0x556563(0x1cd)]['BROWSERSTACK_CLI_ENV'],_0x2b281b[_0x556563(0x16e)]);}static[a58_0x23a206(0x1ed)](){const _0x5533b5=a58_0x23a206,_0x9a9406={};return _0x9a9406['id']=process[_0x5533b5(0x1cd)][_0x5533b5(0x17d)],_0x9a9406[_0x5533b5(0x17e)]=_0x5533b5(0x1f3)+process[_0x5533b5(0x1cd)]['BROWSERSTACK_CLI_ENV']+'.sock',_0x9a9406;}static[a58_0x23a206(0x17a)](){const _0x5e2756=a58_0x23a206,_0x5dd2a1={'GKHop':function(_0x358318,_0x35489b){return _0x358318(_0x35489b);},'liqWF':_0x5e2756(0x206)};return _0x5dd2a1[_0x5e2756(0x175)](require,_0x5dd2a1[_0x5e2756(0x164)])[_0x5e2756(0x1b2)];}static['getSdkLanguage'](){const _0x198298=a58_0x23a206,_0x308422={};_0x308422[_0x198298(0x1c2)]='node';const _0x55ef05=_0x308422;return _0x55ef05[_0x198298(0x1c2)];}static async[a58_0x23a206(0x1c7)](_0x4ad856){const _0x5208ff=a58_0x23a206,_0x5ba69a={'yjzDk':'Configuring\x20Cli\x20path.','ZQQtU':function(_0x1ba799,_0x103e8b){return _0x1ba799(_0x103e8b);},'UhCJx':function(_0x5caf04,_0x3e8fa7){return _0x5caf04(_0x3e8fa7);},'RlARo':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x5208ff(0x1b4)](_0x5ba69a[_0x5208ff(0x1f7)]);const _0x22a07d=process['env']['SDK_CLI_BIN_PATH'];if(!_0x5ba69a[_0x5208ff(0x1ba)](isNullOrEmpty,_0x22a07d))return logger[_0x5208ff(0x1b4)](_0x5208ff(0x1c9)+_0x22a07d),_0x22a07d;try{const _0x2998dc=this[_0x5208ff(0x1a3)]();if(_0x5ba69a[_0x5208ff(0x159)](isNullOrEmpty,_0x2998dc))throw new Error(_0x5ba69a[_0x5208ff(0x19d)]);const _0x532e46=this['getExistingCliPath'](_0x2998dc),_0x160c1e=await this['checkAndUpdateCli'](_0x532e46,_0x2998dc,_0x4ad856);return logger['debug'](_0x5208ff(0x1e6)+_0x160c1e),_0x160c1e;}catch(_0x8dfb95){logger[_0x5208ff(0x1b4)](_0x5208ff(0x1e2)+util[_0x5208ff(0x19c)](_0x8dfb95));}return null;}static async[a58_0x23a206(0x1d9)](_0x19cddf,_0x225126,_0x2fd972){const _0x4e48ad=a58_0x23a206,_0xed0883={'hASGZ':function(_0x43d28f){return _0x43d28f();},'tWKPt':function(_0x18140a,_0x34c265){return _0x18140a(_0x34c265);},'nsFVZ':function(_0x5a86b3,_0x3f8046,_0x3f8dd9){return _0x5a86b3(_0x3f8046,_0x3f8dd9);},'ocNlF':_0x4e48ad(0x193),'QjrCF':_0x4e48ad(0x1c8),'tbEwN':function(_0x355fe2,_0x41aa63,_0x173900){return _0x355fe2(_0x41aa63,_0x173900);}};PerformanceTester[_0x4e48ad(0x1ef)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger[_0x4e48ad(0x1e4)](_0x4e48ad(0x200)+_0x19cddf);const _0x507880=_0xed0883['hASGZ'](getHostInfo),_0x312e0b={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x507880[_0x4e48ad(0x157)],'os_arch':_0x507880[_0x4e48ad(0x162)],'cli_version':'0','sdk_language':this[_0x4e48ad(0x15a)]()};!_0xed0883['tWKPt'](isNullOrEmpty,_0x19cddf)&&(_0x312e0b[_0x4e48ad(0x1a6)]=await this[_0x4e48ad(0x1ee)](_0x19cddf+_0x4e48ad(0x171)));const _0xf25cf=await this[_0x4e48ad(0x180)](_0x312e0b,_0x2fd972);process[_0x4e48ad(0x1cd)][_0x4e48ad(0x198)]&&(logger['info'](_0x4e48ad(0x170)+process[_0x4e48ad(0x1cd)]['BROWSERSTACK_BINARY_URL']),_0xf25cf[_0x4e48ad(0x193)]['url']=process[_0x4e48ad(0x1cd)][_0x4e48ad(0x198)]);if(_0xed0883[_0x4e48ad(0x160)](nestedKeyValue,_0xf25cf,[_0xed0883[_0x4e48ad(0x16d)],_0xed0883['QjrCF']])){logger[_0x4e48ad(0x1b4)](_0x4e48ad(0x1dc)+_0x312e0b[_0x4e48ad(0x1a6)]);const _0x1bb3c8=await this[_0x4e48ad(0x1e0)](_0xed0883[_0x4e48ad(0x1bd)](nestedKeyValue,_0xf25cf,[_0xed0883[_0x4e48ad(0x16d)],_0xed0883[_0x4e48ad(0x1bc)]]),_0x225126);return PerformanceTester[_0x4e48ad(0x1e3)](PerformanceEvents[_0x4e48ad(0x203)]),_0x1bb3c8;}return PerformanceTester[_0x4e48ad(0x1e3)](PerformanceEvents[_0x4e48ad(0x203)]),_0x19cddf;}static[a58_0x23a206(0x1a3)](){const _0x4ca982=a58_0x23a206,_0x4529a0={'YNYJS':function(_0x10c4b6,_0x136cc6){return _0x10c4b6(_0x136cc6);},'zzbWq':_0x4ca982(0x1aa),'cdlrm':_0x4ca982(0x186)},_0x367e40=this['getWritableDir']();try{if(_0x4529a0[_0x4ca982(0x19b)](isNullOrEmpty,_0x367e40))throw new Error(_0x4529a0['zzbWq']);const _0x4c653=path['join'](_0x367e40,_0x4529a0['cdlrm']);return!fs[_0x4ca982(0x16c)](_0x4c653)&&_0x4529a0[_0x4ca982(0x19b)](createDir,_0x4c653),_0x4c653;}catch(_0x4e0eb5){logger[_0x4ca982(0x1b4)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x4ca982(0x19c)](_0x4e0eb5));}}static['getWritableDir'](){const _0x11323f=a58_0x23a206,_0x466e51={'LqjDd':'.browserstack','uGbOc':_0x11323f(0x1b8),'BBezF':function(_0x4f88af,_0x514582){return _0x4f88af(_0x514582);},'AFFRe':function(_0x4d9efa,_0x4e276a){return _0x4d9efa(_0x4e276a);},'EONuO':function(_0x923b00,_0xe272d4){return _0x923b00(_0xe272d4);},'nnuTG':function(_0x1e2db0,_0x1adf39){return _0x1e2db0(_0x1adf39);},'eewHg':function(_0x54b259,_0x3b4dd7){return _0x54b259(_0x3b4dd7);}},_0x3e44f5=[process[_0x11323f(0x1cd)][_0x11323f(0x1b0)],path[_0x11323f(0x1cf)](os[_0x11323f(0x1d1)](),_0x466e51[_0x11323f(0x1ad)]),path[_0x11323f(0x1cf)](_0x466e51[_0x11323f(0x1f0)],_0x466e51[_0x11323f(0x1ad)])];for(const _0x49194a of _0x3e44f5){if(_0x466e51['BBezF'](isNullOrEmpty,_0x49194a))continue;try{if(fs[_0x11323f(0x16c)](_0x49194a)){logger['debug'](_0x11323f(0x1bf)+_0x49194a+_0x11323f(0x1f4));if(!_0x466e51[_0x11323f(0x1c5)](isModifiable,_0x49194a)){logger[_0x11323f(0x1b4)](_0x11323f(0x1e8)+_0x49194a);const _0x5b1573=_0x466e51['BBezF'](setReadWriteExecuteAccess,_0x49194a);!_0x466e51['AFFRe'](isTrue,_0x5b1573)&&logger['warn'](_0x11323f(0x173)+_0x49194a);}}else{logger[_0x11323f(0x1b4)](_0x11323f(0x1c3)+_0x49194a),_0x466e51[_0x11323f(0x1d8)](createDir,_0x49194a),logger[_0x11323f(0x1b4)]('Setting\x20required\x20permissions\x20to\x20'+_0x49194a);const _0x490ff3=_0x466e51[_0x11323f(0x1e5)](setReadWriteExecuteAccess,_0x49194a);!_0x466e51[_0x11323f(0x208)](isTrue,_0x490ff3)&&logger['warn'](_0x11323f(0x173)+_0x49194a);}return _0x49194a;}catch(_0x49c362){logger[_0x11323f(0x1af)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util['format'](_0x49c362));}}return null;}static[a58_0x23a206(0x1d7)](_0x1c7e64){const _0x1b6a62=a58_0x23a206,_0x3bce0f={};_0x3bce0f['HKFzb']=function(_0x5d52c2,_0x558365){return _0x5d52c2>_0x558365;},_0x3bce0f[_0x1b6a62(0x1da)]=function(_0x16b905,_0x5edfee){return _0x16b905>_0x5edfee;};const _0x13a599=_0x3bce0f;try{if(!fs[_0x1b6a62(0x16c)](_0x1c7e64)||!fs[_0x1b6a62(0x192)](_0x1c7e64)[_0x1b6a62(0x18d)]())return'';const _0x44c993=fs[_0x1b6a62(0x18f)](_0x1c7e64)[_0x1b6a62(0x1ea)](_0x1f417b=>path['join'](_0x1c7e64,_0x1f417b))['filter'](_0x5ac01b=>fs['statSync'](_0x5ac01b)[_0x1b6a62(0x1b5)]()&&path[_0x1b6a62(0x1ff)](_0x5ac01b)['startsWith']('binary-'));if(_0x13a599['XcewW'](_0x44c993[_0x1b6a62(0x1b7)],0x0)){const _0xcbc33f=_0x44c993[_0x1b6a62(0x1ea)](_0x35016c=>({'filePath':_0x35016c,'mtime':fs['statSync'](_0x35016c)['mtime']}))[_0x1b6a62(0x1f5)]((_0xba0b66,_0x35aba7)=>{const _0x3d022c=_0x1b6a62;if(!_0xba0b66||!_0xba0b66['mtime'])return _0x35aba7;if(_0x13a599['HKFzb'](_0x35aba7[_0x3d022c(0x1fb)],_0xba0b66[_0x3d022c(0x1fb)]))return _0x35aba7;return _0xba0b66;},{});return _0xcbc33f?_0xcbc33f[_0x1b6a62(0x19f)]:'';}return'';}catch(_0x33b6b9){return logger[_0x1b6a62(0x1af)](_0x1b6a62(0x1dd)+util[_0x1b6a62(0x19c)](_0x33b6b9)),'';}}static [a58_0x23a206(0x180)]=async(_0x4046ce,_0x279744)=>{const _0x28e8fc=a58_0x23a206,_0x576b44={'ULfhl':function(_0x20aa55,_0x34ee02,_0xfee343,_0x3c04e0,_0x9415a1,_0x5bad86){return _0x20aa55(_0x34ee02,_0xfee343,_0x3c04e0,_0x9415a1,_0x5bad86);},'ZNYYR':_0x28e8fc(0x1c1)},_0x149f6c={};_0x149f6c['qs']=_0x4046ce;const _0x508e0a=await _0x576b44[_0x28e8fc(0x1d3)](nodeRequest,_0x576b44['ZNYYR'],UPDATED_CLI_ENDPOINT,_0x149f6c,_0x279744,BROWSERSTACK_API_URL);return logger[_0x28e8fc(0x1b4)](_0x28e8fc(0x1df)+JSON['stringify'](_0x508e0a)),_0x508e0a;};static[a58_0x23a206(0x1ee)](_0x52d374,_0x189eea=''){const _0x413b8f=a58_0x23a206,_0x107adf={'yYfbl':function(_0x1ca46a,_0x5debc3){return _0x1ca46a(_0x5debc3);},'jobfp':'SHELL_EXECUTE_ERROR','htJCq':function(_0x254191,_0x3f515b){return _0x254191(_0x3f515b);},'ZQjXK':function(_0x390d9c,_0x2ad27d,_0x2d0400,_0x15da72){return _0x390d9c(_0x2ad27d,_0x2d0400,_0x15da72);},'PXvFr':_0x413b8f(0x1af)};return new Promise((_0x386ff2,_0x313af0)=>{const _0x5b12d1=_0x413b8f,_0x1c01c0={'ttCpP':function(_0x45720a,_0x12b085){const _0x10f00b=a58_0x419a;return _0x107adf[_0x10f00b(0x207)](_0x45720a,_0x12b085);},'sKAiR':_0x107adf[_0x5b12d1(0x1b1)]},_0x1b79d2={};_0x1b79d2[_0x5b12d1(0x165)]=_0x189eea,_0x1b79d2[_0x5b12d1(0x16f)]=0x1388;const _0x3df602=_0x107adf[_0x5b12d1(0x1ac)](exec,_0x52d374,_0x1b79d2,(_0x5a0363,_0x31c2ba,_0x2ffd68)=>{const _0x484ce3=_0x5b12d1;_0x5a0363?_0x1c01c0['ttCpP'](_0x386ff2,_0x2ffd68[_0x484ce3(0x1e9)]()||_0x1c01c0['sKAiR']):_0x1c01c0['ttCpP'](_0x386ff2,_0x31c2ba['trim']());});_0x3df602['on'](_0x107adf[_0x5b12d1(0x168)],()=>{const _0x1bf747=_0x5b12d1;_0x107adf[_0x1bf747(0x1ec)](_0x386ff2,_0x107adf[_0x1bf747(0x1b1)]);});});}static [a58_0x23a206(0x1e0)]=async(_0xa05fb2,_0xaeaded)=>{const _0x103e22=a58_0x23a206,_0x54b7ff={'PyLcb':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','tcEbn':function(_0x1f0b70,_0x24c854){return _0x1f0b70(_0x24c854);},'EODoW':_0x103e22(0x177),'OXwZk':'error','ljGag':_0x103e22(0x181)};PerformanceTester[_0x103e22(0x1ef)](PerformanceEvents[_0x103e22(0x209)]),logger[_0x103e22(0x1b4)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0xa05fb2);try{const _0x49c791=url[_0x103e22(0x156)](_0xa05fb2),_0x6d5afd=path[_0x103e22(0x1cf)](_0xaeaded,_0x54b7ff[_0x103e22(0x191)]),_0x3dc060=fs[_0x103e22(0x16a)](_0x6d5afd);return new Promise((_0x34db89,_0x218963)=>{const _0x1ad37b=_0x103e22,_0x4d9b13={'Grtmb':_0x54b7ff[_0x1ad37b(0x185)],'YMmEd':function(_0x33c189,_0x5447bf){const _0x858631=_0x1ad37b;return _0x54b7ff[_0x858631(0x1bb)](_0x33c189,_0x5447bf);},'ZwLgH':_0x54b7ff[_0x1ad37b(0x1fa)],'RnUOw':_0x54b7ff[_0x1ad37b(0x17b)]};https[_0x1ad37b(0x197)](_0x49c791,function(_0x1425a8){const _0x2e7fbd=_0x1ad37b,_0x3a7a2e={'UpDCd':_0x4d9b13[_0x2e7fbd(0x1e7)],'SiDcT':function(_0x4e8e1a,_0x4e2ce5){return _0x4d9b13['YMmEd'](_0x4e8e1a,_0x4e2ce5);},'xJcHE':_0x4d9b13[_0x2e7fbd(0x1b3)],'HAmVc':function(_0x5f5ddf,_0x24a42d){const _0x593b64=_0x2e7fbd;return _0x4d9b13[_0x593b64(0x1d5)](_0x5f5ddf,_0x24a42d);}},_0x8b0bf3=null;_0x1425a8[_0x2e7fbd(0x1a2)](_0x3dc060),_0x1425a8['on'](_0x4d9b13[_0x2e7fbd(0x1a0)],function(_0x250c72){const _0x27e0cb=_0x2e7fbd;logger[_0x27e0cb(0x1af)](util[_0x27e0cb(0x19c)](_0x3a7a2e[_0x27e0cb(0x1eb)],_0x250c72)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x27e0cb(0x19c)](_0x250c72)),_0x3a7a2e[_0x27e0cb(0x166)](_0x218963,_0x250c72);}),_0x3dc060['on'](_0x4d9b13[_0x2e7fbd(0x1a0)],function(_0x5aad5e){const _0x498fc4=_0x2e7fbd;logger[_0x498fc4(0x1af)](util[_0x498fc4(0x19c)](_0x3a7a2e['xJcHE'],_0x5aad5e)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x5aad5e)),_0x3a7a2e[_0x498fc4(0x1f9)](_0x218963,_0x5aad5e);}),CLIUtils['downloadFileStream'](_0x3dc060,_0x8b0bf3,_0x6d5afd,_0xaeaded,_0x34db89,_0x218963),PerformanceTester[_0x2e7fbd(0x1e3)](PerformanceEvents[_0x2e7fbd(0x209)]);})['on'](_0x54b7ff['OXwZk'],function(_0x220301){const _0x5c26a5=_0x1ad37b;logger[_0x5c26a5(0x1af)](_0x5c26a5(0x1f8)+util[_0x5c26a5(0x19c)](_0x220301)),PerformanceTester[_0x5c26a5(0x1e3)](PerformanceEvents[_0x5c26a5(0x209)],![],util[_0x5c26a5(0x19c)](_0x220301)),_0x4d9b13[_0x5c26a5(0x1d5)](_0x218963,_0x220301);});});}catch(_0x4890cb){PerformanceTester[_0x103e22(0x1e3)](PerformanceEvents[_0x103e22(0x209)],![],util[_0x103e22(0x19c)](_0x4890cb)),logger[_0x103e22(0x1b4)]('Failed\x20to\x20download\x20binary,\x20Exception:\x20'+util['format'](_0x4890cb));}};static[a58_0x23a206(0x15b)](_0x273b22,_0x128b4f,_0x29722c,_0x14e930,_0x2ea70a,_0x4e26c7){const _0xceb344=a58_0x23a206,_0x47e49b={'kHkOG':function(_0x4f2ae2,_0xa88fac){return _0x4f2ae2===_0xa88fac;},'YKdUH':function(_0x3ef819,_0x11cb2c){return _0x3ef819(_0x11cb2c);},'pSfjt':_0xceb344(0x189),'XISod':function(_0x15c6a6,_0x5e52bd){return _0x15c6a6(_0x5e52bd);},'dGaHb':_0xceb344(0x1e3),'qMFCx':function(_0x4b2935,_0x3362d2){return _0x4b2935(_0x3362d2);},'ndgrV':_0xceb344(0x204),'EWXNk':_0xceb344(0x1af),'lscDx':_0xceb344(0x1c0)};_0x273b22['on'](_0x47e49b['lscDx'],function(){const _0x3af5dd=_0xceb344,_0xa2f135={'vEKvx':function(_0xb0d990,_0x403bb2){return _0x47e49b['kHkOG'](_0xb0d990,_0x403bb2);},'FVPYw':function(_0x11b64b,_0x9e752e){return _0x47e49b['YKdUH'](_0x11b64b,_0x9e752e);},'sOyah':_0x47e49b['pSfjt'],'grTex':function(_0x2f96f7,_0x1fc6a9){const _0x363c29=a58_0x419a;return _0x47e49b[_0x363c29(0x161)](_0x2f96f7,_0x1fc6a9);},'tXGDK':_0x47e49b[_0x3af5dd(0x1a9)],'kLTEK':function(_0x452954,_0x8b6137){return _0x47e49b['XISod'](_0x452954,_0x8b6137);},'yBtwK':function(_0x330cfc,_0x210c96){const _0x1b24a6=_0x3af5dd;return _0x47e49b[_0x1b24a6(0x202)](_0x330cfc,_0x210c96);},'SDgVp':_0x47e49b[_0x3af5dd(0x1d4)],'xjjoW':_0x47e49b['EWXNk']},_0x2bdcf8={};_0x2bdcf8[_0x3af5dd(0x1b9)]=!![],yauzl[_0x3af5dd(0x1ae)](_0x29722c,_0x2bdcf8,function(_0x35dd19,_0x5f3c04){const _0xe1ace7=_0x3af5dd,_0x5789c0={'YPquA':function(_0x2f88aa,_0x1f1947){return _0xa2f135['grTex'](_0x2f88aa,_0x1f1947);},'kFTso':_0xa2f135['tXGDK'],'xKATn':function(_0x39a189,_0x117575){const _0x2e202b=a58_0x419a;return _0xa2f135[_0x2e202b(0x17c)](_0x39a189,_0x117575);}};_0x35dd19&&_0xa2f135['yBtwK'](_0x4e26c7,_0x35dd19),_0x5f3c04['readEntry'](),_0x5f3c04['on'](_0xa2f135[_0xe1ace7(0x1be)],_0x28c5a5=>{const _0x473937=_0xe1ace7;!_0x128b4f&&(_0x128b4f=_0x28c5a5[_0x473937(0x1cb)]);if(/\/$/[_0x473937(0x1d6)](_0x28c5a5[_0x473937(0x1cb)]))_0x5f3c04[_0x473937(0x15d)]();else{const _0x41049d=fs[_0x473937(0x16a)](path[_0x473937(0x1cf)](_0x14e930,_0x28c5a5['fileName']));_0x5f3c04[_0x473937(0x163)](_0x28c5a5,function(_0x392bb3,_0x7d166b){const _0x227828=_0x473937;_0x392bb3&&_0x5789c0['YPquA'](_0x4e26c7,_0x35dd19),_0x7d166b['on'](_0x5789c0[_0x227828(0x15e)],function(){const _0xe13a7c=_0x227828;_0x41049d[_0xe13a7c(0x1c0)](),_0x5f3c04[_0xe13a7c(0x15d)]();}),_0x7d166b[_0x227828(0x1a2)](_0x41049d);}),_0xa2f135[_0x473937(0x190)](_0x28c5a5[_0x473937(0x1cb)],_0x128b4f)&&_0x5f3c04[_0x473937(0x1c0)]();}}),_0x5f3c04['on'](_0xa2f135[_0xe1ace7(0x1d2)],_0x1113d1=>{const _0x431190=_0xe1ace7;_0x5789c0[_0x431190(0x183)](_0x4e26c7,_0x1113d1);}),_0x5f3c04[_0xe1ace7(0x1cc)](_0xa2f135['tXGDK'],()=>{const _0x584396=_0xe1ace7,_0x53c436={'mryAj':function(_0x49665d,_0x3a29ce){const _0x2649e6=a58_0x419a;return _0xa2f135[_0x2649e6(0x1f2)](_0x49665d,_0x3a29ce);}};fs[_0x584396(0x184)](_0x29722c,_0x43b64d=>{const _0x11e514=_0x584396;_0x43b64d&&logger[_0x11e514(0x19e)](_0x11e514(0x194)+_0x29722c);}),fs[_0x584396(0x1c4)](_0x14e930+'/'+_0x128b4f,_0xa2f135[_0x584396(0x169)],function(_0x1cfe24){const _0x44b6b9=_0x584396;_0x1cfe24&&_0x53c436[_0x44b6b9(0x188)](_0x4e26c7,_0x1cfe24),_0x53c436[_0x44b6b9(0x188)](_0x2ea70a,_0x14e930+'/'+_0x128b4f);}),_0x5f3c04[_0x584396(0x1c0)]();});});});}static['getTestFrameworkDetail'](){const _0x598a6f=a58_0x23a206;if(process[_0x598a6f(0x1cd)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x598a6f(0x156)](process[_0x598a6f(0x1cd)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x598a6f(0x205)];}static[a58_0x23a206(0x1a7)](){const _0x55c8c8=a58_0x23a206;if(process[_0x55c8c8(0x1cd)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON['parse'](process[_0x55c8c8(0x1cd)][_0x55c8c8(0x1ce)]);return this[_0x55c8c8(0x15f)];}static[a58_0x23a206(0x1ca)](_0x49bf78,_0x48df31){const _0x26c22c=a58_0x23a206,_0x4b92d4={'eHpDc':_0x26c22c(0x17f),'XyMfC':function(_0x4b8fff,_0x1463f5){return _0x4b8fff||_0x1463f5;},'xDqCC':function(_0x43afca,_0x16c8b1){return _0x43afca(_0x16c8b1);}},_0x226f35=_0x4b92d4[_0x26c22c(0x1db)]['split']('|');let _0x219b64=0x0;while(!![]){switch(_0x226f35[_0x219b64++]){case'0':_0x4b92d4[_0x26c22c(0x199)](!_0x49bf78,!_0x48df31)&&logger[_0x26c22c(0x1b4)](_0x26c22c(0x1a4)+_0x49bf78+_0x26c22c(0x19a)+_0x48df31);continue;case'1':this[_0x26c22c(0x15f)]={'name':_0x48df31,'version':_0x4b92d4['xDqCC'](getFrameworkVersion,_0x48df31)};continue;case'2':process[_0x26c22c(0x1cd)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x26c22c(0x1b6)](this[_0x26c22c(0x205)]);continue;case'3':this[_0x26c22c(0x205)]={'name':_0x49bf78,'version':{[_0x49bf78]:_0x4b92d4[_0x26c22c(0x1fc)](getFrameworkVersion,_0x49bf78)}};continue;case'4':process[_0x26c22c(0x1cd)][_0x26c22c(0x1ce)]=JSON[_0x26c22c(0x1b6)](this[_0x26c22c(0x15f)]);continue;}break;}}static[a58_0x23a206(0x179)](_0x40fbec,_0x5632fd){return _0x40fbec+':'+_0x5632fd;}static[a58_0x23a206(0x176)](){const _0x37e0e1=a58_0x23a206;return process[_0x37e0e1(0x15c)]+':'+threadId;}static['shouldSkipSessionName'](_0x446868){const _0x12fd73=a58_0x23a206;if(_0x446868[_0x12fd73(0x1a1)]&&_0x446868[_0x12fd73(0x1a1)][_0x12fd73(0x1a5)])return!![];return![];}static['shouldSkipSessionStatus'](_0x54ea49){if(_0x54ea49['testContextOptions']&&_0x54ea49['testContextOptions']['skipSessionStatus'])return!![];return![];}static[a58_0x23a206(0x18a)](_0x2cbe1b){const _0x46d26d=a58_0x23a206,_0x289269=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x289269[_0x46d26d(0x1d6)](_0x2cbe1b);}}module[a58_0x23a206(0x1fd)]=CLIUtils;