/**
 * Minified by jsDelivr using Terser v5.19.2.
 * Original file: /npm/karma-ie-launcher@1.0.0/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var path=require("path"),fs=require("fs"),urlparse=require("url").parse,urlformat=require("url").format,exec=require("child_process").exec,_=require("lodash"),PROCESS_NAME="iexplore.exe";function getInternetExplorerExe(){var e=path.join("Internet Explorer",PROCESS_NAME),r=_.map(_.compact([process.env.PROGRAMW6432,process.env["PROGRAMFILES(X86)"],process.env.PROGRAMFILES]),(function(r){return path.join(r,e)}));return _.find(r,(function(e){return fs.existsSync(e)}))}function IEBrowser(e,r,t){e(this);var n=r.create("launcher"),o=t.flags||[];this._getOptions=function(e){var r=urlparse(e,!0);return function(e,r){e["x-ua-compatible"]&&(r.query["x-ua-compatible"]=e["x-ua-compatible"])}(t,r),delete r.search,e=urlformat(r),o.concat(e)};var i=this._onProcessExit;this._onProcessExit=function(e,r){!function(e,r){exec("wmic.exe Path win32_Process where \"Name='"+PROCESS_NAME+"' and CommandLine Like '%SCODEF:"+e+"%'\" call Terminate",(function(t){t?n.error("Killing extra IE process failed. "+t):n.debug("Killed extra IE process "+e),r()}))}(this._process.pid,(function(){i&&i(e,r)}))},this._getInternetExplorerExe=getInternetExplorerExe}IEBrowser.prototype={name:"IE",DEFAULT_CMD:{win32:getInternetExplorerExe()},ENV_CMD:"IE_BIN"},IEBrowser.$inject=["baseBrowserDecorator","logger","args"],module.exports={"launcher:IE":["type",IEBrowser]};
//# sourceMappingURL=/sm/1d443dc41ece68979248665faf35f1da58d6e9fa4dbd603329fac778cc3195a3.map