browserstack-node-sdk 1.34.1 → 1.34.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) 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/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +2 -2
  36. package/src/ai-sdk-node/bundle.js +1 -0
  37. package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
  38. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  39. package/src/bin/codeceptjs/command.js +1 -1
  40. package/src/bin/codeceptjs/helper.js +1 -1
  41. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  42. package/src/bin/cucumber-js/command.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  44. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  45. package/src/bin/cucumber-js/test-observability.js +1 -1
  46. package/src/bin/cucumber-js/test.setup.js +1 -1
  47. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  48. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  49. package/src/bin/integrations/command.js +1 -1
  50. package/src/bin/integrations/constants.js +1 -1
  51. package/src/bin/jest/command.js +1 -1
  52. package/src/bin/jest/customImplements/customCircus.js +1 -1
  53. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  54. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  55. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  56. package/src/bin/jest/jest.setup.js +1 -1
  57. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  58. package/src/bin/jest/test-observability/helper.js +1 -1
  59. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  60. package/src/bin/jest/test-observability/test-details.js +1 -1
  61. package/src/bin/jest/test_before.setup.js +1 -1
  62. package/src/bin/launcher/launcher.js +1 -1
  63. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  64. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  65. package/src/bin/mocha/command.js +1 -1
  66. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  67. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  68. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  69. package/src/bin/mocha/test.setup.js +1 -1
  70. package/src/bin/nightwatch/command.js +1 -1
  71. package/src/bin/playwright/accessibility-helper.js +1 -1
  72. package/src/bin/playwright/command.js +1 -1
  73. package/src/bin/playwright/globalSetup.js +1 -1
  74. package/src/bin/playwright/mock-process.js +1 -1
  75. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  76. package/src/bin/playwright/patches.js +1 -1
  77. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  78. package/src/bin/playwright/reporter/reporter.js +1 -1
  79. package/src/bin/playwright/reporter/test-details.js +1 -1
  80. package/src/bin/playwright/sessionDetails.js +1 -1
  81. package/src/bin/runner.js +1 -1
  82. package/src/bin/setup.js +1 -1
  83. package/src/bin/test-runner/index.js +1 -1
  84. package/src/bin/test-runner/runTest.js +1 -1
  85. package/src/bin/test-runner/testWorker.js +1 -1
  86. package/src/bin/utils/constants.js +1 -1
  87. package/src/bin/utils/log4jsAppender.js +1 -1
  88. package/src/bin/utils/logPatcher.js +1 -1
  89. package/src/bin/utils/logReportingAPI.js +1 -1
  90. package/src/bin/vanilla-js/command.js +1 -1
  91. package/src/browserStackSdk.js +1 -1
  92. package/src/helpers/BrowserStackSetup.js +1 -1
  93. package/src/helpers/accessibility-automation/constants.js +1 -1
  94. package/src/helpers/accessibility-automation/helper.js +1 -1
  95. package/src/helpers/accessibility-automation/scripts.js +1 -1
  96. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -0
  97. package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
  98. package/src/helpers/ats/constants.js +1 -1
  99. package/src/helpers/ats/helper.js +1 -1
  100. package/src/helpers/capsMapping.js +1 -1
  101. package/src/helpers/globals.js +1 -1
  102. package/src/helpers/helper.js +1 -1
  103. package/src/helpers/logger.js +1 -1
  104. package/src/helpers/patchHelpers.js +1 -1
  105. package/src/helpers/percy/Percy.js +1 -1
  106. package/src/helpers/percy/PercyBinary.js +1 -1
  107. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  108. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  109. package/src/helpers/percy/PercySDK.js +1 -1
  110. package/src/helpers/percy/index.js +1 -1
  111. package/src/helpers/percy/utils.js +1 -1
  112. package/src/helpers/performance-tester.js +1 -1
  113. package/src/helpers/request-spy.js +1 -1
  114. package/src/helpers/setKeepAlive.js +1 -1
  115. package/src/helpers/test-observability/constants.js +1 -1
  116. package/src/helpers/test-observability/error-handler.js +1 -1
  117. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  118. package/src/helpers/test-observability/sessionHandler.js +1 -1
  119. package/src/helpers/test-observability/utils.js +1 -1
  120. package/src/helpers/testhub/constants.js +1 -1
  121. package/src/helpers/testhub/testhubHandler.js +1 -1
  122. package/src/helpers/testhub/utils.js +1 -1
  123. package/src/helpers/timeoutPromise.js +1 -0
  124. package/src/helpers/w3cMapping.js +1 -1
  125. package/src/hubAllocationMethods.js +1 -1
  126. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a3_0x24ac(_0x7989ac,_0xc9a32a){const _0x4938a2=a3_0x4938();return a3_0x24ac=function(_0x24ac21,_0x515747){_0x24ac21=_0x24ac21-0xaf;let _0x7ae3b0=_0x4938a2[_0x24ac21];return _0x7ae3b0;},a3_0x24ac(_0x7989ac,_0xc9a32a);}const a3_0x397eee=a3_0x24ac;(function(_0x4a90eb,_0x40bbfd){const _0x1e6e1a=a3_0x24ac,_0x43808f=_0x4a90eb();while(!![]){try{const _0x59dc58=-parseInt(_0x1e6e1a(0x174))/0x1+-parseInt(_0x1e6e1a(0x1bb))/0x2*(-parseInt(_0x1e6e1a(0x129))/0x3)+parseInt(_0x1e6e1a(0x170))/0x4*(parseInt(_0x1e6e1a(0x12b))/0x5)+-parseInt(_0x1e6e1a(0x210))/0x6*(-parseInt(_0x1e6e1a(0x1be))/0x7)+parseInt(_0x1e6e1a(0x190))/0x8*(parseInt(_0x1e6e1a(0x191))/0x9)+-parseInt(_0x1e6e1a(0x138))/0xa+-parseInt(_0x1e6e1a(0xfd))/0xb*(-parseInt(_0x1e6e1a(0x21b))/0xc);if(_0x59dc58===_0x40bbfd)break;else _0x43808f['push'](_0x43808f['shift']());}catch(_0x16881f){_0x43808f['push'](_0x43808f['shift']());}}}(a3_0x4938,0x2c897));const fs=require('fs'),path=require('path'),got=require(a3_0x397eee(0x136)),util=require('util'),cp=require(a3_0x397eee(0x166)),{google}=require(a3_0x397eee(0x10e)),compute=require(a3_0x397eee(0x21e)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x397eee(0x208))['v3'],{logger}=require(a3_0x397eee(0x1e8)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0x397eee(0x198)),{deleteRoutingDeps,deleteAgent}=require(a3_0x397eee(0x12c)),{inputConfirmation,closeInput}=require(a3_0x397eee(0xd3)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x397eee(0xb9));class GoogleCloudProvider extends CloudProvider{constructor(_0x3b02ff,_0x355497,_0x3f18e3,_0x2f0e85){const _0x389918=a3_0x397eee,_0x280f5c={};_0x280f5c[_0x389918(0xc2)]=_0x389918(0x1ea),_0x280f5c['LtZtT']=_0x389918(0x18c),_0x280f5c[_0x389918(0x1d9)]=_0x389918(0xb0);const _0x4a5165=_0x280f5c,_0x5929c0=_0x4a5165[_0x389918(0xc2)]['split']('|');let _0x4a4454=0x0;while(!![]){switch(_0x5929c0[_0x4a4454++]){case'0':this[_0x389918(0xd5)]=null;continue;case'1':this[_0x389918(0xbe)]=null;continue;case'2':super(GCP,_0x3b02ff,_0x355497,_0x3f18e3,_0x2f0e85);continue;case'3':this[_0x389918(0x160)]=null;continue;case'4':this[_0x389918(0xdb)]=_0x4a5165[_0x389918(0x101)];continue;case'5':this['networkClient']=null;continue;case'6':this['resourcemanagerClient']=null;continue;case'7':this[_0x389918(0x1c7)]=null;continue;case'8':this[_0x389918(0x1ef)]=_0x4a5165[_0x389918(0x1d9)];continue;}break;}}[a3_0x397eee(0x1da)](){const _0x1f7515=a3_0x397eee,_0x1e5888={};_0x1e5888[_0x1f7515(0xbc)]=_0x1f7515(0x1bf),_0x1e5888[_0x1f7515(0xaf)]=function(_0x5a773f,_0x133966){return _0x5a773f===_0x133966;},_0x1e5888[_0x1f7515(0x104)]='riNzJ',_0x1e5888[_0x1f7515(0x18e)]='cHUzv';const _0x4f7c26=_0x1e5888;!this[_0x1f7515(0x165)]()&&(_0x4f7c26[_0x1f7515(0xaf)](_0x4f7c26[_0x1f7515(0x104)],_0x4f7c26['Oimfg'])?_0x310557[_0x1f7515(0x17a)](_0x4f7c26[_0x1f7515(0xbc)]):this['setConfig']());}async['sendResourceDataToHST'](){const _0x3e0d99=a3_0x397eee;this['sendGCPInfoToHST'](this[_0x3e0d99(0x1ad)]);}[a3_0x397eee(0x165)](){const _0x11f577=a3_0x397eee,_0x44f19b={};_0x44f19b[_0x11f577(0x221)]=function(_0x442e05,_0x14e8bd){return _0x442e05===_0x14e8bd;};const _0x1ea908=_0x44f19b;return _0x1ea908['OoJce'](global_registry['gcpConfigSet'],!![]);}[a3_0x397eee(0x14e)](){const _0x7b80e9=a3_0x397eee,_0x462030=this[_0x7b80e9(0x1c7)],_0x3ca356={};_0x3ca356['keyFile']=_0x462030,this[_0x7b80e9(0xbe)]=new container['v1'][(_0x7b80e9(0x1c8))](_0x3ca356);const _0x59420f={};_0x59420f[_0x7b80e9(0x214)]=_0x462030,this[_0x7b80e9(0xfe)]=new compute['v1']['NetworksClient'](_0x59420f);const _0x3579be={};_0x3579be['keyFile']=_0x462030,this[_0x7b80e9(0x193)]=new ProjectsClient(_0x3579be),this[_0x7b80e9(0xd5)]=google[_0x7b80e9(0x1ec)]('v1'),global_registry[_0x7b80e9(0x14a)]=!![];}async['getUserInput'](_0xe5409a,_0x4e7dff){const _0x4cea17=a3_0x397eee,_0x27e836={'YbLUv':function(_0x277d21,_0x40dec9){return _0x277d21(_0x40dec9);},'ftMwv':function(_0x5e4746){return _0x5e4746();},'spxig':'gcp_credentials.json'},_0x247dfe=await _0x27e836['YbLUv'](_0xe5409a,_0x4cea17(0x209));let _0x58fa3c=await fs[_0x4cea17(0x16b)](_0x247dfe);_0x58fa3c=_0x58fa3c[_0x4cea17(0x1c5)]();const _0x246681=_0x27e836[_0x4cea17(0x184)](getDirForConfig),_0x2a0dbb=path[_0x4cea17(0xff)](_0x246681,_0x27e836[_0x4cea17(0x12f)]);fs[_0x4cea17(0x135)](_0x2a0dbb,_0x58fa3c),this[_0x4cea17(0x1c7)]=_0x2a0dbb;const _0x23a870={};return _0x23a870[_0x4cea17(0x214)]=_0x2a0dbb,_0x4e7dff['cloudProvider'][GCP]=_0x23a870,_0x58fa3c=JSON[_0x4cea17(0x182)](_0x58fa3c),this['projectId']=_0x58fa3c[_0x4cea17(0x1ed)],_0x4e7dff;}async['fetchLocalCreds'](_0x2fa41f){const _0x3ef089=a3_0x397eee;this['credentialsPath']=_0x2fa41f[this['cloudProviderName']][_0x3ef089(0x214)];let _0x1f7e02=await fs[_0x3ef089(0x16b)](this['credentialsPath']);_0x1f7e02=JSON['parse'](_0x1f7e02),this[_0x3ef089(0x160)]=_0x1f7e02['project_id'];}[a3_0x397eee(0x1ac)](_0xbc65f4){const _0x515667=a3_0x397eee;return _0xbc65f4['status'][_0x515667(0x18f)][_0x515667(0x148)][0x0]['ip'];}async[a3_0x397eee(0x133)](){const _0x4e1e10=a3_0x397eee,_0x15500e={};_0x15500e['oxFbi']=function(_0x3234ab,_0x585ebc){return _0x3234ab!==_0x585ebc;},_0x15500e[_0x4e1e10(0xdf)]=_0x4e1e10(0x1fe),_0x15500e[_0x4e1e10(0x16d)]=function(_0x11ed3c,_0x4e8606){return _0x11ed3c!==_0x4e8606;},_0x15500e[_0x4e1e10(0x12d)]=_0x4e1e10(0x157),_0x15500e['mOAvi']=function(_0x2d5c33,_0x2452d9){return _0x2d5c33===_0x2452d9;},_0x15500e[_0x4e1e10(0xb3)]=_0x4e1e10(0x1a3),_0x15500e[_0x4e1e10(0x1b3)]='aBfXs',_0x15500e['iSyWd']='mqxoA';const _0x5c095=_0x15500e;try{if(_0x5c095['oxFbi'](_0x5c095[_0x4e1e10(0xdf)],_0x5c095[_0x4e1e10(0xdf)]))!this[_0x4e1e10(0x165)]()&&this['setConfig']();else{const _0x93cbc9=await this['getClusterInfo']();if(_0x93cbc9[0x0]?.[_0x4e1e10(0x113)]?.[_0x4e1e10(0x17f)]){if(_0x5c095[_0x4e1e10(0x16d)](_0x5c095['CkdNm'],_0x5c095['CkdNm']))_0x1ab5b7[_0x4e1e10(0x13b)]=_0x288461[0x0],this[_0x4e1e10(0x1ba)]();else{const _0x579daf=_0x93cbc9[0x0]?.[_0x4e1e10(0x113)]?.[_0x4e1e10(0x17f)];return _0x579daf&&_0x5c095[_0x4e1e10(0x1a0)](_0x579daf['toLowerCase'](),_0x5c095[_0x4e1e10(0xb3)]);}}}}catch(_0x5b219b){return _0x5c095[_0x4e1e10(0x1a0)](_0x5c095['dhdPL'],_0x5c095[_0x4e1e10(0xcc)])?(_0x5c095[_0x4e1e10(0xf4)](_0x2350c8['clusterRegion'],_0x44fbde[0x0])&&(_0x34b34e[_0x4e1e10(0x13b)]=_0x48e7dd[0x0],this[_0x4e1e10(0x1ba)]()),!![]):![];}return![];}async[a3_0x397eee(0x1a9)](){const _0x2c1215=a3_0x397eee,_0x126450={'TkeTC':function(_0x5de065,_0x20c864){return _0x5de065+_0x20c864;},'yNweQ':function(_0x4913dc,_0x512182){return _0x4913dc===_0x512182;},'qQmJs':_0x2c1215(0x1ab),'PHOoc':_0x2c1215(0x187),'gaZSg':_0x2c1215(0xb5),'wVrBD':_0x2c1215(0x131),'jUDGq':function(_0x70b94c,_0x2a7feb){return _0x70b94c!==_0x2a7feb;},'hyHTe':'ailbr','ZwVUE':function(_0x1a9383,_0x26daea){return _0x1a9383===_0x26daea;},'OqgGm':_0x2c1215(0x18a),'apzXM':_0x2c1215(0xcd),'ChPgA':_0x2c1215(0xe9),'aIfic':'vgnou','WJJeg':function(_0x259a36,_0x634294){return _0x259a36===_0x634294;},'qtZCM':_0x2c1215(0xca),'ndDJJ':function(_0x22104b,_0x435fe4){return _0x22104b===_0x435fe4;},'RhZak':_0x2c1215(0xc6),'PuQiI':'qpotB','tOELR':function(_0xe76b9b,_0x567fa1){return _0xe76b9b!==_0x567fa1;},'yIEKr':_0x2c1215(0x116),'JGluP':_0x2c1215(0x11f),'rSxBp':function(_0x269e74,_0x1ceba6){return _0x269e74>_0x1ceba6;},'xhFdh':function(_0xdef162,_0x1c0de5){return _0xdef162===_0x1c0de5;},'fexlw':'GzBks','qcIXy':_0x2c1215(0x11a),'VeQwv':function(_0x4d4811,_0x1c341c){return _0x4d4811<_0x1c341c;},'uihZO':function(_0x34bb3a,_0x5dd7f5){return _0x34bb3a===_0x5dd7f5;},'mpDef':_0x2c1215(0x121),'BUGjB':_0x2c1215(0x224),'yUIJM':function(_0x1d771a,_0x2ca81f){return _0x1d771a+_0x2ca81f;},'qdFhB':function(_0x921b8b,_0xf83c55){return _0x921b8b(_0xf83c55);},'cZlXF':_0x2c1215(0x185),'cxcLm':function(_0x50e330,_0x57a8d0){return _0x50e330(_0x57a8d0);},'ScZmM':function(_0x26f647,_0x52ae09){return _0x26f647(_0x52ae09);},'vmkiB':function(_0xd6f0ba,_0x1586ed){return _0xd6f0ba<=_0x1586ed;},'aGpud':_0x2c1215(0x1cd),'jHzhL':_0x2c1215(0xcb),'hrZHm':function(_0x488f21){return _0x488f21();},'NEmku':function(_0x129074,_0x296ae0){return _0x129074-_0x296ae0;},'UxiWc':function(_0x263eec,_0x4642b3){return _0x263eec-_0x4642b3;},'hEuNi':function(_0x21599b,_0x4f0937){return _0x21599b!==_0x4f0937;},'yWawW':_0x2c1215(0x19b),'LmJRG':_0x2c1215(0x1b2)};this[_0x2c1215(0x1da)]();let _0x4c84ec=await fs[_0x2c1215(0x16b)](path['join'](__dirname,'..',_0x126450['qQmJs'],_0x126450[_0x2c1215(0x108)],_0x126450['gaZSg']),_0x126450[_0x2c1215(0x1c2)]);_0x4c84ec=JSON['parse'](_0x4c84ec);let _0x3dd3d4=[global_registry['clusterRegion']];if(_0x126450[_0x2c1215(0x179)](_0x4c84ec[global_registry[_0x2c1215(0x13b)]],undefined)){if(_0x126450['yNweQ'](_0x126450[_0x2c1215(0x15d)],_0x126450[_0x2c1215(0x15d)]))_0x3dd3d4=_0x3dd3d4[_0x2c1215(0x194)](_0x4c84ec[global_registry[_0x2c1215(0x13b)]]);else return _0x46b8df[_0x2c1215(0x20a)][_0x2c1215(0x18f)][_0x2c1215(0x148)][0x0]['ip'];}const _0x1cf929=[];for await(let _0x3efabb of _0x3dd3d4){if(_0x126450[_0x2c1215(0x1d2)](_0x126450[_0x2c1215(0x1c4)],_0x126450[_0x2c1215(0x202)]))return![];else{const _0x51e955={};_0x51e955[_0x2c1215(0x110)]=_0x2c1215(0x11c)+this[_0x2c1215(0x160)]+_0x2c1215(0x1cb)+_0x3efabb;const _0x43fff2=_0x51e955,_0x2e7faf=await this[_0x2c1215(0xbe)]['listClusters'](_0x43fff2);for(const _0x44cc0c of _0x2e7faf[0x0][_0x2c1215(0x152)]){if(_0x126450['ZwVUE'](_0x126450[_0x2c1215(0x1fc)],_0x126450[_0x2c1215(0x205)]))_0x327601[_0x2c1215(0xd0)](_0x866e63);else{if(_0x126450[_0x2c1215(0x220)](_0x44cc0c[_0x2c1215(0x1d1)],this[_0x2c1215(0x1af)])){if(_0x126450[_0x2c1215(0x179)](_0x126450['qtZCM'],_0x126450['qtZCM']))return[!![],_0x4ef5fb];else _0x1cf929['push'](_0x3efabb);}}}}}const _0x3c3fe1=_0x1cf929['length'];if(_0x126450['ndDJJ'](_0x3c3fe1,0x1))return _0x126450[_0x2c1215(0x1d2)](_0x126450['RhZak'],_0x126450['PuQiI'])?![]:(_0x126450['jUDGq'](global_registry[_0x2c1215(0x13b)],_0x1cf929[0x0])&&(_0x126450[_0x2c1215(0x15b)](_0x126450[_0x2c1215(0x1e9)],_0x126450[_0x2c1215(0x1d6)])?(global_registry[_0x2c1215(0x13b)]=_0x1cf929[0x0],this[_0x2c1215(0x1ba)]()):_0x5b49e6['log']('['+_0x126450[_0x2c1215(0x219)](_0x597db5,0x1)+']\x20'+_0x5d5c6d[_0x538923])),!![]);else{if(_0x126450[_0x2c1215(0xef)](_0x3c3fe1,0x1)){if(_0x126450[_0x2c1215(0x1e2)](_0x126450[_0x2c1215(0xb1)],_0x126450[_0x2c1215(0x1fb)]))return!![];else{console['log'](_0x2c1215(0x11d)+this[_0x2c1215(0x1af)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x174c7b=0x0;_0x126450['VeQwv'](_0x174c7b,_0x3c3fe1);_0x174c7b+=0x1){_0x126450[_0x2c1215(0x16f)](_0x126450[_0x2c1215(0x134)],_0x126450[_0x2c1215(0xe8)])?_0x126450[_0x2c1215(0x15f)](_0x3b2831[_0x2c1215(0x1d1)],this['clusterName'])&&_0x1fd8e5[_0x2c1215(0xd0)](_0x27c4b7):console[_0x2c1215(0x139)]('['+_0x126450[_0x2c1215(0x124)](_0x174c7b,0x1)+']\x20'+_0x1cf929[_0x174c7b]);}const _0x16c8ff=await _0x126450[_0x2c1215(0xc3)](inputConfirmation,_0x126450[_0x2c1215(0xe4)]),_0x10e992=_0x126450[_0x2c1215(0x1f3)](Number,_0x16c8ff);if(_0x126450[_0x2c1215(0x1ee)](isNaN,_0x10e992)||_0x126450[_0x2c1215(0x154)](_0x10e992,0x0)||_0x126450[_0x2c1215(0xef)](_0x10e992,_0x3c3fe1)){if(_0x126450[_0x2c1215(0x15b)](_0x126450[_0x2c1215(0x1a6)],_0x126450[_0x2c1215(0x1a6)]))return _0x2e8a1f[_0x2c1215(0x1c9)](_0x2c1215(0x1bc)+_0x3c9a3b+_0x2c1215(0x15e)+_0x9d0723),[![],[]];else console[_0x2c1215(0x1c9)](_0x126450[_0x2c1215(0x21d)]),process[_0x2c1215(0xc8)](0x1);}return _0x126450[_0x2c1215(0x196)](closeInput),logger[_0x2c1215(0x17a)](_0x2c1215(0x199)+_0x1cf929[_0x126450[_0x2c1215(0xd1)](_0x10e992,0x1)]),_0x126450[_0x2c1215(0x179)](global_registry[_0x2c1215(0x13b)],_0x1cf929[_0x126450['UxiWc'](_0x10e992,0x1)])&&(_0x126450['hEuNi'](_0x126450['yWawW'],_0x126450[_0x2c1215(0xf8)])?(global_registry['clusterRegion']=_0x1cf929[_0x126450[_0x2c1215(0xd1)](_0x10e992,0x1)],this[_0x2c1215(0x1ba)]()):_0x460564['execSync'](_0x2c1215(0x1f9)+this[_0x2c1215(0x1af)]+_0x2c1215(0x1e3)+_0x4eaf1b[_0x2c1215(0x13b)]+_0x2c1215(0x11b))),!![];}}}return![];}async[a3_0x397eee(0x1b8)](){const _0x3f11c0=a3_0x397eee,_0x34dc8e=await this[_0x3f11c0(0xbe)][_0x3f11c0(0x1f0)]({'name':_0x3f11c0(0x11c)+this[_0x3f11c0(0x160)]+_0x3f11c0(0x1cb)+global_registry[_0x3f11c0(0x13b)]+_0x3f11c0(0x1db)+this[_0x3f11c0(0x1af)]});return _0x34dc8e;}async['getKubeConfigData'](){const _0x73ef9e=a3_0x397eee,_0x329102={};_0x329102[_0x73ef9e(0x122)]=_0x73ef9e(0x1ab),_0x329102[_0x73ef9e(0x145)]=_0x73ef9e(0x187),_0x329102[_0x73ef9e(0xe0)]='KubeConfigTemplate.yaml';const _0x2537bf=_0x329102;cp[_0x73ef9e(0x1e0)]('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp[_0x73ef9e(0x146)](_0x73ef9e(0x143)+this[_0x73ef9e(0x1c7)]);const _0x35481c=await this[_0x73ef9e(0x1b8)](),_0x36326b=_0x73ef9e(0xb2)+this[_0x73ef9e(0x160)]+'_'+global_registry[_0x73ef9e(0x13b)]+'_'+this[_0x73ef9e(0x1af)];let _0x1f6676=await fs[_0x73ef9e(0x16b)](path[_0x73ef9e(0xff)](__dirname,'..',_0x2537bf[_0x73ef9e(0x122)],_0x2537bf[_0x73ef9e(0x145)],_0x2537bf[_0x73ef9e(0xe0)]));return _0x1f6676=_0x1f6676[_0x73ef9e(0x1c5)](),_0x1f6676=_0x1f6676[_0x73ef9e(0xf5)](/<CLUSTER_NAME>/g,_0x36326b),_0x1f6676=_0x1f6676[_0x73ef9e(0xf5)](/<CLUSTER_URL>/g,_0x73ef9e(0x1c3)+_0x35481c[0x0][_0x73ef9e(0x141)]),_0x1f6676=_0x1f6676[_0x73ef9e(0xf5)](/<CERTIFICATE_DATA>/g,_0x35481c[0x0][_0x73ef9e(0x217)][_0x73ef9e(0xfc)]),_0x1f6676;}async[a3_0x397eee(0x215)](){const _0x26444b=a3_0x397eee,_0x1cb319={};_0x1cb319[_0x26444b(0xde)]=_0x26444b(0xcb),_0x1cb319[_0x26444b(0x1f1)]=function(_0xe76b9c,_0x4301eb){return _0xe76b9c===_0x4301eb;},_0x1cb319[_0x26444b(0xfb)]='browserstack',_0x1cb319[_0x26444b(0x1c6)]=_0x26444b(0x213),_0x1cb319[_0x26444b(0xf6)]=function(_0x5f0caa,_0x5eaa78){return _0x5f0caa!==_0x5eaa78;},_0x1cb319[_0x26444b(0x1ca)]=_0x26444b(0x11e),_0x1cb319[_0x26444b(0x21c)]=_0x26444b(0x115),_0x1cb319['sssAi']=_0x26444b(0x1a2);const _0x2bcd27=_0x1cb319,_0x448b87={};_0x448b87[_0x26444b(0x164)]=[_0x2bcd27[_0x26444b(0x1c6)]],_0x448b87[_0x26444b(0x214)]=this[_0x26444b(0x1c7)];const _0x4b5bdf=await google['auth'][_0x26444b(0x20b)](_0x448b87),_0x41ca6b=await this[_0x26444b(0xd5)][_0x26444b(0xc9)]['serviceAccounts'][_0x26444b(0xdc)]({'name':_0x26444b(0x11c)+this[_0x26444b(0x160)],'auth':_0x4b5bdf});for(const _0xb53a69 of _0x41ca6b?.[_0x26444b(0xdd)]?.[_0x26444b(0x20d)]){if(_0x2bcd27['ZqRjU'](_0x2bcd27['HfAlG'],_0x2bcd27['HfAlG']))_0x4e9eb9[_0x26444b(0x1c9)](_0x2bcd27[_0x26444b(0xde)]),_0x5dbe9e[_0x26444b(0xc8)](0x1);else{if(_0x2bcd27[_0x26444b(0x1f1)](_0xb53a69?.[_0x26444b(0x1d1)],'projects/'+this['projectId']+_0x26444b(0x103)+this[_0x26444b(0xdb)]+'@'+this[_0x26444b(0x160)]+'.iam.gserviceaccount.com')){if(_0x2bcd27[_0x26444b(0x1f1)](_0x2bcd27[_0x26444b(0x21c)],_0x2bcd27[_0x26444b(0x1fd)])){const _0x5c976c=_0x1cab70[0x0]?.['resourceLabels']?.['managedby'];return _0x5c976c&&_0x2bcd27[_0x26444b(0x1f1)](_0x5c976c[_0x26444b(0x169)](),_0x2bcd27[_0x26444b(0xfb)]);}else return!![];}}}return![];}async[a3_0x397eee(0xce)](){const _0x58ae05=a3_0x397eee,_0x65fe6d={};_0x65fe6d[_0x58ae05(0x19f)]=function(_0x5a7e59,_0x1eaf74){return _0x5a7e59-_0x1eaf74;},_0x65fe6d['jNrna']=function(_0x11a973,_0x5cc0e3){return _0x11a973===_0x5cc0e3;},_0x65fe6d['LJOat']=_0x58ae05(0xb6),_0x65fe6d[_0x58ae05(0x144)]=_0x58ae05(0x216),_0x65fe6d[_0x58ae05(0xcf)]=_0x58ae05(0x17b),_0x65fe6d[_0x58ae05(0x19c)]=_0x58ae05(0x213),_0x65fe6d[_0x58ae05(0xb7)]='iam.serviceAccounts.signBlob',_0x65fe6d['ELFdb']=_0x58ae05(0xbf),_0x65fe6d[_0x58ae05(0x175)]=_0x58ae05(0x1b1),_0x65fe6d['hgtDG']=_0x58ae05(0x188),_0x65fe6d[_0x58ae05(0x163)]=_0x58ae05(0x1f4),_0x65fe6d[_0x58ae05(0x189)]='storage.buckets.get',_0x65fe6d[_0x58ae05(0xc7)]=_0x58ae05(0x1de),_0x65fe6d[_0x58ae05(0x107)]=_0x58ae05(0xec),_0x65fe6d[_0x58ae05(0x149)]=_0x58ae05(0x15a),_0x65fe6d[_0x58ae05(0x19d)]=_0x58ae05(0x181),_0x65fe6d[_0x58ae05(0x140)]=_0x58ae05(0x10f),_0x65fe6d[_0x58ae05(0x1ae)]='storage.buckets.setIamPolicy',_0x65fe6d[_0x58ae05(0x162)]=_0x58ae05(0xf3),_0x65fe6d[_0x58ae05(0x1fa)]=_0x58ae05(0x14f),_0x65fe6d[_0x58ae05(0xed)]=_0x58ae05(0x159),_0x65fe6d[_0x58ae05(0xb4)]=_0x58ae05(0x137),_0x65fe6d['VkmIW']=_0x58ae05(0x18d),_0x65fe6d[_0x58ae05(0x1dc)]=_0x58ae05(0x186),_0x65fe6d[_0x58ae05(0xd9)]=_0x58ae05(0x200),_0x65fe6d[_0x58ae05(0x118)]='storage.objects.get',_0x65fe6d['NpOtz']=_0x58ae05(0x10b),_0x65fe6d[_0x58ae05(0x147)]=_0x58ae05(0x1f7),_0x65fe6d[_0x58ae05(0x1e6)]='storage.objects.setIamPolicy',_0x65fe6d[_0x58ae05(0x1e7)]=_0x58ae05(0xd7),_0x65fe6d[_0x58ae05(0xf9)]=_0x58ae05(0xc1),_0x65fe6d[_0x58ae05(0x1d3)]=_0x58ae05(0x13c);const _0x4414e8=_0x65fe6d,_0x522c24=await this[_0x58ae05(0x215)]();if(_0x522c24){if(_0x4414e8[_0x58ae05(0xc4)](_0x4414e8[_0x58ae05(0x109)],_0x4414e8['LJOat'])){logger[_0x58ae05(0x17a)](_0x4414e8[_0x58ae05(0x144)]);return;}else _0xb87a9b[_0x58ae05(0x13b)]=_0x54482f[_0x4414e8[_0x58ae05(0x19f)](_0x391b63,0x1)],this['updateClusterRegion']();}logger[_0x58ae05(0x17a)](_0x4414e8[_0x58ae05(0xcf)]);const _0x260263={};_0x260263['scopes']=[_0x4414e8[_0x58ae05(0x19c)]],_0x260263[_0x58ae05(0x214)]=this[_0x58ae05(0x1c7)];const _0x581fe6=await google['auth'][_0x58ae05(0x20b)](_0x260263),_0x3043da={};_0x3043da[_0x58ae05(0x203)]=[_0x4414e8['hNktB'],_0x4414e8['ELFdb'],_0x4414e8[_0x58ae05(0x175)],_0x4414e8[_0x58ae05(0x204)],_0x4414e8['bmykb'],_0x4414e8[_0x58ae05(0x189)],_0x4414e8[_0x58ae05(0xc7)],_0x4414e8[_0x58ae05(0x107)],_0x4414e8[_0x58ae05(0x149)],_0x4414e8[_0x58ae05(0x19d)],_0x4414e8[_0x58ae05(0x140)],_0x4414e8[_0x58ae05(0x1ae)],_0x4414e8['Wwthc'],_0x4414e8[_0x58ae05(0x1fa)],_0x4414e8['YKwEw'],_0x4414e8[_0x58ae05(0xb4)],_0x4414e8['VkmIW'],_0x4414e8[_0x58ae05(0x1dc)],_0x4414e8[_0x58ae05(0xd9)],_0x4414e8['QFuPt'],_0x4414e8[_0x58ae05(0x167)],_0x4414e8['ySVyI'],_0x4414e8[_0x58ae05(0x1e6)],_0x4414e8[_0x58ae05(0x1e7)]],_0x3043da['title']=_0x4414e8[_0x58ae05(0xf9)],await this[_0x58ae05(0xd5)]['organizations'][_0x58ae05(0x1d5)][_0x58ae05(0x16e)]({'parent':'projects/'+this['projectId'],'requestBody':{'role':_0x3043da,'roleId':this[_0x58ae05(0x1ef)]},'auth':_0x581fe6});const _0xf2bb7c={};_0xf2bb7c[_0x58ae05(0x1d1)]=_0x58ae05(0x11c)+this[_0x58ae05(0x160)],_0xf2bb7c[_0x58ae05(0x1d4)]={},_0xf2bb7c[_0x58ae05(0xe6)]=_0x581fe6,_0xf2bb7c[_0x58ae05(0x1d4)]['accountId']=this[_0x58ae05(0xdb)];const _0x497067=_0xf2bb7c;await this[_0x58ae05(0xd5)][_0x58ae05(0xc9)][_0x58ae05(0x125)][_0x58ae05(0x16e)](_0x497067);let _0x1d5cb3=await this[_0x58ae05(0x193)]['getIamPolicy']({'resource':_0x58ae05(0x11c)+this[_0x58ae05(0x160)]});_0x1d5cb3=_0x1d5cb3[0x0][_0x58ae05(0x178)];const _0x4bd244={};_0x4bd244['role']='projects/'+this[_0x58ae05(0x160)]+_0x58ae05(0x19e)+this[_0x58ae05(0x1ef)],_0x4bd244[_0x58ae05(0x1a4)]=[_0x58ae05(0x14b)+this['serviceAccountName']+'@'+this[_0x58ae05(0x160)]+'.iam.gserviceaccount.com'],_0x1d5cb3['push'](_0x4bd244);const _0x53ee16={};_0x53ee16['bindings']=_0x1d5cb3,await this[_0x58ae05(0x193)][_0x58ae05(0x150)]({'resource':_0x58ae05(0x11c)+this[_0x58ae05(0x160)],'policy':_0x53ee16}),logger[_0x58ae05(0x17a)](_0x4414e8['HtXpY']);}async['setupNewCluster'](_0x4d2a86=a3_0x397eee(0x14c),_0x169874=['default']){const _0x2a11a6=a3_0x397eee,_0x50c71f={};_0x50c71f[_0x2a11a6(0x227)]=_0x2a11a6(0xf1),_0x50c71f[_0x2a11a6(0x13e)]=_0x2a11a6(0x1d8),_0x50c71f['ILCjV']='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account';const _0x22805c=_0x50c71f,_0x551642=_0x22805c[_0x2a11a6(0x227)][_0x2a11a6(0x1bd)]('|');let _0x2cd685=0x0;while(!![]){switch(_0x551642[_0x2cd685++]){case'0':const _0x3eeb70={};_0x3eeb70[_0x2a11a6(0x1ff)]=WS_EVENTS[_0x2a11a6(0x1d7)],_0x3eeb70[_0x2a11a6(0x177)]=_0x22805c[_0x2a11a6(0x13e)],this[_0x2a11a6(0x173)][_0x2a11a6(0x21f)](this[_0x2a11a6(0x1ad)],_0x3eeb70);continue;case'1':await this[_0x2a11a6(0xce)]();continue;case'2':logger[_0x2a11a6(0x17a)](_0x22805c[_0x2a11a6(0x112)]);continue;case'3':return!![];case'4':await this[_0x2a11a6(0x119)]();continue;case'5':await this['createCluster'](_0x4d2a86,_0x169874);continue;}break;}}async[a3_0x397eee(0xe2)](_0x4d9fb9='default',_0x24d71a=['default']){const _0x4ee9d0=a3_0x397eee,_0x57d00c={};_0x57d00c[_0x4ee9d0(0x132)]=function(_0x2e32bd,_0x556105){return _0x2e32bd===_0x556105;},_0x57d00c['INdWp']=_0x4ee9d0(0x153),_0x57d00c[_0x4ee9d0(0x1b9)]=function(_0x353c78,_0x333c4d){return _0x353c78!==_0x333c4d;},_0x57d00c[_0x4ee9d0(0xee)]=_0x4ee9d0(0xe3),_0x57d00c[_0x4ee9d0(0x222)]='Creating\x20GKE\x20Cluster',_0x57d00c[_0x4ee9d0(0x1cf)]=_0x4ee9d0(0x1ab),_0x57d00c[_0x4ee9d0(0x1e4)]=_0x4ee9d0(0x187),_0x57d00c[_0x4ee9d0(0x1d0)]=_0x4ee9d0(0xe5),_0x57d00c[_0x4ee9d0(0x226)]=_0x4ee9d0(0x131),_0x57d00c['MvtFm']=_0x4ee9d0(0xb5),_0x57d00c[_0x4ee9d0(0x120)]=function(_0x4eb82d,_0x164a81){return _0x4eb82d*_0x164a81;},_0x57d00c[_0x4ee9d0(0x20e)]=function(_0x2a9dcc,_0xbabe47){return _0x2a9dcc!==_0xbabe47;},_0x57d00c[_0x4ee9d0(0x12a)]='yyclt',_0x57d00c['DTdXW']='uYMMv',_0x57d00c[_0x4ee9d0(0x1a8)]=_0x4ee9d0(0x1a5),_0x57d00c['AcupJ']=_0x4ee9d0(0x117),_0x57d00c[_0x4ee9d0(0x20c)]=function(_0x17d64e,_0x3e124e){return _0x17d64e===_0x3e124e;},_0x57d00c[_0x4ee9d0(0x1b7)]=_0x4ee9d0(0x12e),_0x57d00c[_0x4ee9d0(0x1f8)]=_0x4ee9d0(0xeb),_0x57d00c[_0x4ee9d0(0xbd)]=_0x4ee9d0(0x1bf);const _0x55f264=_0x57d00c;try{if(_0x55f264[_0x4ee9d0(0x1b9)](_0x55f264[_0x4ee9d0(0xee)],_0x55f264[_0x4ee9d0(0xee)]))_0x2a7d2c[_0x4ee9d0(0x1aa)][_0x4ee9d0(0xd0)](_0x2796f9);else{logger[_0x4ee9d0(0x17a)](_0x55f264[_0x4ee9d0(0x222)]);let _0x4d328e=await fs[_0x4ee9d0(0x16b)](path['join'](__dirname,'..',_0x55f264['HJQrx'],_0x55f264[_0x4ee9d0(0x1e4)],_0x55f264[_0x4ee9d0(0x1d0)]),_0x55f264['cwNra']);_0x4d328e=JSON['parse'](_0x4d328e);let _0x57b891=await fs['readFileAsync'](path['join'](__dirname,'..',_0x55f264[_0x4ee9d0(0x1cf)],_0x55f264[_0x4ee9d0(0x1e4)],_0x55f264[_0x4ee9d0(0x10d)]),_0x55f264['cwNra']);_0x57b891=JSON[_0x4ee9d0(0x182)](_0x57b891),_0x4d328e[_0x4ee9d0(0x1d1)]=this[_0x4ee9d0(0x1af)],_0x4d328e[_0x4ee9d0(0x1c1)][0x0][_0x4ee9d0(0x183)][_0x4ee9d0(0x1a7)]=global_registry[_0x4ee9d0(0x218)],_0x4d328e['nodePools'][0x1][_0x4ee9d0(0x183)][_0x4ee9d0(0x1a7)]=global_registry[_0x4ee9d0(0x218)],_0x4d328e[_0x4ee9d0(0x1c1)][0x0][_0x4ee9d0(0x183)][_0x4ee9d0(0x14d)]=this[_0x4ee9d0(0xdb)]+'@'+this['projectId']+_0x4ee9d0(0x211),_0x4d328e[_0x4ee9d0(0x1c1)][0x1][_0x4ee9d0(0x183)]['serviceAccount']=this[_0x4ee9d0(0xdb)]+'@'+this[_0x4ee9d0(0x160)]+'.iam.gserviceaccount.com',_0x4d328e[_0x4ee9d0(0x1c1)][0x0]['autoscaling'][_0x4ee9d0(0x172)]=global_registry[_0x4ee9d0(0xd2)],_0x4d328e[_0x4ee9d0(0x1c1)][0x1][_0x4ee9d0(0x19a)][_0x4ee9d0(0x172)]=0x0,_0x4d328e['nodePools'][0x0][_0x4ee9d0(0x19a)][_0x4ee9d0(0x1ce)]=global_registry['maxNodes'],_0x4d328e[_0x4ee9d0(0x1c1)][0x1]['autoscaling']['maxNodeCount']=global_registry[_0x4ee9d0(0xf0)],_0x4d328e['location']=global_registry[_0x4ee9d0(0x13b)],_0x4d328e['locations']=[_0x57b891[global_registry['clusterRegion']][0x0]],_0x4d328e[_0x4ee9d0(0x223)]=_0x4ee9d0(0x11c)+this[_0x4ee9d0(0x160)]+_0x4ee9d0(0x102)+_0x4d9fb9,_0x4d328e[_0x4ee9d0(0x17d)]='projects/'+this['projectId']+_0x4ee9d0(0x156)+global_registry[_0x4ee9d0(0x13b)]+_0x4ee9d0(0x16c)+_0x24d71a[0x0];const _0x31d858=await this[_0x4ee9d0(0xbe)][_0x4ee9d0(0xe2)]({'cluster':_0x4d328e,'parent':_0x4ee9d0(0x11c)+this[_0x4ee9d0(0x160)]+_0x4ee9d0(0x1cb)+global_registry['clusterRegion']});await this[_0x4ee9d0(0x173)][_0x4ee9d0(0x212)](_0x55f264[_0x4ee9d0(0x120)](_0x55f264['QvUsV'](0x7,0x3c),0x3e8));}}catch(_0xd23dec){if(_0x55f264[_0x4ee9d0(0x20e)](_0x55f264[_0x4ee9d0(0x12a)],_0x55f264[_0x4ee9d0(0x142)])){const _0x4e4ccb=await this[_0x4ee9d0(0x1a9)]();if(_0x4e4ccb){if(_0x55f264[_0x4ee9d0(0x132)](_0x55f264[_0x4ee9d0(0x1a8)],_0x55f264[_0x4ee9d0(0x1a8)]))logger[_0x4ee9d0(0x17a)](_0x55f264[_0x4ee9d0(0x155)],_0xd23dec[_0x4ee9d0(0x10a)]),await this[_0x4ee9d0(0xd6)]();else{const _0x4dc498=_0x4ee9d0(0x207)+this[_0x4ee9d0(0x160)]+_0x4ee9d0(0x156)+_0x5886fe[_0x4ee9d0(0x13b)]+_0x4ee9d0(0x16c)+_0x183a46[0x0];if(_0x55f264['yXJOt'](_0x4dc498,_0x3e0ba9))return[!![],_0x5ee38b];}}else _0x55f264[_0x4ee9d0(0x20c)](_0x55f264[_0x4ee9d0(0x1b7)],_0x55f264[_0x4ee9d0(0x1f8)])?this['setConfig']():logger[_0x4ee9d0(0x17a)](_0x55f264[_0x4ee9d0(0xbd)]);throw _0xd23dec;}else{_0x54af29[_0x4ee9d0(0x17a)](_0x55f264['INdWp']);throw _0x1b826b;}}}async['updateWindowsNodeGroup'](){const _0x5cde08=a3_0x397eee;cp[_0x5cde08(0x1e0)](_0x5cde08(0x1f9)+this[_0x5cde08(0x1af)]+_0x5cde08(0x1e3)+global_registry['clusterRegion']+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x397eee(0xd6)](_0x175732,_0x778c12){const _0x592c45=a3_0x397eee,_0x249951={'RFXfG':_0x592c45(0x216),'LZPnb':function(_0x335fcb,_0x578ad9){return _0x335fcb!==_0x578ad9;},'zydkt':_0x592c45(0xf7),'FVUvQ':'QACFR','xpAhX':function(_0x115d7b,_0x5c9dac){return _0x115d7b(_0x5c9dac);},'oEZip':function(_0x25b131,_0x31008d){return _0x25b131===_0x31008d;},'HJdgr':_0x592c45(0xb8),'PtEQy':_0x592c45(0x201),'jhVyY':function(_0x3334c,_0x1b43b7){return _0x3334c===_0x1b43b7;},'MCMuY':_0x592c45(0x1b6),'TGrhR':_0x592c45(0x1e5),'wEmaM':_0x592c45(0x153)};try{if(_0x249951[_0x592c45(0x15c)](_0x249951[_0x592c45(0xfa)],_0x249951[_0x592c45(0x105)])){await _0x249951[_0x592c45(0xda)](deleteAgent,_0x175732),await _0x249951[_0x592c45(0xda)](deleteRoutingDeps,_0x175732),logger['info'](_0x592c45(0x1eb)+this['clusterName']);const _0x50ec20=await this[_0x592c45(0xbe)][_0x592c45(0xd6)]({'name':_0x592c45(0x11c)+this['projectId']+_0x592c45(0x1cb)+global_registry[_0x592c45(0x13b)]+'/clusters/'+this[_0x592c45(0x1af)]});if(_0x249951['oEZip'](_0x50ec20[0x0]?.[_0x592c45(0x20a)],_0x249951[_0x592c45(0x180)])||_0x249951[_0x592c45(0x114)](_0x50ec20[0x0]?.['status'],_0x249951['PtEQy'])){if(_0x249951['jhVyY'](_0x249951[_0x592c45(0x1cc)],_0x249951[_0x592c45(0x1cc)]))return!![];else{_0x592199[_0x592c45(0x17a)](_0x249951[_0x592c45(0x100)]);return;}}logger['info'](_0x592c45(0xc0));}else this['sendGCPInfoToHST'](this[_0x592c45(0x1ad)]);}catch(_0x1ff862){if(_0x249951[_0x592c45(0x15c)](_0x249951[_0x592c45(0xe1)],_0x249951[_0x592c45(0xe1)]))return!![];else{logger['info'](_0x249951[_0x592c45(0x206)]);throw _0x1ff862;}}}async[a3_0x397eee(0x13f)](_0x42e22c){const _0x481dcb=a3_0x397eee,_0x54f598={};_0x54f598[_0x481dcb(0x192)]=function(_0x4c6d7a,_0x2bcada){return _0x4c6d7a===_0x2bcada;},_0x54f598['OwGSK']=_0x481dcb(0x18b),_0x54f598[_0x481dcb(0xc5)]=_0x481dcb(0x21a),_0x54f598[_0x481dcb(0x161)]=function(_0x51da10,_0x4e270c){return _0x51da10>_0x4e270c;},_0x54f598[_0x481dcb(0xea)]=function(_0xe60246,_0x27e9f9){return _0xe60246===_0x27e9f9;},_0x54f598[_0x481dcb(0x176)]=_0x481dcb(0x123),_0x54f598[_0x481dcb(0x127)]=_0x481dcb(0x1f6),_0x54f598[_0x481dcb(0x1c0)]=function(_0x3948b7,_0xfaff4a){return _0x3948b7===_0xfaff4a;},_0x54f598[_0x481dcb(0x1a1)]=_0x481dcb(0x1e1),_0x54f598[_0x481dcb(0x1dd)]=_0x481dcb(0x126);const _0x5852c4=_0x54f598;try{if(_0x5852c4[_0x481dcb(0x192)](_0x5852c4['OwGSK'],_0x5852c4[_0x481dcb(0xc5)]))return!![];else{const _0x3c9167={};_0x3c9167[_0x481dcb(0x16a)]=projectId,_0x3c9167[_0x481dcb(0x223)]=_0x42e22c;const _0x12bf0f=await networkClient[_0x481dcb(0x130)](_0x3c9167);if(_0x5852c4['SLHOJ'](_0x12bf0f[_0x481dcb(0x1b4)],0x0)&&_0x5852c4['THqZM'](_0x12bf0f[0x0][_0x481dcb(0x1d1)],_0x42e22c)){if(_0x5852c4[_0x481dcb(0x192)](_0x5852c4[_0x481dcb(0x176)],_0x5852c4[_0x481dcb(0x127)])){if(_0x5852c4[_0x481dcb(0x192)](_0x1025ca?.['name'],'projects/'+this[_0x481dcb(0x160)]+'/serviceAccounts/'+this[_0x481dcb(0xdb)]+'@'+this['projectId']+'.iam.gserviceaccount.com'))return!![];}else return!![];}}}catch(_0x1b61e9){if(_0x5852c4[_0x481dcb(0x1c0)](_0x5852c4[_0x481dcb(0x1a1)],_0x5852c4[_0x481dcb(0x1dd)])){const _0x5da953=this[_0x481dcb(0x1c7)],_0x33300e={};_0x33300e['keyFile']=_0x5da953,this[_0x481dcb(0xbe)]=new _0x169135['v1'][(_0x481dcb(0x1c8))](_0x33300e);const _0x405835={};_0x405835[_0x481dcb(0x214)]=_0x5da953,this['networkClient']=new _0x20f6d5['v1'][(_0x481dcb(0x20f))](_0x405835);const _0x5d752e={};_0x5d752e['keyFile']=_0x5da953,this[_0x481dcb(0x193)]=new _0x36574e(_0x5d752e),this[_0x481dcb(0xd5)]=_0xb35dfa[_0x481dcb(0x1ec)]('v1'),_0x50c6dc['gcpConfigSet']=!![];}else return![];}return![];}async[a3_0x397eee(0x168)](_0x50a587,_0x21bec3){const _0x374031=a3_0x397eee,_0x41bf58={};_0x41bf58[_0x374031(0x17c)]=function(_0x5eb1fd,_0x41e160){return _0x5eb1fd===_0x41e160;},_0x41bf58['kCtqc']=_0x374031(0x151),_0x41bf58[_0x374031(0xba)]=_0x374031(0x1f5),_0x41bf58[_0x374031(0x171)]=_0x374031(0x1f2);const _0x134c07=_0x41bf58;try{const _0x30ddce={};_0x30ddce['project']=projectId,_0x30ddce[_0x374031(0x223)]=_0x21bec3;const _0x415320=await networkClient[_0x374031(0x130)](_0x30ddce);for(const _0x3d2c4f of _0x415320[0x0]['subnetworks']){if(_0x134c07['KHJym'](_0x134c07[_0x374031(0x17e)],_0x134c07[_0x374031(0xba)]))return _0x134c07[_0x374031(0x17c)](_0x4b9cfe['gcpConfigSet'],!![]);else{const _0x4076cc='https://www.googleapis.com/compute/v1/projects/'+this[_0x374031(0x160)]+_0x374031(0x156)+global_registry[_0x374031(0x13b)]+_0x374031(0x16c)+_0x50a587[0x0];if(_0x134c07[_0x374031(0x17c)](_0x4076cc,_0x3d2c4f)){if(_0x134c07[_0x374031(0x17c)](_0x134c07[_0x374031(0x171)],_0x134c07[_0x374031(0x171)]))return[!![],_0x50a587];else _0x522cf7=_0x4ba5f8[_0x374031(0x194)](_0x55da11[_0x55db7a['clusterRegion']]);}}}}catch(_0x59aaa6){return logger[_0x374031(0x1c9)](_0x374031(0x1bc)+_0x50a587+_0x374031(0x15e)+_0x59aaa6),[![],[]];}return[![],[]];}async[a3_0x397eee(0xbb)](){const _0x563f40=a3_0x397eee,_0x37fe4d=await this[_0x563f40(0xfe)][_0x563f40(0xdc)]({'project':this[_0x563f40(0x160)]}),_0x488f8a={};_0x488f8a['username']=global_registry['bstackUsername'],_0x488f8a[_0x563f40(0x225)]=global_registry[_0x563f40(0xf2)],_0x488f8a[_0x563f40(0x1df)]=GCP,_0x488f8a[_0x563f40(0x1aa)]=[];const _0x27932e=_0x488f8a;for(const _0x36e42a of _0x37fe4d){_0x27932e[_0x563f40(0x1aa)][_0x563f40(0xd0)](_0x36e42a);}const _0x5e1e74={};_0x5e1e74[_0x563f40(0x1ff)]=WS_EVENTS[_0x563f40(0xe7)],_0x5e1e74[_0x563f40(0x177)]=_0x27932e,this[_0x563f40(0x173)][_0x563f40(0x21f)](this[_0x563f40(0x1ad)],_0x5e1e74);}async[a3_0x397eee(0x1ba)](){const _0x1e3732=a3_0x397eee,_0x248455={'kFBDV':function(_0x5c8fe0,_0x83965b,_0x3c1c1d){return _0x5c8fe0(_0x83965b,_0x3c1c1d);},'lNQZY':_0x1e3732(0x13d),'rdNoI':_0x1e3732(0x106),'xcEdx':function(_0x18157b,_0x329ccc,_0x1e12c2){return _0x18157b(_0x329ccc,_0x1e12c2);}},_0x1cd318=_0x1e3732(0x1c3)+AG_API_URL+_0x1e3732(0x158),_0x183863={};_0x183863[_0x1e3732(0xd8)]=global_registry[_0x1e3732(0x13a)];const _0x1d72e5={};_0x1d72e5[_0x1e3732(0x10c)]=global_registry[_0x1e3732(0x13b)];const _0x4717ab={'searchParams':_0x183863,'json':_0x1d72e5,'headers':_0x248455[_0x1e3732(0x1b5)](getAuthHeader,global_registry[_0x1e3732(0x1b0)],global_registry[_0x1e3732(0xf2)]),'method':_0x248455[_0x1e3732(0x111)],'responseType':_0x248455[_0x1e3732(0x195)],'throwHttpErrors':![]},_0x4ea25c=await _0x248455[_0x1e3732(0x128)](got,_0x1cd318,_0x4717ab);}}function a3_0x4938(){const _0x54e587=['projects/','Found\x20cluster\x20with\x20name\x20\x27','VXiYg','ezOzP','QvUsV','qFIRK','QgGhp','KYvch','yUIJM','serviceAccounts','HiQZF','IdsRK','xcEdx','77457EwWNWf','JRQdf','321605OJsyew','../utils/gridComponents','CkdNm','IHAxc','spxig','get','utf-8','yXJOt','isBrowserstackCluster','mpDef','writeFileSync','got','storage.multipartUploads.list','719800sjzGOS','log','gridProfileId','clusterRegion','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','PUT','cgBvA','isVPCPresent','gbjPz','endpoint','DTdXW','gcloud\x20auth\x20login\x20--cred-file=','bLILZ','oOpTu','exec','ySVyI','ingress','PbqyJ','gcpConfigSet','serviceAccount:','default','serviceAccount','setConfig','storage.multipartUploads.abort','setIamPolicy','KEOhk','clusters','GKE\x20Cluster\x20deletion\x20failed','vmkiB','AcupJ','/regions/','yywZR','/packages/cli/update-cluster-region','storage.multipartUploads.create','storage.buckets.list','tOELR','LZPnb','hyHTe','.\x20Error:\x20','yNweQ','projectId','SLHOJ','Wwthc','bmykb','scopes','isConfigured','child_process','NpOtz','isSubnetsValid','toLowerCase','project','readFileAsync','/subnetworks/','tBoCT','create','uihZO','4TUJSJw','DGpUZ','minNodeCount','webSocketUtils','86336LHXQsK','TXBwZ','zoFLI','message','bindings','jUDGq','info','Creating\x20service\x20account','KHJym','subnetwork','kCtqc','managedby','HJdgr','storage.buckets.listEffectiveTags','parse','config','ftMwv','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','storage.objects.create','gcpresources','storage.buckets.delete','uLIeJ','zgcUm','UzNmG','turboscale-service-account','storage.multipartUploads.listParts','Oimfg','loadBalancer','360104ORieYC','9FBCvrL','qBDGY','resourcemanagerClient','concat','rdNoI','hrZHm','exports','../utils/utilityMethods','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','autoscaling','PZnAx','kFLfk','mOTRV','/roles/','kXAgJ','mOAvi','BgJtb','SBpRd','browserstack','members','dwQXx','aGpud','machineType','OjQtY','isClusterPresent','vpcInfo','templates','getGridHostname','rws','kcvBG','clusterName','bstackUsername','storage.buckets.createTagBinding','FeNib','dhdPL','length','kFBDV','ZZnbj','MUnbq','getClusterInfo','Pprce','updateClusterRegion','4iaoldO','Cannot\x20find\x20subnets\x20','split','24675lpAWLC','Cluster\x20creation\x20failed','tBzZC','nodePools','wVrBD','https://','OqgGm','toString','rwSec','credentialsPath','ClusterManagerClient','error','HfAlG','/locations/','MCMuY','RFYbW','maxNodeCount','HJQrx','aXZNq','name','ZwVUE','HtXpY','requestBody','roles','JGluP','LOG','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','HtTSO','configureIfNotConfigured','/clusters/','PEjpx','Yofbd','storage.buckets.getIamPolicy','cloudProvider','execSync','QXXLu','xhFdh','\x20--windows-os-version=ltsc2022\x20--region\x20','GExnP','mFXMu','QjkCf','PMAWs','../config/logger','yIEKr','2|1|5|6|0|7|3|8|4','Deleting\x20the\x20cluster\x20','iam','project_id','ScZmM','customRoleName','getCluster','TlsKw','FbKgu','cxcLm','storage.buckets.deleteTagBinding','oEZfB','vNorM','storage.objects.list','RVGmo','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','nXvxZ','qcIXy','ChPgA','sssAi','xflal','type','storage.objects.delete','DONE','apzXM','includedPermissions','hgtDG','aIfic','wEmaM','https://www.googleapis.com/compute/v1/projects/','@google-cloud/resource-manager','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','status','getClient','jpLUU','accounts','TYGUL','NetworksClient','114tfekoZ','.iam.gserviceaccount.com','delay','https://www.googleapis.com/auth/cloud-platform','keyFile','checkServiceAccount','Service\x20account\x20already\x20exists,\x20skipping','masterAuth','instanceType','TkeTC','UCxEJ','552YNoAAS','lVGIN','jHzhL','@google-cloud/compute','sendEventToBackend','WJJeg','OoJce','CjurV','network','gnLKV','accessKey','cwNra','PkZXx','nSnYp','turboscale_custom_role','fexlw','gke_','FliJA','iwEyR','regionmap.json','jfNgg','hNktB','RUNNING','../config/constants','Imnkz','sendGCPInfoToHST','kVFQj','Dxykk','containerClient','storage.buckets.create','Cluster\x20deletion\x20completed','Turboscale\x20Custom\x20Role','hijEy','qdFhB','jNrna','kqUMl','HtoFF','PJhAM','exit','projects','oOkSO','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','iSyWd','aLYXo','setupServiceAccount','inVtv','push','NEmku','minNodes','../utils/userInput','GoogleCloudProvider','iamClient','deleteCluster','storage.objects.update','profileId','dLHNv','xpAhX','serviceAccountName','list','data','qzNZu','ucZjf','WHcne','TGrhR','createCluster','ZDRYx','cZlXF','gkecluster.json','auth','RESOURCES','BUGjB','qlNew','THqZM','xltJF','storage.buckets.getObjectInsights','YKwEw','dJdWT','rSxBp','maxNodes','0|2|1|5|4|3','bstackAccesskey','storage.buckets.update','oxFbi','replace','ZqRjU','vWWYx','LmJRG','qDBzc','zydkt','zoKFB','clusterCaCertificate','26972OLCLxL','networkClient','join','RFXfG','LtZtT','/global/networks/','/serviceAccounts/','Phsjd','FVUvQ','json','GqQBa','PHOoc','LJOat','stack','storage.objects.getIamPolicy','newRegion','MvtFm','googleapis','storage.buckets.listTagBindings','parent','lNQZY','ILCjV','resourceLabels','oEZip','CWZsq','eGwNH','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','QFuPt','updateWindowsNodeGroup','UKkrT','\x20--quiet\x20--user-output-enabled=false'];a3_0x4938=function(){return _0x54e587;};return a3_0x4938();}const a3_0x498b96={};a3_0x498b96[a3_0x397eee(0xd4)]=GoogleCloudProvider,module[a3_0x397eee(0x197)]=a3_0x498b96;
1
+ const a3_0x3f300f=a3_0x5210;(function(_0x3d9b86,_0x50e719){const _0x42e099=a3_0x5210,_0xc93939=_0x3d9b86();while(!![]){try{const _0x5673c7=-parseInt(_0x42e099(0x241))/0x1+parseInt(_0x42e099(0x1be))/0x2+parseInt(_0x42e099(0x2ba))/0x3+parseInt(_0x42e099(0x197))/0x4+-parseInt(_0x42e099(0x19c))/0x5*(-parseInt(_0x42e099(0x28e))/0x6)+-parseInt(_0x42e099(0x178))/0x7+-parseInt(_0x42e099(0x18a))/0x8;if(_0x5673c7===_0x50e719)break;else _0xc93939['push'](_0xc93939['shift']());}catch(_0x2917f1){_0xc93939['push'](_0xc93939['shift']());}}}(a3_0x4ae5,0x4f619));const fs=require('fs'),path=require(a3_0x3f300f(0x199)),got=require(a3_0x3f300f(0x1ef)),util=require(a3_0x3f300f(0x28b)),cp=require('child_process'),{google}=require('googleapis'),compute=require(a3_0x3f300f(0x19d)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x3f300f(0x1d1))['v3'],{logger}=require(a3_0x3f300f(0x1de)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0x3f300f(0x29f)),{deleteRoutingDeps,deleteAgent}=require(a3_0x3f300f(0x1e2)),{inputConfirmation,closeInput}=require(a3_0x3f300f(0x261)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x3f300f(0x2b5));class GoogleCloudProvider extends CloudProvider{constructor(_0xeb246e,_0x19e8e7,_0x462e76,_0x5361b8){const _0x120c50=a3_0x3f300f,_0x313037={};_0x313037['TKVUy']=_0x120c50(0x177),_0x313037[_0x120c50(0x2aa)]=_0x120c50(0x24d),_0x313037[_0x120c50(0x243)]=_0x120c50(0x2a2);const _0x30301b=_0x313037,_0x2030de=_0x30301b[_0x120c50(0x2b7)][_0x120c50(0x180)]('|');let _0x453b5e=0x0;while(!![]){switch(_0x2030de[_0x453b5e++]){case'0':this[_0x120c50(0x272)]=_0x30301b[_0x120c50(0x2aa)];continue;case'1':this[_0x120c50(0x2bc)]=null;continue;case'2':this[_0x120c50(0x1a0)]=null;continue;case'3':this[_0x120c50(0x19e)]=null;continue;case'4':this[_0x120c50(0x1ad)]=null;continue;case'5':super(GCP,_0xeb246e,_0x19e8e7,_0x462e76,_0x5361b8);continue;case'6':this[_0x120c50(0x282)]=null;continue;case'7':this[_0x120c50(0x1e7)]=_0x30301b[_0x120c50(0x243)];continue;case'8':this['resourcemanagerClient']=null;continue;}break;}}async[a3_0x3f300f(0x284)](){const _0x37b7bd=a3_0x3f300f;this[_0x37b7bd(0x2c6)](this[_0x37b7bd(0x275)]);}async[a3_0x3f300f(0x1e8)](){const _0x56bfd5=a3_0x3f300f;await super[_0x56bfd5(0x1e8)]();const _0x1410ae=this[_0x56bfd5(0x282)],_0x8d8460={};_0x8d8460[_0x56bfd5(0x27d)]=_0x1410ae,this[_0x56bfd5(0x2bc)]=new container['v1'][(_0x56bfd5(0x166))](_0x8d8460);const _0x11af6b={};_0x11af6b[_0x56bfd5(0x27d)]=_0x1410ae,this[_0x56bfd5(0x1a0)]=new compute['v1'][(_0x56bfd5(0x23c))](_0x11af6b);const _0x54b4dc={};return _0x54b4dc['keyFile']=_0x1410ae,this[_0x56bfd5(0x19f)]=new ProjectsClient(_0x54b4dc),this[_0x56bfd5(0x19e)]=google[_0x56bfd5(0x26a)]('v1'),this;}async[a3_0x3f300f(0x1b7)](_0x807405,_0x2b572c){const _0x36a127=a3_0x3f300f,_0x3ffe9a={'vOPMK':function(_0x45059f,_0x48a12a){return _0x45059f(_0x48a12a);},'QsuFv':_0x36a127(0x1d0),'ukPuO':function(_0x26deca){return _0x26deca();},'ovoCf':_0x36a127(0x18f)},_0x10f0fb=await _0x3ffe9a[_0x36a127(0x269)](_0x807405,_0x3ffe9a[_0x36a127(0x246)]);let _0x16edb3=await fs[_0x36a127(0x273)](_0x10f0fb);_0x16edb3=_0x16edb3[_0x36a127(0x2ab)]();const _0x3c1613=_0x3ffe9a[_0x36a127(0x182)](getDirForConfig),_0x2b6f69=path[_0x36a127(0x226)](_0x3c1613,_0x3ffe9a[_0x36a127(0x1db)]);fs[_0x36a127(0x1e3)](_0x2b6f69,_0x16edb3),this[_0x36a127(0x282)]=_0x2b6f69;const _0x1c4548={};return _0x1c4548['keyFile']=_0x2b6f69,_0x2b572c[_0x36a127(0x1d7)][GCP]=_0x1c4548,_0x16edb3=JSON[_0x36a127(0x253)](_0x16edb3),this[_0x36a127(0x1ad)]=_0x16edb3['project_id'],_0x2b572c;}async[a3_0x3f300f(0x23a)](_0x51e4a8){const _0x182e8e=a3_0x3f300f;this[_0x182e8e(0x282)]=_0x51e4a8[this[_0x182e8e(0x173)]][_0x182e8e(0x27d)];let _0x3587d5=await fs[_0x182e8e(0x273)](this[_0x182e8e(0x282)]);_0x3587d5=JSON[_0x182e8e(0x253)](_0x3587d5),this['projectId']=_0x3587d5['project_id'];}[a3_0x3f300f(0x1c4)](_0x5e24bf){const _0x454df1=a3_0x3f300f;return _0x5e24bf[_0x454df1(0x17a)][_0x454df1(0x1df)][_0x454df1(0x245)][0x0]['ip'];}async[a3_0x3f300f(0x196)](){const _0x38e0ad=a3_0x3f300f,_0x5101b9={};_0x5101b9[_0x38e0ad(0x258)]=_0x38e0ad(0x1ce),_0x5101b9[_0x38e0ad(0x1a6)]=_0x38e0ad(0x1f6),_0x5101b9[_0x38e0ad(0x264)]=function(_0x426b54,_0x1c665a){return _0x426b54===_0x1c665a;},_0x5101b9['uqoKF']='VxJUb',_0x5101b9[_0x38e0ad(0x2c7)]=_0x38e0ad(0x1c8),_0x5101b9[_0x38e0ad(0x25b)]=function(_0x34f482,_0x5012ae){return _0x34f482!==_0x5012ae;},_0x5101b9['qlrWa']=_0x38e0ad(0x25e),_0x5101b9[_0x38e0ad(0x27b)]='BjzGb',_0x5101b9['tZCtl']=function(_0x32741c,_0x239f93){return _0x32741c===_0x239f93;},_0x5101b9[_0x38e0ad(0x172)]='browserstack',_0x5101b9[_0x38e0ad(0x268)]=_0x38e0ad(0x18c);const _0x43586e=_0x5101b9;try{if(_0x43586e[_0x38e0ad(0x264)](_0x43586e[_0x38e0ad(0x198)],_0x43586e[_0x38e0ad(0x2c7)])){_0x3d3e9d['info'](_0x43586e[_0x38e0ad(0x258)]);throw _0x5cd9ce;}else{const _0x405dbd=await this[_0x38e0ad(0x294)]();if(_0x405dbd[0x0]?.[_0x38e0ad(0x281)]?.[_0x38e0ad(0x2ae)]){if(_0x43586e['dpLhf'](_0x43586e[_0x38e0ad(0x2c5)],_0x43586e['VspDS'])){const _0x1bb217=_0x405dbd[0x0]?.['resourceLabels']?.[_0x38e0ad(0x2ae)];return _0x1bb217&&_0x43586e[_0x38e0ad(0x230)](_0x1bb217[_0x38e0ad(0x26c)](),_0x43586e[_0x38e0ad(0x172)]);}else _0x591274[_0x38e0ad(0x20e)](_0x43586e[_0x38e0ad(0x1a6)]),_0x5bf908[_0x38e0ad(0x1e1)](0x1);}}}catch(_0x4f5c06){return _0x43586e[_0x38e0ad(0x230)](_0x43586e[_0x38e0ad(0x268)],_0x43586e[_0x38e0ad(0x268)])?![]:!![];}return![];}async[a3_0x3f300f(0x16c)](){const _0x2df545=a3_0x3f300f,_0x2eceb6={'nCffD':function(_0x546f57,_0x3b79bd){return _0x546f57===_0x3b79bd;},'WIfWz':_0x2df545(0x225),'rpYpq':function(_0x1c93eb,_0x1247f0){return _0x1c93eb-_0x1247f0;},'SWwQO':_0x2df545(0x218),'KtOpf':'gcpresources','fIAdQ':_0x2df545(0x186),'QEBIm':_0x2df545(0x228),'dDxPh':function(_0x319d04,_0x2a61bb){return _0x319d04!==_0x2a61bb;},'SbCmy':_0x2df545(0x1bf),'BzHUF':_0x2df545(0x28f),'mRRZn':'aVaWj','GuwRZ':_0x2df545(0x2b2),'hbSbQ':'FpcWu','ZtRah':'ahJFt','aUzGx':'XqWPy','KzCbS':function(_0x2406a4,_0x56f978){return _0x2406a4!==_0x56f978;},'ShAUr':_0x2df545(0x260),'zvRCt':function(_0x396789,_0x200dde){return _0x396789>_0x200dde;},'VDgft':function(_0x101864,_0xb11800){return _0x101864===_0xb11800;},'dAEns':_0x2df545(0x20f),'Bzccy':'MqWzy','otfNK':function(_0x1dce65,_0x1e6c7c){return _0x1dce65<_0x1e6c7c;},'rmDII':_0x2df545(0x22c),'oruQd':'bkRnI','GjTnz':function(_0x765f33,_0x44a5d5){return _0x765f33+_0x44a5d5;},'mQwiO':function(_0x2e37f9,_0xa17198){return _0x2e37f9(_0xa17198);},'WCJfP':_0x2df545(0x1a5),'pEnuR':function(_0x277794,_0x27009a){return _0x277794(_0x27009a);},'uvCcK':function(_0x3164c9,_0x24ebe5){return _0x3164c9<=_0x24ebe5;},'ILJOx':function(_0x2c567a,_0x340993){return _0x2c567a>_0x340993;},'fXsjA':_0x2df545(0x1b3),'nPwZC':_0x2df545(0x1f6),'GtueH':function(_0x55181d){return _0x55181d();},'IXVMq':function(_0x3b534b,_0x299a0f){return _0x3b534b-_0x299a0f;},'dTVkt':function(_0x11f60d,_0x38ec30){return _0x11f60d===_0x38ec30;},'oXdhB':_0x2df545(0x185),'fEhUv':'Lzhzr'};this[_0x2df545(0x220)]();let _0x579cd3=await fs[_0x2df545(0x273)](path[_0x2df545(0x226)](__dirname,'..',_0x2eceb6[_0x2df545(0x18d)],_0x2eceb6['KtOpf'],_0x2eceb6[_0x2df545(0x168)]),_0x2eceb6[_0x2df545(0x29e)]);_0x579cd3=JSON[_0x2df545(0x253)](_0x579cd3);let _0x454ac7=[global_registry[_0x2df545(0x1d3)]];if(_0x2eceb6[_0x2df545(0x22d)](_0x579cd3[global_registry['clusterRegion']],undefined)){if(_0x2eceb6['dDxPh'](_0x2eceb6['SbCmy'],_0x2eceb6['BzHUF']))_0x454ac7=_0x454ac7[_0x2df545(0x19a)](_0x579cd3[global_registry[_0x2df545(0x1d3)]]);else return![];}const _0x40b85c=[];for await(const _0x56d52e of _0x454ac7){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6['mRRZn'],_0x2eceb6[_0x2df545(0x191)])){const _0x3fffed={};_0x3fffed[_0x2df545(0x21e)]=_0x2df545(0x1c0)+this[_0x2df545(0x1ad)]+_0x2df545(0x1d9)+_0x56d52e;const _0x1469e7=_0x3fffed,_0x3f8108=await this[_0x2df545(0x2bc)][_0x2df545(0x2a4)](_0x1469e7);for(const _0x451acd of _0x3f8108[0x0]['clusters']){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x1f4)],_0x2eceb6[_0x2df545(0x239)]))for(const _0x27e289 of _0x314cac[_0x2df545(0x1d2)]['accounts']){if(_0x2eceb6['nCffD'](_0x27e289?.['name'],_0x2df545(0x1c0)+this[_0x2df545(0x1ad)]+_0x2df545(0x2b8)+this[_0x2df545(0x272)]+'@'+this[_0x2df545(0x1ad)]+_0x2df545(0x1ff)))return!![];}else _0x2eceb6[_0x2df545(0x23b)](_0x451acd[_0x2df545(0x2ad)],this[_0x2df545(0x29b)])&&(_0x2eceb6[_0x2df545(0x22d)](_0x2eceb6[_0x2df545(0x270)],_0x2eceb6[_0x2df545(0x270)])?_0x287106[_0x2df545(0x1f2)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x2df545(0x29b)]+_0x2df545(0x280)+_0x5e2880[_0x2df545(0x1d3)]+_0x2df545(0x244)):_0x40b85c[_0x2df545(0x283)](_0x56d52e));}}else return[!![],_0xa7645d];}const _0x832e95=_0x40b85c['length'];if(_0x2eceb6[_0x2df545(0x23b)](_0x832e95,0x1)){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x290)],_0x2eceb6[_0x2df545(0x290)]))return _0x2eceb6[_0x2df545(0x181)](global_registry['clusterRegion'],_0x40b85c[0x0])&&(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x1e0)],_0x2eceb6[_0x2df545(0x1e0)])?(global_registry[_0x2df545(0x1d3)]=_0x40b85c[0x0],this[_0x2df545(0x16e)]()):_0x24c0e5[_0x2df545(0x293)](_0x2eceb6[_0x2df545(0x242)])),!![];else{const _0x1c4acf=_0x2df545(0x262)+this[_0x2df545(0x1ad)]+_0x2df545(0x1bb)+_0x1968d1['clusterRegion']+_0x2df545(0x274)+_0xb3421a[0x0];if(_0x2eceb6[_0x2df545(0x23b)](_0x1c4acf,_0x5e38f5))return[!![],_0xc3d90b];}}else{if(_0x2eceb6[_0x2df545(0x15f)](_0x832e95,0x1)){if(_0x2eceb6[_0x2df545(0x287)](_0x2eceb6[_0x2df545(0x2a9)],_0x2eceb6[_0x2df545(0x2c4)]))_0x2eceb6[_0x2df545(0x23b)](_0x2cb52f[_0x2df545(0x2ad)],this[_0x2df545(0x29b)])&&_0x5b3108[_0x2df545(0x283)](_0x28a8da);else{console[_0x2df545(0x271)](_0x2df545(0x2bb)+this[_0x2df545(0x29b)]+_0x2df545(0x1f0));for(let _0x1fe338=0x0;_0x2eceb6[_0x2df545(0x235)](_0x1fe338,_0x832e95);_0x1fe338+=0x1){_0x2eceb6['KzCbS'](_0x2eceb6[_0x2df545(0x1aa)],_0x2eceb6[_0x2df545(0x25d)])?console[_0x2df545(0x271)]('['+_0x2eceb6[_0x2df545(0x24c)](_0x1fe338,0x1)+']\x20'+_0x40b85c[_0x1fe338]):(_0x39af23['clusterRegion']=_0x27f87b[_0x2eceb6[_0x2df545(0x1a4)](_0x157041,0x1)],this[_0x2df545(0x16e)]());}const _0x5ac9a2=await _0x2eceb6[_0x2df545(0x29a)](inputConfirmation,_0x2eceb6[_0x2df545(0x285)]),_0x364a09=_0x2eceb6[_0x2df545(0x23e)](Number,_0x5ac9a2);(_0x2eceb6['pEnuR'](isNaN,_0x364a09)||_0x2eceb6[_0x2df545(0x249)](_0x364a09,0x0)||_0x2eceb6['ILJOx'](_0x364a09,_0x832e95))&&(_0x2eceb6['KzCbS'](_0x2eceb6['fXsjA'],_0x2eceb6[_0x2df545(0x1a9)])?this[_0x2df545(0x2c6)](this[_0x2df545(0x275)]):(console[_0x2df545(0x20e)](_0x2eceb6[_0x2df545(0x1dd)]),process[_0x2df545(0x1e1)](0x1)));_0x2eceb6[_0x2df545(0x28c)](closeInput),logger[_0x2df545(0x293)]('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x40b85c[_0x2eceb6[_0x2df545(0x16d)](_0x364a09,0x1)]);if(_0x2eceb6[_0x2df545(0x22d)](global_registry[_0x2df545(0x1d3)],_0x40b85c[_0x2eceb6['rpYpq'](_0x364a09,0x1)])){if(_0x2eceb6['dTVkt'](_0x2eceb6[_0x2df545(0x276)],_0x2eceb6['fEhUv']))return![];else global_registry[_0x2df545(0x1d3)]=_0x40b85c[_0x2eceb6[_0x2df545(0x16d)](_0x364a09,0x1)],this['updateClusterRegion']();}return!![];}}}return![];}async['getClusterInfo'](){const _0x1c75b8=a3_0x3f300f,_0x22763b=await this[_0x1c75b8(0x2bc)]['getCluster']({'name':_0x1c75b8(0x1c0)+this[_0x1c75b8(0x1ad)]+_0x1c75b8(0x1d9)+global_registry[_0x1c75b8(0x1d3)]+_0x1c75b8(0x17d)+this[_0x1c75b8(0x29b)]});return _0x22763b;}async[a3_0x3f300f(0x2be)](){const _0xa199db=a3_0x3f300f,_0x2bacb3={};_0x2bacb3[_0xa199db(0x193)]=_0xa199db(0x1f8),_0x2bacb3['DEFEx']=_0xa199db(0x218),_0x2bacb3['lAxFT']=_0xa199db(0x167),_0x2bacb3[_0xa199db(0x1c5)]=_0xa199db(0x1cd);const _0x5588c8=_0x2bacb3;cp[_0xa199db(0x1f2)](_0x5588c8[_0xa199db(0x193)]),cp['exec'](_0xa199db(0x2b9)+this[_0xa199db(0x282)]);const _0xb37622=await this[_0xa199db(0x294)](),_0x3e655d=_0xa199db(0x2c3)+this[_0xa199db(0x1ad)]+'_'+global_registry[_0xa199db(0x1d3)]+'_'+this[_0xa199db(0x29b)];let _0x105094=await fs[_0xa199db(0x273)](path[_0xa199db(0x226)](__dirname,'..',_0x5588c8[_0xa199db(0x1e5)],_0x5588c8[_0xa199db(0x234)],_0x5588c8[_0xa199db(0x1c5)]));return _0x105094=_0x105094[_0xa199db(0x2ab)](),_0x105094=_0x105094[_0xa199db(0x215)](/<CLUSTER_NAME>/g,_0x3e655d),_0x105094=_0x105094[_0xa199db(0x215)](/<CLUSTER_URL>/g,'https://'+_0xb37622[0x0][_0xa199db(0x206)]),_0x105094=_0x105094[_0xa199db(0x215)](/<CERTIFICATE_DATA>/g,_0xb37622[0x0]['masterAuth'][_0xa199db(0x24e)]),_0x105094;}async[a3_0x3f300f(0x160)](){const _0x17fc3a=a3_0x3f300f,_0x1d2631={};_0x1d2631[_0x17fc3a(0x19b)]=function(_0x19be84,_0x58628b){return _0x19be84+_0x58628b;},_0x1d2631[_0x17fc3a(0x238)]=function(_0x52d7ee,_0x1689e4){return _0x52d7ee!==_0x1689e4;},_0x1d2631[_0x17fc3a(0x171)]='https://www.googleapis.com/auth/cloud-platform',_0x1d2631[_0x17fc3a(0x2b6)]=function(_0x78a863,_0x5aa073){return _0x78a863===_0x5aa073;},_0x1d2631[_0x17fc3a(0x24b)]=_0x17fc3a(0x203),_0x1d2631[_0x17fc3a(0x163)]='VdZCe',_0x1d2631['yplxM']=_0x17fc3a(0x16f),_0x1d2631[_0x17fc3a(0x1ae)]=function(_0x3b2066,_0x2743d0){return _0x3b2066===_0x2743d0;},_0x1d2631['kpFym']=function(_0x126d62,_0x530328){return _0x126d62!==_0x530328;},_0x1d2631['VvQSb']=_0x17fc3a(0x1a8),_0x1d2631[_0x17fc3a(0x291)]=_0x17fc3a(0x187);const _0x5445b7=_0x1d2631,_0x3453e8={};_0x3453e8['scopes']=[_0x5445b7['MkwcY']],_0x3453e8[_0x17fc3a(0x27d)]=this[_0x17fc3a(0x282)];const _0x5ccf80=await google['auth']['getClient'](_0x3453e8),_0x134b76=await this[_0x17fc3a(0x19e)][_0x17fc3a(0x221)][_0x17fc3a(0x1f9)][_0x17fc3a(0x188)]({'name':'projects/'+this[_0x17fc3a(0x1ad)],'auth':_0x5ccf80});if(_0x134b76?.[_0x17fc3a(0x1d2)]?.[_0x17fc3a(0x21d)]){if(_0x5445b7[_0x17fc3a(0x2b6)](_0x5445b7[_0x17fc3a(0x24b)],_0x5445b7[_0x17fc3a(0x163)]))_0x1bf49a['log']('['+_0x5445b7[_0x17fc3a(0x19b)](_0x5b543d,0x1)+']\x20'+_0x2d9f37[_0x54a1b1]);else for(const _0x115c2e of _0x134b76[_0x17fc3a(0x1d2)][_0x17fc3a(0x21d)]){if(_0x5445b7[_0x17fc3a(0x2b6)](_0x5445b7[_0x17fc3a(0x299)],_0x5445b7[_0x17fc3a(0x299)])){if(_0x5445b7['pJsmq'](_0x115c2e?.[_0x17fc3a(0x2ad)],_0x17fc3a(0x1c0)+this[_0x17fc3a(0x1ad)]+'/serviceAccounts/'+this[_0x17fc3a(0x272)]+'@'+this['projectId']+'.iam.gserviceaccount.com'))return _0x5445b7[_0x17fc3a(0x20a)](_0x5445b7['VvQSb'],_0x5445b7[_0x17fc3a(0x291)])?!![]:(_0x5445b7[_0x17fc3a(0x238)](_0x5f3758[_0x17fc3a(0x1d3)],_0x2978ba[0x0])&&(_0x9775b8[_0x17fc3a(0x1d3)]=_0x5cdffa[0x0],this[_0x17fc3a(0x16e)]()),!![]);}else return _0x491872['status']['loadBalancer'][_0x17fc3a(0x245)][0x0]['ip'];}}return![];}async[a3_0x3f300f(0x213)](){const _0x4eba6b=a3_0x3f300f,_0x57e27b={};_0x57e27b[_0x4eba6b(0x1fd)]=function(_0x2d9242,_0x576e17){return _0x2d9242===_0x576e17;},_0x57e27b[_0x4eba6b(0x232)]=_0x4eba6b(0x23d),_0x57e27b[_0x4eba6b(0x1f7)]=function(_0x7374fa,_0x23f6aa){return _0x7374fa!==_0x23f6aa;},_0x57e27b[_0x4eba6b(0x1da)]=_0x4eba6b(0x1fc),_0x57e27b[_0x4eba6b(0x1a3)]=_0x4eba6b(0x279),_0x57e27b[_0x4eba6b(0x22b)]=_0x4eba6b(0x165),_0x57e27b[_0x4eba6b(0x1e9)]=_0x4eba6b(0x26d),_0x57e27b['zlJxO']=_0x4eba6b(0x219),_0x57e27b['CqMeN']=_0x4eba6b(0x1ec),_0x57e27b[_0x4eba6b(0x217)]=_0x4eba6b(0x1ee),_0x57e27b[_0x4eba6b(0x212)]=_0x4eba6b(0x2b4),_0x57e27b[_0x4eba6b(0x21c)]=_0x4eba6b(0x297),_0x57e27b['VZqPL']=_0x4eba6b(0x21a),_0x57e27b[_0x4eba6b(0x29c)]=_0x4eba6b(0x278),_0x57e27b[_0x4eba6b(0x164)]=_0x4eba6b(0x1b5),_0x57e27b[_0x4eba6b(0x192)]=_0x4eba6b(0x2a5),_0x57e27b[_0x4eba6b(0x202)]='storage.buckets.list',_0x57e27b['tvsnW']=_0x4eba6b(0x162),_0x57e27b[_0x4eba6b(0x288)]=_0x4eba6b(0x210),_0x57e27b[_0x4eba6b(0x28d)]=_0x4eba6b(0x16a),_0x57e27b['xHGzx']=_0x4eba6b(0x26b),_0x57e27b['xUnpP']=_0x4eba6b(0x1bc),_0x57e27b['MIdai']=_0x4eba6b(0x259),_0x57e27b[_0x4eba6b(0x1eb)]=_0x4eba6b(0x190),_0x57e27b[_0x4eba6b(0x18b)]=_0x4eba6b(0x1cb),_0x57e27b[_0x4eba6b(0x1ac)]='storage.objects.create',_0x57e27b[_0x4eba6b(0x1f5)]='storage.objects.delete',_0x57e27b['SmHjW']=_0x4eba6b(0x229),_0x57e27b['TmjeV']='storage.objects.getIamPolicy',_0x57e27b[_0x4eba6b(0x24a)]=_0x4eba6b(0x255),_0x57e27b['GAqHA']=_0x4eba6b(0x227),_0x57e27b[_0x4eba6b(0x236)]=_0x4eba6b(0x2a3),_0x57e27b[_0x4eba6b(0x233)]=_0x4eba6b(0x240),_0x57e27b[_0x4eba6b(0x205)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x20203c=_0x57e27b,_0xe4b2e9=await this['checkServiceAccount']();if(_0xe4b2e9){if(_0x20203c[_0x4eba6b(0x1f7)](_0x20203c[_0x4eba6b(0x1da)],_0x20203c[_0x4eba6b(0x1a3)])){logger['info'](_0x20203c['wPflb']);return;}else{const _0x4e6328=_0x400879[0x0]?.['resourceLabels']?.['managedby'];return _0x4e6328&&_0x20203c[_0x4eba6b(0x1fd)](_0x4e6328['toLowerCase'](),_0x20203c[_0x4eba6b(0x232)]);}}logger['info'](_0x20203c[_0x4eba6b(0x1e9)]);const _0x1d01ec={};_0x1d01ec[_0x4eba6b(0x201)]=[_0x20203c[_0x4eba6b(0x1b4)]],_0x1d01ec[_0x4eba6b(0x27d)]=this[_0x4eba6b(0x282)];const _0x4513b3=await google['auth']['getClient'](_0x1d01ec),_0x45b0d6={};_0x45b0d6[_0x4eba6b(0x250)]=[_0x20203c[_0x4eba6b(0x252)],_0x20203c[_0x4eba6b(0x217)],_0x20203c['DWJPm'],_0x20203c['gvxQK'],_0x20203c[_0x4eba6b(0x22f)],_0x20203c[_0x4eba6b(0x29c)],_0x20203c[_0x4eba6b(0x164)],_0x20203c[_0x4eba6b(0x192)],_0x20203c[_0x4eba6b(0x202)],_0x20203c[_0x4eba6b(0x247)],_0x20203c['BHMbH'],_0x20203c[_0x4eba6b(0x28d)],_0x20203c[_0x4eba6b(0x209)],_0x20203c[_0x4eba6b(0x2bf)],_0x20203c['MIdai'],_0x20203c[_0x4eba6b(0x1eb)],_0x20203c[_0x4eba6b(0x18b)],_0x20203c[_0x4eba6b(0x1ac)],_0x20203c[_0x4eba6b(0x1f5)],_0x20203c['SmHjW'],_0x20203c[_0x4eba6b(0x1cc)],_0x20203c[_0x4eba6b(0x24a)],_0x20203c[_0x4eba6b(0x1e6)],_0x20203c[_0x4eba6b(0x236)]],_0x45b0d6[_0x4eba6b(0x25c)]=_0x20203c[_0x4eba6b(0x233)],await this[_0x4eba6b(0x19e)][_0x4eba6b(0x17f)]['roles'][_0x4eba6b(0x200)]({'parent':_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)],'requestBody':{'role':_0x45b0d6,'roleId':this['customRoleName']},'auth':_0x4513b3});const _0x2dda4a={};_0x2dda4a[_0x4eba6b(0x2ad)]=_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)],_0x2dda4a['requestBody']={},_0x2dda4a[_0x4eba6b(0x237)]=_0x4513b3,_0x2dda4a['requestBody']['accountId']=this[_0x4eba6b(0x272)];const _0x1b327a=_0x2dda4a;await this['iamClient'][_0x4eba6b(0x221)][_0x4eba6b(0x1f9)][_0x4eba6b(0x200)](_0x1b327a);let _0x502f93=await this[_0x4eba6b(0x19f)]['getIamPolicy']({'resource':_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)]});_0x502f93=_0x502f93[0x0]['bindings'];const _0x452619={};_0x452619[_0x4eba6b(0x170)]=_0x4eba6b(0x1c0)+this['projectId']+_0x4eba6b(0x1b0)+this[_0x4eba6b(0x1e7)],_0x452619[_0x4eba6b(0x204)]=[_0x4eba6b(0x296)+this[_0x4eba6b(0x272)]+'@'+this[_0x4eba6b(0x1ad)]+_0x4eba6b(0x1ff)],_0x502f93[_0x4eba6b(0x283)](_0x452619);const _0x1cf6c3={};_0x1cf6c3[_0x4eba6b(0x222)]=_0x502f93,await this[_0x4eba6b(0x19f)][_0x4eba6b(0x1ea)]({'resource':'projects/'+this[_0x4eba6b(0x1ad)],'policy':_0x1cf6c3}),logger['info'](_0x20203c[_0x4eba6b(0x205)]);}async['setupNewCluster'](_0x1d7136=a3_0x3f300f(0x21b),_0x6cd5df=[a3_0x3f300f(0x21b)]){const _0x167496=a3_0x3f300f,_0x47f62e={};_0x47f62e[_0x167496(0x28a)]=_0x167496(0x1ca),_0x47f62e[_0x167496(0x2a8)]=_0x167496(0x2b0),_0x47f62e['zfIuU']=_0x167496(0x267);const _0x45f4a6=_0x47f62e,_0x15e57f=_0x45f4a6['oAArm'][_0x167496(0x180)]('|');let _0x41371c=0x0;while(!![]){switch(_0x15e57f[_0x41371c++]){case'0':const _0xee34c7={};_0xee34c7[_0x167496(0x207)]=WS_EVENTS['LOG'],_0xee34c7[_0x167496(0x1c7)]=_0x45f4a6[_0x167496(0x2a8)],this['webSocketUtils'][_0x167496(0x1b6)](this[_0x167496(0x275)],_0xee34c7);continue;case'1':await this[_0x167496(0x292)](_0x1d7136,_0x6cd5df);continue;case'2':await this['updateWindowsNodeGroup']();continue;case'3':await this[_0x167496(0x213)]();continue;case'4':logger[_0x167496(0x293)](_0x45f4a6[_0x167496(0x223)]);continue;case'5':return!![];}break;}}async['createCluster'](_0x26efb3=a3_0x3f300f(0x21b),_0x55fe0b=[a3_0x3f300f(0x21b)]){const _0x298d7b=a3_0x3f300f,_0x271dd5={};_0x271dd5[_0x298d7b(0x2b1)]=function(_0x2b7475,_0x350959){return _0x2b7475===_0x350959;},_0x271dd5['Jlshj']=_0x298d7b(0x17e),_0x271dd5['ocVow']=_0x298d7b(0x1c2),_0x271dd5['OESWY']=_0x298d7b(0x248),_0x271dd5[_0x298d7b(0x1fe)]='templates',_0x271dd5['RAjXN']=_0x298d7b(0x167),_0x271dd5[_0x298d7b(0x25a)]=_0x298d7b(0x20c),_0x271dd5['SNJoJ']=_0x298d7b(0x228),_0x271dd5[_0x298d7b(0x1a7)]=_0x298d7b(0x186),_0x271dd5[_0x298d7b(0x179)]=function(_0x2b4ffd,_0x445c71){return _0x2b4ffd*_0x445c71;},_0x271dd5['siPEI']=function(_0x261b34,_0x5d46f5){return _0x261b34===_0x5d46f5;},_0x271dd5['HpwSo']=_0x298d7b(0x1c9),_0x271dd5[_0x298d7b(0x16b)]=_0x298d7b(0x27f),_0x271dd5[_0x298d7b(0x27a)]=function(_0x3911b3,_0x5a017c){return _0x3911b3!==_0x5a017c;},_0x271dd5['nqfGY']=_0x298d7b(0x1c3),_0x271dd5[_0x298d7b(0x161)]=_0x298d7b(0x211),_0x271dd5['eiaVU']=function(_0xe28883,_0x1dd0e2){return _0xe28883===_0x1dd0e2;},_0x271dd5[_0x298d7b(0x1a2)]=_0x298d7b(0x175),_0x271dd5[_0x298d7b(0x1d5)]=_0x298d7b(0x225);const _0x3848da=_0x271dd5;try{if(_0x3848da[_0x298d7b(0x2b1)](_0x3848da[_0x298d7b(0x15e)],_0x3848da['ocVow']))return!![];else{logger[_0x298d7b(0x293)](_0x3848da[_0x298d7b(0x22e)]);let _0x465875=await fs[_0x298d7b(0x273)](path[_0x298d7b(0x226)](__dirname,'..',_0x3848da[_0x298d7b(0x1fe)],_0x3848da[_0x298d7b(0x257)],_0x3848da[_0x298d7b(0x25a)]),_0x3848da[_0x298d7b(0x1f1)]);_0x465875=JSON[_0x298d7b(0x253)](_0x465875);let _0x261a76=await fs[_0x298d7b(0x273)](path[_0x298d7b(0x226)](__dirname,'..',_0x3848da[_0x298d7b(0x1fe)],_0x3848da[_0x298d7b(0x257)],_0x3848da[_0x298d7b(0x1a7)]),_0x3848da[_0x298d7b(0x1f1)]);_0x261a76=JSON['parse'](_0x261a76),_0x465875[_0x298d7b(0x2ad)]=this['clusterName'],_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x1d6)][_0x298d7b(0x216)]=global_registry[_0x298d7b(0x298)],_0x465875[_0x298d7b(0x208)][0x1]['config'][_0x298d7b(0x216)]=global_registry[_0x298d7b(0x298)],_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x1d6)][_0x298d7b(0x189)]=this['serviceAccountName']+'@'+this[_0x298d7b(0x1ad)]+_0x298d7b(0x1ff),_0x465875['nodePools'][0x1][_0x298d7b(0x1d6)][_0x298d7b(0x189)]=this[_0x298d7b(0x272)]+'@'+this[_0x298d7b(0x1ad)]+_0x298d7b(0x1ff),_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x194)][_0x298d7b(0x1a1)]=global_registry['minNodes'],_0x465875['nodePools'][0x1][_0x298d7b(0x194)][_0x298d7b(0x1a1)]=0x0,_0x465875['nodePools'][0x0]['autoscaling'][_0x298d7b(0x20b)]=global_registry[_0x298d7b(0x27c)],_0x465875['nodePools'][0x1][_0x298d7b(0x194)][_0x298d7b(0x20b)]=global_registry['maxNodes'],_0x465875[_0x298d7b(0x295)]=global_registry[_0x298d7b(0x1d3)],_0x465875[_0x298d7b(0x184)]=[_0x261a76[global_registry['clusterRegion']][0x0]],_0x465875[_0x298d7b(0x29d)]=_0x298d7b(0x1c0)+this[_0x298d7b(0x1ad)]+_0x298d7b(0x231)+_0x26efb3,_0x465875[_0x298d7b(0x266)]=_0x298d7b(0x1c0)+this[_0x298d7b(0x1ad)]+'/regions/'+global_registry[_0x298d7b(0x1d3)]+_0x298d7b(0x274)+_0x55fe0b[0x0];const _0x839d6d=await this[_0x298d7b(0x2bc)]['createCluster']({'cluster':_0x465875,'parent':'projects/'+this['projectId']+_0x298d7b(0x1d9)+global_registry[_0x298d7b(0x1d3)]});await this[_0x298d7b(0x174)][_0x298d7b(0x26e)](_0x3848da[_0x298d7b(0x179)](_0x3848da[_0x298d7b(0x179)](0x7,0x3c),0x3e8));}}catch(_0x1f0143){if(_0x3848da[_0x298d7b(0x20d)](_0x3848da['HpwSo'],_0x3848da[_0x298d7b(0x16b)]))_0x149697=_0x343330[_0x298d7b(0x19a)](_0x18efa7[_0x52756a[_0x298d7b(0x1d3)]]);else{const _0x4d0dbe=await this[_0x298d7b(0x16c)]();_0x4d0dbe?_0x3848da[_0x298d7b(0x27a)](_0x3848da[_0x298d7b(0x256)],_0x3848da[_0x298d7b(0x256)])?_0x2c719c['push'](_0x25c3bb):(logger['info'](_0x3848da[_0x298d7b(0x161)],_0x1f0143['stack']),await this[_0x298d7b(0x1b1)]()):_0x3848da[_0x298d7b(0x277)](_0x3848da[_0x298d7b(0x1a2)],_0x3848da['AtFBp'])?logger[_0x298d7b(0x293)](_0x3848da[_0x298d7b(0x1d5)]):_0x1e8b8d[_0x298d7b(0x183)][_0x298d7b(0x283)](_0x1d799c);throw _0x1f0143;}}}async[a3_0x3f300f(0x2c0)](){const _0x558156=a3_0x3f300f;cp[_0x558156(0x1f2)](_0x558156(0x1d8)+this['clusterName']+_0x558156(0x280)+global_registry[_0x558156(0x1d3)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x3f300f(0x1b1)](_0x35adc2,_0x5440eb){const _0x1c4a4d=a3_0x3f300f,_0x553459={'QdurW':function(_0x1adfa1,_0x11f4a6){return _0x1adfa1===_0x11f4a6;},'ATMBd':_0x1c4a4d(0x2a0),'KFUqc':function(_0x31c8bb,_0x48715a){return _0x31c8bb(_0x48715a);},'PoNIx':function(_0x2a51b4,_0xecc72a){return _0x2a51b4(_0xecc72a);},'PqkSR':_0x1c4a4d(0x1ba),'dQcEw':function(_0x573d36,_0xa18352){return _0x573d36===_0xa18352;},'ATZFa':_0x1c4a4d(0x2a7),'QYWGI':function(_0x20ea15,_0x1aa321){return _0x20ea15!==_0x1aa321;},'yjqRE':_0x1c4a4d(0x289),'ixjfL':'KweSs','lMmck':_0x1c4a4d(0x17b),'gAZax':function(_0x28bb8e,_0xccc000){return _0x28bb8e===_0xccc000;},'EFsee':_0x1c4a4d(0x1cf),'KEdlV':'FRIxd','cDMua':_0x1c4a4d(0x1ce)};try{if(_0x553459[_0x1c4a4d(0x1b8)](_0x553459[_0x1c4a4d(0x1fb)],_0x553459[_0x1c4a4d(0x1fb)])){await _0x553459['KFUqc'](deleteAgent,_0x35adc2),await _0x553459[_0x1c4a4d(0x1af)](deleteRoutingDeps,_0x35adc2),logger[_0x1c4a4d(0x293)](_0x1c4a4d(0x25f)+this['clusterName']);const _0x27a2d7=await this[_0x1c4a4d(0x2bc)]['deleteCluster']({'name':_0x1c4a4d(0x1c0)+this[_0x1c4a4d(0x1ad)]+'/locations/'+global_registry[_0x1c4a4d(0x1d3)]+'/clusters/'+this[_0x1c4a4d(0x29b)]});if(_0x553459[_0x1c4a4d(0x1b8)](_0x27a2d7[0x0]?.[_0x1c4a4d(0x17a)],_0x553459['PqkSR'])||_0x553459['dQcEw'](_0x27a2d7[0x0]?.[_0x1c4a4d(0x17a)],_0x553459[_0x1c4a4d(0x2af)]))return _0x553459['QYWGI'](_0x553459[_0x1c4a4d(0x263)],_0x553459['ixjfL'])?!![]:!![];logger[_0x1c4a4d(0x293)](_0x553459[_0x1c4a4d(0x2b3)]);}else return _0x4c4b95[_0x1c4a4d(0x20e)](_0x1c4a4d(0x214)+_0x5e39d2+_0x1c4a4d(0x2c1)+_0x409ba8),[![],[]];}catch(_0x18e6bf){if(_0x553459[_0x1c4a4d(0x2a6)](_0x553459['EFsee'],_0x553459[_0x1c4a4d(0x1fa)]))_0x347a9e[_0x1c4a4d(0x1d3)]=_0x2fc38e[0x0],this[_0x1c4a4d(0x16e)]();else{logger[_0x1c4a4d(0x293)](_0x553459[_0x1c4a4d(0x17c)]);throw _0x18e6bf;}}}async['isVPCPresent'](_0x541820){const _0xcd2009=a3_0x3f300f,_0x51d689={};_0x51d689[_0xcd2009(0x1ed)]=function(_0x139cb6,_0x400636){return _0x139cb6===_0x400636;},_0x51d689[_0xcd2009(0x1e4)]=_0xcd2009(0x165),_0x51d689[_0xcd2009(0x1bd)]=function(_0x5eeaa5,_0xcb7f51){return _0x5eeaa5!==_0xcb7f51;},_0x51d689[_0xcd2009(0x169)]='KhtiS',_0x51d689[_0xcd2009(0x254)]=function(_0x234ec7,_0x52ff21){return _0x234ec7>_0x52ff21;},_0x51d689[_0xcd2009(0x1c1)]=function(_0x484133,_0x3e8731){return _0x484133===_0x3e8731;},_0x51d689['jGego']=function(_0x4b300b,_0x392509){return _0x4b300b===_0x392509;},_0x51d689[_0xcd2009(0x1b2)]='RgaCf',_0x51d689[_0xcd2009(0x265)]=_0xcd2009(0x1ab);const _0x559748=_0x51d689;try{if(_0x559748[_0xcd2009(0x1bd)](_0x559748[_0xcd2009(0x169)],_0x559748[_0xcd2009(0x169)])){if(_0x559748[_0xcd2009(0x1ed)](_0x1a9de1?.['name'],_0xcd2009(0x1c0)+this[_0xcd2009(0x1ad)]+'/serviceAccounts/'+this[_0xcd2009(0x272)]+'@'+this['projectId']+_0xcd2009(0x1ff)))return!![];}else{const _0x13a656=await this['networkClient']['get']({'project':this['projectId'],'network':_0x541820});if(_0x559748['kYzJP'](_0x13a656[_0xcd2009(0x27e)],0x0)&&_0x559748['llFNu'](_0x13a656[0x0]['name'],_0x541820)){if(_0x559748[_0xcd2009(0x1c6)](_0x559748[_0xcd2009(0x1b2)],_0x559748['GTsnk'])){_0x327c22[_0xcd2009(0x293)](_0x559748[_0xcd2009(0x1e4)]);return;}else return!![];}}}catch(_0x45cd11){return![];}return![];}async['isSubnetsValid'](_0x50cd10,_0x400092){const _0x507990=a3_0x3f300f,_0x20bba8={};_0x20bba8[_0x507990(0x224)]=function(_0x4067a2,_0x5c2ed4){return _0x4067a2===_0x5c2ed4;};const _0x292fba=_0x20bba8;try{const _0xb4abce=await this[_0x507990(0x1a0)][_0x507990(0x2bd)]({'project':this[_0x507990(0x1ad)],'network':_0x400092});for(const _0x444866 of _0xb4abce[0x0][_0x507990(0x1b9)]){const _0x339466=_0x507990(0x262)+this[_0x507990(0x1ad)]+_0x507990(0x1bb)+global_registry[_0x507990(0x1d3)]+_0x507990(0x274)+_0x50cd10[0x0];if(_0x292fba[_0x507990(0x224)](_0x339466,_0x444866))return[!![],_0x50cd10];}}catch(_0x305025){return logger[_0x507990(0x20e)](_0x507990(0x214)+_0x50cd10+'.\x20Error:\x20'+_0x305025),[![],[]];}return[![],[]];}async[a3_0x3f300f(0x2c6)](){const _0x567ecf=a3_0x3f300f,_0x1dcc50=await this['networkClient'][_0x567ecf(0x188)]({'project':this['projectId']}),_0x4f1652={};_0x4f1652[_0x567ecf(0x1dc)]=global_registry[_0x567ecf(0x18e)],_0x4f1652[_0x567ecf(0x286)]=global_registry[_0x567ecf(0x21f)],_0x4f1652['cloudProvider']=GCP,_0x4f1652[_0x567ecf(0x183)]=[];const _0x1b6405=_0x4f1652;for(const _0x1e6c92 of _0x1dcc50){_0x1b6405[_0x567ecf(0x183)][_0x567ecf(0x283)](_0x1e6c92);}const _0x2f8bba={};_0x2f8bba[_0x567ecf(0x207)]=WS_EVENTS[_0x567ecf(0x2a1)],_0x2f8bba['message']=_0x1b6405,this[_0x567ecf(0x174)]['sendEventToBackend'](this[_0x567ecf(0x275)],_0x2f8bba);}async['updateClusterRegion'](){const _0x598644=a3_0x3f300f,_0x4d516a={'JZSiR':function(_0x3a4b00,_0x2899a0,_0x5f2093){return _0x3a4b00(_0x2899a0,_0x5f2093);},'yfqeg':_0x598644(0x195),'eIOFu':_0x598644(0x24f)},_0x3a5df5=_0x598644(0x176)+AG_API_URL+_0x598644(0x22a),_0x124079={};_0x124079[_0x598644(0x2ac)]=global_registry[_0x598644(0x1f3)];const _0x59494f={};_0x59494f[_0x598644(0x23f)]=global_registry['clusterRegion'];const _0x219c7e={'searchParams':_0x124079,'json':_0x59494f,'headers':_0x4d516a[_0x598644(0x2c2)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x598644(0x21f)]),'method':_0x4d516a[_0x598644(0x26f)],'responseType':_0x4d516a[_0x598644(0x251)],'throwHttpErrors':![]},_0x373bb8=await _0x4d516a[_0x598644(0x2c2)](got,_0x3a5df5,_0x219c7e);}}function a3_0x5210(_0x3a4b5e,_0x41003d){const _0x4ae566=a3_0x4ae5();return a3_0x5210=function(_0x5210f7,_0x102b7f){_0x5210f7=_0x5210f7-0x15e;let _0x3e8f78=_0x4ae566[_0x5210f7];return _0x3e8f78;},a3_0x5210(_0x3a4b5e,_0x41003d);}function a3_0x4ae5(){const _0x5cf423=['MkwcY','nNSSn','cloudProviderName','webSocketUtils','yKuiD','https://','5|1|2|8|3|6|4|7|0','2454942zVmnQx','YjsHu','status','Cluster\x20deletion\x20completed','cDMua','/clusters/','TBynE','organizations','split','KzCbS','ukPuO','vpcInfo','locations','XZqlc','regionmap.json','mFoWL','list','serviceAccount','3016888TVDIxQ','SRVgd','itqeW','SWwQO','bstackUsername','gcp_credentials.json','storage.multipartUploads.list','mRRZn','cFdxU','mljSG','autoscaling','PUT','isBrowserstackCluster','1006520DRSSQE','uqoKF','path','concat','KTmOw','109195aIFDwy','@google-cloud/compute','iamClient','resourcemanagerClient','networkClient','minNodeCount','AtFBp','dAiia','rpYpq','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','MnTgu','ddhoP','zBADb','fXsjA','rmDII','ZafaJ','yDeSX','projectId','pJsmq','PoNIx','/roles/','deleteCluster','bgcCA','xUOwr','zlJxO','storage.buckets.getIamPolicy','sendEventToBackend','getUserInput','QdurW','subnetworks','RUNNING','/regions/','storage.multipartUploads.abort','ygYKI','393960ogcyZl','rurrk','projects/','llFNu','Nppts','SAEnK','getGridHostname','XZiXc','jGego','message','btynS','bwGxU','0|4|3|1|2|5','storage.multipartUploads.listParts','TmjeV','KubeConfigTemplate.yaml','GKE\x20Cluster\x20deletion\x20failed','ogagR','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','@google-cloud/resource-manager','data','clusterRegion','GoogleCloudProvider','XJDjJ','config','cloudProvider','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','/locations/','VjloO','ovoCf','username','nPwZC','../config/logger','loadBalancer','ShAUr','exit','../utils/gridComponents','writeFileSync','xAcBc','DEFEx','GAqHA','customRoleName','init','dfeNL','setIamPolicy','PTOjc','iam.serviceAccounts.signBlob','SwkCT','storage.buckets.create','got','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','SNJoJ','execSync','gridProfileId','GuwRZ','GTZAR','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','kPBsD','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','serviceAccounts','KEdlV','ATMBd','miLmo','xksGw','wCRuX','.iam.gserviceaccount.com','create','scopes','NxVdw','iiupw','members','iUQmf','endpoint','type','nodePools','xHGzx','kpFym','maxNodeCount','gkecluster.json','siPEI','error','rurnZ','storage.buckets.listTagBindings','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','DWJPm','setupServiceAccount','Cannot\x20find\x20subnets\x20','replace','machineType','wIxNW','templates','https://www.googleapis.com/auth/cloud-platform','storage.buckets.deleteTagBinding','default','gvxQK','accounts','parent','bstackAccesskey','configureIfNotConfigured','projects','bindings','zfIuU','LZzwa','Cluster\x20creation\x20failed','join','storage.objects.setIamPolicy','utf-8','storage.objects.get','/packages/cli/update-cluster-region','wPflb','fSDfj','dDxPh','OESWY','VZqPL','tZCtl','/global/networks/','AvgrX','HTcXw','lAxFT','otfNK','jpWsF','auth','pWdpm','hbSbQ','setCachedCredsInRegistry','nCffD','NetworksClient','browserstack','pEnuR','newRegion','Turboscale\x20Custom\x20Role','519804JmqPZD','WIfWz','IlGKF','\x20--quiet\x20--user-output-enabled=false','ingress','QsuFv','tvsnW','Creating\x20GKE\x20Cluster','uvCcK','ApGnl','fYrUX','GjTnz','turboscale-service-account','clusterCaCertificate','json','includedPermissions','eIOFu','CqMeN','parse','kYzJP','storage.objects.list','nqfGY','RAjXN','MVKSl','storage.multipartUploads.create','assba','dpLhf','title','oruQd','PbTsp','Deleting\x20the\x20cluster\x20','VmIkz','../utils/userInput','https://www.googleapis.com/compute/v1/projects/','yjqRE','uUzFf','GTsnk','subnetwork','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','XyGcu','vOPMK','iam','storage.buckets.update','toLowerCase','Creating\x20service\x20account','delay','yfqeg','ZtRah','log','serviceAccountName','readFileAsync','/subnetworks/','rws','oXdhB','eiaVU','storage.buckets.get','MTCqi','kifMn','VspDS','maxNodes','keyFile','length','hBBOt','\x20--windows-os-version=ltsc2022\x20--region\x20','resourceLabels','credentialsPath','push','sendResourceDataToHST','WCJfP','accessKey','VDgft','BHMbH','qyaRG','oAArm','util','GtueH','exxNi','174IeUeDl','NhUno','aUzGx','dayBi','createCluster','info','getClusterInfo','location','serviceAccount:','storage.buckets.delete','instanceType','yplxM','mQwiO','clusterName','uzDeW','network','QEBIm','../utils/utilityMethods','CxZAF','RESOURCES','turboscale_custom_role','storage.objects.update','listClusters','storage.buckets.getObjectInsights','gAZax','DONE','axPYu','dAEns','uJHqv','toString','profileId','name','managedby','ATZFa','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','XbrWX','TPShs','lMmck','storage.buckets.createTagBinding','../config/constants','JQgTQ','TKVUy','/serviceAccounts/','gcloud\x20auth\x20login\x20--cred-file=','1472475kCjNsR','Found\x20cluster\x20with\x20name\x20\x27','containerClient','get','getKubeConfigData','xUnpP','updateWindowsNodeGroup','.\x20Error:\x20','JZSiR','gke_','Bzccy','qlrWa','sendGCPInfoToHST','ZllyE','Jlshj','zvRCt','checkServiceAccount','QVjVa','storage.buckets.listEffectiveTags','ycqvd','PsWrw','Service\x20account\x20already\x20exists,\x20skipping','ClusterManagerClient','gcpresources','fIAdQ','PFKKE','storage.buckets.setIamPolicy','PnDRS','isClusterPresent','IXVMq','updateClusterRegion','sdEGJ','role'];a3_0x4ae5=function(){return _0x5cf423;};return a3_0x4ae5();}const a3_0x589534={};a3_0x589534[a3_0x3f300f(0x1d4)]=GoogleCloudProvider,module['exports']=a3_0x589534;
@@ -1 +1 @@
1
- function a4_0x1b45(_0x42938e,_0x2f605b){const _0x4cc515=a4_0x4cc5();return a4_0x1b45=function(_0x1b45ab,_0x37a7df){_0x1b45ab=_0x1b45ab-0xbd;let _0x151610=_0x4cc515[_0x1b45ab];return _0x151610;},a4_0x1b45(_0x42938e,_0x2f605b);}const a4_0x54aec2=a4_0x1b45;(function(_0x468a81,_0x405765){const _0x517015=a4_0x1b45,_0x7d7e92=_0x468a81();while(!![]){try{const _0x1c036a=-parseInt(_0x517015(0xcb))/0x1+-parseInt(_0x517015(0xcd))/0x2*(parseInt(_0x517015(0xc1))/0x3)+-parseInt(_0x517015(0xc4))/0x4+parseInt(_0x517015(0xcc))/0x5*(parseInt(_0x517015(0xd7))/0x6)+-parseInt(_0x517015(0xcf))/0x7*(-parseInt(_0x517015(0xc7))/0x8)+parseInt(_0x517015(0xd0))/0x9+parseInt(_0x517015(0xce))/0xa;if(_0x1c036a===_0x405765)break;else _0x7d7e92['push'](_0x7d7e92['shift']());}catch(_0x5ebe9e){_0x7d7e92['push'](_0x7d7e92['shift']());}}}(a4_0x4cc5,0x3da6f));function a4_0x4cc5(){const _0x48c504=['SIwiD','ERROR','6xerIwm','exit','TDDDr','1764448OgYAWn','RmrxG','PyDSF','12728KMXqMQ','error','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure','create-grid-called','322995SBwxhW','29215DEiOWj','124716GjygaB','2259960PXxgKd','1421mlRSNW','2018448wXCLuI','../config/constants','Current\x20Node.js\x20version\x20','../utils/utilityMethods','./GoogleCloudProvider','node','versions','378wmnaCl','Unknown\x20cloud\x20provider\x20found\x20-\x20','svqba','VFsoo'];a4_0x4cc5=function(){return _0x48c504;};return a4_0x4cc5();}const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x54aec2(0xd4)),{installAzurePackages}=require(a4_0x54aec2(0xd3)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x54aec2(0xd1)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),{logger}=require('../config/logger');exports['getCloudProviderObject']=async(_0x1afb51,_0x14f80f,_0x26e2ce,_0x14b5c7,_0x3a67ae,_0x1e762d)=>{const _0x4e672a=a4_0x54aec2,_0x26fcbc={'VFsoo':function(_0x4114c5){return _0x4114c5();},'RmrxG':function(_0x1b889b,_0x3fe555){return _0x1b889b(_0x3fe555);},'TDDDr':'./Azure','PyDSF':function(_0x49e41d,_0x4973d3,_0x25aacb,_0x3dc641,_0xeaa8df,_0x51553c,_0x458e12){return _0x49e41d(_0x4973d3,_0x25aacb,_0x3dc641,_0xeaa8df,_0x51553c,_0x458e12);},'SIwiD':_0x4e672a(0xca),'svqba':'grid-spawning-failed'};switch(_0x1afb51){case AWS:return new AWSCloudProvider(_0x14f80f,_0x26e2ce,_0x14b5c7,_0x3a67ae);case GCP:return new GoogleCloudProvider(_0x14f80f,_0x26e2ce,_0x14b5c7,_0x3a67ae);case AZURE:try{await _0x26fcbc[_0x4e672a(0xbe)](installAzurePackages);const {AzureCloudProvider:_0x2e4871}=_0x26fcbc[_0x4e672a(0xc5)](require,_0x26fcbc[_0x4e672a(0xc3)]);return new _0x2e4871(_0x14f80f,_0x26e2ce,_0x14b5c7,_0x3a67ae);}catch(_0x47ab0c){const _0x279d79=_0x4e672a(0xd2)+process[_0x4e672a(0xd6)][_0x4e672a(0xd5)]+_0x4e672a(0xc9);logger['error'](_0x279d79);const _0x41a14c={};_0x41a14c[_0x4e672a(0xc8)]=_0x279d79,await _0x26fcbc[_0x4e672a(0xc6)](sendInstrumentationEvent,_0x1e762d,_0x26fcbc[_0x4e672a(0xbf)],messageTypes[_0x4e672a(0xc0)],_0x26fcbc[_0x4e672a(0xbd)],_0x41a14c,_0x1e762d),process[_0x4e672a(0xc2)](0x1);}default:logger['error'](_0x4e672a(0xd8)+_0x1afb51),process[_0x4e672a(0xc2)](0x1);}};
1
+ const a4_0x2e3338=a4_0x3098;function a4_0x3098(_0x1f03e8,_0x5d83fb){const _0x385c85=a4_0x385c();return a4_0x3098=function(_0x309834,_0x22b668){_0x309834=_0x309834-0xf3;let _0x470d52=_0x385c85[_0x309834];return _0x470d52;},a4_0x3098(_0x1f03e8,_0x5d83fb);}(function(_0x42d710,_0x24fd72){const _0x54f916=a4_0x3098,_0x21ac2e=_0x42d710();while(!![]){try{const _0x1b6435=-parseInt(_0x54f916(0x10c))/0x1+parseInt(_0x54f916(0x10a))/0x2+-parseInt(_0x54f916(0xf4))/0x3+-parseInt(_0x54f916(0xfa))/0x4+parseInt(_0x54f916(0xff))/0x5*(-parseInt(_0x54f916(0x110))/0x6)+-parseInt(_0x54f916(0x112))/0x7*(parseInt(_0x54f916(0xf7))/0x8)+-parseInt(_0x54f916(0x10b))/0x9*(-parseInt(_0x54f916(0xf6))/0xa);if(_0x1b6435===_0x24fd72)break;else _0x21ac2e['push'](_0x21ac2e['shift']());}catch(_0x52393e){_0x21ac2e['push'](_0x21ac2e['shift']());}}}(a4_0x385c,0x372cd));const {AWSCloudProvider}=require(a4_0x2e3338(0x101)),{GoogleCloudProvider}=require(a4_0x2e3338(0x102)),{installAzurePackages}=require(a4_0x2e3338(0x107)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x2e3338(0x10d)),{sendInstrumentationEvent}=require(a4_0x2e3338(0xf5)),{logger}=require(a4_0x2e3338(0x104));function a4_0x385c(){const _0x12397a=['./AWS','./GoogleCloudProvider','bgagf','../config/logger','init','Unknown\x20cloud\x20provider\x20found\x20-\x20','../utils/utilityMethods','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure','error','841156KMhCwZ','3518712QYyohH','299772qKxyuN','../config/constants','getCloudProviderObject','grid-spawning-failed','50706cSZUWr','./Azure','203EHKVQl','LNPpR','51924HvLhRf','../utils/instrumentationUtils','30lyPZIT','99896zLMPAt','eYqAf','xfdkj','1637596sDXyBG','node','create-grid-called','fgMmb','UEEdm','165xANcnw','versions'];a4_0x385c=function(){return _0x12397a;};return a4_0x385c();}exports[a4_0x2e3338(0x10e)]=async(_0x52255d,_0x466d88,_0x424fd3,_0x1bc177,_0x1fe495,_0x2be00d)=>{const _0x1a6887=a4_0x2e3338,_0x441253={'fgMmb':function(_0x38e70f){return _0x38e70f();},'LNPpR':function(_0x310769,_0x5d9585){return _0x310769(_0x5d9585);},'eYqAf':_0x1a6887(0x111),'xfdkj':function(_0x1b4c7a,_0x263a62,_0xb0fa3d,_0x302bd4,_0x4d138d,_0x54baf6,_0x2c6121){return _0x1b4c7a(_0x263a62,_0xb0fa3d,_0x302bd4,_0x4d138d,_0x54baf6,_0x2c6121);},'bgagf':_0x1a6887(0xfc),'UEEdm':_0x1a6887(0x10f)};switch(_0x52255d){case AWS:{const _0x2d1c2f=new AWSCloudProvider(_0x466d88,_0x424fd3,_0x1bc177,_0x1fe495);return await _0x2d1c2f[_0x1a6887(0x105)]();}case GCP:{const _0x3a87b9=new GoogleCloudProvider(_0x466d88,_0x424fd3,_0x1bc177,_0x1fe495);return await _0x3a87b9[_0x1a6887(0x105)]();}case AZURE:{try{await _0x441253[_0x1a6887(0xfd)](installAzurePackages);const {AzureCloudProvider:_0x38fba7}=_0x441253[_0x1a6887(0xf3)](require,_0x441253[_0x1a6887(0xf8)]),_0x42d8f4=new _0x38fba7(_0x466d88,_0x424fd3,_0x1bc177,_0x1fe495);return await _0x42d8f4[_0x1a6887(0x105)]();}catch(_0x4c45fd){const _0x2ca767='Current\x20Node.js\x20version\x20'+process[_0x1a6887(0x100)][_0x1a6887(0xfb)]+_0x1a6887(0x108);logger[_0x1a6887(0x109)](_0x2ca767);const _0x31368e={};_0x31368e['error']=_0x2ca767,await _0x441253[_0x1a6887(0xf9)](sendInstrumentationEvent,_0x2be00d,_0x441253[_0x1a6887(0x103)],messageTypes['ERROR'],_0x441253[_0x1a6887(0xfe)],_0x31368e,_0x2be00d),process['exit'](0x1);}}default:logger[_0x1a6887(0x109)](_0x1a6887(0x106)+_0x52255d),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a5_0x57a4(){const _0x4f4aa1=['10326830rGxuhJ','ThBik','eHevo','thPYz','server-error','parse','zZwoH','log','mGwmD','GET','readFileSync','\x20\x20grid-profile:\x20','got','RkXOY','INFO','stringify','NuLog','yRwVa','active','6316639IVsNtA','existsSync','EeWWS','../utils/instrumentationUtils','\x20\x20username:\x20','TafgK','PUT','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','toLowerCase','json','Browserstack','core:','https://','2795268eGIPHh','configure-called','HpQiv','yNKmD','/packages/cli/configure','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','error','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','KLgXn','username','../utils/userInput','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','unauthorised','hrzbV','Qigwh','unknown-error','command','VLTdG','tiHfn','1194903AyRwKw','DeyWd','tUIoq','JLGJX','2402895yQdshz','RiZHg','help','6LFpdjb','UJlGZ','7626UnZQNW','configure','ERROR','GNwcA','LRuoG','176XwelOs','usage','stack','ITVfT','statusCode','4514230nYqSew','vaRJP','strict','11sLFbfi','VvCuS','Updated\x20default\x20Grid\x20Profile\x20successfully','password','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','40tsbrJo','name','requestId','VCEVg','clCfE','init-not-called','rmUtV','exit','mtjfi','NDpKS','list','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder'];a5_0x57a4=function(){return _0x4f4aa1;};return a5_0x57a4();}const a5_0x2e54ff=a5_0x5852;(function(_0x287297,_0x34caba){const _0x64a119=a5_0x5852,_0x4da423=_0x287297();while(!![]){try{const _0x4c795d=parseInt(_0x64a119(0x13a))/0x1*(parseInt(_0x64a119(0x13f))/0x2)+parseInt(_0x64a119(0x135))/0x3+parseInt(_0x64a119(0x11d))/0x4+parseInt(_0x64a119(0x144))/0x5*(parseInt(_0x64a119(0x138))/0x6)+-parseInt(_0x64a119(0x110))/0x7+parseInt(_0x64a119(0xf0))/0x8*(-parseInt(_0x64a119(0x131))/0x9)+parseInt(_0x64a119(0xfd))/0xa*(-parseInt(_0x64a119(0x147))/0xb);if(_0x4c795d===_0x34caba)break;else _0x4da423['push'](_0x4da423['shift']());}catch(_0x101db9){_0x4da423['push'](_0x4da423['shift']());}}}(a5_0x57a4,0x73ec5));function a5_0x5852(_0x54b218,_0x5063a8){const _0x57a41b=a5_0x57a4();return a5_0x5852=function(_0x585290,_0x78c11d){_0x585290=_0x585290-0xf0;let _0x4be49e=_0x57a41b[_0x585290];return _0x4be49e;},a5_0x5852(_0x54b218,_0x5063a8);}const fs=require('fs'),got=require(a5_0x2e54ff(0x109)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a5_0x2e54ff(0x128)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x2e54ff(0x113));exports[a5_0x2e54ff(0x12e)]=a5_0x2e54ff(0x13b),exports['desc']=a5_0x2e54ff(0x122),exports[a5_0x2e54ff(0xfc)]=function(_0x423b28){const _0x420ad6=a5_0x2e54ff,_0x549685={};_0x549685[_0x420ad6(0x100)]=_0x420ad6(0x137);const _0x158029=_0x549685;return _0x423b28[_0x420ad6(0x140)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x420ad6(0x137)](_0x158029['thPYz'])['recommendCommands']()[_0x420ad6(0x146)]()['argv'];},exports['handler']=async function(_0x13b193){const _0x290b99=a5_0x2e54ff,_0x5bb559={'Qigwh':function(_0x32c816){return _0x32c816();},'HpQiv':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','TafgK':function(_0x3fad50,_0xefbd0b,_0x3061ea,_0x3ff5a6,_0x4ef665,_0x6573cd,_0x519a2c){return _0x3fad50(_0xefbd0b,_0x3061ea,_0x3ff5a6,_0x4ef665,_0x6573cd,_0x519a2c);},'JLGJX':_0x290b99(0x11e),'RiZHg':_0x290b99(0xf5),'LWZzP':function(_0x55d871){return _0x55d871();},'clCfE':_0x290b99(0x106),'mtjfi':function(_0x43f4d2,_0x4c6b59,_0x19844){return _0x43f4d2(_0x4c6b59,_0x19844);},'vaRJP':function(_0x30eaad,_0x50d1dc){return _0x30eaad!==_0x50d1dc;},'LRuoG':function(_0x181a54,_0x4d7a00){return _0x181a54!==_0x4d7a00;},'GNwcA':function(_0x1dc47d,_0x5a34a7){return _0x1dc47d===_0x5a34a7;},'DeyWd':_0x290b99(0x117),'NDpKS':_0x290b99(0x11b),'yRwVa':function(_0xa60733,_0x674849){return _0xa60733(_0x674849);},'VLTdG':_0x290b99(0x125),'hrzbV':_0x290b99(0x123),'UJlGZ':function(_0x51cedb,_0x201cc7,_0xf1406a,_0x18db61,_0xb3499c,_0x29ff69,_0x3dc1f4){return _0x51cedb(_0x201cc7,_0xf1406a,_0x18db61,_0xb3499c,_0x29ff69,_0x3dc1f4);},'mGwmD':'invalid-input','tiHfn':function(_0x374bbc,_0x2b2691){return _0x374bbc===_0x2b2691;},'NuLog':_0x290b99(0x129),'PUuMi':function(_0x250713,_0x70f9bc){return _0x250713<_0x70f9bc;},'yNKmD':function(_0x4c174a,_0x181da3){return _0x4c174a+_0x181da3;},'cRidM':_0x290b99(0x14b),'SzCqD':function(_0x410264,_0x337b64){return _0x410264<=_0x337b64;},'tUIoq':function(_0x1c9d1c,_0x2b686b){return _0x1c9d1c>_0x2b686b;},'ITVfT':function(_0xefe40c,_0x3b8e5d,_0x2f2ef4,_0x173178,_0x501c6f,_0x283361,_0xf97afc){return _0xefe40c(_0x3b8e5d,_0x2f2ef4,_0x173178,_0x501c6f,_0x283361,_0xf97afc);},'RkXOY':'invalid-selection','HDBKl':function(_0x3295e6,_0x1067bb){return _0x3295e6-_0x1067bb;},'ThBik':_0x290b99(0x116),'zZwoH':_0x290b99(0x119),'EeWWS':_0x290b99(0x149),'rmUtV':_0x290b99(0x12a),'VvCuS':function(_0x40e1f3,_0x3d6094,_0x24ff63,_0x3a2810,_0x42e7a0,_0x34cc12,_0x939a79){return _0x40e1f3(_0x3d6094,_0x24ff63,_0x3a2810,_0x42e7a0,_0x34cc12,_0x939a79);},'eHevo':_0x290b99(0x101),'IwHDg':function(_0x51e350,_0x2c9cf6,_0x2f49b4,_0xdda591,_0x1befd3,_0x123a94,_0xd3d2e4){return _0x51e350(_0x2c9cf6,_0x2f49b4,_0xdda591,_0x1befd3,_0x123a94,_0xd3d2e4);},'VCEVg':function(_0x37b03c,_0xed6761,_0x355e3e,_0x2397c5,_0x4ea5f9,_0xbb025,_0x2faf9a){return _0x37b03c(_0xed6761,_0x355e3e,_0x2397c5,_0x4ea5f9,_0xbb025,_0x2faf9a);},'KLgXn':_0x290b99(0x12d)};try{global_registry[_0x290b99(0xf2)]=_0x5bb559['Qigwh'](uuidv4);const _0x58c973=_0x290b99(0x11c)+AG_API_URL+_0x290b99(0x121);!fs[_0x290b99(0x111)](_0x5bb559[_0x290b99(0x12c)](getCredentialsPath))&&(console[_0x290b99(0x124)](_0x5bb559[_0x290b99(0x11f)]),await _0x5bb559[_0x290b99(0x115)](sendInstrumentationEvent,_0x13b193,_0x5bb559[_0x290b99(0x134)],messageTypes[_0x290b99(0x13c)],_0x5bb559[_0x290b99(0x136)],null,_0x13b193),process['exit'](0x1));await _0x5bb559['TafgK'](sendInstrumentationEvent,_0x13b193,_0x5bb559[_0x290b99(0x134)],messageTypes[_0x290b99(0x10b)],null,null,_0x13b193);const _0x551c00=JSON[_0x290b99(0x102)](fs[_0x290b99(0x107)](_0x5bb559['LWZzP'](getCredentialsPath))),_0x2bc08f={'method':_0x5bb559[_0x290b99(0xf4)],'headers':_0x5bb559[_0x290b99(0xf8)](getAuthHeader,_0x551c00[_0x290b99(0x11a)][_0x290b99(0x127)],_0x551c00[_0x290b99(0x11a)]['password']),'throwHttpErrors':![]},_0x4f2ab7=await _0x5bb559['mtjfi'](got,_0x58c973,_0x2bc08f);if(_0x5bb559[_0x290b99(0x145)](_0x4f2ab7,null)&&_0x5bb559[_0x290b99(0x13e)](_0x4f2ab7,undefined)&&_0x5bb559[_0x290b99(0x13d)](_0x4f2ab7[_0x290b99(0x143)],0xc8)){const _0xcfa831=JSON[_0x290b99(0x102)](_0x4f2ab7['body']);console['log'](_0x5bb559[_0x290b99(0x132)]),console[_0x290b99(0x104)](_0x5bb559[_0x290b99(0xf9)]),console[_0x290b99(0x104)](_0x290b99(0x114)+_0x551c00['Browserstack'][_0x290b99(0x127)]),console[_0x290b99(0x104)](_0x290b99(0x108)+_0xcfa831[_0x290b99(0x10f)][_0x290b99(0xf1)]);const _0x3b8e74=await _0x5bb559[_0x290b99(0x10e)](inputConfirmation,_0x5bb559[_0x290b99(0x12f)]);(_0x5bb559[_0x290b99(0x13d)](_0x3b8e74,undefined)||_0x5bb559[_0x290b99(0x13d)](_0x3b8e74,null)||!(_0x5bb559[_0x290b99(0x13d)](_0x3b8e74[_0x290b99(0x118)](),'y')||_0x5bb559['GNwcA'](_0x3b8e74[_0x290b99(0x118)](),'n')))&&(console[_0x290b99(0x124)](_0x5bb559['hrzbV']),await _0x5bb559['UJlGZ'](sendInstrumentationEvent,_0x13b193,_0x5bb559[_0x290b99(0x134)],messageTypes[_0x290b99(0x13c)],_0x5bb559[_0x290b99(0x105)],null,_0x13b193),process[_0x290b99(0xf7)](0x1));_0x5bb559['tiHfn'](_0x3b8e74[_0x290b99(0x118)](),'n')&&process[_0x290b99(0xf7)](0x0);console['log'](_0x5bb559[_0x290b99(0x10d)]);const _0xd5c873=_0xcfa831['list']['length'];for(let _0x51fc8c=0x0;_0x5bb559['PUuMi'](_0x51fc8c,_0xd5c873);_0x51fc8c+=0x1){console[_0x290b99(0x104)]('['+_0x5bb559[_0x290b99(0x120)](_0x51fc8c,0x1)+']\x20'+_0xcfa831[_0x290b99(0xfa)][_0x51fc8c][_0x290b99(0xf1)]);}const _0x5e999b=await _0x5bb559[_0x290b99(0x10e)](inputConfirmation,_0x5bb559['cRidM']),_0x1ea8b3=_0x5bb559[_0x290b99(0x10e)](Number,_0x5e999b);(_0x5bb559[_0x290b99(0x10e)](isNaN,_0x1ea8b3)||_0x5bb559['SzCqD'](_0x1ea8b3,0x0)||_0x5bb559[_0x290b99(0x133)](_0x1ea8b3,_0xd5c873))&&(console[_0x290b99(0x124)](_0x5bb559[_0x290b99(0x12b)]),await _0x5bb559[_0x290b99(0x142)](sendInstrumentationEvent,_0x13b193,_0x5bb559['JLGJX'],messageTypes[_0x290b99(0x13c)],_0x5bb559[_0x290b99(0x10a)],null,_0x13b193),process['exit'](0x1));_0x5bb559['Qigwh'](closeInput);const _0x5b4faa=_0xcfa831[_0x290b99(0xfa)][_0x5bb559['HDBKl'](_0x1ea8b3,0x1)]['id'],_0x45f841={};_0x45f841['profileId']=_0x5b4faa;const _0x3f0594={'method':_0x5bb559[_0x290b99(0xfe)],'headers':_0x5bb559[_0x290b99(0xf8)](getAuthHeader,_0x551c00['Browserstack'][_0x290b99(0x127)],_0x551c00[_0x290b99(0x11a)][_0x290b99(0x14a)]),'json':_0x45f841,'responseType':_0x5bb559[_0x290b99(0x103)],'throwHttpErrors':![]},_0x327a23=await _0x5bb559[_0x290b99(0xf8)](got,_0x58c973,_0x3f0594);_0x5bb559['vaRJP'](_0x327a23,null)&&_0x5bb559['vaRJP'](_0x327a23,undefined)&&_0x5bb559[_0x290b99(0x13d)](_0x327a23[_0x290b99(0x143)],0xc8)&&(console[_0x290b99(0x104)](_0x5bb559[_0x290b99(0x112)]),process[_0x290b99(0xf7)](0x0)),_0x5bb559[_0x290b99(0x130)](_0x327a23[_0x290b99(0x143)],0x191)&&(console['error']('Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!'),await _0x5bb559[_0x290b99(0x139)](sendInstrumentationEvent,_0x13b193,_0x5bb559['JLGJX'],messageTypes[_0x290b99(0x13c)],_0x5bb559[_0x290b99(0xf6)],null,_0x13b193),process[_0x290b99(0xf7)](0x1)),console[_0x290b99(0x124)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x290b99(0x10c)](_0x327a23)),await _0x5bb559[_0x290b99(0x148)](sendInstrumentationEvent,_0x13b193,_0x5bb559['JLGJX'],messageTypes[_0x290b99(0x13c)],_0x5bb559[_0x290b99(0xff)],_0x327a23,_0x13b193),process[_0x290b99(0xf7)](0x1);}_0x5bb559[_0x290b99(0x13d)](_0x4f2ab7[_0x290b99(0x143)],0x191)&&(console[_0x290b99(0x124)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x5bb559['TafgK'](sendInstrumentationEvent,_0x13b193,_0x5bb559[_0x290b99(0x134)],messageTypes['ERROR'],_0x5bb559[_0x290b99(0xf6)],null,_0x13b193),process[_0x290b99(0xf7)](0x1)),console['error'](_0x290b99(0xfb)+JSON[_0x290b99(0x10c)](_0x4f2ab7)),await _0x5bb559['IwHDg'](sendInstrumentationEvent,_0x13b193,_0x5bb559[_0x290b99(0x134)],messageTypes[_0x290b99(0x13c)],_0x5bb559['eHevo'],_0x4f2ab7,_0x13b193),process[_0x290b99(0xf7)](0x1);}catch(_0x14d0b9){console[_0x290b99(0x124)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x14d0b9[_0x290b99(0x141)]),await _0x5bb559[_0x290b99(0xf3)](sendInstrumentationEvent,_0x13b193,_0x5bb559[_0x290b99(0x134)],messageTypes[_0x290b99(0x13c)],_0x5bb559[_0x290b99(0x126)],_0x14d0b9,_0x13b193),process[_0x290b99(0xf7)](0x1);}};
1
+ const a5_0x358dd1=a5_0x2dc9;(function(_0x5159bd,_0x526466){const _0x1b2210=a5_0x2dc9,_0x18098c=_0x5159bd();while(!![]){try{const _0x5dd969=parseInt(_0x1b2210(0x1b6))/0x1+parseInt(_0x1b2210(0x1c8))/0x2+-parseInt(_0x1b2210(0x1ce))/0x3+parseInt(_0x1b2210(0x1c3))/0x4*(-parseInt(_0x1b2210(0x1bb))/0x5)+-parseInt(_0x1b2210(0x1a9))/0x6+-parseInt(_0x1b2210(0x189))/0x7+-parseInt(_0x1b2210(0x19f))/0x8*(-parseInt(_0x1b2210(0x1c2))/0x9);if(_0x5dd969===_0x526466)break;else _0x18098c['push'](_0x18098c['shift']());}catch(_0x335e3b){_0x18098c['push'](_0x18098c['shift']());}}}(a5_0x2b46,0x302c9));const fs=require('fs'),got=require(a5_0x358dd1(0x1a5)),{v4:uuidv4}=require(a5_0x358dd1(0x193)),{inputConfirmation,closeInput}=require(a5_0x358dd1(0x197)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x358dd1(0x1da)),{getCredentialsPath,getAuthHeader}=require(a5_0x358dd1(0x1b7)),{sendInstrumentationEvent}=require(a5_0x358dd1(0x1dd));function a5_0x2dc9(_0xa89fa,_0x205ef4){const _0x2b46c5=a5_0x2b46();return a5_0x2dc9=function(_0x2dc969,_0x408544){_0x2dc969=_0x2dc969-0x179;let _0x564869=_0x2b46c5[_0x2dc969];return _0x564869;},a5_0x2dc9(_0xa89fa,_0x205ef4);}exports['command']=a5_0x358dd1(0x1be),exports[a5_0x358dd1(0x1ca)]=a5_0x358dd1(0x19d),exports[a5_0x358dd1(0x1ae)]=function(_0x136d24){const _0x5bc06f=a5_0x358dd1,_0xdb63d7={};_0xdb63d7[_0x5bc06f(0x19c)]=_0x5bc06f(0x181);const _0x153238=_0xdb63d7;return _0x136d24[_0x5bc06f(0x1d9)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)['help'](_0x153238[_0x5bc06f(0x19c)])[_0x5bc06f(0x1de)]()[_0x5bc06f(0x1a1)]()[_0x5bc06f(0x1d2)];},exports['handler']=async function(_0x548eae){const _0x5ce34e=a5_0x358dd1,_0x34c0a3={'Lpjfm':function(_0x45fca0){return _0x45fca0();},'TjPlV':function(_0x3ad494){return _0x3ad494();},'WNTRO':_0x5ce34e(0x1c6),'KZkel':function(_0x3ba7d6,_0x5c4425,_0x5b3778,_0x197e55,_0x295e70,_0x540506,_0x1931d1){return _0x3ba7d6(_0x5c4425,_0x5b3778,_0x197e55,_0x295e70,_0x540506,_0x1931d1);},'nndgH':'configure-called','pOaFi':_0x5ce34e(0x188),'TIKKt':function(_0x13d0b4,_0x5d1b67,_0x37ed71,_0x106bf2,_0x894adb,_0x59af37,_0x1ce74f){return _0x13d0b4(_0x5d1b67,_0x37ed71,_0x106bf2,_0x894adb,_0x59af37,_0x1ce74f);},'OVETr':function(_0x4cea08){return _0x4cea08();},'vJzaK':_0x5ce34e(0x1d6),'jSWEm':function(_0x132222,_0x3ee66e,_0x565045){return _0x132222(_0x3ee66e,_0x565045);},'DkhnB':function(_0x2b9249,_0x51af31,_0x48cebe){return _0x2b9249(_0x51af31,_0x48cebe);},'caTZG':function(_0x508992,_0xf5c24){return _0x508992!==_0xf5c24;},'tHUbl':function(_0x2b7cee,_0x348ff1){return _0x2b7cee===_0x348ff1;},'pnaHS':_0x5ce34e(0x1a0),'QOOgp':_0x5ce34e(0x1bc),'foLjc':function(_0x45e370,_0x2f24f8){return _0x45e370(_0x2f24f8);},'cfhVT':_0x5ce34e(0x17b),'uBwxS':function(_0x4efeb1,_0x4c97cd){return _0x4efeb1===_0x4c97cd;},'ILAPr':function(_0x6891d3,_0x153c44){return _0x6891d3===_0x153c44;},'cpUnc':function(_0x3c2d72,_0x596420){return _0x3c2d72===_0x596420;},'oFdYx':_0x5ce34e(0x17f),'TofeI':_0x5ce34e(0x1d0),'XWasG':_0x5ce34e(0x1bd),'MjOMH':function(_0xecdcff,_0x27a94e){return _0xecdcff<_0x27a94e;},'JuFnR':function(_0x4f55e2,_0x457d19){return _0x4f55e2+_0x457d19;},'hcyjq':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','nzcnK':function(_0x5c4bf5,_0x2f56da){return _0x5c4bf5(_0x2f56da);},'DDvkH':function(_0xe3c7f4,_0x5e5142){return _0xe3c7f4(_0x5e5142);},'SOTdi':function(_0x157aa8,_0x4d01aa){return _0x157aa8<=_0x4d01aa;},'iTlPY':function(_0x2fcd2e,_0x499fd9){return _0x2fcd2e>_0x499fd9;},'PFJug':_0x5ce34e(0x1ba),'udCKZ':function(_0x219998){return _0x219998();},'INHjK':function(_0x5e291d,_0x4baf68){return _0x5e291d-_0x4baf68;},'ogDCH':_0x5ce34e(0x1a8),'HpVTw':_0x5ce34e(0x1db),'BboRN':function(_0x1d1856,_0x4c0e7c,_0x1bf4e5){return _0x1d1856(_0x4c0e7c,_0x1bf4e5);},'eWNjO':function(_0x12b119,_0xe5069f){return _0x12b119!==_0xe5069f;},'nPeOE':function(_0x20e398,_0x1c2a39){return _0x20e398!==_0x1c2a39;},'DwJGi':_0x5ce34e(0x191),'HcwMd':function(_0x465ab2,_0x341204){return _0x465ab2===_0x341204;},'QilfQ':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','vtnzy':_0x5ce34e(0x183),'yfxUn':function(_0x1779df,_0x3d3a73,_0x1a4c2c,_0x5354e8,_0x3f60a3,_0x59729d,_0x171764){return _0x1779df(_0x3d3a73,_0x1a4c2c,_0x5354e8,_0x3f60a3,_0x59729d,_0x171764);},'HQkhq':_0x5ce34e(0x17c),'tTGeA':_0x5ce34e(0x1dc),'iGwHv':function(_0x5101fd,_0x4d8968,_0x1536e7,_0x3a1c23,_0x545ce7,_0x54b4d3,_0x5c2f38){return _0x5101fd(_0x4d8968,_0x1536e7,_0x3a1c23,_0x545ce7,_0x54b4d3,_0x5c2f38);},'WGQRO':function(_0x17c059,_0x87b307,_0x3faff7,_0x4f17ea,_0x14b4bd,_0x5a3fd3,_0x51ca1a){return _0x17c059(_0x87b307,_0x3faff7,_0x4f17ea,_0x14b4bd,_0x5a3fd3,_0x51ca1a);},'VXjWJ':function(_0x57a194,_0xa7784f,_0x1a50cd,_0x2e9d5b,_0x783c3b,_0x3b67c4,_0x1a7813){return _0x57a194(_0xa7784f,_0x1a50cd,_0x2e9d5b,_0x783c3b,_0x3b67c4,_0x1a7813);},'axqjz':_0x5ce34e(0x19a)};try{global_registry['requestId']=_0x34c0a3[_0x5ce34e(0x1a3)](uuidv4);const _0x22a6bb=_0x5ce34e(0x1b3)+AG_API_URL+'/packages/cli/configure';!fs[_0x5ce34e(0x1a4)](_0x34c0a3[_0x5ce34e(0x1af)](getCredentialsPath))&&(console['error'](_0x34c0a3[_0x5ce34e(0x1d8)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x184)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1));await _0x34c0a3[_0x5ce34e(0x18e)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x1cb)],null,null,_0x548eae);const _0x58b300=JSON['parse'](fs[_0x5ce34e(0x1a7)](_0x34c0a3[_0x5ce34e(0x1df)](getCredentialsPath))),_0x25892f={'method':_0x34c0a3['vJzaK'],'headers':_0x34c0a3[_0x5ce34e(0x1b0)](getAuthHeader,_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)],_0x58b300['Browserstack'][_0x5ce34e(0x1a2)]),'throwHttpErrors':![]},_0x21ec90=await _0x34c0a3['DkhnB'](got,_0x22a6bb,_0x25892f);if(_0x34c0a3['caTZG'](_0x21ec90,null)&&_0x34c0a3[_0x5ce34e(0x1e1)](_0x21ec90,undefined)&&_0x34c0a3[_0x5ce34e(0x1ad)](_0x21ec90[_0x5ce34e(0x17d)],0xc8)){const _0xebed5=JSON['parse'](_0x21ec90[_0x5ce34e(0x1ac)]);console[_0x5ce34e(0x194)](_0x34c0a3[_0x5ce34e(0x1ab)]),console['log'](_0x34c0a3[_0x5ce34e(0x18b)]),console[_0x5ce34e(0x194)](_0x5ce34e(0x1aa)+_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)]),console['log'](_0x5ce34e(0x1c0)+_0xebed5[_0x5ce34e(0x187)][_0x5ce34e(0x195)]);const _0x1b57d4=await _0x34c0a3[_0x5ce34e(0x1cc)](inputConfirmation,_0x34c0a3['cfhVT']);(_0x34c0a3[_0x5ce34e(0x17e)](_0x1b57d4,undefined)||_0x34c0a3[_0x5ce34e(0x18a)](_0x1b57d4,null)||!(_0x34c0a3['cpUnc'](_0x1b57d4[_0x5ce34e(0x1b2)](),'y')||_0x34c0a3[_0x5ce34e(0x17e)](_0x1b57d4['toLowerCase'](),'n')))&&(console['error'](_0x34c0a3[_0x5ce34e(0x1b5)]),await _0x34c0a3['TIKKt'](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3['TofeI'],null,_0x548eae),process['exit'](0x1));_0x34c0a3[_0x5ce34e(0x18a)](_0x1b57d4['toLowerCase'](),'n')&&process[_0x5ce34e(0x1d5)](0x0);console[_0x5ce34e(0x194)](_0x34c0a3[_0x5ce34e(0x18f)]);const _0x76004d=_0xebed5[_0x5ce34e(0x1e0)][_0x5ce34e(0x1d7)];for(let _0x4fdd17=0x0;_0x34c0a3['MjOMH'](_0x4fdd17,_0x76004d);_0x4fdd17+=0x1){console[_0x5ce34e(0x194)]('['+_0x34c0a3[_0x5ce34e(0x180)](_0x4fdd17,0x1)+']\x20'+_0xebed5['list'][_0x4fdd17]['name']);}const _0xdbfd5b=await _0x34c0a3['foLjc'](inputConfirmation,_0x34c0a3[_0x5ce34e(0x1c4)]),_0x2362c6=_0x34c0a3['nzcnK'](Number,_0xdbfd5b);(_0x34c0a3[_0x5ce34e(0x179)](isNaN,_0x2362c6)||_0x34c0a3[_0x5ce34e(0x1d1)](_0x2362c6,0x0)||_0x34c0a3['iTlPY'](_0x2362c6,_0x76004d))&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1b5)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes['ERROR'],_0x34c0a3[_0x5ce34e(0x19b)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1));_0x34c0a3['udCKZ'](closeInput);const _0x294d32=_0xebed5['list'][_0x34c0a3[_0x5ce34e(0x198)](_0x2362c6,0x1)]['id'],_0xf338cd={};_0xf338cd[_0x5ce34e(0x1b9)]=_0x294d32;const _0xd14662={'method':_0x34c0a3[_0x5ce34e(0x19e)],'headers':_0x34c0a3[_0x5ce34e(0x199)](getAuthHeader,_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)],_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1a2)]),'json':_0xf338cd,'responseType':_0x34c0a3[_0x5ce34e(0x192)],'throwHttpErrors':![]},_0x2be90c=await _0x34c0a3['BboRN'](got,_0x22a6bb,_0xd14662);_0x34c0a3[_0x5ce34e(0x1bf)](_0x2be90c,null)&&_0x34c0a3[_0x5ce34e(0x182)](_0x2be90c,undefined)&&_0x34c0a3[_0x5ce34e(0x18a)](_0x2be90c['statusCode'],0xc8)&&(console['log'](_0x34c0a3['DwJGi']),process[_0x5ce34e(0x1d5)](0x0)),_0x34c0a3[_0x5ce34e(0x190)](_0x2be90c[_0x5ce34e(0x17d)],0x191)&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1d3)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3['nndgH'],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c7)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1)),console[_0x5ce34e(0x1d4)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x5ce34e(0x196)](_0x2be90c)),await _0x34c0a3[_0x5ce34e(0x18d)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c9)],_0x2be90c,_0x548eae),process['exit'](0x1);}_0x34c0a3[_0x5ce34e(0x190)](_0x21ec90['statusCode'],0x191)&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1b8)]),await _0x34c0a3[_0x5ce34e(0x1a6)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c7)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1)),console[_0x5ce34e(0x1d4)](_0x5ce34e(0x18c)+JSON[_0x5ce34e(0x196)](_0x21ec90)),await _0x34c0a3[_0x5ce34e(0x1c1)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3['HQkhq'],_0x21ec90,_0x548eae),process['exit'](0x1);}catch(_0x205d94){console[_0x5ce34e(0x1d4)](_0x5ce34e(0x1b1)+_0x205d94[_0x5ce34e(0x17a)]),await _0x34c0a3[_0x5ce34e(0x186)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1e2)],_0x205d94,_0x548eae),process[_0x5ce34e(0x1d5)](0x1);}};function a5_0x2b46(){const _0x6fc5c9=['got','iGwHv','readFileSync','PUT','1374402uBRdOB','\x20\x20username:\x20','pnaHS','body','tHUbl','builder','TjPlV','jSWEm','Failed\x20to\x20configure\x20resources!\x20Error:\x20','toLowerCase','https://','KZkel','oFdYx','106955syCMFU','../utils/utilityMethods','tTGeA','profileId','invalid-selection','104610pNBeAV','core:','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','configure','eWNjO','\x20\x20grid-profile:\x20','WGQRO','315TcKbmU','12FFDqGU','hcyjq','nndgH','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vtnzy','91728TIfBmd','HQkhq','desc','INFO','foLjc','username','482307KlWgyb','Browserstack','invalid-input','SOTdi','argv','QilfQ','error','exit','GET','length','WNTRO','usage','../config/constants','json','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../utils/instrumentationUtils','recommendCommands','OVETr','list','caTZG','axqjz','DDvkH','stack','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','server-error','statusCode','uBwxS','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','JuFnR','help','nPeOE','unauthorised','pOaFi','ERROR','VXjWJ','active','init-not-called','885437OsSKYV','ILAPr','QOOgp','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','yfxUn','TIKKt','XWasG','HcwMd','Updated\x20default\x20Grid\x20Profile\x20successfully','HpVTw','uuid','log','name','stringify','../utils/userInput','INHjK','DkhnB','unknown-error','PFJug','isbeI','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','ogDCH','142536LXJnRu','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','strict','password','Lpjfm','existsSync'];a5_0x2b46=function(){return _0x6fc5c9;};return a5_0x2b46();}
@@ -1 +1 @@
1
- const a6_0x5531ce=a6_0x3306;(function(_0x17861d,_0x356a49){const _0x43f7e8=a6_0x3306,_0x5d0a72=_0x17861d();while(!![]){try{const _0x4f30d9=-parseInt(_0x43f7e8(0x1eb))/0x1+-parseInt(_0x43f7e8(0x1e3))/0x2+parseInt(_0x43f7e8(0x1e6))/0x3*(-parseInt(_0x43f7e8(0x1ec))/0x4)+-parseInt(_0x43f7e8(0x1f5))/0x5+parseInt(_0x43f7e8(0x1f1))/0x6+-parseInt(_0x43f7e8(0x1f3))/0x7*(-parseInt(_0x43f7e8(0x1e2))/0x8)+parseInt(_0x43f7e8(0x1ea))/0x9*(parseInt(_0x43f7e8(0x1f0))/0xa);if(_0x4f30d9===_0x356a49)break;else _0x5d0a72['push'](_0x5d0a72['shift']());}catch(_0x42ba9a){_0x5d0a72['push'](_0x5d0a72['shift']());}}}(a6_0xc545,0x86eca));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a6_0x5531ce(0x1f4),exports['desc']=a6_0x5531ce(0x1e8),exports['builder']=function(_0x22c86d){const _0x453f37=a6_0x5531ce,_0x927263={};_0x927263[_0x453f37(0x1e9)]=_0x453f37(0x1e5),_0x927263[_0x453f37(0x1ee)]=_0x453f37(0x1e7);const _0x9197d3=_0x927263;return _0x22c86d['usage'](HELP_HEADER_MESSAGE[_0x453f37(0x1f4)])[_0x453f37(0x1ef)](HELP_FOOTER_MESSAGE)[_0x453f37(0x1f2)](_0x9197d3[_0x453f37(0x1e9)])[_0x453f37(0x1ed)]()['recommendCommands']()['strict']()[_0x453f37(0x1e7)](_0x9197d3[_0x453f37(0x1ee)]);},exports[a6_0x5531ce(0x1e4)]=function(_0x17a685){};function a6_0x3306(_0x5c7163,_0x1f55ca){const _0xc54548=a6_0xc545();return a6_0x3306=function(_0x33067a,_0x4db068){_0x33067a=_0x33067a-0x1e2;let _0x2fc766=_0xc54548[_0x33067a];return _0x2fc766;},a6_0x3306(_0x5c7163,_0x1f55ca);}function a6_0xc545(){const _0x1f154e=['8wNkGQP','1354102sbwWgi','handler','connect_commands','24BXBCZQ','help','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','jozqe','377109QDzots','442087DwBEqy','417808oMLCSn','demandCommand','JTdIk','epilogue','510ezZyLt','3964530BDohLt','commandDir','39767grqNTQ','connect','1479915zPHPkf'];a6_0xc545=function(){return _0x1f154e;};return a6_0xc545();}
1
+ const a6_0x144ae0=a6_0x34d9;(function(_0x228374,_0xb035d8){const _0x489e4d=a6_0x34d9,_0x4b3ba1=_0x228374();while(!![]){try{const _0x50a1e9=-parseInt(_0x489e4d(0xfd))/0x1*(parseInt(_0x489e4d(0xf3))/0x2)+-parseInt(_0x489e4d(0x10b))/0x3*(parseInt(_0x489e4d(0x104))/0x4)+-parseInt(_0x489e4d(0xff))/0x5+-parseInt(_0x489e4d(0xf6))/0x6+-parseInt(_0x489e4d(0xf2))/0x7*(parseInt(_0x489e4d(0xf5))/0x8)+-parseInt(_0x489e4d(0x103))/0x9+parseInt(_0x489e4d(0xf7))/0xa;if(_0x50a1e9===_0xb035d8)break;else _0x4b3ba1['push'](_0x4b3ba1['shift']());}catch(_0x16187a){_0x4b3ba1['push'](_0x4b3ba1['shift']());}}}(a6_0x3af4,0xac120));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x144ae0(0x106));function a6_0x34d9(_0x5ea994,_0x266756){const _0x3af46c=a6_0x3af4();return a6_0x34d9=function(_0x34d9ec,_0xe6e154){_0x34d9ec=_0x34d9ec-0xf2;let _0x4f9410=_0x3af46c[_0x34d9ec];return _0x4f9410;},a6_0x34d9(_0x5ea994,_0x266756);}exports[a6_0x144ae0(0xfa)]=a6_0x144ae0(0xfc),exports[a6_0x144ae0(0xfb)]=a6_0x144ae0(0x101),exports[a6_0x144ae0(0x107)]=function(_0x5e0e38){const _0xa8d4f9=a6_0x144ae0,_0x5b005d={};_0x5b005d[_0xa8d4f9(0x102)]='connect_commands',_0x5b005d[_0xa8d4f9(0x100)]=_0xa8d4f9(0xf8);const _0x5d5551=_0x5b005d;return _0x5e0e38[_0xa8d4f9(0x105)](HELP_HEADER_MESSAGE[_0xa8d4f9(0xfc)])[_0xa8d4f9(0xfe)](HELP_FOOTER_MESSAGE)[_0xa8d4f9(0x109)](_0x5d5551[_0xa8d4f9(0x102)])[_0xa8d4f9(0x10a)]()[_0xa8d4f9(0xf4)]()[_0xa8d4f9(0xf9)]()[_0xa8d4f9(0xf8)](_0x5d5551[_0xa8d4f9(0x100)]);},exports[a6_0x144ae0(0x108)]=function(_0x11c245){};function a6_0x3af4(){const _0xb118ba=['desc','connect','2gPflZB','epilogue','4528980YxZPRJ','MEura','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','ABDqi','6012567nEengE','9304tBPEXv','usage','../config/constants','builder','handler','commandDir','demandCommand','1476ETABXm','1367219AHNhmo','580194eHRklK','recommendCommands','56TOsTGP','3721194UWsSGl','59906630ABgMhM','help','strict','command'];a6_0x3af4=function(){return _0xb118ba;};return a6_0x3af4();}
@@ -1 +1 @@
1
- function a7_0xa8b3(_0x3d1cca,_0x1f11a8){const _0x3c318a=a7_0x3c31();return a7_0xa8b3=function(_0xa8b389,_0x242e67){_0xa8b389=_0xa8b389-0x92;let _0x1e9367=_0x3c318a[_0xa8b389];return _0x1e9367;},a7_0xa8b3(_0x3d1cca,_0x1f11a8);}const a7_0x3a440d=a7_0xa8b3;(function(_0x2c7b3f,_0xbe169c){const _0xd355a0=a7_0xa8b3,_0x5d8b5a=_0x2c7b3f();while(!![]){try{const _0x2938e4=-parseInt(_0xd355a0(0xdc))/0x1*(-parseInt(_0xd355a0(0xe0))/0x2)+-parseInt(_0xd355a0(0xa6))/0x3*(-parseInt(_0xd355a0(0xf3))/0x4)+-parseInt(_0xd355a0(0xd6))/0x5*(-parseInt(_0xd355a0(0xec))/0x6)+parseInt(_0xd355a0(0xaa))/0x7*(parseInt(_0xd355a0(0xa0))/0x8)+-parseInt(_0xd355a0(0xb6))/0x9*(-parseInt(_0xd355a0(0xf6))/0xa)+-parseInt(_0xd355a0(0xa2))/0xb+parseInt(_0xd355a0(0xad))/0xc*(-parseInt(_0xd355a0(0xaf))/0xd);if(_0x2938e4===_0xbe169c)break;else _0x5d8b5a['push'](_0x5d8b5a['shift']());}catch(_0x20c384){_0x5d8b5a['push'](_0x5d8b5a['shift']());}}}(a7_0x3c31,0x6706b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x3a440d(0xff)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x3a440d(0xba));exports[a7_0x3a440d(0xe2)]='grid',exports[a7_0x3a440d(0xc0)]=a7_0x3a440d(0xce),exports[a7_0x3a440d(0xe8)]=_0x1bb1af=>{const _0x2fc38a=a7_0x3a440d,_0x385bde={};_0x385bde['jHOoP']=_0x2fc38a(0xc6),_0x385bde[_0x2fc38a(0xdf)]='string',_0x385bde['mHvMe']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x385bde[_0x2fc38a(0xc2)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x385bde[_0x2fc38a(0xfc)]=_0x2fc38a(0x96),_0x385bde['wzqFC']=_0x2fc38a(0xd2),_0x385bde[_0x2fc38a(0xef)]=_0x2fc38a(0xdd);const _0x2b11f2=_0x385bde,_0x1d115b={};_0x1d115b[_0x2fc38a(0xbd)]=_0x2b11f2[_0x2fc38a(0xbc)],_0x1d115b[_0x2fc38a(0xb8)]=_0x2b11f2['dyfXE'];const _0x564ae0={};_0x564ae0[_0x2fc38a(0xbd)]=_0x2b11f2[_0x2fc38a(0xcd)],_0x564ae0[_0x2fc38a(0xb8)]=_0x2b11f2[_0x2fc38a(0xdf)];const _0x34af5e={};_0x34af5e['demandOption']=!![],_0x34af5e['description']=_0x2b11f2[_0x2fc38a(0xc2)],_0x34af5e[_0x2fc38a(0xb8)]=_0x2b11f2[_0x2fc38a(0xdf)];const _0x436de1={};_0x436de1[_0x2fc38a(0xbd)]=_0x2b11f2[_0x2fc38a(0xfc)],_0x436de1['type']=_0x2b11f2[_0x2fc38a(0xdf)];const _0x2f8739={};_0x2f8739[_0x2fc38a(0xbd)]=_0x2b11f2[_0x2fc38a(0xf2)],_0x2f8739['type']=_0x2b11f2[_0x2fc38a(0xdf)];const _0x37d8cd={};return _0x37d8cd['bstack-username']=_0x1d115b,_0x37d8cd[_0x2fc38a(0xf4)]=_0x564ae0,_0x37d8cd['grid-id']=_0x34af5e,_0x37d8cd[_0x2fc38a(0xb5)]=_0x436de1,_0x37d8cd[_0x2fc38a(0x9f)]=_0x2f8739,_0x1bb1af['usage'](HELP_HEADER_MESSAGE[_0x2fc38a(0xae)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2fc38a(0xd3)](_0x37d8cd)[_0x2fc38a(0xdd)](_0x2b11f2[_0x2fc38a(0xef)])[_0x2fc38a(0xdb)];},exports['handler']=async _0x3a2c1a=>{const _0x13b282=a7_0x3a440d,_0x4860fb={'eQvRJ':function(_0x51e69e,_0x2bcf77){return _0x51e69e!==_0x2bcf77;},'EwFes':_0x13b282(0xd0),'YslLx':function(_0x2bf42e,_0x311fac){return _0x2bf42e==_0x311fac;},'EKiMP':function(_0x268864,_0x3ebc55){return _0x268864(_0x3ebc55);},'bIuaR':function(_0x1521e3,_0x3a9672){return _0x1521e3(_0x3a9672);},'TVTZG':_0x13b282(0xf7),'brPkx':_0x13b282(0xab),'wbpPb':_0x13b282(0x92),'WDfYu':function(_0x7d6b75,_0x480a3b){return _0x7d6b75(_0x480a3b);},'BqvXj':_0x13b282(0xc6),'tacwT':_0x13b282(0xa4),'BMmWW':_0x13b282(0xd4),'gCbKZ':_0x13b282(0xc9),'FGOxN':_0x13b282(0x96),'pUzqG':'Advance\x20options\x20for\x20Browserstack\x20Local','xYKwP':_0x13b282(0xdd),'atBpc':function(_0x5436cc,_0x131f30){return _0x5436cc(_0x131f30);},'nWJdk':function(_0x6c61c2,_0x39ce57){return _0x6c61c2==_0x39ce57;},'EczYF':function(_0x304850,_0x451058){return _0x304850===_0x451058;},'olsUm':'lJUcC','jJthY':_0x13b282(0xb9),'qIEOC':function(_0x4b2b0e,_0x2ded12){return _0x4b2b0e==_0x2ded12;},'ABheM':function(_0x356d0b,_0x52fe17){return _0x356d0b==_0x52fe17;},'snJcs':function(_0x26952c,_0x2144b7){return _0x26952c(_0x2144b7);},'rVqtF':function(_0x1b5e5a,_0x43f41a){return _0x1b5e5a(_0x43f41a);},'Pacaa':function(_0x536936,_0x12af4c,_0x57a298){return _0x536936(_0x12af4c,_0x57a298);},'tQCMs':function(_0x47a7b5,_0x18db1f){return _0x47a7b5&&_0x18db1f;},'xtajz':function(_0x2039c9,_0x1e0b93){return _0x2039c9===_0x1e0b93;},'FrgHd':_0x13b282(0xd8),'jWSyk':_0x13b282(0xee),'odNoV':function(_0x3a7509,_0x305732){return _0x3a7509(_0x305732);},'WEkrC':function(_0x8ede2a,_0x3337ac,_0x5dcb1d,_0x2777ef){return _0x8ede2a(_0x3337ac,_0x5dcb1d,_0x2777ef);},'ixmkl':function(_0x4e9d7a,_0x4bc8c1){return _0x4e9d7a!==_0x4bc8c1;},'Eyjeb':'qqoHD','ICvAO':function(_0x1d91cf,_0xeae913){return _0x1d91cf===_0xeae913;},'wkvsH':_0x13b282(0xfb),'hRBAc':function(_0x8704d1,_0x52e267){return _0x8704d1!==_0x52e267;},'HfuRE':_0x13b282(0xd7),'hhYWr':function(_0x4a6e45,_0x26e26d){return _0x4a6e45!==_0x26e26d;},'KvLJP':_0x13b282(0xbb),'XiHFd':function(_0x506d7a,_0x4508bd){return _0x506d7a(_0x4508bd);},'aWfhT':'yZjzL','Fhvbn':_0x13b282(0xe9)};let _0x55b452=_0x3a2c1a[_0x13b282(0x95)],_0x377717=_0x3a2c1a[_0x13b282(0x99)],_0xeaf48c=_0x3a2c1a['advanceOptions'];const _0x255e5f=_0x359885=>{const _0x563fe4=_0x13b282;_0x4860fb[_0x563fe4(0xe3)](_0x4860fb[_0x563fe4(0x9c)],_0x4860fb['EwFes'])?(_0x13160a['error'](_0x16e9a4),_0x3c2270['exit'](0x1)):(logger['error'](_0x359885),process['exit'](0x1));};[_0x55b452,_0x377717]=_0x4860fb['Pacaa'](fetchOrUpdateUserConfig,_0x55b452,_0x377717);if(!_0x4860fb[_0x13b282(0xa1)](_0x55b452,_0x377717)){if(_0x4860fb[_0x13b282(0x97)](_0x4860fb[_0x13b282(0xb2)],_0x4860fb['jWSyk'])){const _0x1add06={'VTUVD':function(_0x583341,_0x265681){return _0x4860fb['YslLx'](_0x583341,_0x265681);},'PcHYT':function(_0x870ac6,_0x1f2381){const _0x2dfdc8=_0x13b282;return _0x4860fb[_0x2dfdc8(0xb3)](_0x870ac6,_0x1f2381);}};_0x3f093c='Grid\x20type:\x20Trial',_0x144680[_0x13b282(0xd5)](_0x151a7d);try{const _0x1925d1={};_0x1925d1[_0x13b282(0xfa)]=_0x1c6b2b,_0x1925d1['customRepeaters']=_0x382c04[_0x13b282(0x93)],_0x1925d1[_0x13b282(0xe1)]=_0x404a4e;const _0x4d9e11=_0x1925d1,_0x131032=_0x4860fb[_0x13b282(0xfd)](_0x600a1e,_0x4d9e11);let _0x23b313=0x0;const _0x269884=async()=>{const _0x1c9ad9=_0x13b282;_0x23b313++,_0x1add06[_0x1c9ad9(0xf8)](_0x23b313,0x1)&&_0x131032&&_0x131032[_0x1c9ad9(0xc8)]()&&_0x1add06[_0x1c9ad9(0xfe)](_0x595135,_0x131032);};_0x1b0c4e['on'](_0x4860fb[_0x13b282(0xf9)],_0x269884),_0x5f01db['on'](_0x4860fb['brPkx'],_0x269884),_0x287aac['on'](_0x4860fb[_0x13b282(0xb1)],_0x269884),_0x261584='We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.',_0x5b8e1f[_0x13b282(0xd5)](_0x1816fc);}catch(_0x22d84d){_0x4860fb[_0x13b282(0xb0)](_0x1f606a,_0x13b282(0xc3));}}else _0x4860fb[_0x13b282(0xd1)](_0x255e5f,_0x13b282(0xa5));}let _0x1e4a92=_0x3a2c1a[_0x13b282(0xac)],[_0x2b84e7,_0x47029c]=await _0x4860fb[_0x13b282(0xcf)](getGridDetails,_0x55b452,_0x377717,_0x1e4a92);if(!_0x47029c){if(_0x4860fb[_0x13b282(0xa9)](_0x4860fb['Eyjeb'],_0x4860fb[_0x13b282(0x9b)])){const _0x2781d0={};_0x2781d0['description']=_0x4860fb[_0x13b282(0xbf)],_0x2781d0[_0x13b282(0xb8)]=_0x4860fb['tacwT'];const _0xff97e7={};_0xff97e7[_0x13b282(0xbd)]=_0x4860fb[_0x13b282(0xde)],_0xff97e7[_0x13b282(0xb8)]=_0x4860fb[_0x13b282(0xf5)];const _0x3516b3={};_0x3516b3['demandOption']=!![],_0x3516b3[_0x13b282(0xbd)]=_0x4860fb[_0x13b282(0xa8)],_0x3516b3[_0x13b282(0xb8)]=_0x4860fb[_0x13b282(0xf5)];const _0x24713d={};_0x24713d[_0x13b282(0xbd)]=_0x4860fb[_0x13b282(0xb7)],_0x24713d[_0x13b282(0xb8)]=_0x4860fb['tacwT'];const _0x5a7c5e={};_0x5a7c5e['description']=_0x4860fb[_0x13b282(0xea)],_0x5a7c5e[_0x13b282(0xb8)]=_0x4860fb[_0x13b282(0xf5)];const _0x342bba={};return _0x342bba['bstack-username']=_0x2781d0,_0x342bba[_0x13b282(0xf4)]=_0xff97e7,_0x342bba[_0x13b282(0xb4)]=_0x3516b3,_0x342bba[_0x13b282(0xb5)]=_0x24713d,_0x342bba[_0x13b282(0x9f)]=_0x5a7c5e,_0x51fb1c[_0x13b282(0xbe)](_0x988a95['create'])[_0x13b282(0xed)](_0x2cff01)[_0x13b282(0xd3)](_0x342bba)['help'](_0x4860fb['xYKwP'])[_0x13b282(0xdb)];}else _0x4860fb[_0x13b282(0xb3)](_0x255e5f,_0x13b282(0xf0));}let _0x59a7bd=_0x4860fb['ICvAO'](_0x3a2c1a['useStaging'],_0x4860fb[_0x13b282(0x98)])?!![]:![];if(_0x47029c&&_0x47029c[_0x13b282(0xda)]&&_0x59a7bd){if(_0x4860fb[_0x13b282(0x9a)](_0x4860fb[_0x13b282(0xe5)],_0x4860fb['HfuRE']))_0x4860fb['bIuaR'](_0x268975,_0x13b282(0xc3));else{logMessage=_0x13b282(0x9d),logger[_0x13b282(0xd5)](logMessage);try{if(_0x4860fb[_0x13b282(0xe4)](_0x4860fb['KvLJP'],_0x4860fb[_0x13b282(0xc7)]))_0x4860fb[_0x13b282(0xcb)](_0x670e,_0x13b282(0xa5));else{const _0x57761f={};_0x57761f[_0x13b282(0xfa)]=_0x377717,_0x57761f[_0x13b282(0x93)]=_0x47029c['customRepeaters'],_0x57761f[_0x13b282(0xe1)]=_0xeaf48c;const _0x19ab41=_0x57761f,_0x298335=_0x4860fb[_0x13b282(0xca)](startLocalBinarySync,_0x19ab41);let _0x36980c=0x0;const _0x52c46d=async()=>{const _0x3f2e6d=_0x13b282;_0x4860fb[_0x3f2e6d(0xcc)](_0x4860fb[_0x3f2e6d(0x100)],_0x4860fb[_0x3f2e6d(0xe7)])?(_0x6c124a++,_0x4860fb[_0x3f2e6d(0xc1)](_0x1ba288,0x1)&&_0x4ee5e8&&_0x3e2a1d[_0x3f2e6d(0xc8)]()&&_0x4860fb['bIuaR'](_0x34ce94,_0x581ec7)):(_0x36980c++,_0x4860fb[_0x3f2e6d(0xe6)](_0x36980c,0x1)&&_0x298335&&_0x298335[_0x3f2e6d(0xc8)]()&&_0x4860fb[_0x3f2e6d(0xb3)](stopLocalBinary,_0x298335));};process['on'](_0x4860fb[_0x13b282(0xf9)],_0x52c46d),process['on'](_0x4860fb[_0x13b282(0x94)],_0x52c46d),process['on'](_0x4860fb[_0x13b282(0xb1)],_0x52c46d),logMessage=_0x13b282(0xd9),logger[_0x13b282(0xd5)](logMessage);}}catch(_0x39cdb6){if(_0x4860fb[_0x13b282(0xc4)](_0x4860fb[_0x13b282(0xa3)],_0x4860fb[_0x13b282(0xa7)])){const _0x2f7e08={'fAXBZ':function(_0x356fd4,_0x5f1d3f){return _0x4860fb['ABheM'](_0x356fd4,_0x5f1d3f);},'nsshV':function(_0x31002d,_0x38a0ae){const _0x2aa685=_0x13b282;return _0x4860fb[_0x2aa685(0x9e)](_0x31002d,_0x38a0ae);}},_0x27ca7c={};_0x27ca7c[_0x13b282(0xfa)]=_0x3bb932,_0x27ca7c[_0x13b282(0x93)]=_0x507878[_0x13b282(0x93)],_0x27ca7c[_0x13b282(0xe1)]=_0x33f0cb;const _0x8e3854=_0x27ca7c,_0x377aab=_0x4860fb[_0x13b282(0xf1)](_0x461301,_0x8e3854);let _0x3a93d4=0x0;const _0x4c6c84=async()=>{const _0x94e1ff=_0x13b282;_0x3a93d4++,_0x2f7e08['fAXBZ'](_0x3a93d4,0x1)&&_0x377aab&&_0x377aab['isRunning']()&&_0x2f7e08[_0x94e1ff(0xeb)](_0x18f215,_0x377aab);};_0xe53f41['on'](_0x4860fb[_0x13b282(0xf9)],_0x4c6c84),_0x3844c0['on'](_0x4860fb['brPkx'],_0x4c6c84),_0x86080['on'](_0x4860fb['wbpPb'],_0x4c6c84),_0x502c76=_0x13b282(0xd9),_0x181008[_0x13b282(0xd5)](_0xf0ce8b);}else _0x4860fb[_0x13b282(0xfd)](_0x255e5f,_0x13b282(0xc3));}}}process[_0x13b282(0xc5)](0x0);};function a7_0x3c31(){const _0x29a82e=['olsUm','SIGTERM','customRepeaters','brPkx','bstackUsername','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','xtajz','wkvsH','bstackAccesskey','hRBAc','Eyjeb','EwFes','Grid\x20type:\x20Trial','snJcs','advance-options','15464cKvdPT','tQCMs','8517487XwUVmz','aWfhT','string','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','2151uVPWfF','Fhvbn','gCbKZ','ixmkl','7swXVcC','SIGINT','gridId','12FOxgbf','create','4218643zdbzaW','WDfYu','wbpPb','FrgHd','EKiMP','grid-id','use-staging','410931eKYSjh','FGOxN','type','YmGDf','../../utils/utilityMethods','thYRe','jHOoP','description','usage','BqvXj','desc','nWJdk','psHnW','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','ICvAO','exit','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','KvLJP','isRunning','Pass\x20the\x20ID\x20of\x20the\x20Grid','XiHFd','atBpc','EczYF','mHvMe','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','WEkrC','zvRpW','odNoV','Advance\x20options\x20for\x20Browserstack\x20Local','options','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','info','275PqUctT','ysKgc','kHehs','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','isTrialGrid','argv','1UgkoZE','help','BMmWW','dyfXE','1205718bCuVba','browserStackLocalOptions','command','eQvRJ','hhYWr','HfuRE','qIEOC','jJthY','builder','XsDsu','pUzqG','nsshV','14172CrmiVR','epilogue','ZhFfl','tXRMl','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','rVqtF','wzqFC','3112WoRqJF','bstack-accesskey','tacwT','50EMdkON','beforeExit','VTUVD','TVTZG','accessKey','true','nErxc','bIuaR','PcHYT','../../config/constants'];a7_0x3c31=function(){return _0x29a82e;};return a7_0x3c31();}
1
+ const a7_0x3b79d6=a7_0x4db8;(function(_0x19bba9,_0x1e04a3){const _0x4d1706=a7_0x4db8,_0x25f08b=_0x19bba9();while(!![]){try{const _0x45d774=parseInt(_0x4d1706(0x12a))/0x1*(parseInt(_0x4d1706(0x101))/0x2)+parseInt(_0x4d1706(0x124))/0x3+-parseInt(_0x4d1706(0x11e))/0x4*(-parseInt(_0x4d1706(0xde))/0x5)+parseInt(_0x4d1706(0xf9))/0x6*(-parseInt(_0x4d1706(0x110))/0x7)+-parseInt(_0x4d1706(0xd7))/0x8+parseInt(_0x4d1706(0xf1))/0x9+parseInt(_0x4d1706(0xd9))/0xa;if(_0x45d774===_0x1e04a3)break;else _0x25f08b['push'](_0x25f08b['shift']());}catch(_0x5ce815){_0x25f08b['push'](_0x25f08b['shift']());}}}(a7_0x57a3,0x75f82));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x3b79d6(0xe5)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x3b79d6(0xfc));function a7_0x4db8(_0x3cd2e2,_0x2d6eeb){const _0x57a333=a7_0x57a3();return a7_0x4db8=function(_0x4db8e3,_0x12f8d6){_0x4db8e3=_0x4db8e3-0xce;let _0x42970e=_0x57a333[_0x4db8e3];return _0x42970e;},a7_0x4db8(_0x3cd2e2,_0x2d6eeb);}function a7_0x57a3(){const _0x13ce70=['jmLCe','sZagc','QCJou','wcBBC','ATkbJ','zXeBV','36bDmhZd','JROlI','eFGJx','desc','RpZdt','vFBzo','1466010JNLLVD','dIVeK','advance-options','type','UpwJp','mYlvN','305587UtHFdC','Advance\x20options\x20for\x20Browserstack\x20Local','argv','EXmtg','ATFUe','customRepeaters','rWrOm','usage','LOagz','options','FVLwk','info','bstackAccesskey','epilogue','ZXoCn','grid','isRunning','BlDBh','7546640eMENph','lEUeB','4984600WxPBaL','NqynJ','handler','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','nAtIb','78695mxAEgV','beforeExit','MRclU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','help','GmEBE','UvgOr','../../config/logger','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','OYNva','bstack-accesskey','DJUcJ','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','aSvZg','error','demandOption','RVYVu','IASYk','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','5505246fxYpgN','GHXlh','create','jPlIT','gridId','Grid\x20type:\x20Trial','PsVjz','DxYHp','247812cRfkxl','SxUPA','hkfBR','../../utils/utilityMethods','Pass\x20the\x20ID\x20of\x20the\x20Grid','FiNJT','QqDYu','browserStackLocalOptions','2ACDvSs','GcZjQ','mEqvF','IywRW','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','true','description','FQVop','exit','ODSwg','rdpPb','DKDHK','accessKey','qdfuC','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','105CPGRDq','isTrialGrid','TahaT','vguiU','bstack-username','grid-id','GXpSz','string'];a7_0x57a3=function(){return _0x13ce70;};return a7_0x57a3();}exports['command']=a7_0x3b79d6(0xd4),exports[a7_0x3b79d6(0x121)]=a7_0x3b79d6(0xf0),exports['builder']=_0x23390a=>{const _0x175254=a7_0x3b79d6,_0x164c45={};_0x164c45[_0x175254(0x10e)]=_0x175254(0xe6),_0x164c45['UvgOr']=_0x175254(0x117),_0x164c45['IywRW']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x164c45[_0x175254(0xcf)]=_0x175254(0xfd),_0x164c45[_0x175254(0xe7)]=_0x175254(0x105),_0x164c45[_0x175254(0x112)]=_0x175254(0x12b),_0x164c45['DxYHp']=_0x175254(0xe2);const _0x2cd0cf=_0x164c45,_0x1a5d95={};_0x1a5d95['description']=_0x2cd0cf[_0x175254(0x10e)],_0x1a5d95[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x325557={};_0x325557[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0x104)],_0x325557[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x3ab7d7={};_0x3ab7d7[_0x175254(0xed)]=!![],_0x3ab7d7[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0xcf)],_0x3ab7d7[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x31002d={};_0x31002d[_0x175254(0x107)]=_0x2cd0cf['OYNva'],_0x31002d['type']=_0x2cd0cf[_0x175254(0xe4)];const _0x412de4={};_0x412de4[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0x112)],_0x412de4[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x11e14b={};return _0x11e14b['bstack-username']=_0x1a5d95,_0x11e14b[_0x175254(0xe8)]=_0x325557,_0x11e14b['grid-id']=_0x3ab7d7,_0x11e14b['use-staging']=_0x31002d,_0x11e14b[_0x175254(0x126)]=_0x412de4,_0x23390a[_0x175254(0x131)](HELP_HEADER_MESSAGE[_0x175254(0xf3)])[_0x175254(0xd2)](HELP_FOOTER_MESSAGE)[_0x175254(0xce)](_0x11e14b)[_0x175254(0xe2)](_0x2cd0cf[_0x175254(0xf8)])[_0x175254(0x12c)];},exports[a7_0x3b79d6(0xdb)]=async _0x2f3c4c=>{const _0x5ff7c=a7_0x3b79d6,_0x362762={'ATFUe':function(_0x1df997,_0x122f8f){return _0x1df997(_0x122f8f);},'ODSwg':_0x5ff7c(0xdc),'DJUcJ':function(_0x164dd3,_0x1955a7){return _0x164dd3!==_0x1955a7;},'dIVeK':_0x5ff7c(0xdd),'mEqvF':_0x5ff7c(0x10f),'jmLCe':_0x5ff7c(0xe6),'QCJou':_0x5ff7c(0x117),'NqynJ':_0x5ff7c(0xe1),'JROlI':'Pass\x20the\x20ID\x20of\x20the\x20Grid','GHXlh':_0x5ff7c(0x105),'sZagc':_0x5ff7c(0x12b),'ATkbJ':_0x5ff7c(0xe2),'vguiU':function(_0x534a5c,_0x81d90e){return _0x534a5c===_0x81d90e;},'GcZjQ':function(_0x26fac5,_0x530c3a){return _0x26fac5(_0x530c3a);},'EXmtg':_0x5ff7c(0xea),'fkiFU':function(_0x527325,_0xa31340){return _0x527325!==_0xa31340;},'DKDHK':_0x5ff7c(0x128),'rWrOm':function(_0x2fb491,_0x3916f4){return _0x2fb491===_0x3916f4;},'RVYVu':function(_0x3426ec,_0x39d193){return _0x3426ec(_0x39d193);},'GmEBE':function(_0x4e647f,_0x1e45e7){return _0x4e647f(_0x1e45e7);},'mYlvN':_0x5ff7c(0xdf),'MRclU':'SIGINT','hkfBR':'SIGTERM','FiNJT':'We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','IASYk':function(_0x542a81,_0x153e6c,_0x3f6553){return _0x542a81(_0x153e6c,_0x3f6553);},'rdpPb':function(_0x1ee472,_0x5cdf57){return _0x1ee472&&_0x5cdf57;},'FQVop':_0x5ff7c(0x11d),'RNgav':function(_0x18fb6c,_0xa44b3a,_0x13501f,_0x15a0ba){return _0x18fb6c(_0xa44b3a,_0x13501f,_0x15a0ba);},'lEUeB':'PepJs','BlDBh':'PAFHp','SxUPA':function(_0xf202b,_0xb5d57b){return _0xf202b(_0xb5d57b);},'LOagz':_0x5ff7c(0x106),'dzWGq':_0x5ff7c(0x11b),'GXpSz':_0x5ff7c(0xf7),'ZXoCn':_0x5ff7c(0xf6),'eFGJx':_0x5ff7c(0xf4),'vFBzo':_0x5ff7c(0xeb),'GQUvo':_0x5ff7c(0x122)};let _0x9c2435=_0x2f3c4c['bstackUsername'],_0x44ba4e=_0x2f3c4c[_0x5ff7c(0xd1)];const _0x23e2aa=_0x2f3c4c['advanceOptions'],_0x23dd1e=_0x3ba6a3=>{const _0x369fcf=_0x5ff7c,_0x1fb5e8={'fGofQ':function(_0x76474,_0x2fd897){const _0x3c7ed2=a7_0x4db8;return _0x362762[_0x3c7ed2(0x12e)](_0x76474,_0x2fd897);},'QqDYu':_0x362762[_0x369fcf(0x10a)]};_0x362762[_0x369fcf(0xe9)](_0x362762[_0x369fcf(0x125)],_0x362762[_0x369fcf(0x125)])?_0x1fb5e8['fGofQ'](_0x17fd8d,_0x1fb5e8[_0x369fcf(0xff)]):(logger[_0x369fcf(0xec)](_0x3ba6a3),process[_0x369fcf(0x109)](0x1));};[_0x9c2435,_0x44ba4e]=_0x362762[_0x5ff7c(0xef)](fetchOrUpdateUserConfig,_0x9c2435,_0x44ba4e);!_0x362762[_0x5ff7c(0x10b)](_0x9c2435,_0x44ba4e)&&(_0x362762[_0x5ff7c(0xe9)](_0x362762[_0x5ff7c(0x108)],_0x362762[_0x5ff7c(0x108)])?_0x362762[_0x5ff7c(0x12e)](_0xb67a79,_0x362762[_0x5ff7c(0x103)]):_0x362762[_0x5ff7c(0x102)](_0x23dd1e,_0x362762[_0x5ff7c(0x10a)]));const _0xc848c1=_0x2f3c4c[_0x5ff7c(0xf5)],[_0xc5e3e3,_0x13aada]=await _0x362762['RNgav'](getGridDetails,_0x9c2435,_0x44ba4e,_0xc848c1);if(!_0x13aada){if(_0x362762['fkiFU'](_0x362762[_0x5ff7c(0xd8)],_0x362762[_0x5ff7c(0xd6)]))_0x362762[_0x5ff7c(0xfa)](_0x23dd1e,_0x362762[_0x5ff7c(0x12d)]);else{const _0x21ec02={};_0x21ec02[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x118)],_0x21ec02[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x5efbec={};_0x5efbec[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0xda)],_0x5efbec[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x30f863={};_0x30f863[_0x5ff7c(0xed)]=!![],_0x30f863[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x11f)],_0x30f863[_0x5ff7c(0x127)]=_0x362762[_0x5ff7c(0x11a)];const _0x138f8e={};_0x138f8e[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0xf2)],_0x138f8e[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x1e8a99={};_0x1e8a99[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x119)],_0x1e8a99[_0x5ff7c(0x127)]=_0x362762[_0x5ff7c(0x11a)];const _0x306424={};return _0x306424[_0x5ff7c(0x114)]=_0x21ec02,_0x306424[_0x5ff7c(0xe8)]=_0x5efbec,_0x306424[_0x5ff7c(0x115)]=_0x30f863,_0x306424['use-staging']=_0x138f8e,_0x306424[_0x5ff7c(0x126)]=_0x1e8a99,_0x51b430[_0x5ff7c(0x131)](_0x275ac4[_0x5ff7c(0xf3)])[_0x5ff7c(0xd2)](_0x3d1eef)[_0x5ff7c(0xce)](_0x306424)[_0x5ff7c(0xe2)](_0x362762[_0x5ff7c(0x11c)])[_0x5ff7c(0x12c)];}}const _0xc82276=_0x362762[_0x5ff7c(0x130)](_0x2f3c4c['useStaging'],_0x362762[_0x5ff7c(0x132)])?!![]:![];if(_0x13aada&&_0x13aada[_0x5ff7c(0x111)]&&_0xc82276){if(_0x362762[_0x5ff7c(0x130)](_0x362762['dzWGq'],_0x362762[_0x5ff7c(0x116)]))_0x54e8e9++,_0x362762[_0x5ff7c(0x113)](_0x530d31,0x1)&&_0x580d87&&_0x515759[_0x5ff7c(0xd5)]()&&_0x362762[_0x5ff7c(0x102)](_0x2471d7,_0xe2a085);else{let _0x580d6f=_0x362762[_0x5ff7c(0xd3)];logger[_0x5ff7c(0xd0)](_0x580d6f);try{if(_0x362762[_0x5ff7c(0xe9)](_0x362762[_0x5ff7c(0x120)],_0x362762[_0x5ff7c(0x120)]))_0x362762['GcZjQ'](_0x9a4e03,_0x362762['EXmtg']);else{const _0x4b86a4={};_0x4b86a4[_0x5ff7c(0x10d)]=_0x44ba4e,_0x4b86a4[_0x5ff7c(0x12f)]=_0x13aada[_0x5ff7c(0x12f)],_0x4b86a4[_0x5ff7c(0x100)]=_0x23e2aa;const _0x1b595f=_0x4b86a4,_0x3fee5c=_0x362762['GmEBE'](startLocalBinarySync,_0x1b595f);let _0x562812=0x0;const _0x4ef0e9=async()=>{const _0x2ecb91=_0x5ff7c;_0x362762['fkiFU'](_0x362762[_0x2ecb91(0x10c)],_0x362762[_0x2ecb91(0x10c)])?(_0x4e3aac[_0x2ecb91(0xec)](_0x2139c7),_0xd31c63['exit'](0x1)):(_0x562812++,_0x362762[_0x2ecb91(0x130)](_0x562812,0x1)&&_0x3fee5c&&_0x3fee5c[_0x2ecb91(0xd5)]()&&_0x362762[_0x2ecb91(0xee)](stopLocalBinary,_0x3fee5c));};process['on'](_0x362762[_0x5ff7c(0x129)],_0x4ef0e9),process['on'](_0x362762[_0x5ff7c(0xe0)],_0x4ef0e9),process['on'](_0x362762['hkfBR'],_0x4ef0e9),_0x580d6f=_0x362762[_0x5ff7c(0xfe)],logger[_0x5ff7c(0xd0)](_0x580d6f);}}catch(_0x245bb3){if(_0x362762[_0x5ff7c(0x130)](_0x362762[_0x5ff7c(0x123)],_0x362762['GQUvo'])){const _0x2f2555={};_0x2f2555['accessKey']=_0x2d9cdc,_0x2f2555[_0x5ff7c(0x12f)]=_0x48278b[_0x5ff7c(0x12f)],_0x2f2555[_0x5ff7c(0x100)]=_0x53e3cf;const _0x12d6de=_0x2f2555,_0x5aa507=_0x362762['GcZjQ'](_0x566a71,_0x12d6de);let _0xa4aacb=0x0;const _0x1e5c99=async()=>{const _0x34871d=_0x5ff7c;_0xa4aacb++,_0x362762[_0x34871d(0x130)](_0xa4aacb,0x1)&&_0x5aa507&&_0x5aa507['isRunning']()&&_0x362762[_0x34871d(0xe3)](_0x1069d0,_0x5aa507);};_0x7ec49b['on'](_0x362762[_0x5ff7c(0x129)],_0x1e5c99),_0x262156['on'](_0x362762[_0x5ff7c(0xe0)],_0x1e5c99),_0x3085a9['on'](_0x362762[_0x5ff7c(0xfb)],_0x1e5c99),_0xd7dbed=_0x362762[_0x5ff7c(0xfe)],_0x22fc1b[_0x5ff7c(0xd0)](_0x3352cb);}else _0x362762[_0x5ff7c(0x12e)](_0x23dd1e,_0x362762[_0x5ff7c(0x103)]);}}}process[_0x5ff7c(0x109)](0x0);};
@@ -1 +1 @@
1
- function a8_0x4343(){const _0x1721a4=['Create\x20a\x20new\x20Automation\x20grid.','strict','298947miYFXu','175889dMVTPQ','desc','help','30634nTRAci','3JXSbjW','recommendCommands','epilogue','10xKPCla','create','cONwF','24YyVBji','3956106BZGCKI','create_commands','38644thsITq','demandCommand','builder','../config/constants','usage','60MLeHwC','6984936LbMYvW','3822560fqLnWv'];a8_0x4343=function(){return _0x1721a4;};return a8_0x4343();}const a8_0x2f668b=a8_0x59b6;(function(_0x414162,_0x16f987){const _0x2aa3c2=a8_0x59b6,_0x50a85d=_0x414162();while(!![]){try{const _0x2e26b3=-parseInt(_0x2aa3c2(0x1a0))/0x1*(-parseInt(_0x2aa3c2(0x19c))/0x2)+parseInt(_0x2aa3c2(0x19d))/0x3*(-parseInt(_0x2aa3c2(0x18e))/0x4)+-parseInt(_0x2aa3c2(0x195))/0x5+parseInt(_0x2aa3c2(0x18c))/0x6+-parseInt(_0x2aa3c2(0x199))/0x7*(parseInt(_0x2aa3c2(0x18b))/0x8)+parseInt(_0x2aa3c2(0x194))/0x9+parseInt(_0x2aa3c2(0x193))/0xa*(-parseInt(_0x2aa3c2(0x198))/0xb);if(_0x2e26b3===_0x16f987)break;else _0x50a85d['push'](_0x50a85d['shift']());}catch(_0x3e8503){_0x50a85d['push'](_0x50a85d['shift']());}}}(a8_0x4343,0x8ca09));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x2f668b(0x191));function a8_0x59b6(_0x5b40f3,_0x37fe37){const _0x43438e=a8_0x4343();return a8_0x59b6=function(_0x59b609,_0x471c15){_0x59b609=_0x59b609-0x18b;let _0xfd7f53=_0x43438e[_0x59b609];return _0xfd7f53;},a8_0x59b6(_0x5b40f3,_0x37fe37);}exports['command']=a8_0x2f668b(0x1a1),exports[a8_0x2f668b(0x19a)]=a8_0x2f668b(0x196),exports[a8_0x2f668b(0x190)]=function(_0x54d537){const _0x2f78f6=a8_0x2f668b,_0x1148ec={};_0x1148ec[_0x2f78f6(0x1a2)]=_0x2f78f6(0x18d),_0x1148ec['NaFgz']='help';const _0xc24534=_0x1148ec;return _0x54d537[_0x2f78f6(0x192)](HELP_HEADER_MESSAGE[_0x2f78f6(0x1a1)])[_0x2f78f6(0x19f)](HELP_FOOTER_MESSAGE)['commandDir'](_0xc24534[_0x2f78f6(0x1a2)])[_0x2f78f6(0x18f)]()[_0x2f78f6(0x19e)]()[_0x2f78f6(0x197)]()[_0x2f78f6(0x19b)](_0xc24534['NaFgz']);},exports['handler']=function(_0x434eaf){};
1
+ const a8_0x29e3e8=a8_0x4075;(function(_0x750dcd,_0x3c1fdc){const _0xa50cf8=a8_0x4075,_0x24b480=_0x750dcd();while(!![]){try{const _0x4d6fa9=parseInt(_0xa50cf8(0x155))/0x1+-parseInt(_0xa50cf8(0x146))/0x2+parseInt(_0xa50cf8(0x158))/0x3+parseInt(_0xa50cf8(0x150))/0x4+-parseInt(_0xa50cf8(0x14e))/0x5*(-parseInt(_0xa50cf8(0x14f))/0x6)+-parseInt(_0xa50cf8(0x152))/0x7*(-parseInt(_0xa50cf8(0x14b))/0x8)+-parseInt(_0xa50cf8(0x154))/0x9*(parseInt(_0xa50cf8(0x153))/0xa);if(_0x4d6fa9===_0x3c1fdc)break;else _0x24b480['push'](_0x24b480['shift']());}catch(_0x822ca2){_0x24b480['push'](_0x24b480['shift']());}}}(a8_0x1965,0x5d445));function a8_0x1965(){const _0x480481=['desc','create','demandCommand','3192vLZplN','HNUzb','JdiSM','1975855XllSEl','6tuuLxh','1228296tsHMrP','help','12957lDMCqN','20IjXikN','7270614YtrPLJ','351798LzuNYA','strict','handler','1286505RVzqGd','commandDir','Create\x20a\x20new\x20Automation\x20grid.','447428xnINgb','usage'];a8_0x1965=function(){return _0x480481;};return a8_0x1965();}function a8_0x4075(_0x4b489f,_0x3c52c6){const _0x1965d1=a8_0x1965();return a8_0x4075=function(_0x40758d,_0x49c1e0){_0x40758d=_0x40758d-0x144;let _0x329924=_0x1965d1[_0x40758d];return _0x329924;},a8_0x4075(_0x4b489f,_0x3c52c6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a8_0x29e3e8(0x149),exports[a8_0x29e3e8(0x148)]=a8_0x29e3e8(0x145),exports['builder']=function(_0x2a1d3d){const _0x43f6cd=a8_0x29e3e8,_0x4df003={};_0x4df003[_0x43f6cd(0x14d)]='create_commands',_0x4df003[_0x43f6cd(0x14c)]=_0x43f6cd(0x151);const _0x1215d3=_0x4df003;return _0x2a1d3d[_0x43f6cd(0x147)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x43f6cd(0x144)](_0x1215d3[_0x43f6cd(0x14d)])[_0x43f6cd(0x14a)]()['recommendCommands']()[_0x43f6cd(0x156)]()[_0x43f6cd(0x151)](_0x1215d3[_0x43f6cd(0x14c)]);},exports[a8_0x29e3e8(0x157)]=function(_0x3bb9ed){};