diff --git a/dist/index.js b/dist/index.js index ad575d2..374b6d6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1,6 @@ -module.exports=(()=>{var e={7351:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(2087));const o=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(7351);const s=r(717);const a=r(5278);const c=i(r(2087));const u=i(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;s.issueCommand("ENV",n)}else{o.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){s.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(5747));const o=n(r(2087));const s=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${s.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},1514:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(8159));function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=o.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const s=new o.ToolRunner(i,t,r);return s.exec()})}t.exec=exec},8159:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(2087));const s=i(r(8614));const a=i(r(3129));const c=i(r(5622));const u=i(r(7436));const l=i(r(1962));const f=process.platform==="win32";class ToolRunner extends s.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(f){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(o.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+o.EOL.length);i=n.indexOf(o.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+o.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const i=this._getSpawnFileName();const s=a.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));const c="";if(s.stdout){s.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const u="";if(s.stderr){s.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}s.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});s.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});s.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(u.length>0){this.emit("errline",u)}s.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends s.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},9925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8605);const i=r(7211);const o=r(6443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const f=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const p=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let o=this._prepareRequest(e,i,n);let s=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const s=u.message.headers["location"];if(!s){break}let a=new URL(s);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await u.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);u=await this.requestRaw(o,r);t--}if(f.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let o=(e,t)=>{if(!i){i=true;r(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);o(null,t)});s.on("socket",e=>{n=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}o(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){o(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const s=o.parsedUrl.protocol==="https:";o.httpModule=s?i:n;const a=s?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(o.options)})}return o}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!s){s=r(4294)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:`${a.username}:${a.password}`,host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(u){n=i?s.httpsOverHttps:s.httpsOverHttp}else{n=i?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?i.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(o)}let s;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){s=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(c)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=o.result;n(t)}else{r(o)}})}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const o=r(2357);const s=r(5747);const a=r(5622);i=s.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}t.exists=exists;function isDirectory(e,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()})}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){o.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(3129);const o=r(5622);const s=r(1669);const a=r(1962);const c=s.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const s=(yield a.exists(t))?yield a.stat(t):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield a.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=o.join(t,o.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(a.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(o.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+o.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const o of n){const n=`${e}/${o}`;const s=`${t}/${o}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,s,r,i)}else{yield copyFile(n,s,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},2473:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(5911));const s=r(2186);const a=r(2087);const c=r(3129);const u=r(5747);function _findMatch(t,r,i,c){return n(this,void 0,void 0,function*(){const n=a.platform();let u;let l;let f;for(const a of i){const i=a.version;s.debug(`check ${i} satisfies ${t}`);if(o.satisfies(i,t)&&(!r||a.stable===r)){f=a.files.find(t=>{s.debug(`${t.arch}===${c} && ${t.platform}===${n}`);let r=t.arch===c&&t.platform===n;if(r&&t.platform_version){const n=e.exports._getOsVersion();if(n===t.platform_version){r=true}else{r=o.satisfies(n,t.platform_version)}}return r});if(f){s.debug(`matched ${a.version}`);l=a;break}}}if(l&&f){u=Object.assign({},l);u.files=[f]}return u})}t._findMatch=_findMatch;function _getOsVersion(){const t=a.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&e[0].trim()==="DISTRIB_RELEASE"){r=e[1].trim();break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";let t="";if(u.existsSync(e)){t=u.readFileSync(e).toString()}return t}t._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(2186));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,function*(){let r=1;while(rsetTimeout(t,e*1e3))})}}t.RetryHelper=RetryHelper},7784:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(2186));const a=i(r(7436));const c=i(r(5747));const u=i(r(2473));const l=i(r(2087));const f=i(r(5622));const d=i(r(9925));const p=i(r(5911));const h=i(r(2413));const v=i(r(1669));const y=o(r(824));const m=r(1514);const w=r(2357);const g=r(8279);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const E=process.platform==="win32";const O=process.platform==="darwin";const _="actions/tool-cache";function downloadTool(e,t,r){return n(this,void 0,void 0,function*(){t=t||f.join(_getTempDirectory(),y.default());yield a.mkdirP(f.dirname(t));s.debug(`Downloading ${e}`);s.debug(`Destination ${t}`);const i=3;const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new g.RetryHelper(i,o,c);return yield u.execute(()=>n(this,void 0,void 0,function*(){return yield downloadToolAttempt(e,t||"",r)}),e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true})})}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r){return n(this,void 0,void 0,function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const n=new d.HttpClient(_,[],{allowRetries:false});let i;if(r){s.debug("set auth");i={authorization:r}}const o=yield n.get(e,i);if(o.message.statusCode!==200){const t=new HTTPError(o.message.statusCode);s.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`);throw t}const u=v.promisify(h.pipeline);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message);const f=l();let p=false;try{yield u(f,c.createWriteStream(t));s.debug("download complete");p=true;return t}finally{if(!p){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}})}function extract7z(e,t,r){return n(this,void 0,void 0,function*(){w.ok(E,"extract7z() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const n=process.cwd();process.chdir(t);if(r){try{const t=s.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const o={silent:true};yield m.exec(`"${r}"`,i,o)}finally{process.chdir(n)}}else{const r=f.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=`& '${r}' -Source '${i}' -Target '${o}'`;const c=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s];const u={silent:true};try{const e=yield a.which("powershell",true);yield m.exec(`"${e}"`,c,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);s.debug("Checking tar --version");let n="";yield m.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}});s.debug(n.trim());const i=n.toUpperCase().includes("GNU TAR");let o;if(r instanceof Array){o=r}else{o=[r]}if(s.isDebug()&&!r.includes("v")){o.push("-v")}let a=t;let c=e;if(E&&i){o.push("--force-local");a=t.replace(/\\/g,"/");c=e.replace(/\\/g,"/")}if(i){o.push("--warning=no-unknown-keyword")}o.push("-C",a,"-f",c);yield m.exec(`tar`,o);return t})}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,function*(){w.ok(O,"extractXar() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let n;if(r instanceof Array){n=r}else{n=[r]}n.push("-x","-C",t,"-f",e);if(s.isDebug()){n.push("-v")}const i=yield a.which("xar",true);yield m.exec(`"${i}"`,_unique(n));return t})}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(E){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const o=yield a.which("powershell",true);const s=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield m.exec(`"${o}"`,s)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield a.which("unzip",true);const n=[e];if(!s.isDebug()){n.unshift("-q")}yield m.exec(`"${r}"`,n,{cwd:t})})}function cacheDir(e,t,r,i){return n(this,void 0,void 0,function*(){r=p.clean(r)||r;i=i||l.arch();s.debug(`Caching tool ${t} ${r} ${i}`);s.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=f.join(e,t);yield a.cp(r,n,{recursive:true})}_completeToolPath(t,r,i);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,o){return n(this,void 0,void 0,function*(){i=p.clean(i)||i;o=o||l.arch();s.debug(`Caching tool ${r} ${i} ${o}`);s.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,i,o);const u=f.join(n,t);s.debug(`destination file ${u}`);yield a.cp(e,u);_completeToolPath(r,i,o);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||l.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=p.clean(t)||"";const i=f.join(_getCacheDirectory(),e,t,r);s.debug(`checking cache: ${i}`);if(c.existsSync(i)&&c.existsSync(`${i}.complete`)){s.debug(`Found tool in cache ${e} ${t} ${r}`);n=i}else{s.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||l.arch();const n=f.join(_getCacheDirectory(),e);if(c.existsSync(n)){const e=c.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=f.join(n,i,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,function*(){let n=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const a=new d.HttpClient("tool-cache");const c={};if(r){s.debug("set auth");c.authorization=r}const u=yield a.getJson(o,c);if(!u.result){return n}let l="";for(const e of u.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}c["accept"]="application/vnd.github.VERSION.raw";let f=yield(yield a.get(l,c)).readBody();if(f){f=f.replace(/^\uFEFF/,"");try{n=JSON.parse(f)}catch(e){s.debug("Invalid json")}}return n})}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=l.arch()){return n(this,void 0,void 0,function*(){const n=yield u._findMatch(e,t,r,i);return n})}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=f.join(_getTempDirectory(),y.default())}yield a.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=f.join(_getCacheDirectory(),e,p.clean(t)||t,r||"");s.debug(`destination ${n}`);const i=`${n}.complete`;yield a.rmRF(n);yield a.rmRF(i);yield a.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=f.join(_getCacheDirectory(),e,p.clean(t)||t,r||"");const i=`${n}.complete`;c.writeFileSync(i,"");s.debug("finished caching tool")}function _isExplicitVersion(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const r=p.valid(t)!=null;s.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";s.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(p.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const o=p.satisfies(i,t);if(o){r=i;break}}if(r){s.debug(`matched: ${r}`)}else{s.debug("match not found")}return r}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";w.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";w.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},3298:e=>{function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.exports=_interopRequireDefault},5639:(e,t,r)=>{"use strict";var n=r(3298);Object.defineProperty(t,"__esModule",{value:true});t.promisifyChildProcess=promisifyChildProcess;t.spawn=spawn;t.fork=fork;t.execFile=t.exec=void 0;var i=n(r(3129));function joinChunks(e,t){if(e[0]instanceof Buffer){var r=Buffer.concat(e);if(t)return r.toString(t);return r}return e.join("")}function promisifyChildProcess(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=new Promise(function(r,n){var i=t.encoding,o=t.killSignal;var s=i!=null||t.maxBuffer!=null;var a=t.maxBuffer||200*1024;var c;var u=0;var l=[];var f=[];var d=function capture(t){return function(r){var n=a-u;if(r.length>n){c=new Error("maxBuffer size exceeded");e.kill(o?o:"SIGTERM");r=r.slice(0,n)}u+=r.length;t.push(r)}};if(s){if(e.stdout)e.stdout.on("data",d(l));if(e.stderr)e.stderr.on("data",d(f))}e.on("error",n);function done(e,t){if(!c){if(e!=null&&e!==0){c=new Error("Process exited with code ".concat(e))}else if(t!=null){c=new Error("Process was killed with ".concat(t))}}function defineOutputs(e){if(s){e.stdout=joinChunks(l,i);e.stderr=joinChunks(f,i)}else{Object.defineProperties(e,{stdout:{configurable:true,enumerable:true,get:function get(){console.error(new Error("To get stdout from a spawned or forked process, set the `encoding` or `maxBuffer` option").stack.replace(/^Error/,"Warning"));return null}},stderr:{configurable:true,enumerable:true,get:function get(){console.error(new Error("To get stderr from a spawned or forked process, set the `encoding` or `maxBuffer` option").stack.replace(/^Error/,"Warning"));return null}}})}}var o={};defineOutputs(o);var a=c;if(a){a.code=e;a.signal=t;defineOutputs(a);n(a)}else{r(o)}}e.on("close",done);e.on("exit",done)});return Object.create(e,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)}})}function spawn(e,t,r){return promisifyChildProcess(i.default.spawn(e,t,r),Array.isArray(t)?r:t)}function fork(e,t,r){return promisifyChildProcess(i.default.fork(e,t,r),Array.isArray(t)?r:t)}function promisifyExecMethod(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n{"use strict";var t=String.prototype.replace;var r=/%20/g;var n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},2760:(e,t,r)=>{"use strict";var n=r(9954);var i=r(3912);var o=r(4907);e.exports={formats:o,parse:i,stringify:n}},3912:(e,t,r)=>{"use strict";var n=r(2360);var i=Object.prototype.hasOwnProperty;var o=Array.isArray;var s={allowDots:false,allowPrototypes:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})};var c=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var u="utf8=%26%2310003%3B";var l="utf8=%E2%9C%93";var f=function parseQueryStringValues(e,t){var r={};var f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var d=t.parameterLimit===Infinity?undefined:t.parameterLimit;var p=f.split(t.delimiter,d);var h=-1;var v;var y=t.charset;if(t.charsetSentinel){for(v=0;v-1){O=o(O)?[O]:O}if(i.call(r,E)){r[E]=n.combine(r[E],O)}else{r[E]=O}}return r};var d=function(e,t,r,n){var i=n?t:c(t,r);for(var o=e.length-1;o>=0;--o){var s;var a=e[o];if(a==="[]"&&r.parseArrays){s=[].concat(i)}else{s=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var l=parseInt(u,10);if(!r.parseArrays&&u===""){s={0:i}}else if(!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&(r.parseArrays&&l<=r.arrayLimit)){s=[];s[l]=i}else{s[u]=i}}i=s}return i};var p=function parseQueryStringKeys(e,t,r,n){if(!e){return}var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var s=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var c=r.depth>0&&s.exec(o);var u=c?o.slice(0,c.index):o;var l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)){if(!r.allowPrototypes){return}}l.push(u)}var f=0;while(r.depth>0&&(c=a.exec(o))!==null&&f{"use strict";var n=r(2360);var i=r(4907);var o=Object.prototype.hasOwnProperty;var s={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var a=Array.isArray;var c=Array.prototype.push;var u=function(e,t){c.apply(e,a(t)?t:[t])};var l=Date.prototype.toISOString;var f=i["default"];var d={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,format:f,formatter:i.formatters[f],indices:false,serializeDate:function serializeDate(e){return l.call(e)},skipNulls:false,strictNullHandling:false};var p=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var h=function stringify(e,t,r,i,o,s,c,l,f,h,v,y,m,w){var g=e;if(typeof c==="function"){g=c(t,g)}else if(g instanceof Date){g=h(g)}else if(r==="comma"&&a(g)){g=n.maybeMap(g,function(e){if(e instanceof Date){return h(e)}return e})}if(g===null){if(i){return s&&!m?s(t,d.encoder,w,"key",v):t}g=""}if(p(g)||n.isBuffer(g)){if(s){var E=m?t:s(t,d.encoder,w,"key",v);return[y(E)+"="+y(s(g,d.encoder,w,"value",v))]}return[y(t)+"="+y(String(g))]}var O=[];if(typeof g==="undefined"){return O}var _;if(r==="comma"&&a(g)){_=[{value:g.length>0?g.join(",")||null:undefined}]}else if(a(c)){_=c}else{var R=Object.keys(g);_=l?R.sort(l):R}for(var S=0;S<_.length;++S){var b=_[S];var x=typeof b==="object"&&b.value!==undefined?b.value:g[b];if(o&&x===null){continue}var T=a(g)?typeof r==="function"?r(t,b):t:t+(f?"."+b:"["+b+"]");u(O,stringify(x,T,r,i,o,s,c,l,f,h,v,y,m,w))}return O};var v=function normalizeStringifyOptions(e){if(!e){return d}if(e.encoder!==null&&e.encoder!==undefined&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var t=e.charset||d.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=i["default"];if(typeof e.format!=="undefined"){if(!o.call(i.formatters,e.format)){throw new TypeError("Unknown format option provided.")}r=e.format}var n=i.formatters[r];var s=d.filter;if(typeof e.filter==="function"||a(e.filter)){s=e.filter}return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:d.addQueryPrefix,allowDots:typeof e.allowDots==="undefined"?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:d.charsetSentinel,delimiter:typeof e.delimiter==="undefined"?d.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:d.encode,encoder:typeof e.encoder==="function"?e.encoder:d.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:d.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:d.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r=e;var n=v(t);var i;var o;if(typeof n.filter==="function"){o=n.filter;r=o("",r)}else if(a(n.filter)){o=n.filter;i=o}var c=[];if(typeof r!=="object"||r===null){return""}var l;if(t&&t.arrayFormat in s){l=t.arrayFormat}else if(t&&"indices"in t){l=t.indices?"indices":"repeat"}else{l="indices"}var f=s[l];if(!i){i=Object.keys(r)}if(n.sort){i.sort(n.sort)}for(var d=0;d0?m+y:""}},2360:(e,t,r)=>{"use strict";var n=r(4907);var i=Object.prototype.hasOwnProperty;var o=Array.isArray;var s=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var a=function compactQueue(e){while(e.length>1){var t=e.pop();var r=t.obj[t.prop];if(o(r)){var n=[];for(var i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(l===40||l===41)){c+=a.charAt(u);continue}if(l<128){c=c+s[l];continue}if(l<2048){c=c+(s[192|l>>6]+s[128|l&63]);continue}if(l<55296||l>=57344){c=c+(s[224|l>>12]+s[128|l>>6&63]+s[128|l&63]);continue}u+=1;l=65536+((l&1023)<<10|a.charCodeAt(u)&1023);c+=s[240|l>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|l&63]}return c};var p=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;n{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var s=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";s[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";s[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";s[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var p=0;pn){return null}var r=t.loose?s[c.LOOSE]:s[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?s[c.LOOSE]:s[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return i+s}}}return o}}t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e);var n=h.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===v){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var v={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=v}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===v||e===v){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||o&&s||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[c.COMPARATORTRIM],d);r("comparator trim",e,s[c.COMPARATORTRIM]);e=e.replace(s[c.TILDETRIM],l);e=e.replace(s[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var o=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter(function(e){return!!e.match(i)})}o=o.map(function(e){return new Comparator(e,this.options)},this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,function(t,n,i,o,s){r("tilde",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(s){r("replaceTilde pr",s);a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?s[c.CARETLOOSE]:s[c.CARET];return e.replace(n,function(t,n,i,o,s){r("caret",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,function(n,i,o,s,a,c){r("xRange",e,n,i,o,s,a,c);var u=isX(o);var l=u||isX(s);var f=l||isX(a);var d=f;if(i==="="&&d){i=""}c=t.includePrerelease?"-0":"";if(u){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&d){if(l){s=0}a=0;if(i===">"){i=">=";if(l){o=+o+1;s=0;a=0}else{s=+s+1;a=0}}else if(i==="<="){i="<";if(l){o=+o+1}else{s=+s+1}}n=i+o+"."+s+"."+a+c}else if(l){n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(f){n=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[c.STAR],"")}function hyphenReplace(e,t,r,n,i,o,s,a,c,u,l,f,d){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,o,s,a,c;switch(r){case">":i=gt;o=lte;s=lt;a=">";c=">=";break;case"<":i=lt;o=gte;s=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}f=f||e;d=d||e;if(i(e.semver,f.semver,n)){f=e}else if(s(e.semver,d.semver,n)){d=e}});if(f.operator===a||f.operator===c){return false}if((!d.operator||d.operator===a)&&o(e,d.semver)){return false}else if(d.operator===c&&s(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(s[c.COERCE])}else{var n;while((n=s[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}s[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}s[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},4294:(e,t,r)=>{e.exports=r(4219)},4219:(e,t,r)=>{"use strict";var n=r(1631);var i=r(4016);var o=r(8605);var s=r(7211);var a=r(8614);var c=r(2357);var u=r(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,i){var o=toOptions(r,n,i);for(var s=0,a=t.requests.length;s=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,o)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",i.statusCode);s.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");s.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;return t(s)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var o=e.request.getHeader("host");var s=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=i.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(7954);t.BasicCredentialHandler=n.BasicCredentialHandler;var i=r(7431);t.BearerCredentialHandler=i.BearerCredentialHandler;var o=r(4157);t.NtlmCredentialHandler=o.NtlmCredentialHandler;var s=r(7799);t.PersonalAccessTokenCredentialHandler=s.PersonalAccessTokenCredentialHandler},5538:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(8835);const o=r(8605);const s=r(7211);const a=r(9470);let c;let u;var l;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(l=t.HttpCodes||(t.HttpCodes={}));const f=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect];const d=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout];const p=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED"];const h=["OPTIONS","GET","DELETE","HEAD"];const v=10;const y=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>n(this,void 0,void 0,function*(){let r=Buffer.alloc(0);const i=a.obtainContentCharset(this);const o=this.message.headers["content-encoding"]||"";const s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",function(e){const t=typeof e==="string"?Buffer.from(e,i):e;r=Buffer.concat([r,t])}).on("end",function(){return n(this,void 0,void 0,function*(){if(s){const t=yield a.decompressGzippedContent(r,i);e(t)}else{e(r.toString(i))}})}).on("error",function(e){t(e)})}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=i.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;var m;(function(e){e["HTTP_PROXY"]="HTTP_PROXY";e["HTTPS_PROXY"]="HTTPS_PROXY";e["NO_PROXY"]="NO_PROXY"})(m||(m={}));class HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];let i=process.env[m.NO_PROXY];if(i){this._httpProxyBypassHosts=[];i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;this._httpProxy=n.proxy;if(n.proxy&&n.proxy.proxyBypassHosts){this._httpProxyBypassHosts=[];n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this._certConfig=n.cert;if(this._certConfig){c=r(5747);if(this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)){this._ca=c.readFileSync(this._certConfig.caFile,"utf8")}if(this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)){this._cert=c.readFileSync(this._certConfig.certFile,"utf8")}if(this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)){this._key=c.readFileSync(this._certConfig.keyFile,"utf8")}}if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}request(e,t,r,o){return n(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}let n=i.parse(t);let s=this._prepareRequest(e,n,o);let a=this._allowRetries&&h.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c-1){continue}throw e}if(u&&u.message&&u.message.statusCode===l.Unauthorized){let e;for(let t=0;t0){const a=u.message.headers["location"];if(!a){break}let c=i.parse(a);if(n.protocol=="https:"&&n.protocol!=c.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();s=this._prepareRequest(e,c,o);u=yield this.requestRaw(s,r);t--}if(d.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let o=(e,t)=>{if(!i){i=true;r(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);o(null,t)});s.on("socket",e=>{n=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.destroy()}o(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){o(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const a=n.parsedUrl.protocol==="https:";n.httpModule=a?s:o;const c=a?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):c;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.timeout=this.requestOptions&&this.requestOptions.socketTimeout||this._socketTimeout;this._socketTimeout=n.options.timeout;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers&&!this._isPresigned(i.format(t))){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let r=0;rObject.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getAgent(e){let t;let n=this._getProxy(e);let i=n.proxyUrl&&n.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i){t=this._proxyAgent}if(this._keepAlive&&!i){t=this._agent}if(!!t){return t}const a=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(i){if(!u){u=r(4294)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let i;const o=n.proxyUrl.protocol==="https:";if(a){i=o?u.httpsOverHttps:u.httpsOverHttp}else{i=o?u.httpOverHttps:u.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=a?s.globalAgent:o.globalAgent}if(a&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}if(a&&this._certConfig){t.options=Object.assign(t.options||{},{ca:this._ca,cert:this._cert,key:this._key,passphrase:this._certConfig.passphrase})}return t}_getProxy(e){let t=e.protocol==="https:";let r=this._httpProxy;let n=process.env[m.HTTPS_PROXY];let o=process.env[m.HTTP_PROXY];if(!r){if(n&&t){r={proxyUrl:n}}else if(o){r={proxyUrl:o}}}let s;let a;if(r){if(r.proxyUrl.length>0){s=i.parse(r.proxyUrl)}if(r.proxyUsername||r.proxyPassword){a=r.proxyUsername+":"+r.proxyPassword}}return{proxyUrl:s,proxyAuth:a}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts){return false}let t=false;this._httpProxyBypassHosts.forEach(r=>{if(r.test(e.href)){t=true}});return t}_performExponentialBackoff(e){e=Math.min(v,e);const t=y*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}t.HttpClient=HttpClient},9470:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(2760);const o=r(8835);const s=r(5622);const a=r(8761);function getUrl(e,t,r){const n=s.posix||s;let i="";if(!t){i=e}else if(!e){i=t}else{const r=o.parse(t);const s=o.parse(e);s.protocol=s.protocol||r.protocol;s.auth=s.auth||r.auth;s.host=s.host||r.host;s.pathname=n.resolve(r.pathname,s.pathname);if(!s.pathname.endsWith("/")&&e.endsWith("/")){s.pathname+="/"}i=o.format(s)}return r?getUrlWithParsedQueryParams(i,r):i}t.getUrl=getUrl;function getUrlWithParsedQueryParams(e,t){const r=e.replace(/\?$/g,"");const n=i.stringify(t.params,buildParamsStringifyOptions(t));return`${r}${n}`}function buildParamsStringifyOptions(e){let t={addQueryPrefix:true,delimiter:(e.options||{}).separator||"&",allowDots:(e.options||{}).shouldAllowDots||false,arrayFormat:(e.options||{}).arrayFormat||"repeat",encodeValuesOnly:(e.options||{}).shouldOnlyEncodeValues||true};return t}function decompressGzippedContent(e,t){return n(this,void 0,void 0,function*(){return new Promise((r,i)=>n(this,void 0,void 0,function*(){a.gunzip(e,function(e,n){if(e){i(e)}r(n.toString(t||"utf-8"))})}))})}t.decompressGzippedContent=decompressGzippedContent;function obtainContentCharset(e){const t=["ascii","utf8","utf16le","ucs2","base64","binary","hex"];const r=e.message.headers["content-type"]||"";const n=r.match(/charset=([^;,\r\n]+)/i);return n&&n[1]&&t.indexOf(n[1])!=-1?n[1]:"utf-8"}t.obtainContentCharset=obtainContentCharset},7954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t,r){this.username=e;this.password=t;this.allowCrossOriginAuthentication=r}prepareRequest(e){if(!this.origin){this.origin=e.host}if(this.origin===e.host||this.allowCrossOriginAuthentication){e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}e.headers["X-TFS-FedAuthRedirect"]="Suppress"}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler},7431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BearerCredentialHandler{constructor(e,t){this.token=e;this.allowCrossOriginAuthentication=t}prepareRequest(e){if(!this.origin){this.origin=e.host}if(this.origin===e.host||this.allowCrossOriginAuthentication){e.headers["Authorization"]=`Bearer ${this.token}`}e.headers["X-TFS-FedAuthRedirect"]="Suppress"}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler},4157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8605);const i=r(7211);const o=r(4987);const s=r(2673);class NtlmCredentialHandler{constructor(e,t,r,n){this._ntlmOptions={};this._ntlmOptions.username=e;this._ntlmOptions.password=t;this._ntlmOptions.domain=n||"";this._ntlmOptions.workstation=r||""}prepareRequest(e){if(e.agent){delete e.agent}}canHandleAuthentication(e){if(e&&e.message&&e.message.statusCode===401){const t=e.message.headers["www-authenticate"];return t&&t.split(", ").indexOf("NTLM")>=0}return false}handleAuthentication(e,t,r){return new Promise((n,i)=>{const o=function(e,t){if(e){i(e)}t.readBody().then(()=>{n(t)})};this.handleAuthenticationPrivate(e,t,r,o)})}handleAuthenticationPrivate(e,t,r,s){t.options=o.extend(t.options,{username:this._ntlmOptions.username,password:this._ntlmOptions.password,domain:this._ntlmOptions.domain,workstation:this._ntlmOptions.workstation});t.options.agent=e.isSsl?new i.Agent({keepAlive:true}):new n.Agent({keepAlive:true});let a=this;this.sendType1Message(e,t,r,function(n,i){if(n){return s(n,null,null)}i.readBody().then(()=>{setImmediate(function(){a.sendType3Message(e,t,r,i,s)})})})}sendType1Message(e,t,r,n){const i=s.encodeType1(this._ntlmOptions.workstation,this._ntlmOptions.domain);const a=`NTLM ${i.toString("base64")}`;const c={headers:{Connection:"keep-alive",Authorization:a},timeout:t.options.timeout||0,agent:t.httpModule};const u={};u.httpModule=t.httpModule;u.parsedUrl=t.parsedUrl;u.options=o.extend(c,o.omit(t.options,"headers"));return e.requestRawWithCallback(u,r,n)}sendType3Message(e,t,r,n,i){if(!n.message.headers&&!n.message.headers["www-authenticate"]){throw new Error("www-authenticate not found on response of second request")}const a=/^NTLM\s+(.+?)(,|\s+|$)/;const c=Buffer.from((n.message.headers["www-authenticate"].match(a)||[])[1],"base64");let u;try{u=s.decodeType2(c)}catch(e){throw new Error(`Decoding Server's Challenge to Obtain Type2Message failed with error: ${e.message}`)}const l=s.encodeType3(this._ntlmOptions.username,this._ntlmOptions.workstation,this._ntlmOptions.domain,u,this._ntlmOptions.password).toString("base64");const f={headers:{Authorization:`NTLM ${l}`,Connection:"Close"},agent:t.httpModule};const d={};d.httpModule=t.httpModule;d.parsedUrl=t.parsedUrl;f.headers=o.extend(f.headers,t.options.headers);d.options=o.extend(f,o.omit(t.options,"headers"));return e.requestRawWithCallback(d,r,i)}}t.NtlmCredentialHandler=NtlmCredentialHandler},7799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class PersonalAccessTokenCredentialHandler{constructor(e,t){this.token=e;this.allowCrossOriginAuthentication=t}prepareRequest(e){if(!this.origin){this.origin=e.host}if(this.origin===e.host||this.allowCrossOriginAuthentication){e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}e.headers["X-TFS-FedAuthRedirect"]="Suppress"}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},2352:(e,t,r)=>{var n=r(6417);function zeroextend(e,t){while(e.length>n&1))%2}e[t]|=r&1}return e}function expandkey(e){var t=new Buffer(8);t[0]=e[0]&254;t[1]=e[0]<<7&255|e[1]>>1;t[2]=e[1]<<6&255|e[2]>>2;t[3]=e[2]<<5&255|e[3]>>3;t[4]=e[3]<<4&255|e[4]>>4;t[5]=e[4]<<3&255|e[5]>>5;t[6]=e[5]<<2&255|e[6]>>6;t[7]=e[6]<<1&255;return t}function bintohex(e){var t=Buffer.isBuffer(t)?t:new Buffer(e,"binary");var r=t.toString("hex").toUpperCase();return zeroextend(r,32)}e.exports.zeroextend=zeroextend;e.exports.oddpar=oddpar;e.exports.expandkey=expandkey;e.exports.bintohex=bintohex},2673:(e,t,r)=>{var n=console.log;var i=r(6417);var o=r(2352);var s=r(8657).lmhashbuf;var a=r(8657).nthashbuf;function encodeType1(e,t){e=e.toUpperCase();t=t.toUpperCase();var r=Buffer.byteLength(e,"ascii");var n=Buffer.byteLength(t,"ascii");var i=0;var o=new Buffer(32+r+n);o.write("NTLMSSP",i,7,"ascii");i+=7;o.writeUInt8(0,i);i++;o.writeUInt8(1,i);i++;o.fill(0,i,i+3);i+=3;o.writeUInt16LE(45571,i);i+=2;o.fill(0,i,i+2);i+=2;o.writeUInt16LE(n,i);i+=2;o.writeUInt16LE(n,i);i+=2;var s=32+r;o.writeUInt16LE(s,i);i+=2;o.fill(0,i,i+2);i+=2;o.writeUInt16LE(r,i);i+=2;o.writeUInt16LE(r,i);i+=2;o.writeUInt16LE(32,i);i+=2;o.fill(0,i,i+2);i+=2;o.write(e,32,r,"ascii");o.write(t,s,n,"ascii");return o}function decodeType2(e){var t=e.toString("ascii",0,7);if(e[7]!==0||t!=="NTLMSSP")throw new Error("magic was not NTLMSSP");var r=e.readUInt8(8);if(r!==2)throw new Error("message was not NTLMSSP type 0x02");var n=e.slice(24,32);return n}function encodeType3(e,t,r,n,i){t=t.toUpperCase();r=r.toUpperCase();var o=new Buffer(21);s(i).copy(o);o.fill(0,16);var c=new Buffer(21);a(i).copy(c);c.fill(0,16);var u=makeResponse(o,n);var l=makeResponse(c,n);var f=Buffer.byteLength(e,"ucs2");var d=Buffer.byteLength(t,"ucs2");var p=Buffer.byteLength(r,"ucs2");var h=24;var v=24;var y=64;var m=y+p;var w=m+f;var g=w+d;var E=g+h;var O=0;var _=64+p+f+d+h+v;var R=new Buffer(_);R.write("NTLMSSP",O,7,"ascii");O+=7;R.writeUInt8(0,O);O++;R.writeUInt8(3,O);O++;R.fill(0,O,O+3);O+=3;R.writeUInt16LE(h,O);O+=2;R.writeUInt16LE(h,O);O+=2;R.writeUInt16LE(g,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(v,O);O+=2;R.writeUInt16LE(v,O);O+=2;R.writeUInt16LE(E,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(p,O);O+=2;R.writeUInt16LE(p,O);O+=2;R.writeUInt16LE(y,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(f,O);O+=2;R.writeUInt16LE(f,O);O+=2;R.writeUInt16LE(m,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(d,O);O+=2;R.writeUInt16LE(d,O);O+=2;R.writeUInt16LE(w,O);O+=2;R.fill(0,O,O+6);O+=6;R.writeUInt16LE(_,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(33281,O);O+=2;R.fill(0,O,O+2);O+=2;R.write(r,y,p,"ucs2");R.write(e,m,f,"ucs2");R.write(t,w,d,"ucs2");u.copy(R,g,0,h);l.copy(R,E,0,v);return R}function makeResponse(e,t){var r=new Buffer(24);for(var n=0;n<3;n++){var s=o.oddpar(o.expandkey(e.slice(n*7,n*7+7)));var a=i.createCipheriv("DES-ECB",s,"");var c=a.update(t.toString("binary"),"binary","binary");r.write(c,n*8,n*8+8,"binary")}return r}t.encodeType1=encodeType1;t.decodeType2=decodeType2;t.encodeType3=encodeType3;t.challengeHeader=function(e,r){return"NTLM "+t.encodeType1(e,r).toString("base64")};t.responseHeader=function(e,n,i,o,s){var a=new Buffer((e.headers["www-authenticate"].match(/^NTLM\s+(.+?)(,|\s+|$)/)||[])[1],"base64");var c=r(8835).parse(n).hostname;return"NTLM "+t.encodeType3(o,c,i,t.decodeType2(a),s).toString("base64")};t.smbhash=r(8657)},8657:(e,t,r)=>{var n=r(6417);var i=r(2352);function lmhashbuf(e){var t=e.substring(0,14).toUpperCase();var r=Buffer.byteLength(t,"ascii");var o=new Buffer(14);o.write(t,0,r,"ascii");o.fill(0,r);var s=[i.oddpar(i.expandkey(o.slice(0,7))),i.oddpar(i.expandkey(o.slice(7,14)))];var a=new Buffer(16);var c=0;var u=s.forEach(function(e){var t=n.createCipheriv("DES-ECB",e,"");var r=t.update("KGS!@#$%","binary","binary");a.write(r,c,c+8,"binary");c+=8});return a}function nthashbuf(e){var t=new Buffer(e,"ucs2");var r=n.createHash("md4");r.update(t);return new Buffer(r.digest("binary"),"binary")}function lmhash(e){return i.bintohex(lmhashbuf(e))}function nthash(e){return i.bintohex(nthashbuf(e))}e.exports.nthashbuf=nthashbuf;e.exports.lmhashbuf=lmhashbuf;e.exports.nthash=nthash;e.exports.lmhash=lmhash},4987:function(e,t){(function(){var r=this;var n=r._;var i=Array.prototype,o=Object.prototype,s=Function.prototype;var a=i.push,c=i.slice,u=o.toString,l=o.hasOwnProperty;var f=Array.isArray,d=Object.keys,p=s.bind,h=Object.create;var v=function(){};var y=function(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);this._wrapped=e};if(true){if(true&&e.exports){t=e.exports=y}t._=y}else{}y.VERSION="1.8.3";var m=function(e,t,r){if(t===void 0)return e;switch(r==null?3:r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)};case 4:return function(r,n,i,o){return e.call(t,r,n,i,o)}}return function(){return e.apply(t,arguments)}};var w=function(e,t,r){if(e==null)return y.identity;if(y.isFunction(e))return m(e,t,r);if(y.isObject(e))return y.matcher(e);return y.property(e)};y.iteratee=function(e,t){return w(e,t,Infinity)};var g=function(e,t){return function(r){var n=arguments.length;if(n<2||r==null)return r;for(var i=1;i=0&&t<=_};y.each=y.forEach=function(e,t,r){t=m(t,r);var n,i;if(S(e)){for(n=0,i=e.length;n=0&&o0?0:s-1;if(arguments.length<3){n=t[o?o[a]:a];a+=e}return iterator(t,r,n,o,a,s)}}y.reduce=y.foldl=y.inject=createReduce(1);y.reduceRight=y.foldr=createReduce(-1);y.find=y.detect=function(e,t,r){var n;if(S(e)){n=y.findIndex(e,t,r)}else{n=y.findKey(e,t,r)}if(n!==void 0&&n!==-1)return e[n]};y.filter=y.select=function(e,t,r){var n=[];t=w(t,r);y.each(e,function(e,r,i){if(t(e,r,i))n.push(e)});return n};y.reject=function(e,t,r){return y.filter(e,y.negate(w(t)),r)};y.every=y.all=function(e,t,r){t=w(t,r);var n=!S(e)&&y.keys(e),i=(n||e).length;for(var o=0;o=0};y.invoke=function(e,t){var r=c.call(arguments,2);var n=y.isFunction(t);return y.map(e,function(e){var i=n?t:e[t];return i==null?i:i.apply(e,r)})};y.pluck=function(e,t){return y.map(e,y.property(t))};y.where=function(e,t){return y.filter(e,y.matcher(t))};y.findWhere=function(e,t){return y.find(e,y.matcher(t))};y.max=function(e,t,r){var n=-Infinity,i=-Infinity,o,s;if(t==null&&e!=null){e=S(e)?e:y.values(e);for(var a=0,c=e.length;an){n=o}}}else{t=w(t,r);y.each(e,function(e,r,o){s=t(e,r,o);if(s>i||s===-Infinity&&n===-Infinity){n=e;i=s}})}return n};y.min=function(e,t,r){var n=Infinity,i=Infinity,o,s;if(t==null&&e!=null){e=S(e)?e:y.values(e);for(var a=0,c=e.length;an||r===void 0)return 1;if(r0?0:i-1;for(;o>=0&&o0){s=o>=0?o:Math.max(o+a,s)}else{a=o>=0?Math.min(o+1,a):o+a+1}}else if(r&&o&&a){o=r(n,i);return n[o]===i?o:-1}if(i!==i){o=t(c.call(n,s,a),y.isNaN);return o>=0?o+s:-1}for(o=e>0?s:a-1;o>=0&&ot){if(s){clearTimeout(s);s=null}a=u;o=e.apply(n,i);if(!s)n=i=null}else if(!s&&r.trailing!==false){s=setTimeout(c,l)}return o}};y.debounce=function(e,t,r){var n,i,o,s,a;var c=function(){var u=y.now()-s;if(u=0){n=setTimeout(c,t-u)}else{n=null;if(!r){a=e.apply(o,i);if(!n)o=i=null}}};return function(){o=this;i=arguments;s=y.now();var u=r&&!n;if(!n)n=setTimeout(c,t);if(u){a=e.apply(o,i);o=i=null}return a}};y.wrap=function(e,t){return y.partial(t,e)};y.negate=function(e){return function(){return!e.apply(this,arguments)}};y.compose=function(){var e=arguments;var t=e.length-1;return function(){var r=t;var n=e[t].apply(this,arguments);while(r--)n=e[r].call(this,n);return n}};y.after=function(e,t){return function(){if(--e<1){return t.apply(this,arguments)}}};y.before=function(e,t){var r;return function(){if(--e>0){r=t.apply(this,arguments)}if(e<=1)t=null;return r}};y.once=y.partial(y.before,2);var A=!{toString:null}.propertyIsEnumerable("toString");var C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function collectNonEnumProps(e,t){var r=C.length;var n=e.constructor;var i=y.isFunction(n)&&n.prototype||o;var s="constructor";if(y.has(e,s)&&!y.contains(t,s))t.push(s);while(r--){s=C[r];if(s in e&&e[s]!==i[s]&&!y.contains(t,s)){t.push(s)}}}y.keys=function(e){if(!y.isObject(e))return[];if(d)return d(e);var t=[];for(var r in e)if(y.has(e,r))t.push(r);if(A)collectNonEnumProps(e,t);return t};y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var r in e)t.push(r);if(A)collectNonEnumProps(e,t);return t};y.values=function(e){var t=y.keys(e);var r=t.length;var n=Array(r);for(var i=0;i":">",'"':""","'":"'","`":"`"};var P=y.invert(N);var k=function(e){var t=function(t){return e[t]};var r="(?:"+y.keys(e).join("|")+")";var n=RegExp(r);var i=RegExp(r,"g");return function(e){e=e==null?"":""+e;return n.test(e)?e.replace(i,t):e}};y.escape=k(N);y.unescape=k(P);y.result=function(e,t,r){var n=e==null?void 0:e[t];if(n===void 0){n=r}return y.isFunction(n)?n.call(e):n};var L=0;y.uniqueId=function(e){var t=++L+"";return e?e+t:t};y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/;var $={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"};var U=/\\|'|\r|\n|\u2028|\u2029/g;var F=function(e){return"\\"+$[e]};y.template=function(e,t,r){if(!t&&r)t=r;t=y.defaults({},t,y.templateSettings);var n=RegExp([(t.escape||D).source,(t.interpolate||D).source,(t.evaluate||D).source].join("|")+"|$","g");var i=0;var o="__p+='";e.replace(n,function(t,r,n,s,a){o+=e.slice(i,a).replace(U,F);i=a+t.length;if(r){o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'"}else if(n){o+="'+\n((__t=("+n+"))==null?'':__t)+\n'"}else if(s){o+="';\n"+s+"\n__p+='"}return t});o+="';\n";if(!t.variable)o="with(obj||{}){\n"+o+"}\n";o="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(t.variable||"obj","_",o)}catch(e){e.source=o;throw e}var a=function(e){return s.call(this,e,y)};var c=t.variable||"obj";a.source="function("+c+"){\n"+o+"}";return a};y.chain=function(e){var t=y(e);t._chain=true;return t};var H=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){y.each(y.functions(e),function(t){var r=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];a.apply(e,arguments);return H(this,r.apply(y,e))}})};y.mixin(y);y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];y.prototype[e]=function(){var r=this._wrapped;t.apply(r,arguments);if((e==="shift"||e==="splice")&&r.length===0)delete r[0];return H(this,r)}});y.each(["concat","join","slice"],function(e){var t=i[e];y.prototype[e]=function(){return H(this,t.apply(this._wrapped,arguments))}});y.prototype.value=function(){return this._wrapped};y.prototype.valueOf=y.prototype.toJSON=y.prototype.value;y.prototype.toString=function(){return""+this._wrapped};if(typeof define==="function"&&define.amd){define("underscore",[],function(){return y})}}).call(this)},2707:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},5859:(e,t,r)=>{var n=r(6417);e.exports=function nodeRNG(){return n.randomBytes(16)}},824:(e,t,r)=>{var n=r(5859);var i=r(2707);function v4(e,t,r){var o=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||n)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var a=0;a<16;++a){t[o+a]=s[a]}}return t||i(s)}e.exports=v4},788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.legacyDub=t.compiler=void 0;const n=r(1314);async function compiler(e,t){const r=e.match(/^(\w+)-(.+)$/);if(!r)throw new Error("invalid compiler string: "+e);switch(r[1]){case"dmd":return await dmd(r[2]);case"ldc":return await ldc(r[2],t);default:throw new Error("unrecognized compiler: "+r[1])}}t.compiler=compiler;async function legacyDub(){switch(process.platform){case"win32":return{url:"https://code.dlang.org/files/dub-1.11.0-windows-x86.zip"};case"linux":return{url:"https://code.dlang.org/files/dub-1.11.0-linux-x86_64.tar.gz"};case"darwin":return{url:"https://code.dlang.org/files/dub-1.11.0-osx-x86_64.tar.gz"};default:throw new Error("unsupported platform: "+process.platform)}}t.legacyDub=legacyDub;async function dmd(e){let t=false;switch(e){case"latest":e=await n.body_as_text("http://downloads.dlang.org/releases/LATEST");break;case"beta":e=await n.body_as_text("http://downloads.dlang.org/pre-releases/LATEST");t=true;break}const r=e.match(/^(2\.(\d+)\.\d+)(-.+)?$/);if(e!="master"&&!r)throw new Error("unrecognized DMD version: "+e);let i=t?r[1]:e;const o=e=="master"?undefined:parseInt(r[2]);let s=false;if(o!==undefined&&o<65){if(e.endsWith(".0")){e=e.slice(0,-2)}i=e.match(/^2\.\d+/)[0];s=true}const a=e=="master"?`http://downloads.dlang.org/nightlies/dmd-master/dmd.${e}`:t?`http://downloads.dlang.org/pre-releases/2.x/${i}/dmd.${e}`:`http://downloads.dlang.org/releases/2.x/${i}/dmd.${e}`;const c=o!==undefined&&o<72;switch(process.platform){case"win32":return{name:"dmd",version:e,url:s?`${a}.zip`:o!==undefined&&o<69?`${a}.windows.zip`:`${a}.windows.7z`,binpath:"\\dmd2\\windows\\bin",libpath:"\\dmd2\\windows\\lib64",download_dub:c,sig:`${a}.windows.7z.sig`};case"linux":return{name:"dmd",version:e,url:s?`${a}.zip`:o!==undefined&&o<69?`${a}.linux.zip`:`${a}.linux.tar.xz`,binpath:"/dmd2/linux/bin64",libpath:"/dmd2/linux/lib64",download_dub:c,sig:`${a}.linux.tar.xz.sig`};case"darwin":return{name:"dmd",version:e,url:s?`${a}.zip`:o!==undefined&&o<69?`${a}.osx.zip`:`${a}.osx.tar.xz`,binpath:"/dmd2/osx/bin",libpath:"/dmd2/linux/lib64",download_dub:c,sig:`${a}.osx.tar.xz.sig`};default:throw new Error("unsupported platform: "+process.platform)}}async function ldc_resolve_master(e){let t,r;switch(process.platform){case"win32":t="windows-multilib";r="7z";break;case"linux":t="linux-x86_64";r="tar.xz";break;case"darwin":t="osx-x86_64";r="tar.xz";break;default:throw new Error("unsupported platform: "+process.platform)}if(!e)throw new Error("'gh_token' parameter must be set to use ldc-master");let i=await n.body_as_text(`https://api.github.com/repos/LDC-Developers/LDC/releases/tags/CI`,e);let o=JSON.parse(i)["assets"];if(o==undefined){console.log(i);throw new Error("Couldn't load assets json")}if(o.length==0)throw new Error("No assets found for LDC CI release");o.sort(function(e,t){const r=Date.parse(e["updated_at"]);const n=Date.parse(t["updated_at"]);return r>n?-1:1});o=o.map(function(e){const t=e["name"];const r=t.match(/^ldc2?-([0-9a-fA-F]{5,12})[-.](.+)/);if(!r)throw new Error(`Unexpected naming format for the latest LDC asset: ${t}`);return{name:r[0],version:r[1],suffix:r[2]}}).filter(function(e){return e.suffix==`${t}.${r}`});const s=o[0];const a=process.platform=="win32"?`\\ldc2-${s.version}-${t}\\`:`/ldc2-${s.version}-${t}/`;return{name:"ldc2",version:s.version,url:"https://github.com/ldc-developers/ldc/releases/download/CI/"+s.name,binpath:`${a}bin`,libpath:`${a}lib64`}}async function ldc(e,t){switch(e){case"latest":e=await n.body_as_text("https://ldc-developers.github.io/LATEST");break;case"beta":e=await n.body_as_text("https://ldc-developers.github.io/LATEST_BETA");break;case"master":return await ldc_resolve_master(t)}if(!e.match(/^(\d+)\.(\d+)\.(\d+)/))throw new Error("unrecognized LDC version: "+e);const r=`https://github.com/ldc-developers/ldc/releases/download/v${e}/ldc2-${e}`;switch(process.platform){case"win32":return{name:"ldc2",version:e,url:`${r}-windows-multilib.7z`,binpath:`\\ldc2-${e}-windows-multilib\\bin`,libpath:`\\ldc2-${e}-windows-multilib\\lib64`};case"linux":return{name:"ldc2",version:e,url:`${r}-linux-x86_64.tar.xz`,binpath:`/ldc2-${e}-linux-x86_64/bin`,libpath:`/ldc2-${e}-linux-x86_64/lib64`};case"darwin":return{name:"ldc2",version:e,url:`${r}-osx-x86_64.tar.xz`,binpath:`/ldc2-${e}-osx-x86_64/bin`,libpath:`/ldc2-${e}-osx-x86_64/lib64`};default:throw new Error("unsupported platform: "+process.platform)}}},3759:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.install=t.verify=void 0;const s=o(r(7784));const a=r(5639);function win_path_to_msys(e){if(process.platform!="win32")return e;e=e.replace("\\","/");const t=e[0];e="/"+t+e.slice(2);return e}async function verify(e,t){let r=await s.downloadTool("https://dlang.org/d-keyring.gpg");r=win_path_to_msys(r);let n=await s.downloadTool(t);n=win_path_to_msys(n);const i=a.spawn("gpg",["--lock-never","--verify","--keyring",r,"--no-default-keyring",n,e],{});i.stderr.pipe(process.stdout);i.stdout.pipe(process.stdout);await i}t.verify=verify;async function install(){if(process.platform=="darwin"){const e=a.spawn("brew",["install","gnupg"],{});await e}}t.install=install},399:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});const s=o(r(2186));const a=o(r(7784));const c=o(r(3759));const u=r(788);async function run(){try{if(process.arch!="x64")throw new Error("Only x64 arch is supported by all platforms");const e=s.getInput("compiler")||"dmd-latest";const t=s.getInput("gh_token")||"";const r=await u.compiler(e,t);console.log(`Enabling ${e}`);const n=r.name+"-"+r.version+(r.download_dub?"+dub":"");let i=a.find("dc",n);if(i){console.log("Using cache")}else{console.log(`Downloading ${r.url}`);const e=await a.downloadTool(r.url);if(r.sig){console.log("Verifying the download with GPG");await c.install();await c.verify(e,r.sig)}const t=await extract(r.url,e);if(r.download_dub){const e=await u.legacyDub();const n=await a.downloadTool(e.url);await extract(e.url,n,t+r.binpath)}i=await a.cacheDir(t,"dc",n)}const o=i+r.binpath;console.log("Adding '"+o+"' to path");s.addPath(o);s.exportVariable("DC",r.name);const l=i+r.libpath;console.log("Adding '"+l+"' to library path");if(process.platform=="win32"){s.addPath(i+r.libpath)}else{s.exportVariable("LD_LIBRARY_PATH",l)}console.log("Done")}catch(e){console.log(e);s.setFailed(e.message)}}async function extract(e,t,r){if(e.endsWith(".7z"))return await a.extract7z(t,r);else if(e.endsWith(".zip"))return await a.extractZip(t,r);else if(/\.tar(\.\w+)?$/.test(e))return await a.extractTar(t,r,"x");throw new Error("unsupported archive format: "+e)}run()},1314:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.body_as_text=void 0;const s=o(r(5538));const a=r(4442);async function body_as_text(e,t=""){const r=t?[new a.BearerCredentialHandler(t)]:undefined;let n=new s.HttpClient("dlang-community/setup-dlang",r);return(await(await n.get(e)).readBody()).trim()}t.body_as_text=body_as_text},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},6417:e=>{"use strict";e.exports=require("crypto")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(399)})(); \ No newline at end of file +module.exports=(()=>{var e={7351:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(2087));const o=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(7351);const s=r(717);const a=r(5278);const c=i(r(2087));const u=i(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;s.issueCommand("ENV",n)}else{o.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){s.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(5747));const o=n(r(2087));const s=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${s.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},1514:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(8159));function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=o.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const s=new o.ToolRunner(i,t,r);return s.exec()})}t.exec=exec},8159:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(2087));const s=i(r(8614));const a=i(r(3129));const c=i(r(5622));const u=i(r(7436));const l=i(r(1962));const f=process.platform==="win32";class ToolRunner extends s.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(f){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(o.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+o.EOL.length);i=n.indexOf(o.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+o.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const i=this._getSpawnFileName();const s=a.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));const c="";if(s.stdout){s.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const u="";if(s.stderr){s.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}s.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});s.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});s.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(u.length>0){this.emit("errline",u)}s.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends s.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},9925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8605);const i=r(7211);const o=r(6443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const f=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const p=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let o=this._prepareRequest(e,i,n);let s=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const s=u.message.headers["location"];if(!s){break}let a=new URL(s);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await u.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);u=await this.requestRaw(o,r);t--}if(f.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let o=(e,t)=>{if(!i){i=true;r(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);o(null,t)});s.on("socket",e=>{n=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}o(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){o(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const s=o.parsedUrl.protocol==="https:";o.httpModule=s?i:n;const a=s?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(o.options)})}return o}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!s){s=r(4294)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:`${a.username}:${a.password}`,host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(u){n=i?s.httpsOverHttps:s.httpsOverHttp}else{n=i?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?i.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(o)}let s;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){s=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(c)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=o.result;n(t)}else{r(o)}})}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const o=r(2357);const s=r(5747);const a=r(5622);i=s.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}t.exists=exists;function isDirectory(e,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()})}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){o.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(3129);const o=r(5622);const s=r(1669);const a=r(1962);const c=s.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const s=(yield a.exists(t))?yield a.stat(t):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield a.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=o.join(t,o.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(a.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(o.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+o.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const o of n){const n=`${e}/${o}`;const s=`${t}/${o}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,s,r,i)}else{yield copyFile(n,s,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},2473:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(5911));const s=r(2186);const a=r(2087);const c=r(3129);const u=r(5747);function _findMatch(t,r,i,c){return n(this,void 0,void 0,function*(){const n=a.platform();let u;let l;let f;for(const a of i){const i=a.version;s.debug(`check ${i} satisfies ${t}`);if(o.satisfies(i,t)&&(!r||a.stable===r)){f=a.files.find(t=>{s.debug(`${t.arch}===${c} && ${t.platform}===${n}`);let r=t.arch===c&&t.platform===n;if(r&&t.platform_version){const n=e.exports._getOsVersion();if(n===t.platform_version){r=true}else{r=o.satisfies(n,t.platform_version)}}return r});if(f){s.debug(`matched ${a.version}`);l=a;break}}}if(l&&f){u=Object.assign({},l);u.files=[f]}return u})}t._findMatch=_findMatch;function _getOsVersion(){const t=a.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&e[0].trim()==="DISTRIB_RELEASE"){r=e[1].trim();break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";let t="";if(u.existsSync(e)){t=u.readFileSync(e).toString()}return t}t._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(2186));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,function*(){let r=1;while(rsetTimeout(t,e*1e3))})}}t.RetryHelper=RetryHelper},7784:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(2186));const a=i(r(7436));const c=i(r(5747));const u=i(r(2473));const l=i(r(2087));const f=i(r(5622));const d=i(r(9925));const p=i(r(5911));const h=i(r(2413));const v=i(r(1669));const y=o(r(824));const m=r(1514);const w=r(2357);const g=r(8279);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const E=process.platform==="win32";const O=process.platform==="darwin";const _="actions/tool-cache";function downloadTool(e,t,r){return n(this,void 0,void 0,function*(){t=t||f.join(_getTempDirectory(),y.default());yield a.mkdirP(f.dirname(t));s.debug(`Downloading ${e}`);s.debug(`Destination ${t}`);const i=3;const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new g.RetryHelper(i,o,c);return yield u.execute(()=>n(this,void 0,void 0,function*(){return yield downloadToolAttempt(e,t||"",r)}),e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true})})}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r){return n(this,void 0,void 0,function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const n=new d.HttpClient(_,[],{allowRetries:false});let i;if(r){s.debug("set auth");i={authorization:r}}const o=yield n.get(e,i);if(o.message.statusCode!==200){const t=new HTTPError(o.message.statusCode);s.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`);throw t}const u=v.promisify(h.pipeline);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message);const f=l();let p=false;try{yield u(f,c.createWriteStream(t));s.debug("download complete");p=true;return t}finally{if(!p){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}})}function extract7z(e,t,r){return n(this,void 0,void 0,function*(){w.ok(E,"extract7z() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const n=process.cwd();process.chdir(t);if(r){try{const t=s.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const o={silent:true};yield m.exec(`"${r}"`,i,o)}finally{process.chdir(n)}}else{const r=f.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=`& '${r}' -Source '${i}' -Target '${o}'`;const c=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s];const u={silent:true};try{const e=yield a.which("powershell",true);yield m.exec(`"${e}"`,c,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);s.debug("Checking tar --version");let n="";yield m.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}});s.debug(n.trim());const i=n.toUpperCase().includes("GNU TAR");let o;if(r instanceof Array){o=r}else{o=[r]}if(s.isDebug()&&!r.includes("v")){o.push("-v")}let a=t;let c=e;if(E&&i){o.push("--force-local");a=t.replace(/\\/g,"/");c=e.replace(/\\/g,"/")}if(i){o.push("--warning=no-unknown-keyword")}o.push("-C",a,"-f",c);yield m.exec(`tar`,o);return t})}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,function*(){w.ok(O,"extractXar() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let n;if(r instanceof Array){n=r}else{n=[r]}n.push("-x","-C",t,"-f",e);if(s.isDebug()){n.push("-v")}const i=yield a.which("xar",true);yield m.exec(`"${i}"`,_unique(n));return t})}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(E){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const o=yield a.which("powershell",true);const s=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield m.exec(`"${o}"`,s)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield a.which("unzip",true);const n=[e];if(!s.isDebug()){n.unshift("-q")}yield m.exec(`"${r}"`,n,{cwd:t})})}function cacheDir(e,t,r,i){return n(this,void 0,void 0,function*(){r=p.clean(r)||r;i=i||l.arch();s.debug(`Caching tool ${t} ${r} ${i}`);s.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=f.join(e,t);yield a.cp(r,n,{recursive:true})}_completeToolPath(t,r,i);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,o){return n(this,void 0,void 0,function*(){i=p.clean(i)||i;o=o||l.arch();s.debug(`Caching tool ${r} ${i} ${o}`);s.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,i,o);const u=f.join(n,t);s.debug(`destination file ${u}`);yield a.cp(e,u);_completeToolPath(r,i,o);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||l.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=p.clean(t)||"";const i=f.join(_getCacheDirectory(),e,t,r);s.debug(`checking cache: ${i}`);if(c.existsSync(i)&&c.existsSync(`${i}.complete`)){s.debug(`Found tool in cache ${e} ${t} ${r}`);n=i}else{s.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||l.arch();const n=f.join(_getCacheDirectory(),e);if(c.existsSync(n)){const e=c.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=f.join(n,i,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,function*(){let n=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const a=new d.HttpClient("tool-cache");const c={};if(r){s.debug("set auth");c.authorization=r}const u=yield a.getJson(o,c);if(!u.result){return n}let l="";for(const e of u.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}c["accept"]="application/vnd.github.VERSION.raw";let f=yield(yield a.get(l,c)).readBody();if(f){f=f.replace(/^\uFEFF/,"");try{n=JSON.parse(f)}catch(e){s.debug("Invalid json")}}return n})}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=l.arch()){return n(this,void 0,void 0,function*(){const n=yield u._findMatch(e,t,r,i);return n})}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=f.join(_getTempDirectory(),y.default())}yield a.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=f.join(_getCacheDirectory(),e,p.clean(t)||t,r||"");s.debug(`destination ${n}`);const i=`${n}.complete`;yield a.rmRF(n);yield a.rmRF(i);yield a.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=f.join(_getCacheDirectory(),e,p.clean(t)||t,r||"");const i=`${n}.complete`;c.writeFileSync(i,"");s.debug("finished caching tool")}function _isExplicitVersion(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const r=p.valid(t)!=null;s.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";s.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(p.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const o=p.satisfies(i,t);if(o){r=i;break}}if(r){s.debug(`matched: ${r}`)}else{s.debug("match not found")}return r}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";w.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";w.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},3298:e=>{function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.exports=_interopRequireDefault},5639:(e,t,r)=>{"use strict";var n=r(3298);Object.defineProperty(t,"__esModule",{value:true});t.promisifyChildProcess=promisifyChildProcess;t.spawn=spawn;t.fork=fork;t.execFile=t.exec=void 0;var i=n(r(3129));function joinChunks(e,t){if(e[0]instanceof Buffer){var r=Buffer.concat(e);if(t)return r.toString(t);return r}return e.join("")}function promisifyChildProcess(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=new Promise(function(r,n){var i=t.encoding,o=t.killSignal;var s=i!=null||t.maxBuffer!=null;var a=t.maxBuffer||200*1024;var c;var u=0;var l=[];var f=[];var d=function capture(t){return function(r){var n=a-u;if(r.length>n){c=new Error("maxBuffer size exceeded");e.kill(o?o:"SIGTERM");r=r.slice(0,n)}u+=r.length;t.push(r)}};if(s){if(e.stdout)e.stdout.on("data",d(l));if(e.stderr)e.stderr.on("data",d(f))}e.on("error",n);function done(e,t){if(!c){if(e!=null&&e!==0){c=new Error("Process exited with code ".concat(e))}else if(t!=null){c=new Error("Process was killed with ".concat(t))}}function defineOutputs(e){if(s){e.stdout=joinChunks(l,i);e.stderr=joinChunks(f,i)}else{Object.defineProperties(e,{stdout:{configurable:true,enumerable:true,get:function get(){console.error(new Error("To get stdout from a spawned or forked process, set the `encoding` or `maxBuffer` option").stack.replace(/^Error/,"Warning"));return null}},stderr:{configurable:true,enumerable:true,get:function get(){console.error(new Error("To get stderr from a spawned or forked process, set the `encoding` or `maxBuffer` option").stack.replace(/^Error/,"Warning"));return null}}})}}var o={};defineOutputs(o);var a=c;if(a){a.code=e;a.signal=t;defineOutputs(a);n(a)}else{r(o)}}e.on("close",done);e.on("exit",done)});return Object.create(e,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)}})}function spawn(e,t,r){return promisifyChildProcess(i.default.spawn(e,t,r),Array.isArray(t)?r:t)}function fork(e,t,r){return promisifyChildProcess(i.default.fork(e,t,r),Array.isArray(t)?r:t)}function promisifyExecMethod(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n{"use strict";var t=String.prototype.replace;var r=/%20/g;var n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},2760:(e,t,r)=>{"use strict";var n=r(9954);var i=r(3912);var o=r(4907);e.exports={formats:o,parse:i,stringify:n}},3912:(e,t,r)=>{"use strict";var n=r(2360);var i=Object.prototype.hasOwnProperty;var o=Array.isArray;var s={allowDots:false,allowPrototypes:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})};var c=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var u="utf8=%26%2310003%3B";var l="utf8=%E2%9C%93";var f=function parseQueryStringValues(e,t){var r={};var f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var d=t.parameterLimit===Infinity?undefined:t.parameterLimit;var p=f.split(t.delimiter,d);var h=-1;var v;var y=t.charset;if(t.charsetSentinel){for(v=0;v-1){O=o(O)?[O]:O}if(i.call(r,E)){r[E]=n.combine(r[E],O)}else{r[E]=O}}return r};var d=function(e,t,r,n){var i=n?t:c(t,r);for(var o=e.length-1;o>=0;--o){var s;var a=e[o];if(a==="[]"&&r.parseArrays){s=[].concat(i)}else{s=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var l=parseInt(u,10);if(!r.parseArrays&&u===""){s={0:i}}else if(!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&(r.parseArrays&&l<=r.arrayLimit)){s=[];s[l]=i}else{s[u]=i}}i=s}return i};var p=function parseQueryStringKeys(e,t,r,n){if(!e){return}var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var s=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var c=r.depth>0&&s.exec(o);var u=c?o.slice(0,c.index):o;var l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)){if(!r.allowPrototypes){return}}l.push(u)}var f=0;while(r.depth>0&&(c=a.exec(o))!==null&&f{"use strict";var n=r(2360);var i=r(4907);var o=Object.prototype.hasOwnProperty;var s={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var a=Array.isArray;var c=Array.prototype.push;var u=function(e,t){c.apply(e,a(t)?t:[t])};var l=Date.prototype.toISOString;var f=i["default"];var d={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,format:f,formatter:i.formatters[f],indices:false,serializeDate:function serializeDate(e){return l.call(e)},skipNulls:false,strictNullHandling:false};var p=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var h=function stringify(e,t,r,i,o,s,c,l,f,h,v,y,m,w){var g=e;if(typeof c==="function"){g=c(t,g)}else if(g instanceof Date){g=h(g)}else if(r==="comma"&&a(g)){g=n.maybeMap(g,function(e){if(e instanceof Date){return h(e)}return e})}if(g===null){if(i){return s&&!m?s(t,d.encoder,w,"key",v):t}g=""}if(p(g)||n.isBuffer(g)){if(s){var E=m?t:s(t,d.encoder,w,"key",v);return[y(E)+"="+y(s(g,d.encoder,w,"value",v))]}return[y(t)+"="+y(String(g))]}var O=[];if(typeof g==="undefined"){return O}var _;if(r==="comma"&&a(g)){_=[{value:g.length>0?g.join(",")||null:undefined}]}else if(a(c)){_=c}else{var R=Object.keys(g);_=l?R.sort(l):R}for(var S=0;S<_.length;++S){var b=_[S];var x=typeof b==="object"&&b.value!==undefined?b.value:g[b];if(o&&x===null){continue}var T=a(g)?typeof r==="function"?r(t,b):t:t+(f?"."+b:"["+b+"]");u(O,stringify(x,T,r,i,o,s,c,l,f,h,v,y,m,w))}return O};var v=function normalizeStringifyOptions(e){if(!e){return d}if(e.encoder!==null&&e.encoder!==undefined&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var t=e.charset||d.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=i["default"];if(typeof e.format!=="undefined"){if(!o.call(i.formatters,e.format)){throw new TypeError("Unknown format option provided.")}r=e.format}var n=i.formatters[r];var s=d.filter;if(typeof e.filter==="function"||a(e.filter)){s=e.filter}return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:d.addQueryPrefix,allowDots:typeof e.allowDots==="undefined"?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:d.charsetSentinel,delimiter:typeof e.delimiter==="undefined"?d.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:d.encode,encoder:typeof e.encoder==="function"?e.encoder:d.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:d.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:d.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r=e;var n=v(t);var i;var o;if(typeof n.filter==="function"){o=n.filter;r=o("",r)}else if(a(n.filter)){o=n.filter;i=o}var c=[];if(typeof r!=="object"||r===null){return""}var l;if(t&&t.arrayFormat in s){l=t.arrayFormat}else if(t&&"indices"in t){l=t.indices?"indices":"repeat"}else{l="indices"}var f=s[l];if(!i){i=Object.keys(r)}if(n.sort){i.sort(n.sort)}for(var d=0;d0?m+y:""}},2360:(e,t,r)=>{"use strict";var n=r(4907);var i=Object.prototype.hasOwnProperty;var o=Array.isArray;var s=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var a=function compactQueue(e){while(e.length>1){var t=e.pop();var r=t.obj[t.prop];if(o(r)){var n=[];for(var i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(l===40||l===41)){c+=a.charAt(u);continue}if(l<128){c=c+s[l];continue}if(l<2048){c=c+(s[192|l>>6]+s[128|l&63]);continue}if(l<55296||l>=57344){c=c+(s[224|l>>12]+s[128|l>>6&63]+s[128|l&63]);continue}u+=1;l=65536+((l&1023)<<10|a.charCodeAt(u)&1023);c+=s[240|l>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|l&63]}return c};var p=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;n{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var s=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";s[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";s[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";s[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var p=0;pn){return null}var r=t.loose?s[c.LOOSE]:s[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?s[c.LOOSE]:s[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return i+s}}}return o}}t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e);var n=h.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===v){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var v={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=v}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===v||e===v){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||o&&s||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[c.COMPARATORTRIM],d);r("comparator trim",e,s[c.COMPARATORTRIM]);e=e.replace(s[c.TILDETRIM],l);e=e.replace(s[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var o=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter(function(e){return!!e.match(i)})}o=o.map(function(e){return new Comparator(e,this.options)},this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,function(t,n,i,o,s){r("tilde",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(s){r("replaceTilde pr",s);a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?s[c.CARETLOOSE]:s[c.CARET];return e.replace(n,function(t,n,i,o,s){r("caret",e,t,n,i,o,s);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(o)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1)}else{a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,function(n,i,o,s,a,c){r("xRange",e,n,i,o,s,a,c);var u=isX(o);var l=u||isX(s);var f=l||isX(a);var d=f;if(i==="="&&d){i=""}c=t.includePrerelease?"-0":"";if(u){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&d){if(l){s=0}a=0;if(i===">"){i=">=";if(l){o=+o+1;s=0;a=0}else{s=+s+1;a=0}}else if(i==="<="){i="<";if(l){o=+o+1}else{s=+s+1}}n=i+o+"."+s+"."+a+c}else if(l){n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(f){n=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[c.STAR],"")}function hyphenReplace(e,t,r,n,i,o,s,a,c,u,l,f,d){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,o,s,a,c;switch(r){case">":i=gt;o=lte;s=lt;a=">";c=">=";break;case"<":i=lt;o=gte;s=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}f=f||e;d=d||e;if(i(e.semver,f.semver,n)){f=e}else if(s(e.semver,d.semver,n)){d=e}});if(f.operator===a||f.operator===c){return false}if((!d.operator||d.operator===a)&&o(e,d.semver)){return false}else if(d.operator===c&&s(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(s[c.COERCE])}else{var n;while((n=s[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}s[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}s[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},4294:(e,t,r)=>{e.exports=r(4219)},4219:(e,t,r)=>{"use strict";var n=r(1631);var i=r(4016);var o=r(8605);var s=r(7211);var a=r(8614);var c=r(2357);var u=r(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,i){var o=toOptions(r,n,i);for(var s=0,a=t.requests.length;s=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,o)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",i.statusCode);s.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");s.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;return t(s)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var o=e.request.getHeader("host");var s=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=i.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(7954);t.BasicCredentialHandler=n.BasicCredentialHandler;var i=r(7431);t.BearerCredentialHandler=i.BearerCredentialHandler;var o=r(4157);t.NtlmCredentialHandler=o.NtlmCredentialHandler;var s=r(7799);t.PersonalAccessTokenCredentialHandler=s.PersonalAccessTokenCredentialHandler},5538:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(8835);const o=r(8605);const s=r(7211);const a=r(9470);let c;let u;var l;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(l=t.HttpCodes||(t.HttpCodes={}));const f=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect];const d=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout];const p=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED"];const h=["OPTIONS","GET","DELETE","HEAD"];const v=10;const y=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>n(this,void 0,void 0,function*(){let r=Buffer.alloc(0);const i=a.obtainContentCharset(this);const o=this.message.headers["content-encoding"]||"";const s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",function(e){const t=typeof e==="string"?Buffer.from(e,i):e;r=Buffer.concat([r,t])}).on("end",function(){return n(this,void 0,void 0,function*(){if(s){const t=yield a.decompressGzippedContent(r,i);e(t)}else{e(r.toString(i))}})}).on("error",function(e){t(e)})}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=i.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;var m;(function(e){e["HTTP_PROXY"]="HTTP_PROXY";e["HTTPS_PROXY"]="HTTPS_PROXY";e["NO_PROXY"]="NO_PROXY"})(m||(m={}));class HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];let i=process.env[m.NO_PROXY];if(i){this._httpProxyBypassHosts=[];i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;this._httpProxy=n.proxy;if(n.proxy&&n.proxy.proxyBypassHosts){this._httpProxyBypassHosts=[];n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})}this._certConfig=n.cert;if(this._certConfig){c=r(5747);if(this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)){this._ca=c.readFileSync(this._certConfig.caFile,"utf8")}if(this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)){this._cert=c.readFileSync(this._certConfig.certFile,"utf8")}if(this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)){this._key=c.readFileSync(this._certConfig.keyFile,"utf8")}}if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}request(e,t,r,o){return n(this,void 0,void 0,function*(){if(this._disposed){throw new Error("Client has already been disposed.")}let n=i.parse(t);let s=this._prepareRequest(e,n,o);let a=this._allowRetries&&h.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c-1){continue}throw e}if(u&&u.message&&u.message.statusCode===l.Unauthorized){let e;for(let t=0;t0){const a=u.message.headers["location"];if(!a){break}let c=i.parse(a);if(n.protocol=="https:"&&n.protocol!=c.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();s=this._prepareRequest(e,c,o);u=yield this.requestRaw(s,r);t--}if(d.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let o=(e,t)=>{if(!i){i=true;r(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);o(null,t)});s.on("socket",e=>{n=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.destroy()}o(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){o(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const a=n.parsedUrl.protocol==="https:";n.httpModule=a?s:o;const c=a?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):c;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.timeout=this.requestOptions&&this.requestOptions.socketTimeout||this._socketTimeout;this._socketTimeout=n.options.timeout;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers&&!this._isPresigned(i.format(t))){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let r=0;rObject.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getAgent(e){let t;let n=this._getProxy(e);let i=n.proxyUrl&&n.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i){t=this._proxyAgent}if(this._keepAlive&&!i){t=this._agent}if(!!t){return t}const a=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(i){if(!u){u=r(4294)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let i;const o=n.proxyUrl.protocol==="https:";if(a){i=o?u.httpsOverHttps:u.httpsOverHttp}else{i=o?u.httpOverHttps:u.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=a?s.globalAgent:o.globalAgent}if(a&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}if(a&&this._certConfig){t.options=Object.assign(t.options||{},{ca:this._ca,cert:this._cert,key:this._key,passphrase:this._certConfig.passphrase})}return t}_getProxy(e){let t=e.protocol==="https:";let r=this._httpProxy;let n=process.env[m.HTTPS_PROXY];let o=process.env[m.HTTP_PROXY];if(!r){if(n&&t){r={proxyUrl:n}}else if(o){r={proxyUrl:o}}}let s;let a;if(r){if(r.proxyUrl.length>0){s=i.parse(r.proxyUrl)}if(r.proxyUsername||r.proxyPassword){a=r.proxyUsername+":"+r.proxyPassword}}return{proxyUrl:s,proxyAuth:a}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts){return false}let t=false;this._httpProxyBypassHosts.forEach(r=>{if(r.test(e.href)){t=true}});return t}_performExponentialBackoff(e){e=Math.min(v,e);const t=y*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}t.HttpClient=HttpClient},9470:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(2760);const o=r(8835);const s=r(5622);const a=r(8761);function getUrl(e,t,r){const n=s.posix||s;let i="";if(!t){i=e}else if(!e){i=t}else{const r=o.parse(t);const s=o.parse(e);s.protocol=s.protocol||r.protocol;s.auth=s.auth||r.auth;s.host=s.host||r.host;s.pathname=n.resolve(r.pathname,s.pathname);if(!s.pathname.endsWith("/")&&e.endsWith("/")){s.pathname+="/"}i=o.format(s)}return r?getUrlWithParsedQueryParams(i,r):i}t.getUrl=getUrl;function getUrlWithParsedQueryParams(e,t){const r=e.replace(/\?$/g,"");const n=i.stringify(t.params,buildParamsStringifyOptions(t));return`${r}${n}`}function buildParamsStringifyOptions(e){let t={addQueryPrefix:true,delimiter:(e.options||{}).separator||"&",allowDots:(e.options||{}).shouldAllowDots||false,arrayFormat:(e.options||{}).arrayFormat||"repeat",encodeValuesOnly:(e.options||{}).shouldOnlyEncodeValues||true};return t}function decompressGzippedContent(e,t){return n(this,void 0,void 0,function*(){return new Promise((r,i)=>n(this,void 0,void 0,function*(){a.gunzip(e,function(e,n){if(e){i(e)}r(n.toString(t||"utf-8"))})}))})}t.decompressGzippedContent=decompressGzippedContent;function obtainContentCharset(e){const t=["ascii","utf8","utf16le","ucs2","base64","binary","hex"];const r=e.message.headers["content-type"]||"";const n=r.match(/charset=([^;,\r\n]+)/i);return n&&n[1]&&t.indexOf(n[1])!=-1?n[1]:"utf-8"}t.obtainContentCharset=obtainContentCharset},7954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t,r){this.username=e;this.password=t;this.allowCrossOriginAuthentication=r}prepareRequest(e){if(!this.origin){this.origin=e.host}if(this.origin===e.host||this.allowCrossOriginAuthentication){e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}e.headers["X-TFS-FedAuthRedirect"]="Suppress"}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler},7431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BearerCredentialHandler{constructor(e,t){this.token=e;this.allowCrossOriginAuthentication=t}prepareRequest(e){if(!this.origin){this.origin=e.host}if(this.origin===e.host||this.allowCrossOriginAuthentication){e.headers["Authorization"]=`Bearer ${this.token}`}e.headers["X-TFS-FedAuthRedirect"]="Suppress"}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler},4157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8605);const i=r(7211);const o=r(4987);const s=r(2673);class NtlmCredentialHandler{constructor(e,t,r,n){this._ntlmOptions={};this._ntlmOptions.username=e;this._ntlmOptions.password=t;this._ntlmOptions.domain=n||"";this._ntlmOptions.workstation=r||""}prepareRequest(e){if(e.agent){delete e.agent}}canHandleAuthentication(e){if(e&&e.message&&e.message.statusCode===401){const t=e.message.headers["www-authenticate"];return t&&t.split(", ").indexOf("NTLM")>=0}return false}handleAuthentication(e,t,r){return new Promise((n,i)=>{const o=function(e,t){if(e){i(e)}t.readBody().then(()=>{n(t)})};this.handleAuthenticationPrivate(e,t,r,o)})}handleAuthenticationPrivate(e,t,r,s){t.options=o.extend(t.options,{username:this._ntlmOptions.username,password:this._ntlmOptions.password,domain:this._ntlmOptions.domain,workstation:this._ntlmOptions.workstation});t.options.agent=e.isSsl?new i.Agent({keepAlive:true}):new n.Agent({keepAlive:true});let a=this;this.sendType1Message(e,t,r,function(n,i){if(n){return s(n,null,null)}i.readBody().then(()=>{setImmediate(function(){a.sendType3Message(e,t,r,i,s)})})})}sendType1Message(e,t,r,n){const i=s.encodeType1(this._ntlmOptions.workstation,this._ntlmOptions.domain);const a=`NTLM ${i.toString("base64")}`;const c={headers:{Connection:"keep-alive",Authorization:a},timeout:t.options.timeout||0,agent:t.httpModule};const u={};u.httpModule=t.httpModule;u.parsedUrl=t.parsedUrl;u.options=o.extend(c,o.omit(t.options,"headers"));return e.requestRawWithCallback(u,r,n)}sendType3Message(e,t,r,n,i){if(!n.message.headers&&!n.message.headers["www-authenticate"]){throw new Error("www-authenticate not found on response of second request")}const a=/^NTLM\s+(.+?)(,|\s+|$)/;const c=Buffer.from((n.message.headers["www-authenticate"].match(a)||[])[1],"base64");let u;try{u=s.decodeType2(c)}catch(e){throw new Error(`Decoding Server's Challenge to Obtain Type2Message failed with error: ${e.message}`)}const l=s.encodeType3(this._ntlmOptions.username,this._ntlmOptions.workstation,this._ntlmOptions.domain,u,this._ntlmOptions.password).toString("base64");const f={headers:{Authorization:`NTLM ${l}`,Connection:"Close"},agent:t.httpModule};const d={};d.httpModule=t.httpModule;d.parsedUrl=t.parsedUrl;f.headers=o.extend(f.headers,t.options.headers);d.options=o.extend(f,o.omit(t.options,"headers"));return e.requestRawWithCallback(d,r,i)}}t.NtlmCredentialHandler=NtlmCredentialHandler},7799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class PersonalAccessTokenCredentialHandler{constructor(e,t){this.token=e;this.allowCrossOriginAuthentication=t}prepareRequest(e){if(!this.origin){this.origin=e.host}if(this.origin===e.host||this.allowCrossOriginAuthentication){e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}e.headers["X-TFS-FedAuthRedirect"]="Suppress"}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},2352:(e,t,r)=>{var n=r(6417);function zeroextend(e,t){while(e.length>n&1))%2}e[t]|=r&1}return e}function expandkey(e){var t=new Buffer(8);t[0]=e[0]&254;t[1]=e[0]<<7&255|e[1]>>1;t[2]=e[1]<<6&255|e[2]>>2;t[3]=e[2]<<5&255|e[3]>>3;t[4]=e[3]<<4&255|e[4]>>4;t[5]=e[4]<<3&255|e[5]>>5;t[6]=e[5]<<2&255|e[6]>>6;t[7]=e[6]<<1&255;return t}function bintohex(e){var t=Buffer.isBuffer(t)?t:new Buffer(e,"binary");var r=t.toString("hex").toUpperCase();return zeroextend(r,32)}e.exports.zeroextend=zeroextend;e.exports.oddpar=oddpar;e.exports.expandkey=expandkey;e.exports.bintohex=bintohex},2673:(e,t,r)=>{var n=console.log;var i=r(6417);var o=r(2352);var s=r(8657).lmhashbuf;var a=r(8657).nthashbuf;function encodeType1(e,t){e=e.toUpperCase();t=t.toUpperCase();var r=Buffer.byteLength(e,"ascii");var n=Buffer.byteLength(t,"ascii");var i=0;var o=new Buffer(32+r+n);o.write("NTLMSSP",i,7,"ascii");i+=7;o.writeUInt8(0,i);i++;o.writeUInt8(1,i);i++;o.fill(0,i,i+3);i+=3;o.writeUInt16LE(45571,i);i+=2;o.fill(0,i,i+2);i+=2;o.writeUInt16LE(n,i);i+=2;o.writeUInt16LE(n,i);i+=2;var s=32+r;o.writeUInt16LE(s,i);i+=2;o.fill(0,i,i+2);i+=2;o.writeUInt16LE(r,i);i+=2;o.writeUInt16LE(r,i);i+=2;o.writeUInt16LE(32,i);i+=2;o.fill(0,i,i+2);i+=2;o.write(e,32,r,"ascii");o.write(t,s,n,"ascii");return o}function decodeType2(e){var t=e.toString("ascii",0,7);if(e[7]!==0||t!=="NTLMSSP")throw new Error("magic was not NTLMSSP");var r=e.readUInt8(8);if(r!==2)throw new Error("message was not NTLMSSP type 0x02");var n=e.slice(24,32);return n}function encodeType3(e,t,r,n,i){t=t.toUpperCase();r=r.toUpperCase();var o=new Buffer(21);s(i).copy(o);o.fill(0,16);var c=new Buffer(21);a(i).copy(c);c.fill(0,16);var u=makeResponse(o,n);var l=makeResponse(c,n);var f=Buffer.byteLength(e,"ucs2");var d=Buffer.byteLength(t,"ucs2");var p=Buffer.byteLength(r,"ucs2");var h=24;var v=24;var y=64;var m=y+p;var w=m+f;var g=w+d;var E=g+h;var O=0;var _=64+p+f+d+h+v;var R=new Buffer(_);R.write("NTLMSSP",O,7,"ascii");O+=7;R.writeUInt8(0,O);O++;R.writeUInt8(3,O);O++;R.fill(0,O,O+3);O+=3;R.writeUInt16LE(h,O);O+=2;R.writeUInt16LE(h,O);O+=2;R.writeUInt16LE(g,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(v,O);O+=2;R.writeUInt16LE(v,O);O+=2;R.writeUInt16LE(E,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(p,O);O+=2;R.writeUInt16LE(p,O);O+=2;R.writeUInt16LE(y,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(f,O);O+=2;R.writeUInt16LE(f,O);O+=2;R.writeUInt16LE(m,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(d,O);O+=2;R.writeUInt16LE(d,O);O+=2;R.writeUInt16LE(w,O);O+=2;R.fill(0,O,O+6);O+=6;R.writeUInt16LE(_,O);O+=2;R.fill(0,O,O+2);O+=2;R.writeUInt16LE(33281,O);O+=2;R.fill(0,O,O+2);O+=2;R.write(r,y,p,"ucs2");R.write(e,m,f,"ucs2");R.write(t,w,d,"ucs2");u.copy(R,g,0,h);l.copy(R,E,0,v);return R}function makeResponse(e,t){var r=new Buffer(24);for(var n=0;n<3;n++){var s=o.oddpar(o.expandkey(e.slice(n*7,n*7+7)));var a=i.createCipheriv("DES-ECB",s,"");var c=a.update(t.toString("binary"),"binary","binary");r.write(c,n*8,n*8+8,"binary")}return r}t.encodeType1=encodeType1;t.decodeType2=decodeType2;t.encodeType3=encodeType3;t.challengeHeader=function(e,r){return"NTLM "+t.encodeType1(e,r).toString("base64")};t.responseHeader=function(e,n,i,o,s){var a=new Buffer((e.headers["www-authenticate"].match(/^NTLM\s+(.+?)(,|\s+|$)/)||[])[1],"base64");var c=r(8835).parse(n).hostname;return"NTLM "+t.encodeType3(o,c,i,t.decodeType2(a),s).toString("base64")};t.smbhash=r(8657)},8657:(e,t,r)=>{var n=r(6417);var i=r(2352);function lmhashbuf(e){var t=e.substring(0,14).toUpperCase();var r=Buffer.byteLength(t,"ascii");var o=new Buffer(14);o.write(t,0,r,"ascii");o.fill(0,r);var s=[i.oddpar(i.expandkey(o.slice(0,7))),i.oddpar(i.expandkey(o.slice(7,14)))];var a=new Buffer(16);var c=0;var u=s.forEach(function(e){var t=n.createCipheriv("DES-ECB",e,"");var r=t.update("KGS!@#$%","binary","binary");a.write(r,c,c+8,"binary");c+=8});return a}function nthashbuf(e){var t=new Buffer(e,"ucs2");var r=n.createHash("md4");r.update(t);return new Buffer(r.digest("binary"),"binary")}function lmhash(e){return i.bintohex(lmhashbuf(e))}function nthash(e){return i.bintohex(nthashbuf(e))}e.exports.nthashbuf=nthashbuf;e.exports.lmhashbuf=lmhashbuf;e.exports.nthash=nthash;e.exports.lmhash=lmhash},4987:function(e,t){(function(){var r=this;var n=r._;var i=Array.prototype,o=Object.prototype,s=Function.prototype;var a=i.push,c=i.slice,u=o.toString,l=o.hasOwnProperty;var f=Array.isArray,d=Object.keys,p=s.bind,h=Object.create;var v=function(){};var y=function(e){if(e instanceof y)return e;if(!(this instanceof y))return new y(e);this._wrapped=e};if(true){if(true&&e.exports){t=e.exports=y}t._=y}else{}y.VERSION="1.8.3";var m=function(e,t,r){if(t===void 0)return e;switch(r==null?3:r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)};case 4:return function(r,n,i,o){return e.call(t,r,n,i,o)}}return function(){return e.apply(t,arguments)}};var w=function(e,t,r){if(e==null)return y.identity;if(y.isFunction(e))return m(e,t,r);if(y.isObject(e))return y.matcher(e);return y.property(e)};y.iteratee=function(e,t){return w(e,t,Infinity)};var g=function(e,t){return function(r){var n=arguments.length;if(n<2||r==null)return r;for(var i=1;i=0&&t<=_};y.each=y.forEach=function(e,t,r){t=m(t,r);var n,i;if(S(e)){for(n=0,i=e.length;n=0&&o0?0:s-1;if(arguments.length<3){n=t[o?o[a]:a];a+=e}return iterator(t,r,n,o,a,s)}}y.reduce=y.foldl=y.inject=createReduce(1);y.reduceRight=y.foldr=createReduce(-1);y.find=y.detect=function(e,t,r){var n;if(S(e)){n=y.findIndex(e,t,r)}else{n=y.findKey(e,t,r)}if(n!==void 0&&n!==-1)return e[n]};y.filter=y.select=function(e,t,r){var n=[];t=w(t,r);y.each(e,function(e,r,i){if(t(e,r,i))n.push(e)});return n};y.reject=function(e,t,r){return y.filter(e,y.negate(w(t)),r)};y.every=y.all=function(e,t,r){t=w(t,r);var n=!S(e)&&y.keys(e),i=(n||e).length;for(var o=0;o=0};y.invoke=function(e,t){var r=c.call(arguments,2);var n=y.isFunction(t);return y.map(e,function(e){var i=n?t:e[t];return i==null?i:i.apply(e,r)})};y.pluck=function(e,t){return y.map(e,y.property(t))};y.where=function(e,t){return y.filter(e,y.matcher(t))};y.findWhere=function(e,t){return y.find(e,y.matcher(t))};y.max=function(e,t,r){var n=-Infinity,i=-Infinity,o,s;if(t==null&&e!=null){e=S(e)?e:y.values(e);for(var a=0,c=e.length;an){n=o}}}else{t=w(t,r);y.each(e,function(e,r,o){s=t(e,r,o);if(s>i||s===-Infinity&&n===-Infinity){n=e;i=s}})}return n};y.min=function(e,t,r){var n=Infinity,i=Infinity,o,s;if(t==null&&e!=null){e=S(e)?e:y.values(e);for(var a=0,c=e.length;an||r===void 0)return 1;if(r0?0:i-1;for(;o>=0&&o0){s=o>=0?o:Math.max(o+a,s)}else{a=o>=0?Math.min(o+1,a):o+a+1}}else if(r&&o&&a){o=r(n,i);return n[o]===i?o:-1}if(i!==i){o=t(c.call(n,s,a),y.isNaN);return o>=0?o+s:-1}for(o=e>0?s:a-1;o>=0&&ot){if(s){clearTimeout(s);s=null}a=u;o=e.apply(n,i);if(!s)n=i=null}else if(!s&&r.trailing!==false){s=setTimeout(c,l)}return o}};y.debounce=function(e,t,r){var n,i,o,s,a;var c=function(){var u=y.now()-s;if(u=0){n=setTimeout(c,t-u)}else{n=null;if(!r){a=e.apply(o,i);if(!n)o=i=null}}};return function(){o=this;i=arguments;s=y.now();var u=r&&!n;if(!n)n=setTimeout(c,t);if(u){a=e.apply(o,i);o=i=null}return a}};y.wrap=function(e,t){return y.partial(t,e)};y.negate=function(e){return function(){return!e.apply(this,arguments)}};y.compose=function(){var e=arguments;var t=e.length-1;return function(){var r=t;var n=e[t].apply(this,arguments);while(r--)n=e[r].call(this,n);return n}};y.after=function(e,t){return function(){if(--e<1){return t.apply(this,arguments)}}};y.before=function(e,t){var r;return function(){if(--e>0){r=t.apply(this,arguments)}if(e<=1)t=null;return r}};y.once=y.partial(y.before,2);var A=!{toString:null}.propertyIsEnumerable("toString");var C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function collectNonEnumProps(e,t){var r=C.length;var n=e.constructor;var i=y.isFunction(n)&&n.prototype||o;var s="constructor";if(y.has(e,s)&&!y.contains(t,s))t.push(s);while(r--){s=C[r];if(s in e&&e[s]!==i[s]&&!y.contains(t,s)){t.push(s)}}}y.keys=function(e){if(!y.isObject(e))return[];if(d)return d(e);var t=[];for(var r in e)if(y.has(e,r))t.push(r);if(A)collectNonEnumProps(e,t);return t};y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var r in e)t.push(r);if(A)collectNonEnumProps(e,t);return t};y.values=function(e){var t=y.keys(e);var r=t.length;var n=Array(r);for(var i=0;i":">",'"':""","'":"'","`":"`"};var P=y.invert(N);var k=function(e){var t=function(t){return e[t]};var r="(?:"+y.keys(e).join("|")+")";var n=RegExp(r);var i=RegExp(r,"g");return function(e){e=e==null?"":""+e;return n.test(e)?e.replace(i,t):e}};y.escape=k(N);y.unescape=k(P);y.result=function(e,t,r){var n=e==null?void 0:e[t];if(n===void 0){n=r}return y.isFunction(n)?n.call(e):n};var L=0;y.uniqueId=function(e){var t=++L+"";return e?e+t:t};y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/;var $={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"};var U=/\\|'|\r|\n|\u2028|\u2029/g;var F=function(e){return"\\"+$[e]};y.template=function(e,t,r){if(!t&&r)t=r;t=y.defaults({},t,y.templateSettings);var n=RegExp([(t.escape||D).source,(t.interpolate||D).source,(t.evaluate||D).source].join("|")+"|$","g");var i=0;var o="__p+='";e.replace(n,function(t,r,n,s,a){o+=e.slice(i,a).replace(U,F);i=a+t.length;if(r){o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'"}else if(n){o+="'+\n((__t=("+n+"))==null?'':__t)+\n'"}else if(s){o+="';\n"+s+"\n__p+='"}return t});o+="';\n";if(!t.variable)o="with(obj||{}){\n"+o+"}\n";o="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(t.variable||"obj","_",o)}catch(e){e.source=o;throw e}var a=function(e){return s.call(this,e,y)};var c=t.variable||"obj";a.source="function("+c+"){\n"+o+"}";return a};y.chain=function(e){var t=y(e);t._chain=true;return t};var H=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){y.each(y.functions(e),function(t){var r=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];a.apply(e,arguments);return H(this,r.apply(y,e))}})};y.mixin(y);y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];y.prototype[e]=function(){var r=this._wrapped;t.apply(r,arguments);if((e==="shift"||e==="splice")&&r.length===0)delete r[0];return H(this,r)}});y.each(["concat","join","slice"],function(e){var t=i[e];y.prototype[e]=function(){return H(this,t.apply(this._wrapped,arguments))}});y.prototype.value=function(){return this._wrapped};y.prototype.valueOf=y.prototype.toJSON=y.prototype.value;y.prototype.toString=function(){return""+this._wrapped};if(typeof define==="function"&&define.amd){define("underscore",[],function(){return y})}}).call(this)},2707:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},5859:(e,t,r)=>{var n=r(6417);e.exports=function nodeRNG(){return n.randomBytes(16)}},824:(e,t,r)=>{var n=r(5859);var i=r(2707);function v4(e,t,r){var o=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||n)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var a=0;a<16;++a){t[o+a]=s[a]}}return t||i(s)}e.exports=v4},788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.legacyDub=t.compiler=void 0;const n=r(1314);async function compiler(e,t){const r=e.match(/^(\w+)-(.+)$/);if(!r)throw new Error("invalid compiler string: "+e);switch(r[1]){case"dmd":return await dmd(r[2]);case"ldc":return await ldc(r[2],t);default:throw new Error("unrecognized compiler: "+r[1])}}t.compiler=compiler;async function legacyDub(){switch(process.platform){case"win32":return{url:"https://code.dlang.org/files/dub-1.11.0-windows-x86.zip"};case"linux":return{url:"https://code.dlang.org/files/dub-1.11.0-linux-x86_64.tar.gz"};case"darwin":return{url:"https://code.dlang.org/files/dub-1.11.0-osx-x86_64.tar.gz"};default:throw new Error("unsupported platform: "+process.platform)}}t.legacyDub=legacyDub;async function dmd(e){let t=false;switch(e){case"latest":e=await n.body_as_text("http://downloads.dlang.org/releases/LATEST");break;case"beta":e=await n.body_as_text("http://downloads.dlang.org/pre-releases/LATEST");t=true;break}const r=e.match(/^(2\.(\d+)\.\d+)(-.+)?$/);if(e!="master"&&!r)throw new Error("unrecognized DMD version: "+e);let i=t?r[1]:e;const o=e=="master"?undefined:parseInt(r[2]);let s=false;if(o!==undefined&&o<65){if(e.endsWith(".0")){e=e.slice(0,-2)}i=e.match(/^2\.\d+/)[0];s=true}const a=e=="master"?`http://downloads.dlang.org/nightlies/dmd-master/dmd.${e}`:t?`http://downloads.dlang.org/pre-releases/2.x/${i}/dmd.${e}`:`http://downloads.dlang.org/releases/2.x/${i}/dmd.${e}`;const c=o!==undefined&&o<72;switch(process.platform){case"win32":return{name:"dmd",version:e,url:s?`${a}.zip`:o!==undefined&&o<69?`${a}.windows.zip`:`${a}.windows.7z`,binpath:"\\dmd2\\windows\\bin",libpath:"\\dmd2\\windows\\lib64",download_dub:c,sig:`${a}.windows.7z.sig`};case"linux":return{name:"dmd",version:e,url:s?`${a}.zip`:o!==undefined&&o<69?`${a}.linux.zip`:`${a}.linux.tar.xz`,binpath:"/dmd2/linux/bin64",libpath:"/dmd2/linux/lib64",download_dub:c,sig:`${a}.linux.tar.xz.sig`};case"darwin":return{name:"dmd",version:e,url:s?`${a}.zip`:o!==undefined&&o<69?`${a}.osx.zip`:`${a}.osx.tar.xz`,binpath:"/dmd2/osx/bin",libpath:"/dmd2/linux/lib64",download_dub:c,sig:`${a}.osx.tar.xz.sig`};default:throw new Error("unsupported platform: "+process.platform)}}async function ldc_resolve_master(e){let t,r;switch(process.platform){case"win32":t="windows-multilib";r="7z";break;case"linux":t="linux-x86_64";r="tar.xz";break;case"darwin":t="osx-x86_64";r="tar.xz";break;default:throw new Error("unsupported platform: "+process.platform)}if(!e)throw new Error("'gh_token' parameter must be set to use ldc-master");let i=await n.body_as_text(`https://api.github.com/repos/LDC-Developers/LDC/releases/tags/CI`,e);let o=JSON.parse(i)["assets"];if(o==undefined){console.log(i);throw new Error("Couldn't load assets json")}if(o.length==0)throw new Error("No assets found for LDC CI release");o.sort(function(e,t){const r=Date.parse(e["updated_at"]);const n=Date.parse(t["updated_at"]);return r>n?-1:1});o=o.map(function(e){const t=e["name"];const r=t.match(/^ldc2?-([0-9a-fA-F]{5,12})[-.](.+)/);if(!r)throw new Error(`Unexpected naming format for the latest LDC asset: ${t}`);return{name:r[0],version:r[1],suffix:r[2]}}).filter(function(e){return e.suffix==`${t}.${r}`});const s=o[0];const a=process.platform=="win32"?`\\ldc2-${s.version}-${t}\\`:`/ldc2-${s.version}-${t}/`;return{name:"ldc2",version:s.version,url:"https://github.com/ldc-developers/ldc/releases/download/CI/"+s.name,binpath:`${a}bin`,libpath:`${a}lib64`}}async function ldc(e,t){switch(e){case"latest":e=await n.body_as_text("https://ldc-developers.github.io/LATEST");break;case"beta":e=await n.body_as_text("https://ldc-developers.github.io/LATEST_BETA");break;case"master":return await ldc_resolve_master(t)}if(!e.match(/^(\d+)\.(\d+)\.(\d+)/))throw new Error("unrecognized LDC version: "+e);const r=`https://github.com/ldc-developers/ldc/releases/download/v${e}/ldc2-${e}`;switch(process.platform){case"win32":return{name:"ldc2",version:e,url:`${r}-windows-multilib.7z`,binpath:`\\ldc2-${e}-windows-multilib\\bin`,libpath:`\\ldc2-${e}-windows-multilib\\lib64`};case"linux":return{name:"ldc2",version:e,url:`${r}-linux-x86_64.tar.xz`,binpath:`/ldc2-${e}-linux-x86_64/bin`,libpath:`/ldc2-${e}-linux-x86_64/lib64`};case"darwin":return{name:"ldc2",version:e,url:`${r}-osx-x86_64.tar.xz`,binpath:`/ldc2-${e}-osx-x86_64/bin`,libpath:`/ldc2-${e}-osx-x86_64/lib64`};default:throw new Error("unsupported platform: "+process.platform)}}},3759:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.install=t.verify=void 0;const s=o(r(7784));const a=r(5639);function win_path_to_msys(e){if(process.platform!="win32")return e;e=e.replace("\\","/");const t=e[0];e="/"+t+e.slice(2);return e}async function verify(e,t){let r=await s.downloadTool("https://dlang.org/d-keyring.gpg");r=win_path_to_msys(r);let n=await s.downloadTool(t);n=win_path_to_msys(n);const i=a.spawn("gpg",["--lock-never","--verify","--keyring",r,"--no-default-keyring",n,e],{});i.stderr.pipe(process.stdout);i.stdout.pipe(process.stdout);await i}t.verify=verify;async function install(){if(process.platform=="darwin"){const e=a.spawn("brew",["install","gnupg"],{});await e}}t.install=install},399:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});const s=o(r(2186));const a=o(r(7784));const c=o(r(3759));const u=r(788);async function run(){try{if(process.arch!="x64")throw new Error("Only x64 arch is supported by all platforms");const e=s.getInput("compiler")||"dmd-latest";const t=s.getInput("gh_token")||"";const r=await u.compiler(e,t);console.log(`Enabling ${e}`);const n=r.name+"-"+r.version+(r.download_dub?"+dub":"");let i=a.find("dc",n);if(i){console.log("Using cache")}else{console.log(`Downloading ${r.url}`);const e=await a.downloadTool(r.url);if(r.sig){console.log("Verifying the download with GPG");await c.install();await c.verify(e,r.sig)}const t=await extract(r.url,e);if(r.download_dub){const e=await u.legacyDub();const n=await a.downloadTool(e.url);await extract(e.url,n,t+r.binpath)}i=await a.cacheDir(t,"dc",n)}const o=i+r.binpath;console.log("Adding '"+o+"' to path");s.addPath(o);s.exportVariable("DC",r.name);const l=i+r.libpath;console.log("Adding '"+l+"' to library path");if(process.platform=="win32"){s.addPath(i+r.libpath)}else{s.exportVariable("LD_LIBRARY_PATH",l)}console.log("Done")}catch(e){console.log(e);s.setFailed(e.message)}}async function extract(e,t,r){if(e.endsWith(".7z"))return await a.extract7z(t,r);else if(e.endsWith(".zip"))return await a.extractZip(t,r);else if(/\.tar(\.\w+)?$/.test(e))return await a.extractTar(t,r,"x");throw new Error("unsupported archive format: "+e)}run()},1314:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.body_as_text=void 0;const s=o(r(5538));const a=r(4442);async function body_as_text(e,t=""){const r=t?[new a.BearerCredentialHandler(t)]:undefined;let n=new s.HttpClient("dlang-community/setup-dlang",r);return(await(await n.get(e)).readBody()).trim()}t.body_as_text=body_as_text},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},6417:e=>{"use strict";e.exports=require("crypto")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(399)})(); + + + + +