mirror of
https://github.com/rumblefrog/setup-sp.git
synced 2025-05-11 07:52:09 +02:00
* Add a parser for plugin versions * Added webpack to bundle the files * Fix https to http redirect error
1 line
No EOL
96 KiB
JavaScript
Vendored
1 line
No EOL
96 KiB
JavaScript
Vendored
(()=>{var e={5265:function(e,t,r){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=o(r(2037)),i=r(4570);function s(e,t,r){const o=new a(e,t,r);process.stdout.write(o.toString()+n.EOL)}t.issueCommand=s,t.issue=function(e,t=""){s(e,{},t)};class a{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const o in this.properties)if(this.properties.hasOwnProperty(o)){const n=this.properties[o];n&&(r?r=!1:e+=",",e+=`${o}=${t=n,i.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+=`::${function(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,e}}},2225:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(5265),s=r(3108),a=r(4570),c=n(r(2037)),u=n(r(1017));var l;function p(e){i.issue("error",e instanceof Error?e.toString():e)}function f(e){i.issue("group",e)}function d(){i.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(l=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){const r=a.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_",o=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;s.issueCommand("ENV",o)}else i.issueCommand("set-env",{name:e},r)},t.setSecret=function(e){i.issueCommand("add-mask",{},e)},t.addPath=function(e){process.env.GITHUB_PATH?s.issueCommand("PATH",e):i.issueCommand("add-path",{},e),process.env.PATH=`${e}${u.delimiter}${process.env.PATH}`},t.getInput=function(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.setOutput=function(e,t){i.issueCommand("set-output",{name:e},t)},t.setCommandEcho=function(e){i.issue("echo",e?"on":"off")},t.setFailed=function(e){process.exitCode=l.Failure,p(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){i.issueCommand("debug",{},e)},t.error=p,t.warning=function(e){i.issue("warning",e instanceof Error?e.toString():e)},t.info=function(e){process.stdout.write(e+c.EOL)},t.startGroup=f,t.endGroup=d,t.group=function(e,t){return o(this,void 0,void 0,(function*(){let r;f(e);try{r=yield t()}finally{d()}return r}))},t.saveState=function(e,t){i.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},3108:function(e,t,r){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=o(r(7147)),i=o(r(2037)),s=r(4570);t.issueCommand=function(e,t){const r=process.env[`GITHUB_${e}`];if(!r)throw new Error(`Unable to find environment variable for file command ${e}`);if(!n.existsSync(r))throw new Error(`Missing file at path: ${r}`);n.appendFileSync(r,`${s.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}},4570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}},27:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getExecOutput=t.exec=void 0;const a=r(1576),c=i(r(4171));function u(e,t,r){return s(this,void 0,void 0,(function*(){const o=c.argStringToArray(e);if(0===o.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const n=o[0];return t=o.slice(1).concat(t||[]),new c.ToolRunner(n,t,r).exec()}))}t.exec=u,t.getExecOutput=function(e,t,r){var o,n;return s(this,void 0,void 0,(function*(){let i="",s="";const c=new a.StringDecoder("utf8"),l=new a.StringDecoder("utf8"),p=null===(o=null==r?void 0:r.listeners)||void 0===o?void 0:o.stdout,f=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{i+=c.write(e),p&&p(e)},stderr:e=>{s+=l.write(e),f&&f(e)}}),h=yield u(e,t,Object.assign(Object.assign({},r),{listeners:d}));return i+=c.end(),s+=l.end(),{exitCode:h,stdout:i,stderr:s}}))}},4171:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.argStringToArray=t.ToolRunner=void 0;const a=i(r(2037)),c=i(r(2361)),u=i(r(2081)),l=i(r(1017)),p=i(r(484)),f=i(r(7564)),d=r(9512),h="win32"===process.platform;class y extends c.EventEmitter{constructor(e,t,r){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),o=this._getSpawnArgs(e);let n=t?"":"[command]";if(h)if(this._isCmdFile()){n+=r;for(const e of o)n+=` ${e}`}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of o)n+=` ${e}`}else{n+=this._windowsQuoteCmdArg(r);for(const e of o)n+=` ${this._windowsQuoteCmdArg(e)}`}else{n+=r;for(const e of o)n+=` ${e}`}return n}_processLineBuffer(e,t,r){try{let o=t+e.toString(),n=o.indexOf(a.EOL);for(;n>-1;)r(o.substring(0,n)),o=o.substring(n+a.EOL.length),n=o.indexOf(a.EOL);return o}catch(e){return this._debug(`error processing line. Failed with error ${e}`),""}}_getSpawnFileName(){return h&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(h&&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);return t+='"',[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=!1;for(const o of e)if(t.some((e=>e===o))){r=!0;break}if(!r)return e;let o='"',n=!0;for(let t=e.length;t>0;t--)o+=e[t-1],n&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(n=!0,o+='"'):n=!1;return o+='"',o.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='"',r=!0;for(let o=e.length;o>0;o--)t+=e[o-1],r&&"\\"===e[o-1]?t+="\\":'"'===e[o-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e=e||{};const r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return s(this,void 0,void 0,(function*(){return!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield p.which(this.toolPath,!0),new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+a.EOL);const o=new m(r,this.toolPath);if(o.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield f.exists(this.options.cwd)))return t(new Error(`The cwd: ${this.options.cwd} does not exist!`));const n=this._getSpawnFileName(),i=u.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));let s="";i.stdout&&i.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),s=this._processLineBuffer(e,s,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let c="";if(i.stderr&&i.stderr.on("data",(e=>{o.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),i.on("error",(e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()})),i.on("exit",(e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()})),i.on("close",(e=>{o.processExitCode=e,o.processExited=!0,o.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),o.CheckComplete()})),o.on("done",((r,o)=>{s.length>0&&this.emit("stdline",s),c.length>0&&this.emit("errline",c),i.removeAllListeners(),r?t(r):e(o)})),this.options.input){if(!i.stdin)throw new Error("child process missing stdin");i.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=y,t.argStringToArray=function(e){const t=[];let r=!1,o=!1,n="";function i(e){o&&'"'!==e&&(n+="\\"),n+=e,o=!1}for(let s=0;s<e.length;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&o?i(a):"\\"===a&&r?o=!0:" "!==a||r?i(a):n.length>0&&(t.push(n),n=""):o?i(a):r=!r}return n.length>0&&t.push(n.trim()),t};class m extends c.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=d.setTimeout(m.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(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}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){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()}}}},7564:function(e,t,r){"use strict";var o,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=s(r(7147)),u=s(r(1017));function l(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}o=c.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return a(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},t.isDirectory=function(e,r=!1){return a(this,void 0,void 0,(function*(){return(r?yield t.stat(e):yield t.lstat(e)).isDirectory()}))},t.isRooted=function(e){if(!(e=function(e){return e=e||"",t.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return t.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},t.tryGetExecutablePath=function(e,r){return a(this,void 0,void 0,(function*(){let o;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile())if(t.IS_WINDOWS){const t=u.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t)))return e}else if(l(o))return e;const n=e;for(const i of r){e=n+i,o=void 0;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const r=u.dirname(e),o=u.basename(e).toUpperCase();for(const n of yield t.readdir(r))if(o===n.toUpperCase()){e=u.join(r,n);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(l(o))return e}}return""}))},t.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}},484:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=r(9491),c=i(r(2081)),u=i(r(1017)),l=r(3837),p=i(r(7564)),f=l.promisify(c.exec),d=l.promisify(c.execFile);function h(e){return s(this,void 0,void 0,(function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=p.getCmdPath();(yield p.isDirectory(e,!0))?yield f(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}}):yield f(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield p.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield p.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield d("rm",["-rf",`${e}`]):yield p.unlink(e)}}))}function y(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0})}))}function m(e){return s(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'tool' is required");const t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){const r=yield p.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(u.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(u.delimiter))e&&r.push(e);const o=[];for(const n of r){const r=yield p.tryGetExecutablePath(u.join(n,e),t);r&&o.push(r)}return o}))}function v(e,t,r,o){return s(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield y(t);const n=yield p.readdir(e);for(const i of n){const n=`${e}/${i}`,s=`${t}/${i}`;(yield p.lstat(n)).isDirectory()?yield v(n,s,r,o):yield g(n,s,o)}yield p.chmod(t,(yield p.stat(e)).mode)}))}function g(e,t,r){return s(this,void 0,void 0,(function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t)}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t))}const r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null)}else(yield p.exists(t))&&!r||(yield p.copyFile(e,t))}))}t.cp=function(e,t,r={}){return s(this,void 0,void 0,(function*(){const{force:o,recursive:n,copySourceDirectory:i}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive),copySourceDirectory:null==e.copySourceDirectory||Boolean(e.copySourceDirectory)}}(r),s=(yield p.exists(t))?yield p.stat(t):null;if(s&&s.isFile()&&!o)return;const a=s&&s.isDirectory()&&i?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield p.stat(e)).isDirectory()){if(!n)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield v(e,a,0,o)}else{if(""===u.relative(e,a))throw new Error(`'${a}' and '${e}' are the same file`);yield g(e,a,o)}}))},t.mv=function(e,t,r={}){return s(this,void 0,void 0,(function*(){if(yield p.exists(t)){let o=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),o=yield p.exists(t)),o){if(null!=r.force&&!r.force)throw new Error("Destination already exists");yield h(t)}}yield y(u.dirname(t)),yield p.rename(e,t)}))},t.rmRF=h,t.mkdirP=y,t.which=function e(t,r){return s(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(r){const r=yield e(t,!1);if(!r)throw p.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. 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.`):new Error(`Unable to locate executable file: ${t}. 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.`);return r}const o=yield m(t);return o&&o.length>0?o[0]:""}))},t.findInPath=m},4392:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=r(2225),i=r(484),s=r(7147),a=r(2037),c=r(1017),u=r(7723),l=r(6625),p=r(1171),f=r(27),d=r(9491);class h extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=h;const y="win32"===process.platform;let m=process.env.RUNNER_TEMP||"",v=process.env.RUNNER_TOOL_CACHE||"";if(!m||!v){let e;e=y?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",m||(m=c.join(e,"actions","temp")),v||(v=c.join(e,"actions","cache"))}function g(e,t){const r=[];t=t||a.arch();const o=c.join(v,e);if(s.existsSync(o)){const e=s.readdirSync(o);for(const n of e)if(b(n)){const e=c.join(o,n,t||"");s.existsSync(e)&&s.existsSync(`${e}.complete`)&&r.push(n)}}return r}function E(e){return o(this,void 0,void 0,(function*(){return e||(e=c.join(m,p())),yield i.mkdirP(e),e}))}function w(e,t,r){return o(this,void 0,void 0,(function*(){const o=c.join(v,e,l.clean(t)||t,r||"");n.debug(`destination ${o}`);const s=`${o}.complete`;return yield i.rmRF(o),yield i.rmRF(s),yield i.mkdirP(o),o}))}function O(e,t,r){const o=`${c.join(v,e,l.clean(t)||t,r||"")}.complete`;s.writeFileSync(o,""),n.debug("finished caching tool")}function b(e){const t=l.clean(e)||"";n.debug(`isExplicit: ${t}`);const r=null!=l.valid(t);return n.debug(`explicit? ${r}`),r}t.downloadTool=function(e){return o(this,void 0,void 0,(function*(){return new Promise(((t,r)=>o(this,void 0,void 0,(function*(){try{const a=new u.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3}),l=c.join(m,p());if(yield i.mkdirP(m),n.debug(`Downloading ${e}`),n.debug(`Downloading ${l}`),s.existsSync(l))throw new Error(`Destination file path ${l} already exists`);const f=yield a.get(e);if(200!==f.message.statusCode){const t=new h(f.message.statusCode);throw n.debug(`Failed to download from "${e}". Code(${f.message.statusCode}) Message(${f.message.statusMessage})`),t}const d=s.createWriteStream(l);d.on("open",(()=>o(this,void 0,void 0,(function*(){try{f.message.pipe(d).on("close",(()=>{n.debug("download complete"),t(l)}))}catch(t){n.debug(`Failed to download from "${e}". Code(${f.message.statusCode}) Message(${f.message.statusMessage})`),r(t)}})))),d.on("error",(e=>{d.end(),r(e)}))}catch(e){r(e)}}))))}))},t.extract7z=function(e,t,r){return o(this,void 0,void 0,(function*(){d.ok(y,"extract7z() not supported on current OS"),d.ok(e,'parameter "file" is required'),t=t||(yield E(t));const o=process.cwd();if(process.chdir(t),r)try{const t=["x","-bb1","-bd","-sccUTF-8",e],n={silent:!0};yield f.exec(`"${r}"`,t,n)}finally{process.chdir(o)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${c.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],n={silent:!0};try{const e=yield i.which("powershell",!0);yield f.exec(`"${e}"`,r,n)}finally{process.chdir(o)}}return t}))},t.extractTar=function(e,t,r="xz"){return o(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=t||(yield E(t));const o=yield i.which("tar",!0);return yield f.exec(`"${o}"`,[r,"-C",t,"-f",e]),t}))},t.extractZip=function(e,t){return o(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=t||(yield E(t)),y?yield function(e,t){return o(this,void 0,void 0,(function*(){const r=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,o=yield i.which("powershell"),n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];yield f.exec(`"${o}"`,n)}))}(e,t):yield function(e,t){return o(this,void 0,void 0,(function*(){const r=yield i.which("unzip");yield f.exec(`"${r}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,r,u){return o(this,void 0,void 0,(function*(){if(r=l.clean(r)||r,u=u||a.arch(),n.debug(`Caching tool ${t} ${r} ${u}`),n.debug(`source dir: ${e}`),!s.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const o=yield w(t,r,u);for(const t of s.readdirSync(e)){const r=c.join(e,t);yield i.cp(r,o,{recursive:!0})}return O(t,r,u),o}))},t.cacheFile=function(e,t,r,u,p){return o(this,void 0,void 0,(function*(){if(u=l.clean(u)||u,p=p||a.arch(),n.debug(`Caching tool ${r} ${u} ${p}`),n.debug(`source file: ${e}`),!s.statSync(e).isFile())throw new Error("sourceFile is not a file");const o=yield w(r,u,p),f=c.join(o,t);return n.debug(`destination file ${f}`),yield i.cp(e,f),O(r,u,p),o}))},t.find=function(e,t,r){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(r=r||a.arch(),!b(t)){const o=function(e,t){let r="";n.debug(`evaluating ${e.length} versions`);for(let o=(e=e.sort(((e,t)=>l.gt(e,t)?1:-1))).length-1;o>=0;o--){const n=e[o];if(l.satisfies(n,t)){r=n;break}}return r?n.debug(`matched: ${r}`):n.debug("match not found"),r}(g(e,r),t);t=o}let o="";if(t){t=l.clean(t)||"";const i=c.join(v,e,t,r);n.debug(`checking cache: ${i}`),s.existsSync(i)&&s.existsSync(`${i}.complete`)?(n.debug(`Found tool in cache ${e} ${t} ${r}`),o=i):n.debug("not found")}return o},t.findAllVersions=g},1800:(e,t,r)=>{"use strict";function o(e,t){return e.then((function(e){return[null,e]})).catch((function(e){return t&&Object.assign(e,t),[e,void 0]}))}r.r(t),r.d(t,{to:()=>o,default:()=>n});const n=o},1924:(e,t,r)=>{"use strict";var o=r(210),n=r(5559),i=n(o("String.prototype.indexOf"));e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n(r):r}},5559:(e,t,r)=>{"use strict";var o=r(8612),n=r(210),i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||o.call(s,i),c=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=a(o,s,arguments);if(c&&u){var r=c(t,"length");r.configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var p=function(){return a(o,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString,n="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||o.call(i)!==n)throw new TypeError(t+i);for(var s,a=r.call(arguments,1),c=function(){if(this instanceof s){var t=i.apply(this,a.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,a.concat(r.call(arguments)))},u=Math.max(0,i.length-a.length),l=[],p=0;p<u;p++)l.push("$"+p);if(s=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var f=function(){};f.prototype=i.prototype,s.prototype=new f,f.prototype=null}return s}},8612:(e,t,r)=>{"use strict";var o=r(7648);e.exports=Function.prototype.bind||o},210:(e,t,r)=>{"use strict";var o,n=SyntaxError,i=Function,s=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new s},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,p=r(1405)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?o:f(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):o,"%Symbol%":p?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet},m=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(r=f(n.prototype))}return y[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=r(8612),E=r(7642),w=g.call(Function.call,Array.prototype.concat),O=g.call(Function.apply,Array.prototype.splice),b=g.call(Function.call,String.prototype.replace),S=g.call(Function.call,String.prototype.slice),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,x=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return b(e,R,(function(e,t,r,n){o[o.length]=r?b(n,P,"$1"):t||e})),o},A=function(e,t){var r,o=e;if(E(v,o)&&(o="%"+(r=v[o])[0]+"%"),E(y,o)){var i=y[o];if(i===d&&(i=m(o)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new n("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');var r=x(e),o=r.length>0?r[0]:"",i=A("%"+o+"%",t),a=i.name,u=i.value,l=!1,p=i.alias;p&&(o=p[0],O(r,w([0,1],p)));for(var f=1,d=!0;f<r.length;f+=1){var h=r[f],m=S(h,0,1),v=S(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new n("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),E(y,a="%"+(o+="."+h)+"%"))u=y[a];else if(null!=u){if(!(h in u)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=r.length){var g=c(u,h);u=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:u[h]}else d=E(u,h),u=u[h];d&&!l&&(y[a]=u)}}return u}},1405:(e,t,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(5419);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},7642:(e,t,r)=>{"use strict";var o=r(8612);e.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},631:(e,t,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,s=o&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&c&&"function"==typeof c.get?c.get:null,l=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,v=String.prototype.match,g="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,b=Object.prototype.propertyIsEnumerable,S=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),R=r(2794).custom,P=R&&N(R)?R:null,x="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function A(e,t,r){var o="double"===(r.quoteStyle||t)?'"':"'";return o+e+o}function I(e){return String(e).replace(/"/g,""")}function _(e){return!("[object Array]"!==C(e)||x&&"object"==typeof e&&x in e)}function N(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!w)return!1;try{return w.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,n){var a=r||{};if(j(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(j(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!j(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(j(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return D(t,a);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var y=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=y&&y>0&&"object"==typeof t)return _(t)?"[Array]":"[Object]";var E,b=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(a,o);if(void 0===n)n=[];else if(L(n,t)>=0)return"[Circular]";function R(t,r,i){if(r&&(n=n.slice()).push(r),i){var s={depth:a.depth};return j(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,n)}return e(t,a,o+1,n)}if("function"==typeof t){var T=function(e){if(e.name)return e.name;var t=v.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),k=q(t,R);return"[Function"+(T?": "+T:" (anonymous)")+"]"+(k.length>0?" { "+k.join(", ")+" }":"")}if(N(t)){var B=O?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(t);return"object"!=typeof t||O?B:M(B)}if((E=t)&&"object"==typeof E&&("undefined"!=typeof HTMLElement&&E instanceof HTMLElement||"string"==typeof E.nodeName&&"function"==typeof E.getAttribute)){for(var G="<"+String(t.nodeName).toLowerCase(),H=t.attributes||[],W=0;W<H.length;W++)G+=" "+H[W].name+"="+A(I(H[W].value),"double",a);return G+=">",t.childNodes&&t.childNodes.length&&(G+="..."),G+"</"+String(t.nodeName).toLowerCase()+">"}if(_(t)){if(0===t.length)return"[]";var V=q(t,R);return b&&!function(e){for(var t=0;t<e.length;t++)if(L(e[t],"\n")>=0)return!1;return!0}(V)?"["+U(V,b)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return!("[object Error]"!==C(e)||x&&"object"==typeof e&&x in e)}(t)){var X=q(t,R);return 0===X.length?"["+String(t)+"]":"{ ["+String(t)+"] "+X.join(", ")+" }"}if("object"==typeof t&&c){if(P&&"function"==typeof t[P])return t[P]();if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var z=[];return s.call(t,(function(e,r){z.push(R(r,t,!0)+" => "+R(e,t))})),$("Map",i.call(t),z,b)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var Q=[];return l.call(t,(function(e){Q.push(R(e,t))})),$("Set",u.call(t),Q,b)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return F("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return F("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return F("WeakRef");if(function(e){return!("[object Number]"!==C(e)||x&&"object"==typeof e&&x in e)}(t))return M(R(Number(t)));if(function(e){if(!e||"object"!=typeof e||!g)return!1;try{return g.call(e),!0}catch(e){}return!1}(t))return M(R(g.call(t)));if(function(e){return!("[object Boolean]"!==C(e)||x&&"object"==typeof e&&x in e)}(t))return M(h.call(t));if(function(e){return!("[object String]"!==C(e)||x&&"object"==typeof e&&x in e)}(t))return M(R(String(t)));if(!function(e){return!("[object Date]"!==C(e)||x&&"object"==typeof e&&x in e)}(t)&&!function(e){return!("[object RegExp]"!==C(e)||x&&"object"==typeof e&&x in e)}(t)){var Y=q(t,R),J=S?S(t)===Object.prototype:t instanceof Object||t.constructor===Object,Z=t instanceof Object?"":"null prototype",K=!J&&x&&Object(t)===t&&x in t?C(t).slice(8,-1):Z?"Object":"",ee=(J||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(K||Z?"["+[].concat(K||[],Z||[]).join(": ")+"] ":"");return 0===Y.length?ee+"{}":b?ee+"{"+U(Y,b)+"}":ee+"{ "+Y.join(", ")+" }"}return String(t)};var T=Object.prototype.hasOwnProperty||function(e){return e in this};function j(e,t){return T.call(e,t)}function C(e){return y.call(e)}function L(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}function D(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return D(e.slice(0,t.maxStringLength),t)+o}return A(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,k),"single",t)}function k(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function M(e){return"Object("+e+")"}function F(e){return e+" { ? }"}function $(e,t,r,o){return e+" ("+t+") {"+(o?U(r,o):r.join(", "))+"}"}function U(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function q(e,t){var r=_(e),o=[];if(r){o.length=e.length;for(var n=0;n<e.length;n++)o[n]=j(e,n)?t(e[n],e):""}var i,s="function"==typeof E?E(e):[];if(O){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var c in e)j(e,c)&&(r&&String(Number(c))===c&&c<e.length||O&&i["$"+c]instanceof Symbol||(/[^\w$]/.test(c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof E)for(var u=0;u<s.length;u++)b.call(e,s[u])&&o.push("["+t(s[u])+"]: "+t(e[s[u]],e));return o}},2794:(e,t,r)=>{e.exports=r(3837).inspect},5798:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},129:(e,t,r)=>{"use strict";var o=r(8261),n=r(5235),i=r(5798);e.exports={formats:i,parse:n,stringify:o}},5235:(e,t,r)=>{"use strict";var o=r(2769),n=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=a?i.slice(0,a.index):i,l=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var p=0;r.depth>0&&null!==(a=s.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&n.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,r,o){for(var n=o?t:c(t,r),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&r.parseArrays)s=[].concat(n);else{s=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[])[l]=n:s[u]=n:s={0:n}}n=s}return n}(l,t,r,o)}};e.exports=function(e,t){var r=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,u={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,p),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),d=r,r=f.length);for(r=0;r<f.length;++r)if(r!==d){var y,m,v=f[r],g=v.indexOf("]="),E=-1===g?v.indexOf("="):g+1;-1===E?(y=t.decoder(v,s.decoder,h,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(v.slice(0,E),s.decoder,h,"key"),m=o.maybeMap(c(v.slice(E+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=a(m)),v.indexOf("[]=")>-1&&(m=i(m)?[m]:m),n.call(u,y)?u[y]=o.combine(u[y],m):u[y]=m}return u}(e,r):e,p=r.plainObjects?Object.create(null):{},f=Object.keys(l),d=0;d<f.length;++d){var h=f[d],y=u(h,l[h],r,"string"==typeof e);p=o.merge(p,y,r)}return!0===r.allowSparse?p:o.compact(p)}},8261:(e,t,r)=>{"use strict";var o=r(7478),n=r(2769),i=r(5798),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,f=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,r,i,s,a,u,p,f,h,y,m,v,g,E,w){var O,b=t;if(w.has(t))throw new RangeError("Cyclic object value");if("function"==typeof p?b=p(r,b):b instanceof Date?b=y(b):"comma"===i&&c(b)&&(b=n.maybeMap(b,(function(e){return e instanceof Date?y(e):e}))),null===b){if(s)return u&&!g?u(r,d.encoder,E,"key",m):r;b=""}if("string"==typeof(O=b)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||n.isBuffer(b))return u?[v(g?r:u(r,d.encoder,E,"key",m))+"="+v(u(b,d.encoder,E,"value",m))]:[v(r)+"="+v(String(b))];var S,R=[];if(void 0===b)return R;if("comma"===i&&c(b))S=[{value:b.length>0?b.join(",")||null:void 0}];else if(c(p))S=p;else{var P=Object.keys(b);S=f?P.sort(f):P}for(var x=0;x<S.length;++x){var A=S[x],I="object"==typeof A&&void 0!==A.value?A.value:b[A];if(!a||null!==I){var _=c(b)?"function"==typeof i?i(r,A):r:r+(h?"."+A:"["+A+"]");w.set(t,!0);var N=o();l(R,e(I,_,i,s,a,u,p,f,h,y,m,v,g,E,N))}}return R};e.exports=function(e,t){var r,n=e,u=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!s.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=i.formatters[r],n=d.filter;return("function"==typeof e.filter||c(e.filter))&&(n=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof u.filter?n=(0,u.filter)("",n):c(u.filter)&&(r=u.filter);var p,f=[];if("object"!=typeof n||null===n)return"";p=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var y=a[p];r||(r=Object.keys(n)),u.sort&&r.sort(u.sort);for(var m=o(),v=0;v<r.length;++v){var g=r[v];u.skipNulls&&null===n[g]||l(f,h(n[g],g,y,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var E=f.join(u.delimiter),w=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),E.length>0?w+E:""}},2769:(e,t,r)=>{"use strict";var o=r(5798),n=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],s=n.obj[n.prop],a=Object.keys(s),c=0;c<a.length;++c){var u=a[c],l=s[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:s,prop:u}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<a.length;++u){var l=a.charCodeAt(u);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===o.RFC1738&&(40===l||41===l)?c+=a.charAt(u):l<128?c+=s[l]:l<2048?c+=s[192|l>>6]+s[128|63&l]:l<55296||l>=57344?c+=s[224|l>>12]+s[128|l>>6&63]+s[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(u)),c+=s[240|l>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|63&l])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return i(t)&&!i(r)&&(s=a(t,o)),i(t)&&i(r)?(r.forEach((function(r,i){if(n.call(t,i)){var s=t[i];s&&"object"==typeof s&&r&&"object"==typeof r?t[i]=e(s,r,o):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var s=r[i];return n.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),s)}}},6625:(e,t)=>{var r;t=e.exports=p,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var o=Number.MAX_SAFE_INTEGER||9007199254740991,n=t.re=[],i=t.src=[],s=t.tokens={},a=0;function c(e){s[e]=a++}c("NUMERICIDENTIFIER"),i[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),i[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),i[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),i[s.MAINVERSION]="("+i[s.NUMERICIDENTIFIER]+")\\.("+i[s.NUMERICIDENTIFIER]+")\\.("+i[s.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),i[s.MAINVERSIONLOOSE]="("+i[s.NUMERICIDENTIFIERLOOSE]+")\\.("+i[s.NUMERICIDENTIFIERLOOSE]+")\\.("+i[s.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),i[s.PRERELEASEIDENTIFIER]="(?:"+i[s.NUMERICIDENTIFIER]+"|"+i[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),i[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[s.NUMERICIDENTIFIERLOOSE]+"|"+i[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),i[s.PRERELEASE]="(?:-("+i[s.PRERELEASEIDENTIFIER]+"(?:\\."+i[s.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),i[s.PRERELEASELOOSE]="(?:-?("+i[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[s.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),i[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),i[s.BUILD]="(?:\\+("+i[s.BUILDIDENTIFIER]+"(?:\\."+i[s.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),i[s.FULLPLAIN]="v?"+i[s.MAINVERSION]+i[s.PRERELEASE]+"?"+i[s.BUILD]+"?",i[s.FULL]="^"+i[s.FULLPLAIN]+"$",c("LOOSEPLAIN"),i[s.LOOSEPLAIN]="[v=\\s]*"+i[s.MAINVERSIONLOOSE]+i[s.PRERELEASELOOSE]+"?"+i[s.BUILD]+"?",c("LOOSE"),i[s.LOOSE]="^"+i[s.LOOSEPLAIN]+"$",c("GTLT"),i[s.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),i[s.XRANGEIDENTIFIERLOOSE]=i[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),i[s.XRANGEIDENTIFIER]=i[s.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),i[s.XRANGEPLAIN]="[v=\\s]*("+i[s.XRANGEIDENTIFIER]+")(?:\\.("+i[s.XRANGEIDENTIFIER]+")(?:\\.("+i[s.XRANGEIDENTIFIER]+")(?:"+i[s.PRERELEASE]+")?"+i[s.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),i[s.XRANGEPLAINLOOSE]="[v=\\s]*("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:"+i[s.PRERELEASELOOSE]+")?"+i[s.BUILD]+"?)?)?",c("XRANGE"),i[s.XRANGE]="^"+i[s.GTLT]+"\\s*"+i[s.XRANGEPLAIN]+"$",c("XRANGELOOSE"),i[s.XRANGELOOSE]="^"+i[s.GTLT]+"\\s*"+i[s.XRANGEPLAINLOOSE]+"$",c("COERCE"),i[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),n[s.COERCERTL]=new RegExp(i[s.COERCE],"g"),c("LONETILDE"),i[s.LONETILDE]="(?:~>?)",c("TILDETRIM"),i[s.TILDETRIM]="(\\s*)"+i[s.LONETILDE]+"\\s+",n[s.TILDETRIM]=new RegExp(i[s.TILDETRIM],"g"),c("TILDE"),i[s.TILDE]="^"+i[s.LONETILDE]+i[s.XRANGEPLAIN]+"$",c("TILDELOOSE"),i[s.TILDELOOSE]="^"+i[s.LONETILDE]+i[s.XRANGEPLAINLOOSE]+"$",c("LONECARET"),i[s.LONECARET]="(?:\\^)",c("CARETTRIM"),i[s.CARETTRIM]="(\\s*)"+i[s.LONECARET]+"\\s+",n[s.CARETTRIM]=new RegExp(i[s.CARETTRIM],"g"),c("CARET"),i[s.CARET]="^"+i[s.LONECARET]+i[s.XRANGEPLAIN]+"$",c("CARETLOOSE"),i[s.CARETLOOSE]="^"+i[s.LONECARET]+i[s.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),i[s.COMPARATORLOOSE]="^"+i[s.GTLT]+"\\s*("+i[s.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),i[s.COMPARATOR]="^"+i[s.GTLT]+"\\s*("+i[s.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),i[s.COMPARATORTRIM]="(\\s*)"+i[s.GTLT]+"\\s*("+i[s.LOOSEPLAIN]+"|"+i[s.XRANGEPLAIN]+")",n[s.COMPARATORTRIM]=new RegExp(i[s.COMPARATORTRIM],"g"),c("HYPHENRANGE"),i[s.HYPHENRANGE]="^\\s*("+i[s.XRANGEPLAIN]+")\\s+-\\s+("+i[s.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),i[s.HYPHENRANGELOOSE]="^\\s*("+i[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[s.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),i[s.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<a;u++)r(u,i[u]),n[u]||(n[u]=new RegExp(i[u]));function l(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?n[s.LOOSE]:n[s.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?n[s.LOOSE]:n[s.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=l,t.valid=function(e,t){var r=l(e,t);return r?r.version:null},t.clean=function(e,t){var r=l(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),d(this.major,e.major)||d(this.minor,e.minor)||d(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var o=this.prerelease[t],n=e.prerelease[t];if(r("prerelease compare",t,o,n),void 0===o&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===o)return-1;if(o!==n)return d(o,n)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var o=this.build[t],n=e.build[t];if(r("prerelease compare",t,o,n),void 0===o&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===o)return-1;if(o!==n)return d(o,n)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,o){"string"==typeof r&&(o=r,r=void 0);try{return new p(e,r).inc(t,o).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var r=l(e),o=l(t),n="";if(r.prerelease.length||o.prerelease.length){n="pre";var i="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==o[s])return n+s;return i},t.compareIdentifiers=d;var f=/^[0-9]+$/;function d(e,t){var r=f.test(e),o=f.test(t);return r&&o&&(e=+e,t=+t),e===t?0:r&&!o?-1:o&&!r?1:e<t?-1:1}function h(e,t,r){return new p(e,r).compare(new p(t,r))}function y(e,t,r){return h(e,t,r)>0}function m(e,t,r){return h(e,t,r)<0}function v(e,t,r){return 0===h(e,t,r)}function g(e,t,r){return 0!==h(e,t,r)}function E(e,t,r){return h(e,t,r)>=0}function w(e,t,r){return h(e,t,r)<=0}function O(e,t,r,o){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return v(e,r,o);case"!=":return g(e,r,o);case">":return y(e,r,o);case">=":return E(e,r,o);case"<":return m(e,r,o);case"<=":return w(e,r,o);default:throw new TypeError("Invalid operator: "+t)}}function b(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof b){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof b))return new b(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===S?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return d(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,r){var o=new p(e,r),n=new p(t,r);return o.compare(n)||o.compareBuild(n)},t.rcompare=function(e,t,r){return h(t,e,r)},t.sort=function(e,r){return e.sort((function(e,o){return t.compareBuild(e,o,r)}))},t.rsort=function(e,r){return e.sort((function(e,o){return t.compareBuild(o,e,r)}))},t.gt=y,t.lt=m,t.eq=v,t.neq=g,t.gte=E,t.lte=w,t.cmp=O,t.Comparator=b;var S={};function R(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof R)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new R(e.raw,t);if(e instanceof b)return new R(e.value,t);if(!(this instanceof R))return new R(e,t);if(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})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function P(e,t){for(var r=!0,o=e.slice(),n=o.pop();r&&o.length;)r=o.every((function(e){return n.intersects(e,t)})),n=o.pop();return r}function x(e){return!e||"x"===e.toLowerCase()||"*"===e}function A(e,t,r,o,n,i,s,a,c,u,l,p,f){return((t=x(r)?"":x(o)?">="+r+".0.0":x(n)?">="+r+"."+o+".0":">="+t)+" "+(a=x(c)?"":x(u)?"<"+(+c+1)+".0.0":x(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+a)).trim()}function I(e,t,o){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!o.includePrerelease){for(n=0;n<e.length;n++)if(r(e[n].semver),e[n].semver!==S&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function _(e,t,r){try{t=new R(t,r)}catch(e){return!1}return t.test(e)}function N(e,t,r,o){var n,i,s,a,c;switch(e=new p(e,o),t=new R(t,o),r){case">":n=y,i=w,s=m,a=">",c=">=";break;case"<":n=m,i=E,s=y,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_(e,t,o))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],f=null,d=null;if(l.forEach((function(e){e.semver===S&&(e=new b(">=0.0.0")),f=f||e,d=d||e,n(e.semver,f.semver,o)?f=e:s(e.semver,d.semver,o)&&(d=e)})),f.operator===a||f.operator===c)return!1;if((!d.operator||d.operator===a)&&i(e,d.semver))return!1;if(d.operator===c&&s(e,d.semver))return!1}return!0}b.prototype.parse=function(e){var t=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=S},b.prototype.toString=function(){return this.value},b.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===S||e===S)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return O(e,this.operator,this.semver,this.options)},b.prototype.intersects=function(e,t){if(!(e instanceof b))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new R(e.value,t),_(this.value,r,t));if(""===e.operator)return""===e.value||(r=new R(this.value,t),_(e.semver,r,t));var o=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=O(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=O(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return o||n||i&&s||a||c},t.Range=R,R.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},R.prototype.toString=function(){return this.range},R.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var o=t?n[s.HYPHENRANGELOOSE]:n[s.HYPHENRANGE];e=e.replace(o,A),r("hyphen replace",e),e=e.replace(n[s.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,n[s.COMPARATORTRIM]),e=(e=(e=e.replace(n[s.TILDETRIM],"$1~")).replace(n[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var o=t.loose?n[s.CARETLOOSE]:n[s.CARET];return e.replace(o,(function(t,o,n,i,s){var a;return r("caret",e,t,o,n,i,s),x(o)?a="":x(n)?a=">="+o+".0.0 <"+(+o+1)+".0.0":x(i)?a="0"===o?">="+o+"."+n+".0 <"+o+"."+(+n+1)+".0":">="+o+"."+n+".0 <"+(+o+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===o?"0"===n?">="+o+"."+n+"."+i+"-"+s+" <"+o+"."+n+"."+(+i+1):">="+o+"."+n+"."+i+"-"+s+" <"+o+"."+(+n+1)+".0":">="+o+"."+n+"."+i+"-"+s+" <"+(+o+1)+".0.0"):(r("no pr"),a="0"===o?"0"===n?">="+o+"."+n+"."+i+" <"+o+"."+n+"."+(+i+1):">="+o+"."+n+"."+i+" <"+o+"."+(+n+1)+".0":">="+o+"."+n+"."+i+" <"+(+o+1)+".0.0"),r("caret return",a),a}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var o=t.loose?n[s.TILDELOOSE]:n[s.TILDE];return e.replace(o,(function(t,o,n,i,s){var a;return r("tilde",e,t,o,n,i,s),x(o)?a="":x(n)?a=">="+o+".0.0 <"+(+o+1)+".0.0":x(i)?a=">="+o+"."+n+".0 <"+o+"."+(+n+1)+".0":s?(r("replaceTilde pr",s),a=">="+o+"."+n+"."+i+"-"+s+" <"+o+"."+(+n+1)+".0"):a=">="+o+"."+n+"."+i+" <"+o+"."+(+n+1)+".0",r("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var o=t.loose?n[s.XRANGELOOSE]:n[s.XRANGE];return e.replace(o,(function(o,n,i,s,a,c){r("xRange",e,o,n,i,s,a,c);var u=x(i),l=u||x(s),p=l||x(a),f=p;return"="===n&&f&&(n=""),c=t.includePrerelease?"-0":"",u?o=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(l&&(s=0),a=0,">"===n?(n=">=",l?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):"<="===n&&(n="<",l?i=+i+1:s=+s+1),o=n+i+"."+s+"."+a+c):l?o=">="+i+".0.0"+c+" <"+(+i+1)+".0.0"+c:p&&(o=">="+i+"."+s+".0"+c+" <"+i+"."+(+s+1)+".0"+c),r("xRange return",o),o}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(n[s.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new b(e,this.options)}),this)},R.prototype.intersects=function(e,t){if(!(e instanceof R))throw new TypeError("a Range is required");return this.set.some((function(r){return P(r,t)&&e.set.some((function(e){return P(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new R(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},R.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1},t.satisfies=_,t.maxSatisfying=function(e,t,r){var o=null,n=null;try{var i=new R(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(o&&-1!==n.compare(e)||(n=new p(o=e,r)))})),o},t.minSatisfying=function(e,t,r){var o=null,n=null;try{var i=new R(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(o&&1!==n.compare(e)||(n=new p(o=e,r)))})),o},t.minVersion=function(e,t){e=new R(e,t);var r=new p("0.0.0");if(e.test(r))return r;if(r=new p("0.0.0-0"),e.test(r))return r;r=null;for(var o=0;o<e.set.length;++o)e.set[o].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!y(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return r&&e.test(r)?r:null},t.validRange=function(e,t){try{return new R(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return N(e,t,"<",r)},t.gtr=function(e,t,r){return N(e,t,">",r)},t.outside=N,t.prerelease=function(e,t){var r=l(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new R(e,r),t=new R(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var o;(o=n[s.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&o.index+o[0].length===r.index+r[0].length||(r=o),n[s.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;n[s.COERCERTL].lastIndex=-1}else r=e.match(n[s.COERCE]);return null===r?null:l(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},7478:(e,t,r)=>{"use strict";var o=r(210),n=r(1924),i=r(631),s=o("%TypeError%"),a=o("%WeakMap%",!0),c=o("%Map%",!0),u=n("WeakMap.prototype.get",!0),l=n("WeakMap.prototype.set",!0),p=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),d=n("Map.prototype.set",!0),h=n("Map.prototype.has",!0),y=function(e,t){for(var r,o=e;null!==(r=o.next);o=r)if(r.key===t)return o.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,o={assert:function(e){if(!o.has(e))throw new s("Side channel does not contain "+i(e))},get:function(o){if(a&&o&&("object"==typeof o||"function"==typeof o)){if(e)return u(e,o)}else if(c){if(t)return f(t,o)}else if(r)return function(e,t){var r=y(e,t);return r&&r.value}(r,o)},has:function(o){if(a&&o&&("object"==typeof o||"function"==typeof o)){if(e)return p(e,o)}else if(c){if(t)return h(t,o)}else if(r)return function(e,t){return!!y(e,t)}(r,o);return!1},set:function(o,n){a&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new a),l(e,o,n)):c?(t||(t=new c),d(t,o,n)):(r||(r={key:{},next:null}),function(e,t,r){var o=y(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}}(r,o,n))}};return o}},3607:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=i(r(2225)),c=r(4448),u=i(r(7147)),l=r(3855);!function(){s(this,void 0,void 0,(function*(){try{const e=a.getInput("version",{required:!0});let t=yield(0,c.installCompiler)(e);a.setOutput("version",t);const r=a.getInput("version-file",{required:!1}),o=a.getInput("define-name",{required:!1});if(""!==r){if(!u.existsSync(r))return void a.error("The path of the file containing the version is incorrect.");let e=(0,l.parseFile)(r,o);a.setOutput("plugin-version",e)}}catch(e){a.setFailed(e.message)}}))}()},4448:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.installCompiler=void 0;const n=r(4392),i=r(2225),s=r(6625),a=r(1017),c=r(7656);let u;t.installCompiler=function(e){return o(this,void 0,void 0,(function*(){u=yield(0,c.getVersions)();let t=(0,s.maxSatisfying)(Object.keys(u),e);if(null===t)throw new Error(`Unable to find a version matching ${e}`);let r=(0,n.find)("sourcepawn",t);return r||(r=yield function(e){return o(this,void 0,void 0,(function*(){const t=yield(0,n.downloadTool)(u[e].toEndpoint());let r;r="linux"===process.platform?yield(0,n.extractTar)(t):yield(0,n.extractZip)(t);let o=(0,a.join)(r,"addons","sourcemod","scripting");return yield(0,n.cacheDir)(o,"sourcepawn",e)}))}(t)),(0,i.addPath)(r),(0,i.exportVariable)("includePath",(0,a.join)(r,"include")),t}))}},2656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Version=t.parsePlatform=t.Platform=void 0;const o=r(3553);var n;!function(e){e.Linux="linux",e.Windows="windows",e.Mac="mac",e.Unknown="unknown"}(n=t.Platform||(t.Platform={})),t.parsePlatform=function(e){switch(e){case"linux":return n.Linux;case"windows":return n.Windows;case"mac":return n.Mac;default:return n.Unknown}},t.Version=class{constructor(e,t,r,o,n){this.major=e,this.minor=t,this.build=r,this.platform=o,this.archiveExt=n}toString(){return`${this.major}.${this.minor}.${this.build}`}toEndpoint(){return`${o.ENDPOINT}${this.major}.${this.minor}/sourcemod-${this.major}.${this.minor}.0-git${this.build}-${this.platform}.${this.archiveExt}`}}},3553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BUILD_REGEX=t.MM_REGEX=t.ENDPOINT=void 0,t.ENDPOINT="https://www.sourcemod.net/smdrop/",t.MM_REGEX=/href="(.*?)"/g,t.BUILD_REGEX=/href="sourcemod-[0-9]+.[0-9]+.[0-9]+-git([0-9]+)-(linux|windows|mac).(.*?)"/g},3855:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFile=void 0;const s=i(r(7147));t.parseFile=function(e,t){if(""!==t)var r=new RegExp(`\\s*\\#define\\s+${t}\\s+(?:\\"|\\')([\\d.]+)`);else r=/\s*version\s*=\s*(?:\"|\')([\d.]+)/;const o=s.readFileSync(e,"utf8").split("\n");var n,i="";for(let e of o)if(null!==(n=e.match(r))){i=n[1].trim();break}return i}},7656:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getVersions=void 0;const i=r(3553),s=r(2656),a=r(7723),c=n(r(1800)),u=new a.HttpClient("setup-sp");function l(e,t,r,n){return o(this,void 0,void 0,(function*(){const[o,a]=yield(0,c.default)(u.get(e));if(o||!a||200!==a.message.statusCode)throw new Error(`Failed to pull builds from ${e}`);const l=yield a.readBody();let p;for(;null!==(p=i.BUILD_REGEX.exec(l));){let e=(0,s.parsePlatform)(p[2]);if("win32"==process.platform&&e!=s.Platform.Windows)continue;if("darwin"==process.platform&&e!=s.Platform.Mac)continue;if("linux"==process.platform&&e!=s.Platform.Linux)continue;let o=new s.Version(r,n,p[1],e,p[3]);t[o.toString()]=o}}))}t.getVersions=function(){return o(this,void 0,void 0,(function*(){const[e,t]=yield(0,c.default)(u.get(i.ENDPOINT));if(e||!t||200!==t.message.statusCode)throw new Error(`Failed to pull major minor versions from ${i.ENDPOINT}`);let r={};if(e)return r;const o=yield t.readBody();let n,s=[];for(;null!==(n=i.MM_REGEX.exec(o));){if(n[1]=n[1].replace("/",""),n[1].length<=0)continue;let e=n[1].split(".");s.push(l(`${i.ENDPOINT}/${n[1]}/`,r,e[0],e[1]))}return yield Promise.all(s),r}))}},6149:(e,t,r)=>{e.exports=r(5468)},5468:(e,t,r)=>{"use strict";r(1808);var o,n=r(4404),i=r(3685),s=r(5687),a=r(2361),c=(r(9491),r(3837));function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||i.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,r,o,n){for(var i=p(r,o,n),s=0,a=t.requests.length;s<a;++s){var c=t.requests[s];if(c.host===i.host&&c.port===i.port)return t.requests.splice(s,1),void c.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function l(e,t){var r=this;u.prototype.createSocket.call(r,e,(function(o){var i=e.request.getHeader("host"),s=f({},r.options,{socket:o,servername:i?i.replace(/:.*$/,""):e.host}),a=n.connect(0,s);r.sockets[r.sockets.indexOf(o)]=a,t(a)}))}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function f(e){for(var t=1,r=arguments.length;t<r;++t){var o=arguments[t];if("object"==typeof o)for(var n=Object.keys(o),i=0,s=n.length;i<s;++i){var a=n[i];void 0!==o[a]&&(e[a]=o[a])}}return e}t.httpOverHttp=function(e){var t=new u(e);return t.request=i.request,t},t.httpsOverHttp=function(e){var t=new u(e);return t.request=i.request,t.createSocket=l,t.defaultPort=443,t},t.httpOverHttps=function(e){var t=new u(e);return t.request=s.request,t},t.httpsOverHttps=function(e){var t=new u(e);return t.request=s.request,t.createSocket=l,t.defaultPort=443,t},c.inherits(u,a.EventEmitter),u.prototype.addRequest=function(e,t,r,o){var n=this,i=f({request:e},n.options,p(t,r,o));n.sockets.length>=this.maxSockets?n.requests.push(i):n.createSocket(i,(function(t){function r(){n.emit("free",t,i)}function o(e){n.removeSocket(t),t.removeListener("free",r),t.removeListener("close",o),t.removeListener("agentRemove",o)}t.on("free",r),t.on("close",o),t.on("agentRemove",o),e.onSocket(t)}))},u.prototype.createSocket=function(e,t){var r=this,n={};r.sockets.push(n);var i=f({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),o("making CONNECT request");var s=r.request(i);function a(i,a,c){var u;return s.removeAllListeners(),a.removeAllListeners(),200!==i.statusCode?(o("tunneling socket could not be established, statusCode=%d",i.statusCode),a.destroy(),(u=new Error("tunneling socket could not be established, statusCode="+i.statusCode)).code="ECONNRESET",e.request.emit("error",u),void r.removeSocket(n)):c.length>0?(o("got illegal response body from proxy"),a.destroy(),(u=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",u),void r.removeSocket(n)):(o("tunneling connection has established"),r.sockets[r.sockets.indexOf(n)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,r){process.nextTick((function(){a(e,t,r)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),o("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)})),s.end()},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,(function(e){r.request.onSocket(e)}))}},o=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},t.debug=o},7723:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):new r((function(t){t(e.value)})).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=r(7310),i=r(3685),s=r(5687),a=r(1320);let c,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 p=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],d=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED"],h=["OPTIONS","GET","DELETE","HEAD"];class y{constructor(e){this.message=e}readBody(){return new Promise(((e,t)=>o(this,void 0,void 0,(function*(){let r=Buffer.alloc(0);const n=a.obtainContentCharset(this),i=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(i);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,n):e;r=Buffer.concat([r,t])})).on("end",(function(){return o(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(r,n);e(t)}else e(r.toString(n))}))})).on("error",(function(e){t(e)}))}))))}}var m;t.HttpClientResponse=y,t.isHttps=function(e){return"https:"===n.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(m||(m={})),t.HttpClient=class{constructor(e,t,o){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[];let n=process.env[m.NO_PROXY];n&&(this._httpProxyBypassHosts=[],n.split(",").forEach((e=>{this._httpProxyBypassHosts.push(a.buildProxyBypassRegexFromEnv(e))}))),this.requestOptions=o,o&&(null!=o.ignoreSslError&&(this._ignoreSslError=o.ignoreSslError),this._socketTimeout=o.socketTimeout,this._httpProxy=o.proxy,o.proxy&&o.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],o.proxy.proxyBypassHosts.forEach((e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))}))),this._certConfig=o.cert,this._certConfig&&(c=r(7147),this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8"))),null!=o.allowRedirects&&(this._allowRedirects=o.allowRedirects),null!=o.allowRedirectDowngrade&&(this._allowRedirectDowngrade=o.allowRedirectDowngrade),null!=o.maxRedirects&&(this._maxRedirects=Math.max(o.maxRedirects,0)),null!=o.keepAlive&&(this._keepAlive=o.keepAlive),null!=o.allowRetries&&(this._allowRetries=o.allowRetries),null!=o.maxRetries&&(this._maxRetries=o.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,o){return this.request(e,t,r,o)}request(e,t,r,i){return o(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=n.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=h.indexOf(e)?this._maxRetries+1:1,u=0;for(;u<c;){try{o=yield this.requestRaw(a,r)}catch(e){if(u++,e&&e.code&&d.indexOf(e.code)>-1&&u<c){yield this._performExponentialBackoff(u);continue}throw e}if(o&&o.message&&o.message.statusCode===l.Unauthorized){let e;for(let t=0;t<this.handlers.length;t++)if(this.handlers[t].canHandleAuthentication(o)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,r):o}let t=this._maxRedirects;for(;-1!=p.indexOf(o.message.statusCode)&&this._allowRedirects&&t>0;){const c=o.message.headers.location;if(!c)break;let u=n.parse(c);if("https:"==s.protocol&&s.protocol!=u.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 o.readBody(),a=this._prepareRequest(e,u,i),o=yield this.requestRaw(a,r),t--}if(-1==f.indexOf(o.message.statusCode))return o;u+=1,u<c&&(yield o.readBody(),yield this._performExponentialBackoff(u))}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise(((r,o)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&o(e),r(t)}))}))}requestRawWithCallback(e,t,r){let o;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let n=!1,i=(e,t)=>{n||(n=!0,r(e,t))},s=e.httpModule.request(e.options,(e=>{let t=new y(e);i(null,t)}));s.on("socket",(e=>{o=e})),s.setTimeout(this._socketTimeout||18e4,(()=>{o&&o.destroy(),i(new Error("Request timeout: "+e.options.path),null)})),s.on("error",(function(e){i(e,null)})),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){s.end()})),t.pipe(s)):s.end()}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const a="https:"===o.parsedUrl.protocol;o.httpModule=a?s:i;const c=a?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):c,o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||""),o.options.method=e,o.options.timeout=this.requestOptions&&this.requestOptions.socketTimeout||this._socketTimeout,this._socketTimeout=o.options.timeout,o.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(o.options.headers["user-agent"]=this.userAgent),o.options.agent=this._getAgent(o.parsedUrl),this.handlers&&!this._isPresigned(n.format(t))&&this.handlers.forEach((e=>{e.prepareRequest(o.options)})),o}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let r=0;r<t.length;r++)if(e.match(t[r]))return!0}return!1}_mergeHeaders(e){const t=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,o=this._getProxy(e),n=o.proxyUrl&&o.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||i.globalAgent.maxSockets),n){u||(u=r(6149));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:o.proxyAuth,host:o.proxyUrl.hostname,port:o.proxyUrl.port}};let n;const i="https:"===o.proxyUrl.protocol;n=a?i?u.httpsOverHttps:u.httpsOverHttp:i?u.httpOverHttps:u.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new i.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:i.globalAgent),a&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),a&&this._certConfig&&(t.options=Object.assign(t.options||{},{ca:this._ca,cert:this._cert,key:this._key,passphrase:this._certConfig.passphrase})),t}_getProxy(e){let t,r,o="https:"===e.protocol,i=this._httpProxy,s=process.env[m.HTTPS_PROXY],a=process.env[m.HTTP_PROXY];return i||(s&&o?i={proxyUrl:s}:a&&(i={proxyUrl:a})),i&&(i.proxyUrl.length>0&&(t=n.parse(i.proxyUrl)),(i.proxyUsername||i.proxyPassword)&&(r=i.proxyUsername+":"+i.proxyPassword)),{proxyUrl:t,proxyAuth:r}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach((r=>{r.test(e.href)&&(t=!0)})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}}},1320:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):new r((function(t){t(e.value)})).then(s,a)}c((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=r(129),i=r(7310),s=r(1017),a=r(9796);t.getUrl=function(e,t,r){const o=s.posix||s;let a="";if(t)if(e){const r=i.parse(t),n=i.parse(e);n.protocol=n.protocol||r.protocol,n.auth=n.auth||r.auth,n.host=n.host||r.host,n.pathname=o.resolve(r.pathname,n.pathname),!n.pathname.endsWith("/")&&e.endsWith("/")&&(n.pathname+="/"),a=i.format(n)}else a=t;else a=e;return r?function(e,t){const r=e.replace(/\?$/g,""),o=n.stringify(t.params,function(e){return{addQueryPrefix:!0,delimiter:(e.options||{}).separator||"&",allowDots:(e.options||{}).shouldAllowDots||!1,arrayFormat:(e.options||{}).arrayFormat||"repeat",encodeValuesOnly:(e.options||{}).shouldOnlyEncodeValues||!0}}(t));return`${r}${o}`}(a,r):a},t.decompressGzippedContent=function(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>o(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,o){e&&n(e),r(o.toString(t||"utf-8"))}))}))))}))},t.buildProxyBypassRegexFromEnv=function(e){try{return new RegExp(e,"i")}catch(t){if(t instanceof SyntaxError&&(e||"").startsWith("*")){let t=e.replace("*","(.*)");return new RegExp(t,"i")}throw t}},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]&&-1!=["ascii","utf8","utf16le","ucs2","base64","binary","hex"].indexOf(t[1])?t[1]:"utf-8"}},5327:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var o=r||0,n=t;return[n[e[o++]],n[e[o++]],n[e[o++]],n[e[o++]],"-",n[e[o++]],n[e[o++]],"-",n[e[o++]],n[e[o++]],"-",n[e[o++]],n[e[o++]],"-",n[e[o++]],n[e[o++]],n[e[o++]],n[e[o++]],n[e[o++]],n[e[o++]]].join("")}},556:(e,t,r)=>{var o=r(6113);e.exports=function(){return o.randomBytes(16)}},1171:(e,t,r)=>{var o=r(556),n=r(5327);e.exports=function(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||o)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||n(s)}},9491:e=>{"use strict";e.exports=require("assert")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(3607)})(); |