diff --git a/dist/azure/gitreleasemanager/addasset/bundle.js b/dist/azure/gitreleasemanager/addasset/bundle.js index 615a781..bc3fa3a 100644 --- a/dist/azure/gitreleasemanager/addasset/bundle.js +++ b/dist/azure/gitreleasemanager/addasset/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},,,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/addasset.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/addasset.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,19 +6,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function N(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function R(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+o.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,i=j(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),i=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=E("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function E(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new x(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=P;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));return m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;){n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return i.stderr.on("data",(function(e){(n.emit("stderr",e),a=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(i.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ @@ -30,11 +30,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),c=n(/*! fs */"fs"),u=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(E(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;e=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);return a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),n.push.apply(n,c),n}(s.body)).length&&1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),j=Math.max(c[0].length,c[1].length),x=3==c.length?Math.abs(l(c[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else{if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));return n.push.apply(n,c),n}(s.body)).length)if(1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),E=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(l(c[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ @@ -94,7 +94,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!**************************************************************!*\ !*** ./node_modules/inversify/lib/bindings/binding_count.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": /*!************************************************************!*\ !*** ./node_modules/inversify/lib/constants/error_msgs.js ***! \************************************************************/ @@ -102,7 +102,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/literal_types.js ***! \***************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/metadata_keys.js ***! \***************************************************************/ @@ -114,7 +114,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_module.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js");t.ContainerModule=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=function(e){this.id=r.id(),this.registry=e}},"./node_modules/inversify/lib/container/container_snapshot.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var o=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=o},"./node_modules/inversify/lib/container/container_snapshot.js": /*!********************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_snapshot.js ***! \********************************************************************/ @@ -142,11 +142,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),c=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),u=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,u=m(n.container,s.serviceIdentifier);return u.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),u=m(n.container,s.serviceIdentifier)),a=t?u:u.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=c.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new u.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new l.Metadata(a,n),u=new h.Target(t,"",n,c);if(void 0!==i){var d=new l.Metadata(i,o);u.metadata.push(d)}return u}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,c){var u,l;if(null===a){u=y(t,n,s,null,c),l=new f.Request(r,s,null,u,c);var h=new d.Plan(s,l);s.addPlan(h)}else u=y(t,n,s,a,c),l=a.addChildRequest(c.serviceIdentifier,u,c);u.forEach((function(n){var r=null;if(c.isArray())r=l.addChildRequest(n.serviceIdentifier,n,c);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var u=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var c=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function u(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var u=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(u)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,i){for(var o=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=Object.keys(r),a=0,u=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ @@ -162,11 +162,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var c=null;"string"==typeof a?c=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(c=a),null!==c&&this.metadata.push(c)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,c=null;if(t.length>0){var u=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);a=u,c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ @@ -198,7 +198,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -218,7 +218,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),N=o.slice(P.reEnd-8,P.reEnd),R=o.slice(P.reEnd);N+=R;var I=k.split("(").length-1,M=R;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=o.slice(0,k.reStart),C=o.slice(k.reStart,k.reEnd-8),R=o.slice(k.reEnd-8,k.reEnd),N=o.slice(k.reEnd);R+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,7 +249,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var N,R,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return u(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(N=$,R="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(R+" is deprecated, use "+I+" instead.",new Error("").stack),N.apply(N,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],i=p(j.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=k(t);return P(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=E++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=j(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=C,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return u(e,(function(r,i,o){var s;P(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=j();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ @@ -265,11 +265,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var j=0;j0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,7 +288,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return R(Object.create(null))}:s?function(){return R({__proto__:null})}:function(){return R({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=C(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=C(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=C(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -296,11 +296,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[c]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var N=s++;o[N]="^"+o[k]+o[E]+"$";var R=s++;o[R]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[E]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[N];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var E=s++;o[E]=o[c]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var x=s++;o[x]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[x]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var k=s++;o[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[P]+"\\s+",i[C]=new RegExp(o[C],"g");var R=s++;o[R]="^"+o[P]+o[x]+"$";var N=s++;o[N]="^"+o[P]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[x]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[x]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[x]+")\\s+-\\s+("+o[x]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ @@ -312,7 +312,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,c=r.WRITE,u=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),N=0;switch(x&&(N|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(N|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(N|=(A?u:0)+(O?c:0)+(P?a:0)),k&&(N|=y),S){case"+":w|=N;break;case"-":w&=~N;break;case"=":w=b+N,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,c=r&a.TYPE_MASK,u=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":u|=w;break;case"-":u&=~w;break;case"=":u=c+w,o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+u.toString(8)),r!=u&&(!e.verbose&&e.changes&&log(n+" -> "+u.toString(8)),o.chmodSync(n,u))}else i.error("Invalid symbolic mode change: "+t)})):(u=c+parseInt(t,8),o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r),o.chmodSync(n,u))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ @@ -404,11 +404,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=(n(/*! assert */"assert"),n(/*! util */"util"));function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},u.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){var u;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(u=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",u),void n.removeSocket(i)):c.length>0?(r("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 n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/azure/gitreleasemanager/close/bundle.js b/dist/azure/gitreleasemanager/close/bundle.js index 9fac0dd..8b8b02d 100644 --- a/dist/azure/gitreleasemanager/close/bundle.js +++ b/dist/azure/gitreleasemanager/close/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/close.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/close.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,23 +6,23 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function N(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function R(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+i.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var i=b(e);if(i&&i.hasOwnProperty("messages")){var s,a=o.join(o.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,o=j(e);return t._knownVariableMap.hasOwnProperty(o)&&(r=t._knownVariableMap[o]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+o):(n=process.env[o])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=o.basename(e),i=n.lastIndexOf(".");if(i>=0){var s=n.substr(i).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=o.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):o.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),i=d.createCipher("aes-256-ctr",n),s=i.update(t,"utf8","hex");s+=i.final("hex");var a=o.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var i=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(o.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(o.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),o=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",o||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var i=E("Agent.SkipCertValidation")||"false";i&&(global._vsts_task_lib_skip_cert_validation="TRUE"===i.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,o){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var i={result:r[e]};o&&(i.done="true"),t.command("task.complete",i,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var o=t.loc("LIB_OperationFailed",e,r);if(t.debug(o),!n)throw new Error(o)}}function E(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],o=[new x(e,1)],i=[],s=function(){var e=o.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);i.length>=e.level;)i.pop();if(i.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";i.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)o.push(u[l])}else t.debug(" "+e.path+" (file)")};o.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(o=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(i=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var o=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(o)&&(r=r||g._knownVariableMap[o].secret);var i=n||"";if(t.debug("set "+e+"="+(r&&i?"********":i)),r){if(i&&i.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+o,i),delete process.env[o]}else process.env[o]=i;g._knownVariableMap[o]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},i)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var o=[];return r.split(t).forEach((function(e){e&&o.push(e)})),o},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var o=w(e,n);return o&&r&&t.checkPath(o,e),o},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var o=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!o)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+o),o},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var o=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!o)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+o),o},t.getEndpointAuthorization=function(e,n){var o,i=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||i||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==i));try{i&&(o=JSON.parse(i))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",i))}return o},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var o=g._getVariableKey(e),i=n||"";t.debug("set task variable: "+e+"="+(r&&i?"********":i)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+o,i),delete process.env[o],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},i)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var o=void 0;try{o=d.statSync(r)}catch(o){if("ENOENT"==o.code){var i=p.dirname(r);if(r==i)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=i;continue}throw"UNKNOWN"==o.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):o}if(!o.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?i:s,s>=0?s:i);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&o)return!0;var t=d.statSync(e).isDirectory();return r&&!t||o&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",i=!1;if(c.test(t)||o&&c.test(r)){i=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),o=t.getVariable("Agent.ProxyPassword"),i=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&i.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:o,proxyBypassHosts:i}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var o=t.getVariable("Agent.ClientCertKey"),i=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=o,r.certArchiveFile=i,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,o,i,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),o&&(c.config=o),i&&(c.runTitle=i),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,o){var i={};e&&(i.codecoveragetool=e),n&&(i.summaryfile=n),r&&(i.reportdirectory=r),o&&(i.additionalcodecoveragefiles=o),t.command("codecoverage.publish",i,"")},e}();t.CodeCoveragePublisher=P;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,o){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},o)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,i,s,a,c,u,l,d,p,f){var h={id:e,parentid:i,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?o[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,o,s,a){var c={type:i[e].toLowerCase(),code:a,sourcepath:r,linenumber:o?o.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var o=e.substring(t+1,n),i=o.indexOf(" "),s=o,a={};i>0&&(s=o.trim().substring(0,i),o.trim().substring(i+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));return m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return o(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,o=!0,i="",s=function(e){r&&'"'!==e&&(i+="\\"),i+=e,r=!1},a=0;a-1;){n(r.substring(0,o)),o=(r=r.substring(o+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},o=0,i=e;o0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=i.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var o,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));m++,o=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),o.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),o.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),o.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));o.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return o.stderr.on("data",(function(e){(n.emit("stderr",e),a=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),o.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),o.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=i.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var o=new p(r,this.toolPath);o.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(o.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()})),a.on("exit",(function(e,n){o.processExitCode=e,o.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),o.CheckComplete()})),a.on("close",(function(e,n){o.processExitCode=e,o.processExited=!0,o.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),o.CheckComplete()})),o.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var o=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return o&&(r.delay=parseInt(o)),r}return o(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! crypto */"crypto"),s=n(/*! uuid/v4 */"./node_modules/uuid/v4.js"),a=function(){function e(e){this._keyFile=i.join(e,".taskkey"),this._store={},this.genKey()}return e.prototype.initialize=function(){},e.prototype.storeSecret=function(e,t){if(!e||0==e.length)return!1;if(e=e.toLowerCase(),!t||0==t.length)return this._store.hasOwnProperty(e)&&delete this._store[e],!1;var n=this.getKey(),r=o.randomBytes(16),i=o.createCipheriv("aes-256-ctr",n,r),s=i.update(t,"utf8","hex"),a=i.final("hex");return this._store[e]=r.toString("hex")+s+a,!0},e.prototype.retrieveSecret=function(e){var t;if(e=(e||"").toLowerCase(),this._store.hasOwnProperty(e)){var n=this.getKey(),r=this._store[e],i=Buffer.from(r,"hex"),s=i.slice(0,16),a=i.slice(16),c=o.createDecipheriv("aes-256-ctr",n,s);t=c.update(a,"hex","utf8")+c.final("utf8")}return t},e.prototype.getKey=function(){var e=r.readFileSync(this._keyFile).toString("utf8");return o.createHash("sha256").update(e).digest()},e.prototype.genKey=function(){r.writeFileSync(this._keyFile,s(),{encoding:"utf8"})},e}();t.Vault=a},"./node_modules/azure-pipelines-tool-lib sync recursive": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! crypto */"crypto"),s=n(/*! uuid/v4 */"./node_modules/uuid/v4.js"),a=function(){function e(e){this._keyFile=o.join(e,".taskkey"),this._store={},this.genKey()}return e.prototype.initialize=function(){},e.prototype.storeSecret=function(e,t){if(!e||0==e.length)return!1;if(e=e.toLowerCase(),!t||0==t.length)return this._store.hasOwnProperty(e)&&delete this._store[e],!1;var n=this.getKey(),r=i.randomBytes(16),o=i.createCipheriv("aes-256-ctr",n,r),s=o.update(t,"utf8","hex"),a=o.final("hex");return this._store[e]=r.toString("hex")+s+a,!0},e.prototype.retrieveSecret=function(e){var t;if(e=(e||"").toLowerCase(),this._store.hasOwnProperty(e)){var n=this.getKey(),r=this._store[e],o=Buffer.from(r,"hex"),s=o.slice(0,16),a=o.slice(16),c=i.createDecipheriv("aes-256-ctr",n,s);t=c.update(a,"hex","utf8")+c.final("utf8")}return t},e.prototype.getKey=function(){var e=r.readFileSync(this._keyFile).toString("utf8");return i.createHash("sha256").update(e).digest()},e.prototype.genKey=function(){r.writeFileSync(this._keyFile,s(),{encoding:"utf8"})},e}();t.Vault=a},"./node_modules/azure-pipelines-tool-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib sync ***! \****************************************************/ @@ -30,71 +30,71 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! url */"url"),i=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===o.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,o),i=yield this.requestRaw(r,n);if(i&&i.message&&i.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=i.message.headers.location;if(!t)break;yield i.readBody(),r=this._prepareRequest(e,t,o),i=yield this.requestRaw(r,n),s--}return i}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,i=(e,t)=>{o||(o=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);i(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),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,n){const r={};r.parsedUrl=o.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:i;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===o.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||i.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const o="https:"===n.proxyUrl.protocol;r=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===o.parse(e).protocol,i=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return i||(s&&r?i={proxyUrl:s}:a&&(i={proxyUrl:a})),i&&(i.proxyUrl.length>0&&(t=o.parse(i.proxyUrl)),(i.proxyUsername||i.proxyPassword)&&(n=i.proxyUsername+":"+i.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),c=n(/*! fs */"fs"),u=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let o=e[r];if(u.satisfies(o,t)){n=o;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=i.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let o=i.join(r,e,t);l.exist(o)&&l.exist(`${o}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=i.join(S(),e,u.clean(t),n);l.debug("destination "+r);let o=`${r}.complete`;return l.rmRF(r),l.rmRF(o),l.mkdirP(r),r}function b(e,t,n){let r=`${i.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=i.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(i.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+i.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=u.clean(t);let o=S(),s=i.join(o,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=i.isAbsolute(t)?t:i.join(E(),t),l.mkdirP(i.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[o.HttpCodes.BadGateway,o.HttpCodes.ServiceUnavailable,o.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,o){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),o=o||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,o)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,o);for(let t of c.readdirSync(e)){let n=i.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,o),r}))},t.cacheFile=function(e,t,n,o,a){return r(this,void 0,void 0,(function*(){if(o=u.clean(o),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,o,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,o,a),c=i.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,o,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${i.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),o=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);o.on("stdout",e=>{a.stdout.write(e)}),o.on("stderr",e=>{a.stderr.write(e)}),yield o.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=i.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let o=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield o.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},o=[];for(let e=0;e=0&&u>0){for(r=[],o=n.length;l>=0&&!a;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?a=[r.pop(),u]:((i=r.pop())=0?c:u;r.length&&(a=[o,s])}return a}e.exports=r,r.range=o},"./node_modules/brace-expansion/index.js": +/*! no static exports found */function(e,t,n){"use strict";function r(e,t,n){e instanceof RegExp&&(e=o(e,n)),t instanceof RegExp&&(t=o(t,n));var r=i(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function o(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var r,o,i,s,a,c=n.indexOf(e),u=n.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(r=[],i=n.length;l>=0&&!a;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?a=[r.pop(),u]:((o=r.pop())=0?c:u;r.length&&(a=[i,s])}return a}e.exports=r,r.range=i},"./node_modules/brace-expansion/index.js": /*!***********************************************!*\ !*** ./node_modules/brace-expansion/index.js ***! \***********************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);return a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),n.push.apply(n,c),n}(s.body)).length&&1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),j=Math.max(c[0].length,c[1].length),x=3==c.length?Math.abs(l(c[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),o=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var i=[],s=o("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else{if(1===(c=function e(t){if(!t)return[""];var n=[],r=o("{","}",t);if(!r)return t.split(",");var i=r.pre,s=r.body,a=r.post,c=i.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));return n.push.apply(n,c),n}(s.body)).length)if(1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),E=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(l(c[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ -/*! no static exports found */function(e,t){e.exports=function(e,t){for(var r=[],i=0;i0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?t._map.set(r,i):t._map.delete(r)}))},e.prototype.hasKey=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,n){e.forEach((function(e){return t.add(n,e.clone())}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,n){e(n,t)}))},e}();t.Lookup=i},"./node_modules/inversify/lib/inversify.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null==e)throw new Error(r.NULL_ARGUMENT);if(null==t)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(r.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(r.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach((function(n,r){var o=n.filter((function(t){return!e(t)}));o.length>0?t._map.set(r,o):t._map.delete(r)}))},e.prototype.hasKey=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,n){e.forEach((function(e){return t.add(n,e.clone())}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,n){e(n,t)}))},e}();t.Lookup=o},"./node_modules/inversify/lib/inversify.js": /*!*************************************************!*\ !*** ./node_modules/inversify/lib/inversify.js ***! \*************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.METADATA_KEY=r;var i=n(/*! ./container/container */"./node_modules/inversify/lib/container/container.js");t.Container=i.Container;var o=n(/*! ./constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js");t.BindingScopeEnum=o.BindingScopeEnum,t.BindingTypeEnum=o.BindingTypeEnum,t.TargetTypeEnum=o.TargetTypeEnum;var s=n(/*! ./container/container_module */"./node_modules/inversify/lib/container/container_module.js");t.AsyncContainerModule=s.AsyncContainerModule,t.ContainerModule=s.ContainerModule;var a=n(/*! ./annotation/injectable */"./node_modules/inversify/lib/annotation/injectable.js");t.injectable=a.injectable;var c=n(/*! ./annotation/tagged */"./node_modules/inversify/lib/annotation/tagged.js");t.tagged=c.tagged;var u=n(/*! ./annotation/named */"./node_modules/inversify/lib/annotation/named.js");t.named=u.named;var l=n(/*! ./annotation/inject */"./node_modules/inversify/lib/annotation/inject.js");t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var d=n(/*! ./annotation/optional */"./node_modules/inversify/lib/annotation/optional.js");t.optional=d.optional;var p=n(/*! ./annotation/unmanaged */"./node_modules/inversify/lib/annotation/unmanaged.js");t.unmanaged=p.unmanaged;var f=n(/*! ./annotation/multi_inject */"./node_modules/inversify/lib/annotation/multi_inject.js");t.multiInject=f.multiInject;var h=n(/*! ./annotation/target_name */"./node_modules/inversify/lib/annotation/target_name.js");t.targetName=h.targetName;var g=n(/*! ./annotation/post_construct */"./node_modules/inversify/lib/annotation/post_construct.js");t.postConstruct=g.postConstruct;var y=n(/*! ./planning/metadata_reader */"./node_modules/inversify/lib/planning/metadata_reader.js");t.MetadataReader=y.MetadataReader;var m=n(/*! ./utils/id */"./node_modules/inversify/lib/utils/id.js");t.id=m.id;var v=n(/*! ./annotation/decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.decorate=v.decorate;var _=n(/*! ./syntax/constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js");t.traverseAncerstors=_.traverseAncerstors,t.taggedConstraint=_.taggedConstraint,t.namedConstraint=_.namedConstraint,t.typeConstraint=_.typeConstraint;var b=n(/*! ./utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getServiceIdentifierAsString=b.getServiceIdentifierAsString;var w=n(/*! ./utils/binding_utils */"./node_modules/inversify/lib/utils/binding_utils.js");t.multiBindToService=w.multiBindToService},"./node_modules/inversify/lib/planning/context.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.METADATA_KEY=r;var o=n(/*! ./container/container */"./node_modules/inversify/lib/container/container.js");t.Container=o.Container;var i=n(/*! ./constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js");t.BindingScopeEnum=i.BindingScopeEnum,t.BindingTypeEnum=i.BindingTypeEnum,t.TargetTypeEnum=i.TargetTypeEnum;var s=n(/*! ./container/container_module */"./node_modules/inversify/lib/container/container_module.js");t.AsyncContainerModule=s.AsyncContainerModule,t.ContainerModule=s.ContainerModule;var a=n(/*! ./annotation/injectable */"./node_modules/inversify/lib/annotation/injectable.js");t.injectable=a.injectable;var c=n(/*! ./annotation/tagged */"./node_modules/inversify/lib/annotation/tagged.js");t.tagged=c.tagged;var u=n(/*! ./annotation/named */"./node_modules/inversify/lib/annotation/named.js");t.named=u.named;var l=n(/*! ./annotation/inject */"./node_modules/inversify/lib/annotation/inject.js");t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var d=n(/*! ./annotation/optional */"./node_modules/inversify/lib/annotation/optional.js");t.optional=d.optional;var p=n(/*! ./annotation/unmanaged */"./node_modules/inversify/lib/annotation/unmanaged.js");t.unmanaged=p.unmanaged;var f=n(/*! ./annotation/multi_inject */"./node_modules/inversify/lib/annotation/multi_inject.js");t.multiInject=f.multiInject;var h=n(/*! ./annotation/target_name */"./node_modules/inversify/lib/annotation/target_name.js");t.targetName=h.targetName;var g=n(/*! ./annotation/post_construct */"./node_modules/inversify/lib/annotation/post_construct.js");t.postConstruct=g.postConstruct;var y=n(/*! ./planning/metadata_reader */"./node_modules/inversify/lib/planning/metadata_reader.js");t.MetadataReader=y.MetadataReader;var m=n(/*! ./utils/id */"./node_modules/inversify/lib/utils/id.js");t.id=m.id;var v=n(/*! ./annotation/decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.decorate=v.decorate;var _=n(/*! ./syntax/constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js");t.traverseAncerstors=_.traverseAncerstors,t.taggedConstraint=_.taggedConstraint,t.namedConstraint=_.namedConstraint,t.typeConstraint=_.typeConstraint;var b=n(/*! ./utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getServiceIdentifierAsString=b.getServiceIdentifierAsString;var w=n(/*! ./utils/binding_utils */"./node_modules/inversify/lib/utils/binding_utils.js");t.multiBindToService=w.multiBindToService},"./node_modules/inversify/lib/planning/context.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/context.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(){function e(e){this.id=r.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=i},"./node_modules/inversify/lib/planning/metadata.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=function(){function e(e){this.id=r.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=o},"./node_modules/inversify/lib/planning/metadata.js": /*!*********************************************************!*\ !*** ./node_modules/inversify/lib/planning/metadata.js ***! \*********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},e}();t.Metadata=i},"./node_modules/inversify/lib/planning/metadata_reader.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),o=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},e}();t.Metadata=o},"./node_modules/inversify/lib/planning/metadata_reader.js": /*!****************************************************************!*\ !*** ./node_modules/inversify/lib/planning/metadata_reader.js ***! \****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=function(){function e(){}return e.prototype.getConstructorMetadata=function(e){return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,e),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,e)||{}}},e.prototype.getPropertiesMetadata=function(e){return Reflect.getMetadata(r.TAGGED_PROP,e)||[]},e}();t.MetadataReader=i},"./node_modules/inversify/lib/planning/plan.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),o=function(){function e(){}return e.prototype.getConstructorMetadata=function(e){return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,e),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,e)||{}}},e.prototype.getPropertiesMetadata=function(e){return Reflect.getMetadata(r.TAGGED_PROP,e)||[]},e}();t.MetadataReader=o},"./node_modules/inversify/lib/planning/plan.js": /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),c=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),u=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,u=m(n.container,s.serviceIdentifier);return u.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),u=m(n.container,s.serviceIdentifier)),a=t?u:u.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=c.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new u.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new l.Metadata(a,n),u=new h.Target(t,"",n,c);if(void 0!==i){var d=new l.Metadata(i,o);u.metadata.push(d)}return u}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,c){var u,l;if(null===a){u=y(t,n,s,null,c),l=new f.Request(r,s,null,u,c);var h=new d.Plan(s,l);s.addPlan(h)}else u=y(t,n,s,a,c),l=a.addChildRequest(c.serviceIdentifier,u,c);u.forEach((function(n){var r=null;if(c.isArray())r=l.addChildRequest(n.serviceIdentifier,n,c);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var u=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),o=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var c=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function u(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var u=o.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(u)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,o){for(var i=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),o=[],s=Object.keys(r),a=0,u=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(){function e(e,t,n,i,o){this.id=r.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var i=new e(t,this.parentContext,this,n,r);return this.childRequests.push(i),i},e}();t.Request=i},"./node_modules/inversify/lib/planning/target.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=function(){function e(e,t,n,o,i){this.id=r.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=i,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var o=new e(t,this.parentContext,this,n,r);return this.childRequests.push(o),o},e}();t.Request=o},"./node_modules/inversify/lib/planning/target.js": /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var c=null;"string"==typeof a?c=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(c=a),null!==c&&this.metadata.push(c)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,c=null;if(t.length>0){var u=t.filter((function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ConstructorArgument})).map(n);a=u,c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ClassProperty})),i=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var o=i[n];e[r]=o})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else c=new e;return function(e,t){if(Reflect.hasMetadata(i.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(i.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),s=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),a=n(/*! ./instantiation */"./node_modules/inversify/lib/resolution/instantiation.js"),c=function(e,t,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}},u=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,o=t.childRequests,l=t.target&&t.target.isArray(),d=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&d)return o.map((function(t){return u(e)(t)}));var p=null;if(!t.target.isOptional()||0!==n.length){var f=n[0],h=f.scope===i.BindingScopeEnum.Singleton,g=f.scope===i.BindingScopeEnum.Request;if(h&&f.activated)return f.cache;if(g&&null!==e&&e.has(f.id))return e.get(f.id);if(f.type===i.BindingTypeEnum.ConstantValue)p=f.cache;else if(f.type===i.BindingTypeEnum.Function)p=f.cache;else if(f.type===i.BindingTypeEnum.Constructor)p=f.implementationType;else if(f.type===i.BindingTypeEnum.DynamicValue&&null!==f.dynamicValue)p=c("toDynamicValue",f.serviceIdentifier,(function(){return f.dynamicValue(t.parentContext)}));else if(f.type===i.BindingTypeEnum.Factory&&null!==f.factory)p=c("toFactory",f.serviceIdentifier,(function(){return f.factory(t.parentContext)}));else if(f.type===i.BindingTypeEnum.Provider&&null!==f.provider)p=c("toProvider",f.serviceIdentifier,(function(){return f.provider(t.parentContext)}));else{if(f.type!==i.BindingTypeEnum.Instance||null===f.implementationType){var y=s.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+y)}p=a.resolveInstance(f.implementationType,o,u(e))}return"function"==typeof f.onActivation&&(p=f.onActivation(t.parentContext,p)),h&&(f.cache=p,f.activated=!0),g&&null!==e&&!e.has(f.id)&&e.set(f.id,p),p}}};t.resolve=function(e){return u(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},"./node_modules/inversify/lib/syntax/binding_in_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),s=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),a=n(/*! ./instantiation */"./node_modules/inversify/lib/resolution/instantiation.js"),c=function(e,t,n){try{return n()}catch(n){throw i.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}},u=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,i=t.childRequests,l=t.target&&t.target.isArray(),d=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&d)return i.map((function(t){return u(e)(t)}));var p=null;if(!t.target.isOptional()||0!==n.length){var f=n[0],h=f.scope===o.BindingScopeEnum.Singleton,g=f.scope===o.BindingScopeEnum.Request;if(h&&f.activated)return f.cache;if(g&&null!==e&&e.has(f.id))return e.get(f.id);if(f.type===o.BindingTypeEnum.ConstantValue)p=f.cache;else if(f.type===o.BindingTypeEnum.Function)p=f.cache;else if(f.type===o.BindingTypeEnum.Constructor)p=f.implementationType;else if(f.type===o.BindingTypeEnum.DynamicValue&&null!==f.dynamicValue)p=c("toDynamicValue",f.serviceIdentifier,(function(){return f.dynamicValue(t.parentContext)}));else if(f.type===o.BindingTypeEnum.Factory&&null!==f.factory)p=c("toFactory",f.serviceIdentifier,(function(){return f.factory(t.parentContext)}));else if(f.type===o.BindingTypeEnum.Provider&&null!==f.provider)p=c("toProvider",f.serviceIdentifier,(function(){return f.provider(t.parentContext)}));else{if(f.type!==o.BindingTypeEnum.Instance||null===f.implementationType){var y=s.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+y)}p=a.resolveInstance(f.implementationType,i,u(e))}return"function"==typeof f.onActivation&&(p=f.onActivation(t.parentContext,p)),h&&(f.cache=p,f.activated=!0),g&&null!==e&&!e.has(f.id)&&e.set(f.id,p),p}}};t.resolve=function(e){return u(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},"./node_modules/inversify/lib/syntax/binding_in_syntax.js": /*!****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_in_syntax.js ***! \****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),o=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=o},"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),i=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new o.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new o.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new o.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=i},"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js": /*!************************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js ***! \************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_in_syntax */"./node_modules/inversify/lib/syntax/binding_in_syntax.js"),i=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),o=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),s=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=s},"./node_modules/inversify/lib/syntax/binding_on_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_in_syntax */"./node_modules/inversify/lib/syntax/binding_in_syntax.js"),o=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),i=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),s=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new o.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=s},"./node_modules/inversify/lib/syntax/binding_on_syntax.js": /*!****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_on_syntax.js ***! \****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),i=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new r.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=i},"./node_modules/inversify/lib/syntax/binding_to_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),o=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new r.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=o},"./node_modules/inversify/lib/syntax/binding_to_syntax.js": /*!****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_to_syntax.js ***! \****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ./binding_in_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js"),s=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new o.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new o.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error(r.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}();t.BindingToSyntax=a},"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ./binding_in_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js"),s=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=o.BindingTypeEnum.Instance,this._binding.implementationType=e,new i.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=o.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=o.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new i.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=o.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error(r.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=o.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=o.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}();t.BindingToSyntax=a},"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js": /*!*********************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_when_on_syntax.js ***! \*********************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),i=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),o=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=o},"./node_modules/inversify/lib/syntax/binding_when_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),o=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),i=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=i},"./node_modules/inversify/lib/syntax/binding_when_syntax.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_when_syntax.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),i=n(/*! ./constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js"),o=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=i.namedConstraint(e),new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){return null!==e.target&&!e.target.isNamed()&&!e.target.isTagged()},new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=i.taggedConstraint(e)(t),new r.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return i.typeConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return i.namedConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return i.taggedConstraint(e)(t)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return i.traverseAncerstors(n,i.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!i.traverseAncerstors(n,i.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=o},"./node_modules/inversify/lib/syntax/constraint_helpers.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),o=n(/*! ./constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js"),i=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=o.namedConstraint(e),new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){return null!==e.target&&!e.target.isNamed()&&!e.target.isTagged()},new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=o.taggedConstraint(e)(t),new r.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return o.typeConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return o.namedConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return o.taggedConstraint(e)(t)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=i},"./node_modules/inversify/lib/syntax/constraint_helpers.js": /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),o=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),i=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||i(n,t))};t.traverseAncerstors=i;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new o.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -214,11 +214,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/serialization.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js");function i(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function o(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",i=n(e,t);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach((function(e){var t="Object";null!==e.implementationType&&(t=o(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)}))),r},t.circularDependencyToException=function e(t){t.childRequests.forEach((function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function(e){return function e(t,n){void 0===n&&(n=[]);var r=i(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(e).reverse().join(" --\x3e ")}(t);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)}))},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),i=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach((function(e){n+=e.toString()+"\n"}))," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=o},"./node_modules/minimatch/minimatch.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js");function o(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function i(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=o,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",o=n(e,t);return 0!==o.length&&(r="\nRegistered bindings:",o.forEach((function(e){var t="Object";null!==e.implementationType&&(t=i(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)}))),r},t.circularDependencyToException=function e(t){t.childRequests.forEach((function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function(e){return function e(t,n){void 0===n&&(n=[]);var r=o(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(e).reverse().join(" --\x3e ")}(t);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)}))},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),o=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==o&&o.forEach((function(e){n+=e.toString()+"\n"}))," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=i},"./node_modules/minimatch/minimatch.js": /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),N=o.slice(P.reEnd-8,P.reEnd),R=o.slice(P.reEnd);N+=R;var I=k.split("(").length-1,M=R;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var o=l.GLOBSTAR=d.GLOBSTAR={},i=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}l.filter=function(e,t){return t=t||{},function(n,r,o){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,o){return t.minimatch(n,r,u(e,o))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var o=0,i=e.length;o65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return o;if(""===e)return"";var r,i="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":i+="[^/]*?",c=!0;break;case"?":i+="[^/]",c=!0;break;default:i+="\\"+r}m.debug("clearStateChar %j %j",r,i),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=i.slice(0,k.reStart),C=i.slice(k.reStart,k.reEnd-8),R=i.slice(k.reEnd-8,k.reEnd),N=i.slice(k.reEnd);R+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(o=e[i]);i--);for(i=0;i>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(i===a&&s===c)return!0;if(i===a)return n;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,27 +249,27 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var N,R,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return u(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(N=$,R="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(R+" is deprecated, use "+I+" instead.",new Error("").stack),N.apply(N,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},o=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,i=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(i)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(o=function(e){t=t.next={task:e,domain:i&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)i=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return o.runAfter=function(e){s.push(e),n||(n=!0,r())},o}(),i=Function.call;function s(e){return function(){return i.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;no.stackCounter)&&(f(t,"__minimumStackCounter__",{value:o.stackCounter,configurable:!0}),r.unshift(o.stack));r.unshift(t.stack);var i=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&i<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=o,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],o=p(j.prototype),i=p(A.prototype);if(i.promiseDispatch=function(e,o,i){var s=c(arguments);n?(n.push(s),"when"===o&&i[1]&&r.push(i[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},i.valueOf=function(){if(n)return i;var e=k(t);return P(e)&&(t=e),e},i.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){i.stack=e.stack.substring(e.stack.indexOf("\n")+1),i.stackCounter=E++}function s(o){t=o,S.longStackSupport&&e&&(i.source=o),u(n,(function(e,t){S.nextTick((function(){o.promiseDispatch.apply(o,t)}))}),void 0),n=void 0,r=void 0}return o.promise=i,o.resolve=function(e){t||s(S(e))},o.fulfill=function(e){t||s(q(e))},o.reject=function(e){t||s(U(e))},o.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},o}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,o=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,o=j(),i=!1;return S.nextTick((function(){r.promiseDispatch((function(t){i||(i=!0,o.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){i||(i=!0,o.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||o.notify(t)}]),o.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=C,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return u(e,(function(r,o,i){var s;P(o)&&"fulfilled"===(s=o.inspect()).state?e[i]=s.value:(++t,O(o,(function(r){e[i]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:i,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,o,i){var s=e[i];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:i,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var i;if("undefined"==typeof StopIteration){try{i=n[e](t)}catch(e){return U(e)}return i.done?S(i.value):O(i.value,r,o)}try{i=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(i,r,o)}var n=e.apply(this,arguments),r=t.bind(t,"next"),o=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,o),!S.onerror)throw e;S.onerror(e)}))},o=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),o.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),o=j();function i(){return e.apply(t,arguments)}return r.push(o.makeNodeResolver()),S(i).fapply(r).fail(o.reject),o.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},"./node_modules/qs/lib/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},s)},"./node_modules/qs/lib/index.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/index.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./stringify */"./node_modules/qs/lib/stringify.js"),i=n(/*! ./parse */"./node_modules/qs/lib/parse.js"),o=n(/*! ./formats */"./node_modules/qs/lib/formats.js");e.exports={formats:o,parse:i,stringify:r}},"./node_modules/qs/lib/parse.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./stringify */"./node_modules/qs/lib/stringify.js"),o=n(/*! ./parse */"./node_modules/qs/lib/parse.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js");e.exports={formats:i,parse:o,stringify:r}},"./node_modules/qs/lib/parse.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/parse.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.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,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,c=[];if(a){if(!n.plainObjects&&i.call(Object.prototype,a)&&!n.allowPrototypes)return;c.push(a)}for(var u=0;n.depth>0&&null!==(s=o.exec(r))&&u=0;--i){var o,s=e[i];if("[]"===s&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[])[c]=r:o[a]=r:o={0:r}}r=o}return r}(c,t,n)}};e.exports=function(e,t){var n=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 Error("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,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||r.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 n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,l),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=g.split(",")),y.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(c,h)?c[h]=r.combine(c[h],g):c[h]=g}return c}(e,n):e,l=n.plainObjects?Object.create(null):{},d=Object.keys(u),p=0;p0&&/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,c=[];if(a){if(!n.plainObjects&&o.call(Object.prototype,a)&&!n.allowPrototypes)return;c.push(a)}for(var u=0;n.depth>0&&null!==(s=i.exec(r))&&u=0;--o){var i,s=e[o];if("[]"===s&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=r:i[a]=r:i={0:r}}r=i}return r}(c,t,n)}};e.exports=function(e,t){var n=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 Error("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,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||r.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 n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,l),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=g.split(",")),y.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(c,h)?c[h]=r.combine(c[h],g):c[h]=g}return c}(e,n):e,l=n.plainObjects?Object.create(null):{},d=Object.keys(u),p=0;p0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),o=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,o,i,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===o&&a(_)&&(_=_.join(",")),null===_){if(i)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=r.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var s=t[o];s&&"object"==typeof s&&n&&"object"==typeof n?t[o]=e(s,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var s=n[o];return r.call(t,o)?t[o]=e(t[o],s,i):t[o]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,43 +288,43 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=o(e);function o(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=o(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!i&&!s,c={create:i?function(){return R(Object.create(null))}:s?function(){return R({__proto__:null})}:function(){return R({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,o=n+1;o=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var o=e.length-1;o>=0;--o){var i=(0,e[o])(t,n,r);if(!b(i)&&!w(i)){if(!S(i))throw new TypeError;r=i}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var o=C(n);return!w(o)&&e(t,o,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var o=C(n);return w(o)?void 0:e(t,o,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),o=C(t);if(null===o)return r;var i=e(o,n);if(i.length<=0)return r;if(r.length<=0)return i;for(var s=new p,a=[],c=0,u=r;c0)return!0;var o=f.get(t);return o.delete(n),o.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ -/*! no static exports found */function(e,t){e.exports=function(e,t){for(var n=e.split("."),r=t.split("."),i=0;i<3;i++){var o=Number(n[i]),s=Number(r[i]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0}},"./node_modules/semver/semver.js": +/*! no static exports found */function(e,t){e.exports=function(e,t){for(var n=e.split("."),r=t.split("."),o=0;o<3;o++){var i=Number(n[o]),s=Number(r[o]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return 0}},"./node_modules/semver/semver.js": /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[c]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var N=s++;o[N]="^"+o[k]+o[E]+"$";var R=s++;o[R]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[E]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[N];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],s=0,a=s++;i[a]="0|[1-9]\\d*";var c=s++;i[c]="[0-9]+";var u=s++;i[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;i[l]="("+i[a]+")\\.("+i[a]+")\\.("+i[a]+")";var d=s++;i[d]="("+i[c]+")\\.("+i[c]+")\\.("+i[c]+")";var p=s++;i[p]="(?:"+i[a]+"|"+i[u]+")";var f=s++;i[f]="(?:"+i[c]+"|"+i[u]+")";var h=s++;i[h]="(?:-("+i[p]+"(?:\\."+i[p]+")*))";var g=s++;i[g]="(?:-?("+i[f]+"(?:\\."+i[f]+")*))";var y=s++;i[y]="[0-9A-Za-z-]+";var m=s++;i[m]="(?:\\+("+i[y]+"(?:\\."+i[y]+")*))";var v=s++,_="v?"+i[l]+i[h]+"?"+i[m]+"?";i[v]="^"+_+"$";var b="[v=\\s]*"+i[d]+i[g]+"?"+i[m]+"?",w=s++;i[w]="^"+b+"$";var S=s++;i[S]="((?:<|>)?=?)";var E=s++;i[E]=i[c]+"|x|X|\\*";var j=s++;i[j]=i[a]+"|x|X|\\*";var x=s++;i[x]="[v=\\s]*("+i[j]+")(?:\\.("+i[j]+")(?:\\.("+i[j]+")(?:"+i[h]+")?"+i[m]+"?)?)?";var T=s++;i[T]="[v=\\s]*("+i[E]+")(?:\\.("+i[E]+")(?:\\.("+i[E]+")(?:"+i[g]+")?"+i[m]+"?)?)?";var A=s++;i[A]="^"+i[S]+"\\s*"+i[x]+"$";var O=s++;i[O]="^"+i[S]+"\\s*"+i[T]+"$";var k=s++;i[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;i[P]="(?:~>?)";var C=s++;i[C]="(\\s*)"+i[P]+"\\s+",o[C]=new RegExp(i[C],"g");var R=s++;i[R]="^"+i[P]+i[x]+"$";var N=s++;i[N]="^"+i[P]+i[T]+"$";var I=s++;i[I]="(?:\\^)";var M=s++;i[M]="(\\s*)"+i[I]+"\\s+",o[M]=new RegExp(i[M],"g");var D=s++;i[D]="^"+i[I]+i[x]+"$";var B=s++;i[B]="^"+i[I]+i[T]+"$";var F=s++;i[F]="^"+i[S]+"\\s*("+b+")$|^$";var L=s++;i[L]="^"+i[S]+"\\s*("+_+")$|^$";var U=s++;i[U]="(\\s*)"+i[S]+"\\s*("+b+"|"+i[x]+")",o[U]=new RegExp(i[U],"g");var q=s++;i[q]="^\\s*("+i[x]+")\\s+-\\s+("+i[x]+")\\s*$";var V=s++;i[V]="^\\s*("+i[T]+")\\s+-\\s+("+i[T]+")\\s*$";var G=s++;i[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,i[H]),o[H]||(o[H]=new RegExp(i[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[w]:o[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[w]:o[v]);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>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||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=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return o+s;return i},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var oe={};function ie(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ie)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ie(e.raw,t);if(e instanceof re)return new ie(e.value,t);if(!(this instanceof ie))return new ie(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,o,i,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(o)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var o=0;o0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new ie(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var o,i,s,a,c;switch(e=new $(e,r),t=new ie(t,r),n){case">":o=J,i=te,s=X,a=">",c=">=";break;case"<":o=X,i=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,o(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&i(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?o[F]:o[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=oe},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ie(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new ie(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==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=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&s||a||c},t.Range=ie,ie.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ie.prototype.toString=function(){return this.range},ie.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[V]:o[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(o[U],"$1$2$3"),n("comparator trim",e,o[U]),e=(e=(e=e.replace(o[C],"$1~")).replace(o[M],"$1^")).split(/\s+/).join(" ");var i=t?o[F]:o[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[B]:o[D];return e.replace(r,(function(t,r,o,i,s){var a;return n("caret",e,t,r,o,i,s),se(r)?a="":se(o)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?a="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[N]:o[R];return e.replace(r,(function(t,r,o,i,s){var a;return n("tilde",e,t,r,o,i,s),se(r)?a="":se(o)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?a=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+(+o+1)+".0"):a=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[O]:o[A];return e.replace(r,(function(t,r,o,i,s,a){n("xRange",e,t,r,o,i,s,a);var c=se(o),u=c||se(i),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(i=0),s=0,">"===r?(r=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),t=r+o+"."+i+"."+s):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new re(e,this.options)}),this)},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new ie(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ie.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new ie(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new ie(e,n),t=new ie(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(o[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),o=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",o);var i=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",i);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs");e.exports=function(e,t){var n="";return t||r.error("no paths given"),"string"==typeof t&&(t=[].slice.call(arguments,1)),(t=r.expand(t)).forEach((function(e){i.existsSync(e)||r.error("no such file or directory: "+e),n+=i.readFileSync(e,"utf8")+"\n"})),"\n"===n[n.length-1]&&(n=n.substring(0,n.length-1)),r.ShellString(n)}},"./node_modules/shelljs/src/cd.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs");e.exports=function(e,t){var n="";return t||r.error("no paths given"),"string"==typeof t&&(t=[].slice.call(arguments,1)),(t=r.expand(t)).forEach((function(e){o.existsSync(e)||r.error("no such file or directory: "+e),n+=o.readFileSync(e,"utf8")+"\n"})),"\n"===n[n.length-1]&&(n=n.substring(0,n.length-1)),r.ShellString(n)}},"./node_modules/shelljs/src/cd.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/cd.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e,t){t||i.error("directory not specified"),r.existsSync(t)||i.error("no such file or directory: "+t),r.statSync(t).isDirectory()||i.error("not a directory: "+t),process.chdir(t)}},"./node_modules/shelljs/src/chmod.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e,t){t||o.error("directory not specified"),r.existsSync(t)||o.error("no such file or directory: "+t),r.statSync(t).isDirectory()||o.error("not a directory: "+t),process.chdir(t)}},"./node_modules/shelljs/src/chmod.js": /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,c=r.WRITE,u=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),N=0;switch(x&&(N|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(N|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(N|=(A?u:0)+(O?c:0)+(P?a:0)),k&&(N|=y),S){case"+":w|=N;break;case"-":w&=~N;break;case"=":w=b+N,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,o=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):o.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=o.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],o.expand(n).forEach((function e(t){var n=i.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&i.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=o.expand(n),r.forEach((function(n){if(n=s.resolve(n),i.existsSync(n)||o.error("File not found: "+n),!e.recursive||!i.lstatSync(n).isSymbolicLink()){var r=i.statSync(n).mode,c=r&a.TYPE_MASK,u=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":u|=w;break;case"-":u&=~w;break;case"=":u=c+w,i.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+u.toString(8)),r!=u&&(!e.verbose&&e.changes&&log(n+" -> "+u.toString(8)),i.chmodSync(n,u))}else o.error("Invalid symbolic mode change: "+t)})):(u=c+parseInt(t,8),i.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r),i.chmodSync(n,u))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! os */"os"),i=n(/*! fs */"fs"),o=n(/*! ./ls */"./node_modules/shelljs/src/ls.js"),s={silent:!1,fatal:!1};t.config=s;var a={error:null,currentCmd:"shell.js",tempDir:null};t.state=a;var c=r.type().match(/^Win/)?"win":"unix";function u(){s.silent||console.log.apply(this,arguments)}function l(e,t){if(null===a.error&&(a.error=""),a.error+=a.currentCmd+": "+e+"\n",e.length>0&&u(a.error),s.fatal&&process.exit(1),!t)throw""}t.platform=c,t.log=u,t.error=l,t.ShellString=function(e){return e},t.parseOptions=function(e,t){t||l("parseOptions() internal error: no map given");var n={};for(var r in t)n[t[r]]=!1;if(!e)return n;"string"!=typeof e&&l("parseOptions() internal error: wrong str");var i=e.match(/^\-(.+)/);return i?(i[1].split("").forEach((function(e){e in t?n[t[e]]=!0:l("option not recognized: "+e)})),n):n},t.expand=function(e){var t=[];return e.forEach((function(e){if(e.search(/\*[^\/]*\//)>-1||e.search(/\*\*[^\/]*\//)>-1){var n=e.match(/^([^*]+\/|)(.*)/),r=n[1],i=n[2].replace(/\*\*/g,".*").replace(/\*/g,"[^\\/]*");i=new RegExp(i),o("-R",r).filter((function(e){return i.test(e)})).forEach((function(e){t.push(e)}))}else e.search(/\*/)>-1?o("",e).forEach((function(e){t.push(e)})):t.push(e)})),t},t.unlinkSync=function(e){try{i.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;i.chmodSync(e,"0666"),i.unlinkSync(e)}},t.randomFileName=function(){return"shelljs_"+function e(t){if(1===t)return parseInt(16*Math.random(),10).toString(16);for(var n="",r=0;r0&&u(a.error),s.fatal&&process.exit(1),!t)throw""}t.platform=c,t.log=u,t.error=l,t.ShellString=function(e){return e},t.parseOptions=function(e,t){t||l("parseOptions() internal error: no map given");var n={};for(var r in t)n[t[r]]=!1;if(!e)return n;"string"!=typeof e&&l("parseOptions() internal error: wrong str");var o=e.match(/^\-(.+)/);return o?(o[1].split("").forEach((function(e){e in t?n[t[e]]=!0:l("option not recognized: "+e)})),n):n},t.expand=function(e){var t=[];return e.forEach((function(e){if(e.search(/\*[^\/]*\//)>-1||e.search(/\*\*[^\/]*\//)>-1){var n=e.match(/^([^*]+\/|)(.*)/),r=n[1],o=n[2].replace(/\*\*/g,".*").replace(/\*/g,"[^\\/]*");o=new RegExp(o),i("-R",r).filter((function(e){return o.test(e)})).forEach((function(e){t.push(e)}))}else e.search(/\*/)>-1?i("",e).forEach((function(e){t.push(e)})):t.push(e)})),t},t.unlinkSync=function(e){try{o.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;o.chmodSync(e,"0666"),o.unlinkSync(e)}},t.randomFileName=function(){return"shelljs_"+function e(t){if(1===t)return parseInt(16*Math.random(),10).toString(16);for(var n="",r=0;r and/or "):arguments.length>3?(t=[].slice.call(arguments,1,arguments.length-1),n=arguments[arguments.length-1]):"string"==typeof t?t=[t]:"length"in t?t=t:o.error("invalid arguments");var s=r.existsSync(n),u=s&&r.statSync(n);if(s&&u.isDirectory()||!(t.length>1)||o.error("dest is not a directory (too many sources)"),s&&u.isFile()&&!e.force&&o.error("dest file already exists: "+n),e.recursive){t.forEach((function(e,n){"/"===e[e.length-1]&&(t[n]+="*")}));try{r.mkdirSync(n,parseInt("0777",8))}catch(e){}}(t=o.expand(t)).forEach((function(t){if(r.existsSync(t))if(r.statSync(t).isDirectory())if(e.recursive){var s=i.join(n,i.basename(t)),u=r.statSync(t);try{r.mkdirSync(s,u.mode)}catch(e){if("EEXIST"!==e.code)throw e}c(t,s,{force:e.force})}else o.log(t+" is a directory (not copied)");else{var l=n;r.existsSync(n)&&r.statSync(n).isDirectory()&&(l=i.normalize(n+"/"+i.basename(t))),!r.existsSync(l)||e.force?a(t,l):o.error("dest file already exists: "+l,!0)}else o.error("no such file or directory: "+t,!0)}))}},"./node_modules/shelljs/src/dirs.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! os */"os");function a(e,t){r.existsSync(e)||i.error("copyFileSync: no such file or directory: "+e);var n=new Buffer(65536),o=65536,s=0,a=null,c=null;try{a=r.openSync(e,"r")}catch(t){i.error("copyFileSync: could not read src file ("+e+")")}try{c=r.openSync(t,"w")}catch(e){i.error("copyFileSync: could not write to dest file (code="+e.code+"):"+t)}for(;65536===o;)o=r.readSync(a,n,0,65536,s),r.writeSync(c,n,0,o),s+=o;r.closeSync(a),r.closeSync(c),r.chmodSync(t,r.statSync(e).mode)}function c(e,t,n){n||(n={});var o=r.statSync(e);try{r.mkdirSync(t,o.mode)}catch(e){if("EEXIST"!==e.code)throw e}for(var u=r.readdirSync(e),l=0;l and/or "):arguments.length>3?(t=[].slice.call(arguments,1,arguments.length-1),n=arguments[arguments.length-1]):"string"==typeof t?t=[t]:"length"in t?t=t:i.error("invalid arguments");var s=r.existsSync(n),u=s&&r.statSync(n);if(s&&u.isDirectory()||!(t.length>1)||i.error("dest is not a directory (too many sources)"),s&&u.isFile()&&!e.force&&i.error("dest file already exists: "+n),e.recursive){t.forEach((function(e,n){"/"===e[e.length-1]&&(t[n]+="*")}));try{r.mkdirSync(n,parseInt("0777",8))}catch(e){}}(t=i.expand(t)).forEach((function(t){if(r.existsSync(t))if(r.statSync(t).isDirectory())if(e.recursive){var s=o.join(n,o.basename(t)),u=r.statSync(t);try{r.mkdirSync(s,u.mode)}catch(e){if("EEXIST"!==e.code)throw e}c(t,s,{force:e.force})}else i.log(t+" is a directory (not copied)");else{var l=n;r.existsSync(n)&&r.statSync(n).isDirectory()&&(l=o.normalize(n+"/"+o.basename(t))),!r.existsSync(l)||e.force?a(t,l):i.error("dest file already exists: "+l,!0)}else i.error("no such file or directory: "+t,!0)}))}},"./node_modules/shelljs/src/dirs.js": /*!******************************************!*\ !*** ./node_modules/shelljs/src/dirs.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./cd */"./node_modules/shelljs/src/cd.js"),o=n(/*! path */"path"),s=[];function a(e){return/^[\-+]\d+$/.test(e)}function c(e){if(a(e)){if(Math.abs(e)1))return r.error("no other directory");n=n.splice(1,1).concat(n)}return e["no-cd"]?n=n.slice(1):(t=o.resolve(n.shift()),i("",t)),s=n,l("")},t.popd=function(e,t){if(a(e)&&(t=e,e=""),e=r.parseOptions(e,{n:"no-cd"}),!s.length)return r.error("directory stack empty");if(t=c(t||"+0"),e["no-cd"]||t>0||s.length+t===0)t=t>0?t-1:t,s.splice(t,1);else{var n=o.resolve(s.shift());i("",n)}return l("")},t.dirs=l},"./node_modules/shelljs/src/echo.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! ./cd */"./node_modules/shelljs/src/cd.js"),i=n(/*! path */"path"),s=[];function a(e){return/^[\-+]\d+$/.test(e)}function c(e){if(a(e)){if(Math.abs(e)1))return r.error("no other directory");n=n.splice(1,1).concat(n)}return e["no-cd"]?n=n.slice(1):(t=i.resolve(n.shift()),o("",t)),s=n,l("")},t.popd=function(e,t){if(a(e)&&(t=e,e=""),e=r.parseOptions(e,{n:"no-cd"}),!s.length)return r.error("directory stack empty");if(t=c(t||"+0"),e["no-cd"]||t>0||s.length+t===0)t=t>0?t-1:t,s.splice(t,1);else{var n=i.resolve(s.shift());o("",n)}return l("")},t.dirs=l},"./node_modules/shelljs/src/echo.js": /*!******************************************!*\ !*** ./node_modules/shelljs/src/echo.js ***! \******************************************/ @@ -336,59 +336,59 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************!*\ !*** ./node_modules/shelljs/src/exec.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./tempdir */"./node_modules/shelljs/src/tempdir.js"),o=n(/*! ./pwd */"./node_modules/shelljs/src/pwd.js"),s=n(/*! path */"path"),a=n(/*! fs */"fs"),c=n(/*! child_process */"child_process");e.exports=function(e,t,n){return e||r.error("must specify command"),"function"==typeof t&&(n=t,t={async:!0}),"object"==typeof t&&"function"==typeof n&&(t.async=!0),(t=r.extend({silent:r.config.silent,async:!1},t)).async?function(e,t,n){var i="",o=r.extend({silent:r.config.silent},t),s=c.exec(e,{env:process.env,maxBuffer:20971520},(function(e){n&&n(e?e.code:0,i)}));return s.stdout.on("data",(function(e){i+=e,o.silent||process.stdout.write(e)})),s.stderr.on("data",(function(e){i+=e,o.silent||process.stdout.write(e)})),s}(e,t,n):function(e,t){var n=i(),u=s.resolve(n+"/"+r.randomFileName()),l=s.resolve(n+"/"+r.randomFileName()),d=s.resolve(n+"/"+r.randomFileName()),p=s.resolve(n+"/"+r.randomFileName()),f=r.extend({silent:r.config.silent},t),h="";function g(){if(!f.silent&&a.existsSync(u)){var e=a.readFileSync(u,"utf8");e.length<=h.length||(process.stdout.write(e.substr(h.length)),h=e)}}function y(e){return(e+"").replace(/([\\"'])/g,"\\$1").replace(/\0/g,"\\0")}var m="var child = require('child_process'), fs = require('fs');child.exec('"+y(e+=" > "+u+" 2>&1")+"', {env: process.env, maxBuffer: 20*1024*1024}, function(err) { fs.writeFileSync('"+y(l)+"', err ? err.code.toString() : '0');});";for(a.existsSync(d)&&r.unlinkSync(d),a.existsSync(u)&&r.unlinkSync(u),a.existsSync(l)&&r.unlinkSync(l),a.writeFileSync(d,m),c.exec('"'+process.execPath+'" '+d,{env:process.env,cwd:o(),maxBuffer:20971520});!a.existsSync(l);)g(),a.writeFileSync(p,"a");for(;!a.existsSync(u);)g(),a.writeFileSync(p,"a");for(var v=parseInt("",10);isNaN(v);)v=parseInt(a.readFileSync(l,"utf8"),10);var _=a.readFileSync(u,"utf8");try{r.unlinkSync(d)}catch(e){}try{r.unlinkSync(u)}catch(e){}try{r.unlinkSync(l)}catch(e){}try{r.unlinkSync(p)}catch(e){}return(1===v||2===v||v>=126)&&r.error("",!0),{code:v,output:_}}(e,t)}},"./node_modules/shelljs/src/find.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! ./tempdir */"./node_modules/shelljs/src/tempdir.js"),i=n(/*! ./pwd */"./node_modules/shelljs/src/pwd.js"),s=n(/*! path */"path"),a=n(/*! fs */"fs"),c=n(/*! child_process */"child_process");e.exports=function(e,t,n){return e||r.error("must specify command"),"function"==typeof t&&(n=t,t={async:!0}),"object"==typeof t&&"function"==typeof n&&(t.async=!0),(t=r.extend({silent:r.config.silent,async:!1},t)).async?function(e,t,n){var o="",i=r.extend({silent:r.config.silent},t),s=c.exec(e,{env:process.env,maxBuffer:20971520},(function(e){n&&n(e?e.code:0,o)}));return s.stdout.on("data",(function(e){o+=e,i.silent||process.stdout.write(e)})),s.stderr.on("data",(function(e){o+=e,i.silent||process.stdout.write(e)})),s}(e,t,n):function(e,t){var n=o(),u=s.resolve(n+"/"+r.randomFileName()),l=s.resolve(n+"/"+r.randomFileName()),d=s.resolve(n+"/"+r.randomFileName()),p=s.resolve(n+"/"+r.randomFileName()),f=r.extend({silent:r.config.silent},t),h="";function g(){if(!f.silent&&a.existsSync(u)){var e=a.readFileSync(u,"utf8");e.length<=h.length||(process.stdout.write(e.substr(h.length)),h=e)}}function y(e){return(e+"").replace(/([\\"'])/g,"\\$1").replace(/\0/g,"\\0")}var m="var child = require('child_process'), fs = require('fs');child.exec('"+y(e+=" > "+u+" 2>&1")+"', {env: process.env, maxBuffer: 20*1024*1024}, function(err) { fs.writeFileSync('"+y(l)+"', err ? err.code.toString() : '0');});";for(a.existsSync(d)&&r.unlinkSync(d),a.existsSync(u)&&r.unlinkSync(u),a.existsSync(l)&&r.unlinkSync(l),a.writeFileSync(d,m),c.exec('"'+process.execPath+'" '+d,{env:process.env,cwd:i(),maxBuffer:20971520});!a.existsSync(l);)g(),a.writeFileSync(p,"a");for(;!a.existsSync(u);)g(),a.writeFileSync(p,"a");for(var v=parseInt("",10);isNaN(v);)v=parseInt(a.readFileSync(l,"utf8"),10);var _=a.readFileSync(u,"utf8");try{r.unlinkSync(d)}catch(e){}try{r.unlinkSync(u)}catch(e){}try{r.unlinkSync(l)}catch(e){}try{r.unlinkSync(p)}catch(e){}return(1===v||2===v||v>=126)&&r.error("",!0),{code:v,output:_}}(e,t)}},"./node_modules/shelljs/src/find.js": /*!******************************************!*\ !*** ./node_modules/shelljs/src/find.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! ./ls */"./node_modules/shelljs/src/ls.js");e.exports=function(e,t){t?"object"==typeof t?t=t:"string"==typeof t&&(t=[].slice.call(arguments,1)):i.error("no path specified");var n=[];function s(e){"win"===i.platform&&(e=e.replace(/\\/g,"/")),n.push(e)}return t.forEach((function(e){s(e),r.statSync(e).isDirectory()&&o("-RA",e+"/*").forEach((function(e){s(e)}))})),n}},"./node_modules/shelljs/src/grep.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./ls */"./node_modules/shelljs/src/ls.js");e.exports=function(e,t){t?"object"==typeof t?t=t:"string"==typeof t&&(t=[].slice.call(arguments,1)):o.error("no path specified");var n=[];function s(e){"win"===o.platform&&(e=e.replace(/\\/g,"/")),n.push(e)}return t.forEach((function(e){s(e),r.statSync(e).isDirectory()&&i("-RA",e+"/*").forEach((function(e){s(e)}))})),n}},"./node_modules/shelljs/src/grep.js": /*!******************************************!*\ !*** ./node_modules/shelljs/src/grep.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs");e.exports=function(e,t,n){e=r.parseOptions(e,{v:"inverse"}),n||r.error("no paths given"),"string"==typeof n&&(n=[].slice.call(arguments,2)),n=r.expand(n);var o="";return n.forEach((function(n){i.existsSync(n)?i.readFileSync(n,"utf8").split(/\r*\n/).forEach((function(n){var r=n.match(t);(e.inverse&&!r||!e.inverse&&r)&&(o+=n+"\n")})):r.error("no such file or directory: "+n,!0)})),r.ShellString(o)}},"./node_modules/shelljs/src/ln.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs");e.exports=function(e,t,n){e=r.parseOptions(e,{v:"inverse"}),n||r.error("no paths given"),"string"==typeof n&&(n=[].slice.call(arguments,2)),n=r.expand(n);var i="";return n.forEach((function(n){o.existsSync(n)?o.readFileSync(n,"utf8").split(/\r*\n/).forEach((function(n){var r=n.match(t);(e.inverse&&!r||!e.inverse&&r)&&(i+=n+"\n")})):r.error("no such file or directory: "+n,!0)})),r.ShellString(i)}},"./node_modules/shelljs/src/ln.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/ln.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! os */"os");e.exports=function(e,t,n){e=o.parseOptions(e,{s:"symlink",f:"force"}),t&&n||o.error("Missing and/or "),t=i.resolve(process.cwd(),String(t)),n=i.resolve(process.cwd(),String(n)),r.existsSync(t)||o.error("Source file does not exist",!0),r.existsSync(n)&&(e.force||o.error("Destination file exists",!0),r.unlinkSync(n)),e.symlink?r.symlinkSync(t,n,"win32"===s.platform()?"junction":null):r.linkSync(t,n,"win32"===s.platform()?"junction":null)}},"./node_modules/shelljs/src/ls.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! os */"os");e.exports=function(e,t,n){e=i.parseOptions(e,{s:"symlink",f:"force"}),t&&n||i.error("Missing and/or "),t=o.resolve(process.cwd(),String(t)),n=o.resolve(process.cwd(),String(n)),r.existsSync(t)||i.error("Source file does not exist",!0),r.existsSync(n)&&(e.force||i.error("Destination file exists",!0),r.unlinkSync(n)),e.symlink?r.symlinkSync(t,n,"win32"===s.platform()?"junction":null):r.linkSync(t,n,"win32"===s.platform()?"junction":null)}},"./node_modules/shelljs/src/ls.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/ls.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! path */"path"),i=n(/*! fs */"fs"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! ./cd */"./node_modules/shelljs/src/cd.js"),a=n(/*! ./pwd */"./node_modules/shelljs/src/pwd.js");e.exports=function e(t,n){(t=o.parseOptions(t,{R:"recursive",A:"all",a:"all_deprecated"})).all_deprecated&&(o.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),n?"object"==typeof n?n=n:"string"==typeof n&&(n=[].slice.call(arguments,1)):n=["."];var c=[];function u(e,n){return!!("."!==r.basename(e)[0]||t.all||"."===r.basename(n)[0]&&r.basename(n).length>1)&&("win"===o.platform&&(e=e.replace(/\\/g,"/")),c.push(e),!0)}return n.forEach((function(n){if(i.existsSync(n)){var l=i.statSync(n);if(l.isFile())return void u(n,n);if(l.isDirectory())return void i.readdirSync(n).forEach((function(r){if(u(r,n)&&t.recursive){var o=a();s("",n),i.statSync(r).isDirectory()&&(c=c.concat(e("-R"+(t.all?"A":""),r+"/*"))),s("",o)}}))}var d=r.basename(n),p=r.dirname(n);if(d.search(/\*/)>-1&&i.existsSync(p)&&i.statSync(p).isDirectory){var f=d.replace(/(\^|\$|\(|\)|<|>|\[|\]|\{|\}|\.|\+|\?)/g,"\\$1");return f="^"+f.replace(/\*/g,".*")+"$",void i.readdirSync(p).forEach((function(n){if(n.match(new RegExp(f))){if(!u(r.normalize(p+"/"+n),d))return;if(t.recursive){var o=p+"/"+n;i.lstatSync(o).isDirectory()&&(c=c.concat(e("-R"+(t.all?"A":""),o+"/*")))}}}))}o.error("no such file or directory: "+n,!0)})),c}},"./node_modules/shelljs/src/mkdir.js": +/*! no static exports found */function(e,t,n){var r=n(/*! path */"path"),o=n(/*! fs */"fs"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! ./cd */"./node_modules/shelljs/src/cd.js"),a=n(/*! ./pwd */"./node_modules/shelljs/src/pwd.js");e.exports=function e(t,n){(t=i.parseOptions(t,{R:"recursive",A:"all",a:"all_deprecated"})).all_deprecated&&(i.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),n?"object"==typeof n?n=n:"string"==typeof n&&(n=[].slice.call(arguments,1)):n=["."];var c=[];function u(e,n){return!!("."!==r.basename(e)[0]||t.all||"."===r.basename(n)[0]&&r.basename(n).length>1)&&("win"===i.platform&&(e=e.replace(/\\/g,"/")),c.push(e),!0)}return n.forEach((function(n){if(o.existsSync(n)){var l=o.statSync(n);if(l.isFile())return void u(n,n);if(l.isDirectory())return void o.readdirSync(n).forEach((function(r){if(u(r,n)&&t.recursive){var i=a();s("",n),o.statSync(r).isDirectory()&&(c=c.concat(e("-R"+(t.all?"A":""),r+"/*"))),s("",i)}}))}var d=r.basename(n),p=r.dirname(n);if(d.search(/\*/)>-1&&o.existsSync(p)&&o.statSync(p).isDirectory){var f=d.replace(/(\^|\$|\(|\)|<|>|\[|\]|\{|\}|\.|\+|\?)/g,"\\$1");return f="^"+f.replace(/\*/g,".*")+"$",void o.readdirSync(p).forEach((function(n){if(n.match(new RegExp(f))){if(!u(r.normalize(p+"/"+n),d))return;if(t.recursive){var i=p+"/"+n;o.lstatSync(i).isDirectory()&&(c=c.concat(e("-R"+(t.all?"A":""),i+"/*")))}}}))}i.error("no such file or directory: "+n,!0)})),c}},"./node_modules/shelljs/src/mkdir.js": /*!*******************************************!*\ !*** ./node_modules/shelljs/src/mkdir.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs"),o=n(/*! path */"path");function s(e){var t=o.dirname(e);i.existsSync(t)?i.mkdirSync(e,parseInt("0777",8)):(s(t),i.mkdirSync(e,parseInt("0777",8)))}e.exports=function(e,t){e=r.parseOptions(e,{p:"fullpath"}),t||r.error("no paths given"),"string"==typeof t&&(t=[].slice.call(arguments,1)),t.forEach((function(t){if(i.existsSync(t))e.fullpath||r.error("path already exists: "+t,!0);else{var n=o.dirname(t);i.existsSync(n)||e.fullpath?e.fullpath?s(t):i.mkdirSync(t,parseInt("0777",8)):r.error("no such file or directory: "+n,!0)}}))}},"./node_modules/shelljs/src/mv.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),i=n(/*! path */"path");function s(e){var t=i.dirname(e);o.existsSync(t)?o.mkdirSync(e,parseInt("0777",8)):(s(t),o.mkdirSync(e,parseInt("0777",8)))}e.exports=function(e,t){e=r.parseOptions(e,{p:"fullpath"}),t||r.error("no paths given"),"string"==typeof t&&(t=[].slice.call(arguments,1)),t.forEach((function(t){if(o.existsSync(t))e.fullpath||r.error("path already exists: "+t,!0);else{var n=i.dirname(t);o.existsSync(n)||e.fullpath?e.fullpath?s(t):o.mkdirSync(t,parseInt("0777",8)):r.error("no such file or directory: "+n,!0)}}))}},"./node_modules/shelljs/src/mv.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/mv.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e,t,n){e=o.parseOptions(e,{f:"force"}),arguments.length<3?o.error("missing and/or "):arguments.length>3?(t=[].slice.call(arguments,1,arguments.length-1),n=arguments[arguments.length-1]):"string"==typeof t?t=[t]:"length"in t?t=t:o.error("invalid arguments"),t=o.expand(t);var s=r.existsSync(n),a=s&&r.statSync(n);s&&a.isDirectory()||!(t.length>1)||o.error("dest is not a directory (too many sources)"),s&&a.isFile()&&!e.force&&o.error("dest file already exists: "+n),t.forEach((function(t){if(r.existsSync(t)){var s=n;r.existsSync(n)&&r.statSync(n).isDirectory()&&(s=i.normalize(n+"/"+i.basename(t))),!r.existsSync(s)||e.force?i.resolve(t)!==i.dirname(i.resolve(s))?r.renameSync(t,s):o.error("cannot move to self: "+t,!0):o.error("dest file already exists: "+s,!0)}else o.error("no such file or directory: "+t,!0)}))}},"./node_modules/shelljs/src/pwd.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e,t,n){e=i.parseOptions(e,{f:"force"}),arguments.length<3?i.error("missing and/or "):arguments.length>3?(t=[].slice.call(arguments,1,arguments.length-1),n=arguments[arguments.length-1]):"string"==typeof t?t=[t]:"length"in t?t=t:i.error("invalid arguments"),t=i.expand(t);var s=r.existsSync(n),a=s&&r.statSync(n);s&&a.isDirectory()||!(t.length>1)||i.error("dest is not a directory (too many sources)"),s&&a.isFile()&&!e.force&&i.error("dest file already exists: "+n),t.forEach((function(t){if(r.existsSync(t)){var s=n;r.existsSync(n)&&r.statSync(n).isDirectory()&&(s=o.normalize(n+"/"+o.basename(t))),!r.existsSync(s)||e.force?o.resolve(t)!==o.dirname(o.resolve(s))?r.renameSync(t,s):i.error("cannot move to self: "+t,!0):i.error("dest file already exists: "+s,!0)}else i.error("no such file or directory: "+t,!0)}))}},"./node_modules/shelljs/src/pwd.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/pwd.js ***! \*****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! path */"path"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e){var t=r.resolve(process.cwd());return i.ShellString(t)}},"./node_modules/shelljs/src/rm.js": +/*! no static exports found */function(e,t,n){var r=n(/*! path */"path"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e){var t=r.resolve(process.cwd());return o.ShellString(t)}},"./node_modules/shelljs/src/rm.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/rm.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs");function o(e,t){var n,a;n=i.readdirSync(e);for(var c=0;c=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)c.equal(u.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,o=n(/*! tls */"tls"),i=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=n(/*! assert */"assert"),u=n(/*! util */"util");function l(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,n,r,o){for(var i=p(n,r,o),s=0,a=t.requests.length;s=this.maxSockets?o.requests.push(i):o.createSocket(i,(function(t){function n(){o.emit("free",t,i)}function r(e){o.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,o={};n.sockets.push(o);var i=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(i);function a(i,a,u){if(s.removeAllListeners(),a.removeAllListeners(),200===i.statusCode)c.equal(u.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",i.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+i.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(o)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("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),n.removeSocket(o)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! url */"url"),i=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const o=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,o):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,o);e(t)}else e(n.toString(o))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===o.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 o=process.env[g.NO_PROXY];o&&(this._httpProxyBypassHosts=[],o.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=o.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=o.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 r.readBody(),a=this._prepareRequest(e,u,i),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,i=(e,t)=>{o||(o=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);i(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:i;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(o.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),o=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&o&&(t=this._proxyAgent),this._keepAlive&&!o&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||i.globalAgent.maxSockets),o){u||(u=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let o;const i="https:"===r.proxyUrl.protocol;o=a?i?u.httpsOverHttps:u.httpsOverHttp:i?u.httpOverHttps:u.httpOverHttp,t=o(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,n,r="https:"===e.protocol,i=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return i||(s&&r?i={proxyUrl:s}:a&&(i={proxyUrl:a})),i&&(i.proxyUrl.length>0&&(t=o.parse(i.proxyUrl)),(i.proxyUsername||i.proxyPassword)&&(n=i.proxyUsername+":"+i.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! qs */"./node_modules/qs/lib/index.js"),i=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=i.parse(t),o=i.parse(e);o.protocol=o.protocol||n.protocol,o.auth=o.auth||n.auth,o.host=o.host||n.host,o.pathname=r.resolve(n.pathname,o.pathname),!o.pathname.endsWith("/")&&e.endsWith("/")&&(o.pathname+="/"),a=i.format(o)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=o.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,o)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&o(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,o=n(/*! tls */"tls"),i=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=(n(/*! assert */"assert"),n(/*! util */"util"));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,n,r,o){for(var i=d(n,r,o),s=0,a=t.requests.length;s=this.maxSockets?o.requests.push(i):o.createSocket(i,(function(t){function n(){o.emit("free",t,i)}function r(e){o.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},u.prototype.createSocket=function(e,t){var n=this,o={};n.sockets.push(o);var i=p({},n.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")),r("making CONNECT request");var s=n.request(i);function a(i,a,c){var u;return s.removeAllListeners(),a.removeAllListeners(),200!==i.statusCode?(r("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 n.removeSocket(o)):c.length>0?(r("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 n.removeSocket(o)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("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),n.removeSocket(o)})),s.end()},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ -/*! no static exports found */function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},"./node_modules/uuid/lib/rng.js": +/*! no static exports found */function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},"./node_modules/uuid/lib/rng.js": /*!**************************************!*\ !*** ./node_modules/uuid/lib/rng.js ***! \**************************************/ @@ -420,19 +428,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*********************************!*\ !*** ./node_modules/uuid/v4.js ***! \*********************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./lib/rng */"./node_modules/uuid/lib/rng.js"),i=n(/*! ./lib/bytesToUuid */"./node_modules/uuid/lib/bytesToUuid.js");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},"./src/agent/azure/build-agent.ts": +/*! no static exports found */function(e,t,n){var r=n(/*! ./lib/rng */"./node_modules/uuid/lib/rng.js"),o=n(/*! ./lib/bytesToUuid */"./node_modules/uuid/lib/bytesToUuid.js");e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();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||o(s)}},"./src/agent/azure/build-agent.ts": /*!****************************************!*\ !*** ./src/agent/azure/build-agent.ts ***! \****************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),s=i(n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js")),a=i(n(/*! azure-pipelines-tool-lib/tool */"./node_modules/azure-pipelines-tool-lib/tool.js"));let c=class{get agentName(){return"Azure Pipelines"}find(e,t,n){return a.findLocalTool(e,t,n)}cacheDir(e,t,n,r){return a.cacheDir(e,t,n,r)}createTempDir(){return Promise.resolve(s.getVariable("Agent.TempDirectory"))}debug(e){s.debug(e)}setFailed(e,t){s.setResult(s.TaskResult.Failed,e,t)}setSucceeded(e,t){s.setResult(s.TaskResult.Succeeded,e,t)}exportVariable(e,t){s.setVariable(e,t)}getVariable(e){return s.getVariable(e)}addPath(e){a.prependPath(e)}which(e,t){return Promise.resolve(s.which(e,t))}exec(e,t){const n=s.tool(e);n.arg(t);const r=n.execSync();return Promise.resolve({code:r.code,error:r.error,stderr:r.stderr,stdout:r.stdout})}getSourceDir(){return this.getVariable("Build.SourcesDirectory")}setOutput(e,t){s.setVariable(e,t)}getInput(e,t){return s.getInput(e,t)}getListInput(e,t){return s.getInput(e,t).split("\n").filter(e=>""!==e)}getBooleanInput(e,t){return s.getBoolInput(e,t)}isValidInputFile(e,t){return s.filePathSupplied(e)&&this.fileExists(t)}fileExists(e){return s.exist(e)&&s.stats(e).isFile()}directoryExists(e){return s.exist(e)&&s.stats(e).isDirectory()}};c=r([o.injectable()],c),t.BuildAgent=c},"./src/core/dotnet-tool.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),s=o(n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js")),a=o(n(/*! azure-pipelines-tool-lib/tool */"./node_modules/azure-pipelines-tool-lib/tool.js"));let c=class{get agentName(){return"Azure Pipelines"}find(e,t,n){return a.findLocalTool(e,t,n)}cacheDir(e,t,n,r){return a.cacheDir(e,t,n,r)}createTempDir(){return Promise.resolve(s.getVariable("Agent.TempDirectory"))}debug(e){s.debug(e)}setFailed(e,t){s.setResult(s.TaskResult.Failed,e,t)}setSucceeded(e,t){s.setResult(s.TaskResult.Succeeded,e,t)}exportVariable(e,t){s.setVariable(e,t)}getVariable(e){return s.getVariable(e)}addPath(e){a.prependPath(e)}which(e,t){return Promise.resolve(s.which(e,t))}exec(e,t){const n=s.tool(e);n.arg(t);const r=n.execSync();return Promise.resolve({code:r.code,error:r.error,stderr:r.stderr,stdout:r.stdout})}getSourceDir(){return this.getVariable("Build.SourcesDirectory")}setOutput(e,t){s.setVariable(e,t)}getInput(e,t){return s.getInput(e,t)}getListInput(e,t){return s.getInput(e,t).split("\n").filter(e=>""!==e)}getBooleanInput(e,t){return s.getBoolInput(e,t)}isValidInputFile(e,t){return s.filePathSupplied(e)&&this.fileExists(t)}fileExists(e){return s.exist(e)&&s.stats(e).isFile()}directoryExists(e){return s.exist(e)&&s.stats(e).isDirectory()}};c=r([i.injectable()],c),t.BuildAgent=c},"./src/core/dotnet-tool.ts": /*!*********************************!*\ !*** ./src/core/dotnet-tool.ts ***! \*********************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const c=a(n(/*! fs */"fs")),u=a(n(/*! os */"os")),l=a(n(/*! path */"path")),d=a(n(/*! typed-rest-client/HttpClient */"./node_modules/typed-rest-client/HttpClient.js")),p=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),f=n(/*! ./models */"./src/core/models.ts");let h=class{constructor(e,t){this.buildAgent=e,this.versionManager=t,this.httpClient=new d.HttpClient("dotnet")}disableTelemetry(){this.buildAgent.exportVariable("DOTNET_CLI_TELEMETRY_OPTOUT","1")}execute(e,t){return console.log(`Command: ${e} ${t.join(" ")}`),this.buildAgent.exec(e,t)}toolInstall(e,t,n,r){return s(this,void 0,void 0,(function*(){let i;if(console.log(""),console.log("--------------------------"),console.log(`Installing ${e} version `+t),console.log("--------------------------"),this.versionManager.isExplicitVersion(t)&&(n=!1),n||(i=this.buildAgent.find(e,t)),!i){let n;if(this.versionManager.isExplicitVersion(t))n=t;else{if(n=yield this.queryLatestMatch(e,t,r),!n)throw new Error(`Unable to find ${e} version '${t}'.`);i=this.buildAgent.find(e,n)}i||(i=yield this.acquireTool(e,n))}if(this.buildAgent.debug(`toolPath: ${i}`),"win32"!==u.platform()&&!this.buildAgent.getVariable("DOTNET_ROOT")){let e=yield this.buildAgent.which("dotnet");e=c.readlinkSync(e)||e;const t=l.dirname(e);this.buildAgent.exportVariable("DOTNET_ROOT",t)}return this.buildAgent.addPath(i),i}))}queryLatestMatch(e,t,n){return s(this,void 0,void 0,(function*(){this.buildAgent.debug(`querying tool versions for ${e}${t?`@${t}`:""} ${n?"including pre-releases":""}`);const r=`https://api-v2v3search-0.nuget.org/query?q=${encodeURIComponent(e.toLowerCase())}&prerelease=${n?"true":"false"}&semVerLevel=2.0.0`,i=yield this.httpClient.get(r);if(!i||200!==i.message.statusCode)return null;const o=yield i.readBody(),s=JSON.parse(o).data[0].versions.map(e=>e.version);return s&&s.length?(this.buildAgent.debug(`got versions: ${s.join(", ")}`),this.versionManager.evaluateVersions(s,t)):null}))}acquireTool(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.buildAgent.createTempDir();let r=["tool","install",e,"--tool-path",n];t&&(t=this.versionManager.cleanVersion(t),r=r.concat(["--version",t]));const i=yield this.execute("dotnet",r),o=0===i.code?"success":"failure",s=0===i.code?i.stdout:i.stderr;if(this.buildAgent.debug(`tool install result: ${o} ${s}`),i.code)throw new Error("Error installing tool");return yield this.buildAgent.cacheDir(n,e,t)}))}};h=r([p.injectable(),o(0,p.inject(f.TYPES.IBuildAgent)),o(1,p.inject(f.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],h),t.DotnetTool=h},"./src/core/ioc.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const c=a(n(/*! fs */"fs")),u=a(n(/*! os */"os")),l=a(n(/*! path */"path")),d=a(n(/*! typed-rest-client/HttpClient */"./node_modules/typed-rest-client/HttpClient.js")),p=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),f=n(/*! ./models */"./src/core/models.ts");let h=class{constructor(e,t){this.buildAgent=e,this.versionManager=t,this.httpClient=new d.HttpClient("dotnet")}disableTelemetry(){this.buildAgent.exportVariable("DOTNET_CLI_TELEMETRY_OPTOUT","1")}execute(e,t){return console.log(`Command: ${e} ${t.join(" ")}`),this.buildAgent.exec(e,t)}toolInstall(e,t,n,r){return s(this,void 0,void 0,(function*(){let o;if(console.log(""),console.log("--------------------------"),console.log(`Installing ${e} version `+t),console.log("--------------------------"),this.versionManager.isExplicitVersion(t)&&(n=!1),n||(o=this.buildAgent.find(e,t)),!o){let n;if(this.versionManager.isExplicitVersion(t))n=t;else{if(n=yield this.queryLatestMatch(e,t,r),!n)throw new Error(`Unable to find ${e} version '${t}'.`);o=this.buildAgent.find(e,n)}o||(o=yield this.acquireTool(e,n))}if(this.buildAgent.debug(`toolPath: ${o}`),"win32"!==u.platform()&&!this.buildAgent.getVariable("DOTNET_ROOT")){let e=yield this.buildAgent.which("dotnet");e=c.readlinkSync(e)||e;const t=l.dirname(e);this.buildAgent.exportVariable("DOTNET_ROOT",t)}return this.buildAgent.addPath(o),o}))}queryLatestMatch(e,t,n){return s(this,void 0,void 0,(function*(){this.buildAgent.debug(`querying tool versions for ${e}${t?`@${t}`:""} ${n?"including pre-releases":""}`);const r=`https://api-v2v3search-0.nuget.org/query?q=${encodeURIComponent(e.toLowerCase())}&prerelease=${n?"true":"false"}&semVerLevel=2.0.0`,o=yield this.httpClient.get(r);if(!o||200!==o.message.statusCode)return null;const i=yield o.readBody(),s=JSON.parse(i).data[0].versions.map(e=>e.version);return s&&s.length?(this.buildAgent.debug(`got versions: ${s.join(", ")}`),this.versionManager.evaluateVersions(s,t)):null}))}acquireTool(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.buildAgent.createTempDir();let r=["tool","install",e,"--tool-path",n];t&&(t=this.versionManager.cleanVersion(t),r=r.concat(["--version",t]));const o=yield this.execute("dotnet",r),i=0===o.code?"success":"failure",s=0===o.code?o.stdout:o.stderr;if(this.buildAgent.debug(`tool install result: ${i} ${s}`),o.code)throw new Error("Error installing tool");return yield this.buildAgent.cacheDir(n,e,t)}))}};h=r([p.injectable(),i(0,p.inject(f.TYPES.IBuildAgent)),i(1,p.inject(f.TYPES.IVersionManager)),o("design:paramtypes",[Object,Object])],h),t.DotnetTool=h},"./src/core/ioc.ts": /*!*************************!*\ !*** ./src/core/ioc.ts ***! \*************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),i=n(/*! ./versionManager */"./src/core/versionManager.ts"),o=n(/*! ./models */"./src/core/models.ts"),s=n(/*! ../agent/mock/build-agent */"./src/agent/azure/build-agent.ts"),a=new r.Container;a.bind(o.TYPES.IVersionManager).to(i.VersionManager),a.bind(o.TYPES.IBuildAgent).to(s.BuildAgent),t.default=a},"./src/core/models.ts": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),o=n(/*! ./versionManager */"./src/core/versionManager.ts"),i=n(/*! ./models */"./src/core/models.ts"),s=n(/*! ../agent/mock/build-agent */"./src/agent/azure/build-agent.ts"),a=new r.Container;a.bind(i.TYPES.IVersionManager).to(o.VersionManager),a.bind(i.TYPES.IBuildAgent).to(s.BuildAgent),t.default=a},"./src/core/models.ts": /*!****************************!*\ !*** ./src/core/models.ts ***! \****************************/ @@ -444,7 +452,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!************************************!*\ !*** ./src/core/versionManager.ts ***! \************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const c=s(n(/*! semver-compare */"./node_modules/semver-compare/index.js")),u=a(n(/*! semver */"./node_modules/semver/semver.js")),l=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),d=n(/*! ./models */"./src/core/models.ts");let p=class{constructor(e){this.buildAgent=e}isExplicitVersion(e){const t=u.clean(e);this.buildAgent.debug("isExplicit: "+t);const n=null!=u.valid(t);return this.buildAgent.debug("explicit? "+n),n}evaluateVersions(e,t){let n;this.buildAgent.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(c.default)).length-1;r>=0;r--){const i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?this.buildAgent.debug("matched: "+n):this.buildAgent.debug("match not found"),n}cleanVersion(e){return this.buildAgent.debug("cleaning: "+e),u.clean(e)}};p=r([l.injectable(),o(0,l.inject(d.TYPES.IBuildAgent)),i("design:paramtypes",[Object])],p),t.VersionManager=p},"./src/tasks/gitreleasemanager/close.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const c=s(n(/*! semver-compare */"./node_modules/semver-compare/index.js")),u=a(n(/*! semver */"./node_modules/semver/semver.js")),l=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),d=n(/*! ./models */"./src/core/models.ts");let p=class{constructor(e){this.buildAgent=e}isExplicitVersion(e){const t=u.clean(e);this.buildAgent.debug("isExplicit: "+t);const n=null!=u.valid(t);return this.buildAgent.debug("explicit? "+n),n}evaluateVersions(e,t){let n;this.buildAgent.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(c.default)).length-1;r>=0;r--){const o=e[r];if(u.satisfies(o,t)){n=o;break}}return n?this.buildAgent.debug("matched: "+n):this.buildAgent.debug("match not found"),n}cleanVersion(e){return this.buildAgent.debug("cleaning: "+e),u.clean(e)}};p=r([l.injectable(),i(0,l.inject(d.TYPES.IBuildAgent)),o("design:paramtypes",[Object])],p),t.VersionManager=p},"./src/tasks/gitreleasemanager/close.ts": /*!**********************************************!*\ !*** ./src/tasks/gitreleasemanager/close.ts ***! \**********************************************/ @@ -452,7 +460,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*********************************************!*\ !*** ./src/tasks/gitreleasemanager/main.ts ***! \*********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ../../core/models */"./src/core/models.ts"),s=n(/*! ../../tools/gitreleasemanager/tool */"./src/tools/gitreleasemanager/tool.ts"),a=n(/*! ../../core/settings */"./src/core/settings.ts"),c=n(/*! ../../tools/gitreleasemanager/settings */"./src/tools/gitreleasemanager/settings.ts"),u=i(n(/*! ../../core/ioc */"./src/core/ioc.ts"));u.default.bind(o.TYPES.IGitReleaseManagerTool).to(s.GitReleaseManagerTool);const l=u.default.get(o.TYPES.IGitReleaseManagerTool),d=u.default.get(o.TYPES.IBuildAgent);t.setup=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=a.Settings.getSetupSettings(d);yield l.install(e.versionSpec,e.includePrerelease),d.setSucceeded("GitVersionManager installed successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.create=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getCreateSettings(d);yield l.create(e),d.setSucceeded("GitVersionManager created release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.discard=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getDiscardSettings(d);yield l.discard(e),d.setSucceeded("GitVersionManager discarded release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.close=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getCloseSettings(d);yield l.close(e),d.setSucceeded("GitVersionManager closed release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.open=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getOpenSettings(d);yield l.open(e),d.setSucceeded("GitVersionManager opened release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.publish=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getPublishSettings(d);yield l.publish(e),d.setSucceeded("GitVersionManager published release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.addAsset=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getAddAssetSettings(d);yield l.addAsset(e),d.setSucceeded("GitVersionManager added assets to release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))}},"./src/tools/gitreleasemanager/models.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! ../../core/models */"./src/core/models.ts"),s=n(/*! ../../tools/gitreleasemanager/tool */"./src/tools/gitreleasemanager/tool.ts"),a=n(/*! ../../core/settings */"./src/core/settings.ts"),c=n(/*! ../../tools/gitreleasemanager/settings */"./src/tools/gitreleasemanager/settings.ts"),u=o(n(/*! ../../core/ioc */"./src/core/ioc.ts"));u.default.bind(i.TYPES.IGitReleaseManagerTool).to(s.GitReleaseManagerTool);const l=u.default.get(i.TYPES.IGitReleaseManagerTool),d=u.default.get(i.TYPES.IBuildAgent);t.setup=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=a.Settings.getSetupSettings(d);yield l.install(e.versionSpec,e.includePrerelease),d.setSucceeded("GitVersionManager installed successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.create=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getCreateSettings(d);yield l.create(e),d.setSucceeded("GitVersionManager created release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.discard=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getDiscardSettings(d);yield l.discard(e),d.setSucceeded("GitVersionManager discarded release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.close=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getCloseSettings(d);yield l.close(e),d.setSucceeded("GitVersionManager closed release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.open=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getOpenSettings(d);yield l.open(e),d.setSucceeded("GitVersionManager opened release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.publish=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getPublishSettings(d);yield l.publish(e),d.setSucceeded("GitVersionManager published release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.addAsset=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getAddAssetSettings(d);yield l.addAsset(e),d.setSucceeded("GitVersionManager added assets to release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))}},"./src/tools/gitreleasemanager/models.ts": /*!***********************************************!*\ !*** ./src/tools/gitreleasemanager/models.ts ***! \***********************************************/ @@ -460,11 +468,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*************************************************!*\ !*** ./src/tools/gitreleasemanager/settings.ts ***! \*************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! ./models */"./src/tools/gitreleasemanager/models.ts");class i{static getCreateSettings(e){const t=e.getInput(r.CreateFields.milestone),n=e.getInput(r.CreateFields.name),o=e.getInput(r.CreateFields.inputFileName),s=e.getBooleanInput(r.CreateFields.isPreRelease),a=e.getInput(r.CreateFields.commit),c=e.getListInput(r.CreateFields.assets),u=i.getCommonSettings(e);return Object.assign(Object.assign({},u),{milestone:t,name:n,inputFileName:o,isPreRelease:s,commit:a,assets:c})}static getDiscardSettings(e){const t=e.getInput(r.DiscardFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getCloseSettings(e){const t=e.getInput(r.CloseFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getOpenSettings(e){const t=e.getInput(r.OpenFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getPublishSettings(e){const t=e.getInput(r.PublishFields.tagName),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{tagName:t})}static getAddAssetSettings(e){const t=e.getInput(r.AddAssetFields.tagName),n=e.getListInput(r.AddAssetFields.assets),o=i.getCommonSettings(e);return Object.assign(Object.assign({},o),{tagName:t,assets:n})}static getCommonSettings(e){return{owner:e.getInput(r.CommonFields.owner,!0),repository:e.getInput(r.CommonFields.repository,!0),token:e.getInput(r.CommonFields.token,!0),targetDirectory:e.getInput(r.CommonFields.targetDirectory)}}}t.Settings=i},"./src/tools/gitreleasemanager/tool.ts": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! ./models */"./src/tools/gitreleasemanager/models.ts");class o{static getCreateSettings(e){const t=e.getInput(r.CreateFields.milestone),n=e.getInput(r.CreateFields.name),i=e.getInput(r.CreateFields.inputFileName),s=e.getBooleanInput(r.CreateFields.isPreRelease),a=e.getInput(r.CreateFields.commit),c=e.getListInput(r.CreateFields.assets),u=o.getCommonSettings(e);return Object.assign(Object.assign({},u),{milestone:t,name:n,inputFileName:i,isPreRelease:s,commit:a,assets:c})}static getDiscardSettings(e){const t=e.getInput(r.DiscardFields.milestone),n=o.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getCloseSettings(e){const t=e.getInput(r.CloseFields.milestone),n=o.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getOpenSettings(e){const t=e.getInput(r.OpenFields.milestone),n=o.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getPublishSettings(e){const t=e.getInput(r.PublishFields.tagName),n=o.getCommonSettings(e);return Object.assign(Object.assign({},n),{tagName:t})}static getAddAssetSettings(e){const t=e.getInput(r.AddAssetFields.tagName),n=e.getListInput(r.AddAssetFields.assets),i=o.getCommonSettings(e);return Object.assign(Object.assign({},i),{tagName:t,assets:n})}static getCommonSettings(e){return{owner:e.getInput(r.CommonFields.owner,!0),repository:e.getInput(r.CommonFields.repository,!0),token:e.getInput(r.CommonFields.token,!0),targetDirectory:e.getInput(r.CommonFields.targetDirectory)}}}t.Settings=o},"./src/tools/gitreleasemanager/tool.ts": /*!*********************************************!*\ !*** ./src/tools/gitreleasemanager/tool.ts ***! \*********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),c=n(/*! ../../core/models */"./src/core/models.ts"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitReleaseManager.Tool",e,!1,t)}))}create(e){const t=this.getCreateArguments(e);return this.execute("dotnet-gitreleasemanager",t)}discard(e){const t=this.getDiscardArguments(e);return this.execute("dotnet-gitreleasemanager",t)}close(e){const t=this.getCloseArguments(e);return this.execute("dotnet-gitreleasemanager",t)}open(e){const t=this.getOpenArguments(e);return this.execute("dotnet-gitreleasemanager",t)}publish(e){const t=this.getPublishArguments(e);return this.execute("dotnet-gitreleasemanager",t)}addAsset(e){const t=this.getAddAssetArguments(e);return this.execute("dotnet-gitreleasemanager",t)}getCommonArguments(e){const t=[];return t.push("--owner",e.owner),t.push("--repository",e.repository),t.push("--token",e.token),e.targetDirectory=this.getRepoDir(e.targetDirectory),t.push("--targetDirectory",e.targetDirectory),t}getCreateArguments(e){const t=["create",...this.getCommonArguments(e)];if(e.milestone&&t.push("--milestone",e.milestone),e.name&&t.push("--name",e.name),e.commit&&t.push("--targetcommitish",e.commit),e.inputFileName){if(!this.buildAgent.fileExists(e.inputFileName))throw new Error("GitReleaseManager inputFilePath not found at "+e.inputFileName);t.push("--inputFilePath",e.inputFileName)}return e.isPreRelease&&t.push("--pre"),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getDiscardArguments(e){const t=["discard",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getCloseArguments(e){const t=["close",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getOpenArguments(e){const t=["open",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getPublishArguments(e){const t=["publish",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),t}getAddAssetArguments(e){const t=["addasset",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitReleaseManagerTool=d},assert: +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),c=n(/*! ../../core/models */"./src/core/models.ts"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitReleaseManager.Tool",e,!1,t)}))}create(e){const t=this.getCreateArguments(e);return this.execute("dotnet-gitreleasemanager",t)}discard(e){const t=this.getDiscardArguments(e);return this.execute("dotnet-gitreleasemanager",t)}close(e){const t=this.getCloseArguments(e);return this.execute("dotnet-gitreleasemanager",t)}open(e){const t=this.getOpenArguments(e);return this.execute("dotnet-gitreleasemanager",t)}publish(e){const t=this.getPublishArguments(e);return this.execute("dotnet-gitreleasemanager",t)}addAsset(e){const t=this.getAddAssetArguments(e);return this.execute("dotnet-gitreleasemanager",t)}getCommonArguments(e){const t=[];return t.push("--owner",e.owner),t.push("--repository",e.repository),t.push("--token",e.token),e.targetDirectory=this.getRepoDir(e.targetDirectory),t.push("--targetDirectory",e.targetDirectory),t}getCreateArguments(e){const t=["create",...this.getCommonArguments(e)];if(e.milestone&&t.push("--milestone",e.milestone),e.name&&t.push("--name",e.name),e.commit&&t.push("--targetcommitish",e.commit),e.inputFileName){if(!this.buildAgent.fileExists(e.inputFileName))throw new Error("GitReleaseManager inputFilePath not found at "+e.inputFileName);t.push("--inputFilePath",e.inputFileName)}return e.isPreRelease&&t.push("--pre"),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getDiscardArguments(e){const t=["discard",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getCloseArguments(e){const t=["close",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getOpenArguments(e){const t=["open",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getPublishArguments(e){const t=["publish",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),t}getAddAssetArguments(e){const t=["addasset",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}};d=r([u.injectable(),i(0,u.inject(c.TYPES.IBuildAgent)),i(1,u.inject(c.TYPES.IVersionManager)),o("design:paramtypes",[Object,Object])],d),t.GitReleaseManagerTool=d},assert: /*!*************************!*\ !*** external "assert" ***! \*************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/azure/gitreleasemanager/create/bundle.js b/dist/azure/gitreleasemanager/create/bundle.js index 4c59e89..8bd0e86 100644 --- a/dist/azure/gitreleasemanager/create/bundle.js +++ b/dist/azure/gitreleasemanager/create/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/create.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/create.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,19 +6,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function N(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function R(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+o.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,i=j(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),i=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=E("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function E(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new x(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=P;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));return m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;){n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return i.stderr.on("data",(function(e){(n.emit("stderr",e),a=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(i.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ @@ -30,11 +30,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),c=n(/*! fs */"fs"),u=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(E(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;e=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);return a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),n.push.apply(n,c),n}(s.body)).length&&1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),j=Math.max(c[0].length,c[1].length),x=3==c.length?Math.abs(l(c[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else{if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));return n.push.apply(n,c),n}(s.body)).length)if(1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),E=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(l(c[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ @@ -94,7 +94,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!**************************************************************!*\ !*** ./node_modules/inversify/lib/bindings/binding_count.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": /*!************************************************************!*\ !*** ./node_modules/inversify/lib/constants/error_msgs.js ***! \************************************************************/ @@ -102,7 +102,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/literal_types.js ***! \***************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/metadata_keys.js ***! \***************************************************************/ @@ -114,7 +114,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_module.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js");t.ContainerModule=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=function(e){this.id=r.id(),this.registry=e}},"./node_modules/inversify/lib/container/container_snapshot.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var o=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=o},"./node_modules/inversify/lib/container/container_snapshot.js": /*!********************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_snapshot.js ***! \********************************************************************/ @@ -142,11 +142,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),c=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),u=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,u=m(n.container,s.serviceIdentifier);return u.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),u=m(n.container,s.serviceIdentifier)),a=t?u:u.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=c.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new u.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new l.Metadata(a,n),u=new h.Target(t,"",n,c);if(void 0!==i){var d=new l.Metadata(i,o);u.metadata.push(d)}return u}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,c){var u,l;if(null===a){u=y(t,n,s,null,c),l=new f.Request(r,s,null,u,c);var h=new d.Plan(s,l);s.addPlan(h)}else u=y(t,n,s,a,c),l=a.addChildRequest(c.serviceIdentifier,u,c);u.forEach((function(n){var r=null;if(c.isArray())r=l.addChildRequest(n.serviceIdentifier,n,c);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var u=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var c=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function u(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var u=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(u)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,i){for(var o=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=Object.keys(r),a=0,u=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ @@ -162,11 +162,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var c=null;"string"==typeof a?c=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(c=a),null!==c&&this.metadata.push(c)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,c=null;if(t.length>0){var u=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);a=u,c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ @@ -198,7 +198,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -218,7 +218,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),N=o.slice(P.reEnd-8,P.reEnd),R=o.slice(P.reEnd);N+=R;var I=k.split("(").length-1,M=R;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=o.slice(0,k.reStart),C=o.slice(k.reStart,k.reEnd-8),R=o.slice(k.reEnd-8,k.reEnd),N=o.slice(k.reEnd);R+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,7 +249,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var N,R,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return u(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(N=$,R="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(R+" is deprecated, use "+I+" instead.",new Error("").stack),N.apply(N,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],i=p(j.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=k(t);return P(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=E++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=j(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=C,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return u(e,(function(r,i,o){var s;P(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=j();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ @@ -265,11 +265,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var j=0;j0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,7 +288,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return R(Object.create(null))}:s?function(){return R({__proto__:null})}:function(){return R({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=C(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=C(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=C(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -296,11 +296,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[c]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var N=s++;o[N]="^"+o[k]+o[E]+"$";var R=s++;o[R]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[E]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[N];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var E=s++;o[E]=o[c]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var x=s++;o[x]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[x]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var k=s++;o[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[P]+"\\s+",i[C]=new RegExp(o[C],"g");var R=s++;o[R]="^"+o[P]+o[x]+"$";var N=s++;o[N]="^"+o[P]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[x]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[x]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[x]+")\\s+-\\s+("+o[x]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ @@ -312,7 +312,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,c=r.WRITE,u=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),N=0;switch(x&&(N|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(N|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(N|=(A?u:0)+(O?c:0)+(P?a:0)),k&&(N|=y),S){case"+":w|=N;break;case"-":w&=~N;break;case"=":w=b+N,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,c=r&a.TYPE_MASK,u=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":u|=w;break;case"-":u&=~w;break;case"=":u=c+w,o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+u.toString(8)),r!=u&&(!e.verbose&&e.changes&&log(n+" -> "+u.toString(8)),o.chmodSync(n,u))}else i.error("Invalid symbolic mode change: "+t)})):(u=c+parseInt(t,8),o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r),o.chmodSync(n,u))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ @@ -404,11 +404,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=(n(/*! assert */"assert"),n(/*! util */"util"));function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},u.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){var u;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(u=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",u),void n.removeSocket(i)):c.length>0?(r("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 n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/azure/gitreleasemanager/discard/bundle.js b/dist/azure/gitreleasemanager/discard/bundle.js index b051269..b337389 100644 --- a/dist/azure/gitreleasemanager/discard/bundle.js +++ b/dist/azure/gitreleasemanager/discard/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/discard.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/discard.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,19 +6,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function N(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function R(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+o.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,i=j(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),i=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=E("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function E(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new x(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=P;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));return m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;){n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return i.stderr.on("data",(function(e){(n.emit("stderr",e),a=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(i.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ @@ -30,11 +30,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),c=n(/*! fs */"fs"),u=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(E(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;e=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);return a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),n.push.apply(n,c),n}(s.body)).length&&1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),j=Math.max(c[0].length,c[1].length),x=3==c.length?Math.abs(l(c[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else{if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));return n.push.apply(n,c),n}(s.body)).length)if(1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),E=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(l(c[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ @@ -94,7 +94,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!**************************************************************!*\ !*** ./node_modules/inversify/lib/bindings/binding_count.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": /*!************************************************************!*\ !*** ./node_modules/inversify/lib/constants/error_msgs.js ***! \************************************************************/ @@ -102,7 +102,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/literal_types.js ***! \***************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/metadata_keys.js ***! \***************************************************************/ @@ -114,7 +114,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_module.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js");t.ContainerModule=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=function(e){this.id=r.id(),this.registry=e}},"./node_modules/inversify/lib/container/container_snapshot.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var o=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=o},"./node_modules/inversify/lib/container/container_snapshot.js": /*!********************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_snapshot.js ***! \********************************************************************/ @@ -142,11 +142,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),c=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),u=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,u=m(n.container,s.serviceIdentifier);return u.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),u=m(n.container,s.serviceIdentifier)),a=t?u:u.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=c.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new u.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new l.Metadata(a,n),u=new h.Target(t,"",n,c);if(void 0!==i){var d=new l.Metadata(i,o);u.metadata.push(d)}return u}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,c){var u,l;if(null===a){u=y(t,n,s,null,c),l=new f.Request(r,s,null,u,c);var h=new d.Plan(s,l);s.addPlan(h)}else u=y(t,n,s,a,c),l=a.addChildRequest(c.serviceIdentifier,u,c);u.forEach((function(n){var r=null;if(c.isArray())r=l.addChildRequest(n.serviceIdentifier,n,c);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var u=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var c=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function u(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var u=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(u)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,i){for(var o=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=Object.keys(r),a=0,u=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ @@ -162,11 +162,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var c=null;"string"==typeof a?c=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(c=a),null!==c&&this.metadata.push(c)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,c=null;if(t.length>0){var u=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);a=u,c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ @@ -198,7 +198,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -218,7 +218,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),N=o.slice(P.reEnd-8,P.reEnd),R=o.slice(P.reEnd);N+=R;var I=k.split("(").length-1,M=R;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=o.slice(0,k.reStart),C=o.slice(k.reStart,k.reEnd-8),R=o.slice(k.reEnd-8,k.reEnd),N=o.slice(k.reEnd);R+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,7 +249,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var N,R,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return u(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(N=$,R="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(R+" is deprecated, use "+I+" instead.",new Error("").stack),N.apply(N,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],i=p(j.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=k(t);return P(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=E++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=j(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=C,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return u(e,(function(r,i,o){var s;P(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=j();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ @@ -265,11 +265,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var j=0;j0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,7 +288,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return R(Object.create(null))}:s?function(){return R({__proto__:null})}:function(){return R({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=C(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=C(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=C(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -296,11 +296,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[c]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var N=s++;o[N]="^"+o[k]+o[E]+"$";var R=s++;o[R]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[E]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[N];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var E=s++;o[E]=o[c]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var x=s++;o[x]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[x]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var k=s++;o[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[P]+"\\s+",i[C]=new RegExp(o[C],"g");var R=s++;o[R]="^"+o[P]+o[x]+"$";var N=s++;o[N]="^"+o[P]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[x]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[x]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[x]+")\\s+-\\s+("+o[x]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ @@ -312,7 +312,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,c=r.WRITE,u=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),N=0;switch(x&&(N|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(N|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(N|=(A?u:0)+(O?c:0)+(P?a:0)),k&&(N|=y),S){case"+":w|=N;break;case"-":w&=~N;break;case"=":w=b+N,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,c=r&a.TYPE_MASK,u=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":u|=w;break;case"-":u&=~w;break;case"=":u=c+w,o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+u.toString(8)),r!=u&&(!e.verbose&&e.changes&&log(n+" -> "+u.toString(8)),o.chmodSync(n,u))}else i.error("Invalid symbolic mode change: "+t)})):(u=c+parseInt(t,8),o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r),o.chmodSync(n,u))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ @@ -404,11 +404,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=(n(/*! assert */"assert"),n(/*! util */"util"));function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},u.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){var u;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(u=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",u),void n.removeSocket(i)):c.length>0?(r("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 n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/azure/gitreleasemanager/open/bundle.js b/dist/azure/gitreleasemanager/open/bundle.js index 8875f16..b58eb3a 100644 --- a/dist/azure/gitreleasemanager/open/bundle.js +++ b/dist/azure/gitreleasemanager/open/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/open.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/open.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,23 +6,23 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function N(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function R(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+i.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var i=b(e);if(i&&i.hasOwnProperty("messages")){var s,a=o.join(o.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,o=j(e);return t._knownVariableMap.hasOwnProperty(o)&&(r=t._knownVariableMap[o]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+o):(n=process.env[o])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=o.basename(e),i=n.lastIndexOf(".");if(i>=0){var s=n.substr(i).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=o.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):o.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),i=d.createCipher("aes-256-ctr",n),s=i.update(t,"utf8","hex");s+=i.final("hex");var a=o.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var i=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(o.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(o.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),o=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",o||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var i=E("Agent.SkipCertValidation")||"false";i&&(global._vsts_task_lib_skip_cert_validation="TRUE"===i.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,o){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var i={result:r[e]};o&&(i.done="true"),t.command("task.complete",i,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var o=t.loc("LIB_OperationFailed",e,r);if(t.debug(o),!n)throw new Error(o)}}function E(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],o=[new x(e,1)],i=[],s=function(){var e=o.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);i.length>=e.level;)i.pop();if(i.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";i.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)o.push(u[l])}else t.debug(" "+e.path+" (file)")};o.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(o=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(i=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var o=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(o)&&(r=r||g._knownVariableMap[o].secret);var i=n||"";if(t.debug("set "+e+"="+(r&&i?"********":i)),r){if(i&&i.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+o,i),delete process.env[o]}else process.env[o]=i;g._knownVariableMap[o]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},i)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var o=[];return r.split(t).forEach((function(e){e&&o.push(e)})),o},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var o=w(e,n);return o&&r&&t.checkPath(o,e),o},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var o=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!o)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+o),o},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var o=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!o)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+o),o},t.getEndpointAuthorization=function(e,n){var o,i=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||i||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==i));try{i&&(o=JSON.parse(i))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",i))}return o},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var o=g._getVariableKey(e),i=n||"";t.debug("set task variable: "+e+"="+(r&&i?"********":i)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+o,i),delete process.env[o],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},i)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var o=void 0;try{o=d.statSync(r)}catch(o){if("ENOENT"==o.code){var i=p.dirname(r);if(r==i)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=i;continue}throw"UNKNOWN"==o.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):o}if(!o.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?i:s,s>=0?s:i);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&o)return!0;var t=d.statSync(e).isDirectory();return r&&!t||o&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",i=!1;if(c.test(t)||o&&c.test(r)){i=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),o=t.getVariable("Agent.ProxyPassword"),i=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&i.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:o,proxyBypassHosts:i}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var o=t.getVariable("Agent.ClientCertKey"),i=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=o,r.certArchiveFile=i,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,o,i,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),o&&(c.config=o),i&&(c.runTitle=i),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,o){var i={};e&&(i.codecoveragetool=e),n&&(i.summaryfile=n),r&&(i.reportdirectory=r),o&&(i.additionalcodecoveragefiles=o),t.command("codecoverage.publish",i,"")},e}();t.CodeCoveragePublisher=P;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,o){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},o)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,i,s,a,c,u,l,d,p,f){var h={id:e,parentid:i,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?o[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,o,s,a){var c={type:i[e].toLowerCase(),code:a,sourcepath:r,linenumber:o?o.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var o=e.substring(t+1,n),i=o.indexOf(" "),s=o,a={};i>0&&(s=o.trim().substring(0,i),o.trim().substring(i+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));return m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return o(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,o=!0,i="",s=function(e){r&&'"'!==e&&(i+="\\"),i+=e,r=!1},a=0;a-1;){n(r.substring(0,o)),o=(r=r.substring(o+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},o=0,i=e;o0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=i.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var o,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));m++,o=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),o.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),o.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),o.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));o.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return o.stderr.on("data",(function(e){(n.emit("stderr",e),a=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),o.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),o.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=i.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var o=new p(r,this.toolPath);o.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(o.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()})),a.on("exit",(function(e,n){o.processExitCode=e,o.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),o.CheckComplete()})),a.on("close",(function(e,n){o.processExitCode=e,o.processExited=!0,o.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),o.CheckComplete()})),o.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var o=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return o&&(r.delay=parseInt(o)),r}return o(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! crypto */"crypto"),s=n(/*! uuid/v4 */"./node_modules/uuid/v4.js"),a=function(){function e(e){this._keyFile=i.join(e,".taskkey"),this._store={},this.genKey()}return e.prototype.initialize=function(){},e.prototype.storeSecret=function(e,t){if(!e||0==e.length)return!1;if(e=e.toLowerCase(),!t||0==t.length)return this._store.hasOwnProperty(e)&&delete this._store[e],!1;var n=this.getKey(),r=o.randomBytes(16),i=o.createCipheriv("aes-256-ctr",n,r),s=i.update(t,"utf8","hex"),a=i.final("hex");return this._store[e]=r.toString("hex")+s+a,!0},e.prototype.retrieveSecret=function(e){var t;if(e=(e||"").toLowerCase(),this._store.hasOwnProperty(e)){var n=this.getKey(),r=this._store[e],i=Buffer.from(r,"hex"),s=i.slice(0,16),a=i.slice(16),c=o.createDecipheriv("aes-256-ctr",n,s);t=c.update(a,"hex","utf8")+c.final("utf8")}return t},e.prototype.getKey=function(){var e=r.readFileSync(this._keyFile).toString("utf8");return o.createHash("sha256").update(e).digest()},e.prototype.genKey=function(){r.writeFileSync(this._keyFile,s(),{encoding:"utf8"})},e}();t.Vault=a},"./node_modules/azure-pipelines-tool-lib sync recursive": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! crypto */"crypto"),s=n(/*! uuid/v4 */"./node_modules/uuid/v4.js"),a=function(){function e(e){this._keyFile=o.join(e,".taskkey"),this._store={},this.genKey()}return e.prototype.initialize=function(){},e.prototype.storeSecret=function(e,t){if(!e||0==e.length)return!1;if(e=e.toLowerCase(),!t||0==t.length)return this._store.hasOwnProperty(e)&&delete this._store[e],!1;var n=this.getKey(),r=i.randomBytes(16),o=i.createCipheriv("aes-256-ctr",n,r),s=o.update(t,"utf8","hex"),a=o.final("hex");return this._store[e]=r.toString("hex")+s+a,!0},e.prototype.retrieveSecret=function(e){var t;if(e=(e||"").toLowerCase(),this._store.hasOwnProperty(e)){var n=this.getKey(),r=this._store[e],o=Buffer.from(r,"hex"),s=o.slice(0,16),a=o.slice(16),c=i.createDecipheriv("aes-256-ctr",n,s);t=c.update(a,"hex","utf8")+c.final("utf8")}return t},e.prototype.getKey=function(){var e=r.readFileSync(this._keyFile).toString("utf8");return i.createHash("sha256").update(e).digest()},e.prototype.genKey=function(){r.writeFileSync(this._keyFile,s(),{encoding:"utf8"})},e}();t.Vault=a},"./node_modules/azure-pipelines-tool-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib sync ***! \****************************************************/ @@ -30,71 +30,71 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! url */"url"),i=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===o.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,o),i=yield this.requestRaw(r,n);if(i&&i.message&&i.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=i.message.headers.location;if(!t)break;yield i.readBody(),r=this._prepareRequest(e,t,o),i=yield this.requestRaw(r,n),s--}return i}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,i=(e,t)=>{o||(o=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);i(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),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,n){const r={};r.parsedUrl=o.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:i;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===o.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||i.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const o="https:"===n.proxyUrl.protocol;r=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===o.parse(e).protocol,i=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return i||(s&&r?i={proxyUrl:s}:a&&(i={proxyUrl:a})),i&&(i.proxyUrl.length>0&&(t=o.parse(i.proxyUrl)),(i.proxyUsername||i.proxyPassword)&&(n=i.proxyUsername+":"+i.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),c=n(/*! fs */"fs"),u=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let o=e[r];if(u.satisfies(o,t)){n=o;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=i.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let o=i.join(r,e,t);l.exist(o)&&l.exist(`${o}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=i.join(S(),e,u.clean(t),n);l.debug("destination "+r);let o=`${r}.complete`;return l.rmRF(r),l.rmRF(o),l.mkdirP(r),r}function b(e,t,n){let r=`${i.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=i.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(i.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+i.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=u.clean(t);let o=S(),s=i.join(o,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=i.isAbsolute(t)?t:i.join(E(),t),l.mkdirP(i.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[o.HttpCodes.BadGateway,o.HttpCodes.ServiceUnavailable,o.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,o){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),o=o||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,o)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,o);for(let t of c.readdirSync(e)){let n=i.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,o),r}))},t.cacheFile=function(e,t,n,o,a){return r(this,void 0,void 0,(function*(){if(o=u.clean(o),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,o,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,o,a),c=i.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,o,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${i.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),o=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);o.on("stdout",e=>{a.stdout.write(e)}),o.on("stderr",e=>{a.stderr.write(e)}),yield o.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=i.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let o=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield o.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},o=[];for(let e=0;e=0&&u>0){for(r=[],o=n.length;l>=0&&!a;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?a=[r.pop(),u]:((i=r.pop())=0?c:u;r.length&&(a=[o,s])}return a}e.exports=r,r.range=o},"./node_modules/brace-expansion/index.js": +/*! no static exports found */function(e,t,n){"use strict";function r(e,t,n){e instanceof RegExp&&(e=o(e,n)),t instanceof RegExp&&(t=o(t,n));var r=i(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function o(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var r,o,i,s,a,c=n.indexOf(e),u=n.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(r=[],i=n.length;l>=0&&!a;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?a=[r.pop(),u]:((o=r.pop())=0?c:u;r.length&&(a=[i,s])}return a}e.exports=r,r.range=i},"./node_modules/brace-expansion/index.js": /*!***********************************************!*\ !*** ./node_modules/brace-expansion/index.js ***! \***********************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);return a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),n.push.apply(n,c),n}(s.body)).length&&1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),j=Math.max(c[0].length,c[1].length),x=3==c.length?Math.abs(l(c[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),o=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var i=[],s=o("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else{if(1===(c=function e(t){if(!t)return[""];var n=[],r=o("{","}",t);if(!r)return t.split(",");var i=r.pre,s=r.body,a=r.post,c=i.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));return n.push.apply(n,c),n}(s.body)).length)if(1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),E=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(l(c[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ -/*! no static exports found */function(e,t){e.exports=function(e,t){for(var r=[],i=0;i0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?t._map.set(r,i):t._map.delete(r)}))},e.prototype.hasKey=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,n){e.forEach((function(e){return t.add(n,e.clone())}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,n){e(n,t)}))},e}();t.Lookup=i},"./node_modules/inversify/lib/inversify.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null==e)throw new Error(r.NULL_ARGUMENT);if(null==t)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(r.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(r.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach((function(n,r){var o=n.filter((function(t){return!e(t)}));o.length>0?t._map.set(r,o):t._map.delete(r)}))},e.prototype.hasKey=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,n){e.forEach((function(e){return t.add(n,e.clone())}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,n){e(n,t)}))},e}();t.Lookup=o},"./node_modules/inversify/lib/inversify.js": /*!*************************************************!*\ !*** ./node_modules/inversify/lib/inversify.js ***! \*************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.METADATA_KEY=r;var i=n(/*! ./container/container */"./node_modules/inversify/lib/container/container.js");t.Container=i.Container;var o=n(/*! ./constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js");t.BindingScopeEnum=o.BindingScopeEnum,t.BindingTypeEnum=o.BindingTypeEnum,t.TargetTypeEnum=o.TargetTypeEnum;var s=n(/*! ./container/container_module */"./node_modules/inversify/lib/container/container_module.js");t.AsyncContainerModule=s.AsyncContainerModule,t.ContainerModule=s.ContainerModule;var a=n(/*! ./annotation/injectable */"./node_modules/inversify/lib/annotation/injectable.js");t.injectable=a.injectable;var c=n(/*! ./annotation/tagged */"./node_modules/inversify/lib/annotation/tagged.js");t.tagged=c.tagged;var u=n(/*! ./annotation/named */"./node_modules/inversify/lib/annotation/named.js");t.named=u.named;var l=n(/*! ./annotation/inject */"./node_modules/inversify/lib/annotation/inject.js");t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var d=n(/*! ./annotation/optional */"./node_modules/inversify/lib/annotation/optional.js");t.optional=d.optional;var p=n(/*! ./annotation/unmanaged */"./node_modules/inversify/lib/annotation/unmanaged.js");t.unmanaged=p.unmanaged;var f=n(/*! ./annotation/multi_inject */"./node_modules/inversify/lib/annotation/multi_inject.js");t.multiInject=f.multiInject;var h=n(/*! ./annotation/target_name */"./node_modules/inversify/lib/annotation/target_name.js");t.targetName=h.targetName;var g=n(/*! ./annotation/post_construct */"./node_modules/inversify/lib/annotation/post_construct.js");t.postConstruct=g.postConstruct;var y=n(/*! ./planning/metadata_reader */"./node_modules/inversify/lib/planning/metadata_reader.js");t.MetadataReader=y.MetadataReader;var m=n(/*! ./utils/id */"./node_modules/inversify/lib/utils/id.js");t.id=m.id;var v=n(/*! ./annotation/decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.decorate=v.decorate;var _=n(/*! ./syntax/constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js");t.traverseAncerstors=_.traverseAncerstors,t.taggedConstraint=_.taggedConstraint,t.namedConstraint=_.namedConstraint,t.typeConstraint=_.typeConstraint;var b=n(/*! ./utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getServiceIdentifierAsString=b.getServiceIdentifierAsString;var w=n(/*! ./utils/binding_utils */"./node_modules/inversify/lib/utils/binding_utils.js");t.multiBindToService=w.multiBindToService},"./node_modules/inversify/lib/planning/context.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.METADATA_KEY=r;var o=n(/*! ./container/container */"./node_modules/inversify/lib/container/container.js");t.Container=o.Container;var i=n(/*! ./constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js");t.BindingScopeEnum=i.BindingScopeEnum,t.BindingTypeEnum=i.BindingTypeEnum,t.TargetTypeEnum=i.TargetTypeEnum;var s=n(/*! ./container/container_module */"./node_modules/inversify/lib/container/container_module.js");t.AsyncContainerModule=s.AsyncContainerModule,t.ContainerModule=s.ContainerModule;var a=n(/*! ./annotation/injectable */"./node_modules/inversify/lib/annotation/injectable.js");t.injectable=a.injectable;var c=n(/*! ./annotation/tagged */"./node_modules/inversify/lib/annotation/tagged.js");t.tagged=c.tagged;var u=n(/*! ./annotation/named */"./node_modules/inversify/lib/annotation/named.js");t.named=u.named;var l=n(/*! ./annotation/inject */"./node_modules/inversify/lib/annotation/inject.js");t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var d=n(/*! ./annotation/optional */"./node_modules/inversify/lib/annotation/optional.js");t.optional=d.optional;var p=n(/*! ./annotation/unmanaged */"./node_modules/inversify/lib/annotation/unmanaged.js");t.unmanaged=p.unmanaged;var f=n(/*! ./annotation/multi_inject */"./node_modules/inversify/lib/annotation/multi_inject.js");t.multiInject=f.multiInject;var h=n(/*! ./annotation/target_name */"./node_modules/inversify/lib/annotation/target_name.js");t.targetName=h.targetName;var g=n(/*! ./annotation/post_construct */"./node_modules/inversify/lib/annotation/post_construct.js");t.postConstruct=g.postConstruct;var y=n(/*! ./planning/metadata_reader */"./node_modules/inversify/lib/planning/metadata_reader.js");t.MetadataReader=y.MetadataReader;var m=n(/*! ./utils/id */"./node_modules/inversify/lib/utils/id.js");t.id=m.id;var v=n(/*! ./annotation/decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.decorate=v.decorate;var _=n(/*! ./syntax/constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js");t.traverseAncerstors=_.traverseAncerstors,t.taggedConstraint=_.taggedConstraint,t.namedConstraint=_.namedConstraint,t.typeConstraint=_.typeConstraint;var b=n(/*! ./utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getServiceIdentifierAsString=b.getServiceIdentifierAsString;var w=n(/*! ./utils/binding_utils */"./node_modules/inversify/lib/utils/binding_utils.js");t.multiBindToService=w.multiBindToService},"./node_modules/inversify/lib/planning/context.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/context.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(){function e(e){this.id=r.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=i},"./node_modules/inversify/lib/planning/metadata.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=function(){function e(e){this.id=r.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=o},"./node_modules/inversify/lib/planning/metadata.js": /*!*********************************************************!*\ !*** ./node_modules/inversify/lib/planning/metadata.js ***! \*********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},e}();t.Metadata=i},"./node_modules/inversify/lib/planning/metadata_reader.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),o=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},e}();t.Metadata=o},"./node_modules/inversify/lib/planning/metadata_reader.js": /*!****************************************************************!*\ !*** ./node_modules/inversify/lib/planning/metadata_reader.js ***! \****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=function(){function e(){}return e.prototype.getConstructorMetadata=function(e){return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,e),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,e)||{}}},e.prototype.getPropertiesMetadata=function(e){return Reflect.getMetadata(r.TAGGED_PROP,e)||[]},e}();t.MetadataReader=i},"./node_modules/inversify/lib/planning/plan.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),o=function(){function e(){}return e.prototype.getConstructorMetadata=function(e){return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,e),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,e)||{}}},e.prototype.getPropertiesMetadata=function(e){return Reflect.getMetadata(r.TAGGED_PROP,e)||[]},e}();t.MetadataReader=o},"./node_modules/inversify/lib/planning/plan.js": /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),c=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),u=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,u=m(n.container,s.serviceIdentifier);return u.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),u=m(n.container,s.serviceIdentifier)),a=t?u:u.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=c.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new u.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new l.Metadata(a,n),u=new h.Target(t,"",n,c);if(void 0!==i){var d=new l.Metadata(i,o);u.metadata.push(d)}return u}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,c){var u,l;if(null===a){u=y(t,n,s,null,c),l=new f.Request(r,s,null,u,c);var h=new d.Plan(s,l);s.addPlan(h)}else u=y(t,n,s,a,c),l=a.addChildRequest(c.serviceIdentifier,u,c);u.forEach((function(n){var r=null;if(c.isArray())r=l.addChildRequest(n.serviceIdentifier,n,c);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var u=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),o=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var c=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function u(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var u=o.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(u)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,o){for(var i=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),o=[],s=Object.keys(r),a=0,u=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(){function e(e,t,n,i,o){this.id=r.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var i=new e(t,this.parentContext,this,n,r);return this.childRequests.push(i),i},e}();t.Request=i},"./node_modules/inversify/lib/planning/target.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=function(){function e(e,t,n,o,i){this.id=r.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=i,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var o=new e(t,this.parentContext,this,n,r);return this.childRequests.push(o),o},e}();t.Request=o},"./node_modules/inversify/lib/planning/target.js": /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var c=null;"string"==typeof a?c=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(c=a),null!==c&&this.metadata.push(c)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,c=null;if(t.length>0){var u=t.filter((function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ConstructorArgument})).map(n);a=u,c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ClassProperty})),i=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var o=i[n];e[r]=o})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else c=new e;return function(e,t){if(Reflect.hasMetadata(i.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(i.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),s=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),a=n(/*! ./instantiation */"./node_modules/inversify/lib/resolution/instantiation.js"),c=function(e,t,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}},u=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,o=t.childRequests,l=t.target&&t.target.isArray(),d=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&d)return o.map((function(t){return u(e)(t)}));var p=null;if(!t.target.isOptional()||0!==n.length){var f=n[0],h=f.scope===i.BindingScopeEnum.Singleton,g=f.scope===i.BindingScopeEnum.Request;if(h&&f.activated)return f.cache;if(g&&null!==e&&e.has(f.id))return e.get(f.id);if(f.type===i.BindingTypeEnum.ConstantValue)p=f.cache;else if(f.type===i.BindingTypeEnum.Function)p=f.cache;else if(f.type===i.BindingTypeEnum.Constructor)p=f.implementationType;else if(f.type===i.BindingTypeEnum.DynamicValue&&null!==f.dynamicValue)p=c("toDynamicValue",f.serviceIdentifier,(function(){return f.dynamicValue(t.parentContext)}));else if(f.type===i.BindingTypeEnum.Factory&&null!==f.factory)p=c("toFactory",f.serviceIdentifier,(function(){return f.factory(t.parentContext)}));else if(f.type===i.BindingTypeEnum.Provider&&null!==f.provider)p=c("toProvider",f.serviceIdentifier,(function(){return f.provider(t.parentContext)}));else{if(f.type!==i.BindingTypeEnum.Instance||null===f.implementationType){var y=s.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+y)}p=a.resolveInstance(f.implementationType,o,u(e))}return"function"==typeof f.onActivation&&(p=f.onActivation(t.parentContext,p)),h&&(f.cache=p,f.activated=!0),g&&null!==e&&!e.has(f.id)&&e.set(f.id,p),p}}};t.resolve=function(e){return u(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},"./node_modules/inversify/lib/syntax/binding_in_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),s=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),a=n(/*! ./instantiation */"./node_modules/inversify/lib/resolution/instantiation.js"),c=function(e,t,n){try{return n()}catch(n){throw i.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}},u=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,i=t.childRequests,l=t.target&&t.target.isArray(),d=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&d)return i.map((function(t){return u(e)(t)}));var p=null;if(!t.target.isOptional()||0!==n.length){var f=n[0],h=f.scope===o.BindingScopeEnum.Singleton,g=f.scope===o.BindingScopeEnum.Request;if(h&&f.activated)return f.cache;if(g&&null!==e&&e.has(f.id))return e.get(f.id);if(f.type===o.BindingTypeEnum.ConstantValue)p=f.cache;else if(f.type===o.BindingTypeEnum.Function)p=f.cache;else if(f.type===o.BindingTypeEnum.Constructor)p=f.implementationType;else if(f.type===o.BindingTypeEnum.DynamicValue&&null!==f.dynamicValue)p=c("toDynamicValue",f.serviceIdentifier,(function(){return f.dynamicValue(t.parentContext)}));else if(f.type===o.BindingTypeEnum.Factory&&null!==f.factory)p=c("toFactory",f.serviceIdentifier,(function(){return f.factory(t.parentContext)}));else if(f.type===o.BindingTypeEnum.Provider&&null!==f.provider)p=c("toProvider",f.serviceIdentifier,(function(){return f.provider(t.parentContext)}));else{if(f.type!==o.BindingTypeEnum.Instance||null===f.implementationType){var y=s.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+y)}p=a.resolveInstance(f.implementationType,i,u(e))}return"function"==typeof f.onActivation&&(p=f.onActivation(t.parentContext,p)),h&&(f.cache=p,f.activated=!0),g&&null!==e&&!e.has(f.id)&&e.set(f.id,p),p}}};t.resolve=function(e){return u(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},"./node_modules/inversify/lib/syntax/binding_in_syntax.js": /*!****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_in_syntax.js ***! \****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),o=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=o},"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),i=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new o.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new o.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new o.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=i},"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js": /*!************************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js ***! \************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_in_syntax */"./node_modules/inversify/lib/syntax/binding_in_syntax.js"),i=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),o=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),s=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=s},"./node_modules/inversify/lib/syntax/binding_on_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_in_syntax */"./node_modules/inversify/lib/syntax/binding_in_syntax.js"),o=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),i=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),s=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new o.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=s},"./node_modules/inversify/lib/syntax/binding_on_syntax.js": /*!****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_on_syntax.js ***! \****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),i=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new r.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=i},"./node_modules/inversify/lib/syntax/binding_to_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),o=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new r.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=o},"./node_modules/inversify/lib/syntax/binding_to_syntax.js": /*!****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_to_syntax.js ***! \****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ./binding_in_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js"),s=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new o.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new o.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error(r.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}();t.BindingToSyntax=a},"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ./binding_in_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js"),s=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=o.BindingTypeEnum.Instance,this._binding.implementationType=e,new i.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=o.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=o.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new i.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=o.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error(r.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=o.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=o.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}();t.BindingToSyntax=a},"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js": /*!*********************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_when_on_syntax.js ***! \*********************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),i=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),o=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=o},"./node_modules/inversify/lib/syntax/binding_when_syntax.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),o=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),i=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=i},"./node_modules/inversify/lib/syntax/binding_when_syntax.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/binding_when_syntax.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),i=n(/*! ./constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js"),o=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=i.namedConstraint(e),new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){return null!==e.target&&!e.target.isNamed()&&!e.target.isTagged()},new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=i.taggedConstraint(e)(t),new r.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return i.typeConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return i.namedConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return i.taggedConstraint(e)(t)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return i.traverseAncerstors(n,i.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!i.traverseAncerstors(n,i.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=o},"./node_modules/inversify/lib/syntax/constraint_helpers.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),o=n(/*! ./constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js"),i=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=o.namedConstraint(e),new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){return null!==e.target&&!e.target.isNamed()&&!e.target.isTagged()},new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=o.taggedConstraint(e)(t),new r.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return o.typeConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return o.namedConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return o.taggedConstraint(e)(t)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=i},"./node_modules/inversify/lib/syntax/constraint_helpers.js": /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),o=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),i=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||i(n,t))};t.traverseAncerstors=i;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new o.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -214,11 +214,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/serialization.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js");function i(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function o(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",i=n(e,t);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach((function(e){var t="Object";null!==e.implementationType&&(t=o(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)}))),r},t.circularDependencyToException=function e(t){t.childRequests.forEach((function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function(e){return function e(t,n){void 0===n&&(n=[]);var r=i(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(e).reverse().join(" --\x3e ")}(t);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)}))},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),i=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach((function(e){n+=e.toString()+"\n"}))," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=o},"./node_modules/minimatch/minimatch.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js");function o(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function i(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=o,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",o=n(e,t);return 0!==o.length&&(r="\nRegistered bindings:",o.forEach((function(e){var t="Object";null!==e.implementationType&&(t=i(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)}))),r},t.circularDependencyToException=function e(t){t.childRequests.forEach((function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function(e){return function e(t,n){void 0===n&&(n=[]);var r=o(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(e).reverse().join(" --\x3e ")}(t);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)}))},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),o=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==o&&o.forEach((function(e){n+=e.toString()+"\n"}))," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=i},"./node_modules/minimatch/minimatch.js": /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),N=o.slice(P.reEnd-8,P.reEnd),R=o.slice(P.reEnd);N+=R;var I=k.split("(").length-1,M=R;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var o=l.GLOBSTAR=d.GLOBSTAR={},i=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}l.filter=function(e,t){return t=t||{},function(n,r,o){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,o){return t.minimatch(n,r,u(e,o))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var o=0,i=e.length;o65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return o;if(""===e)return"";var r,i="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":i+="[^/]*?",c=!0;break;case"?":i+="[^/]",c=!0;break;default:i+="\\"+r}m.debug("clearStateChar %j %j",r,i),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=i.slice(0,k.reStart),C=i.slice(k.reStart,k.reEnd-8),R=i.slice(k.reEnd-8,k.reEnd),N=i.slice(k.reEnd);R+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(o=e[i]);i--);for(i=0;i>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(i===a&&s===c)return!0;if(i===a)return n;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,27 +249,27 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var N,R,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return u(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(N=$,R="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(R+" is deprecated, use "+I+" instead.",new Error("").stack),N.apply(N,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},o=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,i=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(i)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(o=function(e){t=t.next={task:e,domain:i&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)i=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return o.runAfter=function(e){s.push(e),n||(n=!0,r())},o}(),i=Function.call;function s(e){return function(){return i.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;no.stackCounter)&&(f(t,"__minimumStackCounter__",{value:o.stackCounter,configurable:!0}),r.unshift(o.stack));r.unshift(t.stack);var i=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&i<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=o,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],o=p(j.prototype),i=p(A.prototype);if(i.promiseDispatch=function(e,o,i){var s=c(arguments);n?(n.push(s),"when"===o&&i[1]&&r.push(i[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},i.valueOf=function(){if(n)return i;var e=k(t);return P(e)&&(t=e),e},i.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){i.stack=e.stack.substring(e.stack.indexOf("\n")+1),i.stackCounter=E++}function s(o){t=o,S.longStackSupport&&e&&(i.source=o),u(n,(function(e,t){S.nextTick((function(){o.promiseDispatch.apply(o,t)}))}),void 0),n=void 0,r=void 0}return o.promise=i,o.resolve=function(e){t||s(S(e))},o.fulfill=function(e){t||s(q(e))},o.reject=function(e){t||s(U(e))},o.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},o}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,o=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,o=j(),i=!1;return S.nextTick((function(){r.promiseDispatch((function(t){i||(i=!0,o.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){i||(i=!0,o.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||o.notify(t)}]),o.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=C,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return u(e,(function(r,o,i){var s;P(o)&&"fulfilled"===(s=o.inspect()).state?e[i]=s.value:(++t,O(o,(function(r){e[i]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:i,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,o,i){var s=e[i];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:i,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var i;if("undefined"==typeof StopIteration){try{i=n[e](t)}catch(e){return U(e)}return i.done?S(i.value):O(i.value,r,o)}try{i=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(i,r,o)}var n=e.apply(this,arguments),r=t.bind(t,"next"),o=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,o),!S.onerror)throw e;S.onerror(e)}))},o=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),o.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),o=j();function i(){return e.apply(t,arguments)}return r.push(o.makeNodeResolver()),S(i).fapply(r).fail(o.reject),o.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},"./node_modules/qs/lib/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},s)},"./node_modules/qs/lib/index.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/index.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./stringify */"./node_modules/qs/lib/stringify.js"),i=n(/*! ./parse */"./node_modules/qs/lib/parse.js"),o=n(/*! ./formats */"./node_modules/qs/lib/formats.js");e.exports={formats:o,parse:i,stringify:r}},"./node_modules/qs/lib/parse.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./stringify */"./node_modules/qs/lib/stringify.js"),o=n(/*! ./parse */"./node_modules/qs/lib/parse.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js");e.exports={formats:i,parse:o,stringify:r}},"./node_modules/qs/lib/parse.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/parse.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.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,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,c=[];if(a){if(!n.plainObjects&&i.call(Object.prototype,a)&&!n.allowPrototypes)return;c.push(a)}for(var u=0;n.depth>0&&null!==(s=o.exec(r))&&u=0;--i){var o,s=e[i];if("[]"===s&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[])[c]=r:o[a]=r:o={0:r}}r=o}return r}(c,t,n)}};e.exports=function(e,t){var n=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 Error("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,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||r.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 n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,l),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=g.split(",")),y.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(c,h)?c[h]=r.combine(c[h],g):c[h]=g}return c}(e,n):e,l=n.plainObjects?Object.create(null):{},d=Object.keys(u),p=0;p0&&/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,c=[];if(a){if(!n.plainObjects&&o.call(Object.prototype,a)&&!n.allowPrototypes)return;c.push(a)}for(var u=0;n.depth>0&&null!==(s=i.exec(r))&&u=0;--o){var i,s=e[o];if("[]"===s&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=r:i[a]=r:i={0:r}}r=i}return r}(c,t,n)}};e.exports=function(e,t){var n=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 Error("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,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||r.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 n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,l),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=g.split(",")),y.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(c,h)?c[h]=r.combine(c[h],g):c[h]=g}return c}(e,n):e,l=n.plainObjects?Object.create(null):{},d=Object.keys(u),p=0;p0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),o=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,o,i,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===o&&a(_)&&(_=_.join(",")),null===_){if(i)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=r.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var s=t[o];s&&"object"==typeof s&&n&&"object"==typeof n?t[o]=e(s,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var s=n[o];return r.call(t,o)?t[o]=e(t[o],s,i):t[o]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,43 +288,43 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=o(e);function o(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=o(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!i&&!s,c={create:i?function(){return R(Object.create(null))}:s?function(){return R({__proto__:null})}:function(){return R({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,o=n+1;o=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var o=e.length-1;o>=0;--o){var i=(0,e[o])(t,n,r);if(!b(i)&&!w(i)){if(!S(i))throw new TypeError;r=i}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var o=C(n);return!w(o)&&e(t,o,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var o=C(n);return w(o)?void 0:e(t,o,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),o=C(t);if(null===o)return r;var i=e(o,n);if(i.length<=0)return r;if(r.length<=0)return i;for(var s=new p,a=[],c=0,u=r;c0)return!0;var o=f.get(t);return o.delete(n),o.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ -/*! no static exports found */function(e,t){e.exports=function(e,t){for(var n=e.split("."),r=t.split("."),i=0;i<3;i++){var o=Number(n[i]),s=Number(r[i]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0}},"./node_modules/semver/semver.js": +/*! no static exports found */function(e,t){e.exports=function(e,t){for(var n=e.split("."),r=t.split("."),o=0;o<3;o++){var i=Number(n[o]),s=Number(r[o]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return 0}},"./node_modules/semver/semver.js": /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[c]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var N=s++;o[N]="^"+o[k]+o[E]+"$";var R=s++;o[R]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[E]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[N];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],s=0,a=s++;i[a]="0|[1-9]\\d*";var c=s++;i[c]="[0-9]+";var u=s++;i[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;i[l]="("+i[a]+")\\.("+i[a]+")\\.("+i[a]+")";var d=s++;i[d]="("+i[c]+")\\.("+i[c]+")\\.("+i[c]+")";var p=s++;i[p]="(?:"+i[a]+"|"+i[u]+")";var f=s++;i[f]="(?:"+i[c]+"|"+i[u]+")";var h=s++;i[h]="(?:-("+i[p]+"(?:\\."+i[p]+")*))";var g=s++;i[g]="(?:-?("+i[f]+"(?:\\."+i[f]+")*))";var y=s++;i[y]="[0-9A-Za-z-]+";var m=s++;i[m]="(?:\\+("+i[y]+"(?:\\."+i[y]+")*))";var v=s++,_="v?"+i[l]+i[h]+"?"+i[m]+"?";i[v]="^"+_+"$";var b="[v=\\s]*"+i[d]+i[g]+"?"+i[m]+"?",w=s++;i[w]="^"+b+"$";var S=s++;i[S]="((?:<|>)?=?)";var E=s++;i[E]=i[c]+"|x|X|\\*";var j=s++;i[j]=i[a]+"|x|X|\\*";var x=s++;i[x]="[v=\\s]*("+i[j]+")(?:\\.("+i[j]+")(?:\\.("+i[j]+")(?:"+i[h]+")?"+i[m]+"?)?)?";var T=s++;i[T]="[v=\\s]*("+i[E]+")(?:\\.("+i[E]+")(?:\\.("+i[E]+")(?:"+i[g]+")?"+i[m]+"?)?)?";var A=s++;i[A]="^"+i[S]+"\\s*"+i[x]+"$";var O=s++;i[O]="^"+i[S]+"\\s*"+i[T]+"$";var k=s++;i[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;i[P]="(?:~>?)";var C=s++;i[C]="(\\s*)"+i[P]+"\\s+",o[C]=new RegExp(i[C],"g");var R=s++;i[R]="^"+i[P]+i[x]+"$";var N=s++;i[N]="^"+i[P]+i[T]+"$";var I=s++;i[I]="(?:\\^)";var M=s++;i[M]="(\\s*)"+i[I]+"\\s+",o[M]=new RegExp(i[M],"g");var D=s++;i[D]="^"+i[I]+i[x]+"$";var B=s++;i[B]="^"+i[I]+i[T]+"$";var F=s++;i[F]="^"+i[S]+"\\s*("+b+")$|^$";var L=s++;i[L]="^"+i[S]+"\\s*("+_+")$|^$";var U=s++;i[U]="(\\s*)"+i[S]+"\\s*("+b+"|"+i[x]+")",o[U]=new RegExp(i[U],"g");var q=s++;i[q]="^\\s*("+i[x]+")\\s+-\\s+("+i[x]+")\\s*$";var V=s++;i[V]="^\\s*("+i[T]+")\\s+-\\s+("+i[T]+")\\s*$";var G=s++;i[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,i[H]),o[H]||(o[H]=new RegExp(i[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[w]:o[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[w]:o[v]);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>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||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=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return o+s;return i},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var oe={};function ie(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ie)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ie(e.raw,t);if(e instanceof re)return new ie(e.value,t);if(!(this instanceof ie))return new ie(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,o,i,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(o)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var o=0;o0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new ie(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var o,i,s,a,c;switch(e=new $(e,r),t=new ie(t,r),n){case">":o=J,i=te,s=X,a=">",c=">=";break;case"<":o=X,i=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,o(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&i(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?o[F]:o[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=oe},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ie(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new ie(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==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=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&s||a||c},t.Range=ie,ie.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ie.prototype.toString=function(){return this.range},ie.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[V]:o[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(o[U],"$1$2$3"),n("comparator trim",e,o[U]),e=(e=(e=e.replace(o[C],"$1~")).replace(o[M],"$1^")).split(/\s+/).join(" ");var i=t?o[F]:o[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[B]:o[D];return e.replace(r,(function(t,r,o,i,s){var a;return n("caret",e,t,r,o,i,s),se(r)?a="":se(o)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?a="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[N]:o[R];return e.replace(r,(function(t,r,o,i,s){var a;return n("tilde",e,t,r,o,i,s),se(r)?a="":se(o)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?a=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+(+o+1)+".0"):a=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[O]:o[A];return e.replace(r,(function(t,r,o,i,s,a){n("xRange",e,t,r,o,i,s,a);var c=se(o),u=c||se(i),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(i=0),s=0,">"===r?(r=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),t=r+o+"."+i+"."+s):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new re(e,this.options)}),this)},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new ie(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ie.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new ie(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new ie(e,n),t=new ie(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(o[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),o=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",o);var i=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",i);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs");e.exports=function(e,t){var n="";return t||r.error("no paths given"),"string"==typeof t&&(t=[].slice.call(arguments,1)),(t=r.expand(t)).forEach((function(e){i.existsSync(e)||r.error("no such file or directory: "+e),n+=i.readFileSync(e,"utf8")+"\n"})),"\n"===n[n.length-1]&&(n=n.substring(0,n.length-1)),r.ShellString(n)}},"./node_modules/shelljs/src/cd.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs");e.exports=function(e,t){var n="";return t||r.error("no paths given"),"string"==typeof t&&(t=[].slice.call(arguments,1)),(t=r.expand(t)).forEach((function(e){o.existsSync(e)||r.error("no such file or directory: "+e),n+=o.readFileSync(e,"utf8")+"\n"})),"\n"===n[n.length-1]&&(n=n.substring(0,n.length-1)),r.ShellString(n)}},"./node_modules/shelljs/src/cd.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/cd.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e,t){t||i.error("directory not specified"),r.existsSync(t)||i.error("no such file or directory: "+t),r.statSync(t).isDirectory()||i.error("not a directory: "+t),process.chdir(t)}},"./node_modules/shelljs/src/chmod.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e,t){t||o.error("directory not specified"),r.existsSync(t)||o.error("no such file or directory: "+t),r.statSync(t).isDirectory()||o.error("not a directory: "+t),process.chdir(t)}},"./node_modules/shelljs/src/chmod.js": /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,c=r.WRITE,u=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),N=0;switch(x&&(N|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(N|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(N|=(A?u:0)+(O?c:0)+(P?a:0)),k&&(N|=y),S){case"+":w|=N;break;case"-":w&=~N;break;case"=":w=b+N,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,o=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):o.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=o.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],o.expand(n).forEach((function e(t){var n=i.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&i.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=o.expand(n),r.forEach((function(n){if(n=s.resolve(n),i.existsSync(n)||o.error("File not found: "+n),!e.recursive||!i.lstatSync(n).isSymbolicLink()){var r=i.statSync(n).mode,c=r&a.TYPE_MASK,u=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":u|=w;break;case"-":u&=~w;break;case"=":u=c+w,i.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+u.toString(8)),r!=u&&(!e.verbose&&e.changes&&log(n+" -> "+u.toString(8)),i.chmodSync(n,u))}else o.error("Invalid symbolic mode change: "+t)})):(u=c+parseInt(t,8),i.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r),i.chmodSync(n,u))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! os */"os"),i=n(/*! fs */"fs"),o=n(/*! ./ls */"./node_modules/shelljs/src/ls.js"),s={silent:!1,fatal:!1};t.config=s;var a={error:null,currentCmd:"shell.js",tempDir:null};t.state=a;var c=r.type().match(/^Win/)?"win":"unix";function u(){s.silent||console.log.apply(this,arguments)}function l(e,t){if(null===a.error&&(a.error=""),a.error+=a.currentCmd+": "+e+"\n",e.length>0&&u(a.error),s.fatal&&process.exit(1),!t)throw""}t.platform=c,t.log=u,t.error=l,t.ShellString=function(e){return e},t.parseOptions=function(e,t){t||l("parseOptions() internal error: no map given");var n={};for(var r in t)n[t[r]]=!1;if(!e)return n;"string"!=typeof e&&l("parseOptions() internal error: wrong str");var i=e.match(/^\-(.+)/);return i?(i[1].split("").forEach((function(e){e in t?n[t[e]]=!0:l("option not recognized: "+e)})),n):n},t.expand=function(e){var t=[];return e.forEach((function(e){if(e.search(/\*[^\/]*\//)>-1||e.search(/\*\*[^\/]*\//)>-1){var n=e.match(/^([^*]+\/|)(.*)/),r=n[1],i=n[2].replace(/\*\*/g,".*").replace(/\*/g,"[^\\/]*");i=new RegExp(i),o("-R",r).filter((function(e){return i.test(e)})).forEach((function(e){t.push(e)}))}else e.search(/\*/)>-1?o("",e).forEach((function(e){t.push(e)})):t.push(e)})),t},t.unlinkSync=function(e){try{i.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;i.chmodSync(e,"0666"),i.unlinkSync(e)}},t.randomFileName=function(){return"shelljs_"+function e(t){if(1===t)return parseInt(16*Math.random(),10).toString(16);for(var n="",r=0;r0&&u(a.error),s.fatal&&process.exit(1),!t)throw""}t.platform=c,t.log=u,t.error=l,t.ShellString=function(e){return e},t.parseOptions=function(e,t){t||l("parseOptions() internal error: no map given");var n={};for(var r in t)n[t[r]]=!1;if(!e)return n;"string"!=typeof e&&l("parseOptions() internal error: wrong str");var o=e.match(/^\-(.+)/);return o?(o[1].split("").forEach((function(e){e in t?n[t[e]]=!0:l("option not recognized: "+e)})),n):n},t.expand=function(e){var t=[];return e.forEach((function(e){if(e.search(/\*[^\/]*\//)>-1||e.search(/\*\*[^\/]*\//)>-1){var n=e.match(/^([^*]+\/|)(.*)/),r=n[1],o=n[2].replace(/\*\*/g,".*").replace(/\*/g,"[^\\/]*");o=new RegExp(o),i("-R",r).filter((function(e){return o.test(e)})).forEach((function(e){t.push(e)}))}else e.search(/\*/)>-1?i("",e).forEach((function(e){t.push(e)})):t.push(e)})),t},t.unlinkSync=function(e){try{o.unlinkSync(e)}catch(t){if("EPERM"!==t.code)throw t;o.chmodSync(e,"0666"),o.unlinkSync(e)}},t.randomFileName=function(){return"shelljs_"+function e(t){if(1===t)return parseInt(16*Math.random(),10).toString(16);for(var n="",r=0;r and/or "):arguments.length>3?(t=[].slice.call(arguments,1,arguments.length-1),n=arguments[arguments.length-1]):"string"==typeof t?t=[t]:"length"in t?t=t:o.error("invalid arguments");var s=r.existsSync(n),u=s&&r.statSync(n);if(s&&u.isDirectory()||!(t.length>1)||o.error("dest is not a directory (too many sources)"),s&&u.isFile()&&!e.force&&o.error("dest file already exists: "+n),e.recursive){t.forEach((function(e,n){"/"===e[e.length-1]&&(t[n]+="*")}));try{r.mkdirSync(n,parseInt("0777",8))}catch(e){}}(t=o.expand(t)).forEach((function(t){if(r.existsSync(t))if(r.statSync(t).isDirectory())if(e.recursive){var s=i.join(n,i.basename(t)),u=r.statSync(t);try{r.mkdirSync(s,u.mode)}catch(e){if("EEXIST"!==e.code)throw e}c(t,s,{force:e.force})}else o.log(t+" is a directory (not copied)");else{var l=n;r.existsSync(n)&&r.statSync(n).isDirectory()&&(l=i.normalize(n+"/"+i.basename(t))),!r.existsSync(l)||e.force?a(t,l):o.error("dest file already exists: "+l,!0)}else o.error("no such file or directory: "+t,!0)}))}},"./node_modules/shelljs/src/dirs.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! os */"os");function a(e,t){r.existsSync(e)||i.error("copyFileSync: no such file or directory: "+e);var n=new Buffer(65536),o=65536,s=0,a=null,c=null;try{a=r.openSync(e,"r")}catch(t){i.error("copyFileSync: could not read src file ("+e+")")}try{c=r.openSync(t,"w")}catch(e){i.error("copyFileSync: could not write to dest file (code="+e.code+"):"+t)}for(;65536===o;)o=r.readSync(a,n,0,65536,s),r.writeSync(c,n,0,o),s+=o;r.closeSync(a),r.closeSync(c),r.chmodSync(t,r.statSync(e).mode)}function c(e,t,n){n||(n={});var o=r.statSync(e);try{r.mkdirSync(t,o.mode)}catch(e){if("EEXIST"!==e.code)throw e}for(var u=r.readdirSync(e),l=0;l and/or "):arguments.length>3?(t=[].slice.call(arguments,1,arguments.length-1),n=arguments[arguments.length-1]):"string"==typeof t?t=[t]:"length"in t?t=t:i.error("invalid arguments");var s=r.existsSync(n),u=s&&r.statSync(n);if(s&&u.isDirectory()||!(t.length>1)||i.error("dest is not a directory (too many sources)"),s&&u.isFile()&&!e.force&&i.error("dest file already exists: "+n),e.recursive){t.forEach((function(e,n){"/"===e[e.length-1]&&(t[n]+="*")}));try{r.mkdirSync(n,parseInt("0777",8))}catch(e){}}(t=i.expand(t)).forEach((function(t){if(r.existsSync(t))if(r.statSync(t).isDirectory())if(e.recursive){var s=o.join(n,o.basename(t)),u=r.statSync(t);try{r.mkdirSync(s,u.mode)}catch(e){if("EEXIST"!==e.code)throw e}c(t,s,{force:e.force})}else i.log(t+" is a directory (not copied)");else{var l=n;r.existsSync(n)&&r.statSync(n).isDirectory()&&(l=o.normalize(n+"/"+o.basename(t))),!r.existsSync(l)||e.force?a(t,l):i.error("dest file already exists: "+l,!0)}else i.error("no such file or directory: "+t,!0)}))}},"./node_modules/shelljs/src/dirs.js": /*!******************************************!*\ !*** ./node_modules/shelljs/src/dirs.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./cd */"./node_modules/shelljs/src/cd.js"),o=n(/*! path */"path"),s=[];function a(e){return/^[\-+]\d+$/.test(e)}function c(e){if(a(e)){if(Math.abs(e)1))return r.error("no other directory");n=n.splice(1,1).concat(n)}return e["no-cd"]?n=n.slice(1):(t=o.resolve(n.shift()),i("",t)),s=n,l("")},t.popd=function(e,t){if(a(e)&&(t=e,e=""),e=r.parseOptions(e,{n:"no-cd"}),!s.length)return r.error("directory stack empty");if(t=c(t||"+0"),e["no-cd"]||t>0||s.length+t===0)t=t>0?t-1:t,s.splice(t,1);else{var n=o.resolve(s.shift());i("",n)}return l("")},t.dirs=l},"./node_modules/shelljs/src/echo.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! ./cd */"./node_modules/shelljs/src/cd.js"),i=n(/*! path */"path"),s=[];function a(e){return/^[\-+]\d+$/.test(e)}function c(e){if(a(e)){if(Math.abs(e)1))return r.error("no other directory");n=n.splice(1,1).concat(n)}return e["no-cd"]?n=n.slice(1):(t=i.resolve(n.shift()),o("",t)),s=n,l("")},t.popd=function(e,t){if(a(e)&&(t=e,e=""),e=r.parseOptions(e,{n:"no-cd"}),!s.length)return r.error("directory stack empty");if(t=c(t||"+0"),e["no-cd"]||t>0||s.length+t===0)t=t>0?t-1:t,s.splice(t,1);else{var n=i.resolve(s.shift());o("",n)}return l("")},t.dirs=l},"./node_modules/shelljs/src/echo.js": /*!******************************************!*\ !*** ./node_modules/shelljs/src/echo.js ***! \******************************************/ @@ -336,59 +336,59 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************!*\ !*** ./node_modules/shelljs/src/exec.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./tempdir */"./node_modules/shelljs/src/tempdir.js"),o=n(/*! ./pwd */"./node_modules/shelljs/src/pwd.js"),s=n(/*! path */"path"),a=n(/*! fs */"fs"),c=n(/*! child_process */"child_process");e.exports=function(e,t,n){return e||r.error("must specify command"),"function"==typeof t&&(n=t,t={async:!0}),"object"==typeof t&&"function"==typeof n&&(t.async=!0),(t=r.extend({silent:r.config.silent,async:!1},t)).async?function(e,t,n){var i="",o=r.extend({silent:r.config.silent},t),s=c.exec(e,{env:process.env,maxBuffer:20971520},(function(e){n&&n(e?e.code:0,i)}));return s.stdout.on("data",(function(e){i+=e,o.silent||process.stdout.write(e)})),s.stderr.on("data",(function(e){i+=e,o.silent||process.stdout.write(e)})),s}(e,t,n):function(e,t){var n=i(),u=s.resolve(n+"/"+r.randomFileName()),l=s.resolve(n+"/"+r.randomFileName()),d=s.resolve(n+"/"+r.randomFileName()),p=s.resolve(n+"/"+r.randomFileName()),f=r.extend({silent:r.config.silent},t),h="";function g(){if(!f.silent&&a.existsSync(u)){var e=a.readFileSync(u,"utf8");e.length<=h.length||(process.stdout.write(e.substr(h.length)),h=e)}}function y(e){return(e+"").replace(/([\\"'])/g,"\\$1").replace(/\0/g,"\\0")}var m="var child = require('child_process'), fs = require('fs');child.exec('"+y(e+=" > "+u+" 2>&1")+"', {env: process.env, maxBuffer: 20*1024*1024}, function(err) { fs.writeFileSync('"+y(l)+"', err ? err.code.toString() : '0');});";for(a.existsSync(d)&&r.unlinkSync(d),a.existsSync(u)&&r.unlinkSync(u),a.existsSync(l)&&r.unlinkSync(l),a.writeFileSync(d,m),c.exec('"'+process.execPath+'" '+d,{env:process.env,cwd:o(),maxBuffer:20971520});!a.existsSync(l);)g(),a.writeFileSync(p,"a");for(;!a.existsSync(u);)g(),a.writeFileSync(p,"a");for(var v=parseInt("",10);isNaN(v);)v=parseInt(a.readFileSync(l,"utf8"),10);var _=a.readFileSync(u,"utf8");try{r.unlinkSync(d)}catch(e){}try{r.unlinkSync(u)}catch(e){}try{r.unlinkSync(l)}catch(e){}try{r.unlinkSync(p)}catch(e){}return(1===v||2===v||v>=126)&&r.error("",!0),{code:v,output:_}}(e,t)}},"./node_modules/shelljs/src/find.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! ./tempdir */"./node_modules/shelljs/src/tempdir.js"),i=n(/*! ./pwd */"./node_modules/shelljs/src/pwd.js"),s=n(/*! path */"path"),a=n(/*! fs */"fs"),c=n(/*! child_process */"child_process");e.exports=function(e,t,n){return e||r.error("must specify command"),"function"==typeof t&&(n=t,t={async:!0}),"object"==typeof t&&"function"==typeof n&&(t.async=!0),(t=r.extend({silent:r.config.silent,async:!1},t)).async?function(e,t,n){var o="",i=r.extend({silent:r.config.silent},t),s=c.exec(e,{env:process.env,maxBuffer:20971520},(function(e){n&&n(e?e.code:0,o)}));return s.stdout.on("data",(function(e){o+=e,i.silent||process.stdout.write(e)})),s.stderr.on("data",(function(e){o+=e,i.silent||process.stdout.write(e)})),s}(e,t,n):function(e,t){var n=o(),u=s.resolve(n+"/"+r.randomFileName()),l=s.resolve(n+"/"+r.randomFileName()),d=s.resolve(n+"/"+r.randomFileName()),p=s.resolve(n+"/"+r.randomFileName()),f=r.extend({silent:r.config.silent},t),h="";function g(){if(!f.silent&&a.existsSync(u)){var e=a.readFileSync(u,"utf8");e.length<=h.length||(process.stdout.write(e.substr(h.length)),h=e)}}function y(e){return(e+"").replace(/([\\"'])/g,"\\$1").replace(/\0/g,"\\0")}var m="var child = require('child_process'), fs = require('fs');child.exec('"+y(e+=" > "+u+" 2>&1")+"', {env: process.env, maxBuffer: 20*1024*1024}, function(err) { fs.writeFileSync('"+y(l)+"', err ? err.code.toString() : '0');});";for(a.existsSync(d)&&r.unlinkSync(d),a.existsSync(u)&&r.unlinkSync(u),a.existsSync(l)&&r.unlinkSync(l),a.writeFileSync(d,m),c.exec('"'+process.execPath+'" '+d,{env:process.env,cwd:i(),maxBuffer:20971520});!a.existsSync(l);)g(),a.writeFileSync(p,"a");for(;!a.existsSync(u);)g(),a.writeFileSync(p,"a");for(var v=parseInt("",10);isNaN(v);)v=parseInt(a.readFileSync(l,"utf8"),10);var _=a.readFileSync(u,"utf8");try{r.unlinkSync(d)}catch(e){}try{r.unlinkSync(u)}catch(e){}try{r.unlinkSync(l)}catch(e){}try{r.unlinkSync(p)}catch(e){}return(1===v||2===v||v>=126)&&r.error("",!0),{code:v,output:_}}(e,t)}},"./node_modules/shelljs/src/find.js": /*!******************************************!*\ !*** ./node_modules/shelljs/src/find.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! ./ls */"./node_modules/shelljs/src/ls.js");e.exports=function(e,t){t?"object"==typeof t?t=t:"string"==typeof t&&(t=[].slice.call(arguments,1)):i.error("no path specified");var n=[];function s(e){"win"===i.platform&&(e=e.replace(/\\/g,"/")),n.push(e)}return t.forEach((function(e){s(e),r.statSync(e).isDirectory()&&o("-RA",e+"/*").forEach((function(e){s(e)}))})),n}},"./node_modules/shelljs/src/grep.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./ls */"./node_modules/shelljs/src/ls.js");e.exports=function(e,t){t?"object"==typeof t?t=t:"string"==typeof t&&(t=[].slice.call(arguments,1)):o.error("no path specified");var n=[];function s(e){"win"===o.platform&&(e=e.replace(/\\/g,"/")),n.push(e)}return t.forEach((function(e){s(e),r.statSync(e).isDirectory()&&i("-RA",e+"/*").forEach((function(e){s(e)}))})),n}},"./node_modules/shelljs/src/grep.js": /*!******************************************!*\ !*** ./node_modules/shelljs/src/grep.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs");e.exports=function(e,t,n){e=r.parseOptions(e,{v:"inverse"}),n||r.error("no paths given"),"string"==typeof n&&(n=[].slice.call(arguments,2)),n=r.expand(n);var o="";return n.forEach((function(n){i.existsSync(n)?i.readFileSync(n,"utf8").split(/\r*\n/).forEach((function(n){var r=n.match(t);(e.inverse&&!r||!e.inverse&&r)&&(o+=n+"\n")})):r.error("no such file or directory: "+n,!0)})),r.ShellString(o)}},"./node_modules/shelljs/src/ln.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs");e.exports=function(e,t,n){e=r.parseOptions(e,{v:"inverse"}),n||r.error("no paths given"),"string"==typeof n&&(n=[].slice.call(arguments,2)),n=r.expand(n);var i="";return n.forEach((function(n){o.existsSync(n)?o.readFileSync(n,"utf8").split(/\r*\n/).forEach((function(n){var r=n.match(t);(e.inverse&&!r||!e.inverse&&r)&&(i+=n+"\n")})):r.error("no such file or directory: "+n,!0)})),r.ShellString(i)}},"./node_modules/shelljs/src/ln.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/ln.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! os */"os");e.exports=function(e,t,n){e=o.parseOptions(e,{s:"symlink",f:"force"}),t&&n||o.error("Missing and/or "),t=i.resolve(process.cwd(),String(t)),n=i.resolve(process.cwd(),String(n)),r.existsSync(t)||o.error("Source file does not exist",!0),r.existsSync(n)&&(e.force||o.error("Destination file exists",!0),r.unlinkSync(n)),e.symlink?r.symlinkSync(t,n,"win32"===s.platform()?"junction":null):r.linkSync(t,n,"win32"===s.platform()?"junction":null)}},"./node_modules/shelljs/src/ls.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! os */"os");e.exports=function(e,t,n){e=i.parseOptions(e,{s:"symlink",f:"force"}),t&&n||i.error("Missing and/or "),t=o.resolve(process.cwd(),String(t)),n=o.resolve(process.cwd(),String(n)),r.existsSync(t)||i.error("Source file does not exist",!0),r.existsSync(n)&&(e.force||i.error("Destination file exists",!0),r.unlinkSync(n)),e.symlink?r.symlinkSync(t,n,"win32"===s.platform()?"junction":null):r.linkSync(t,n,"win32"===s.platform()?"junction":null)}},"./node_modules/shelljs/src/ls.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/ls.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! path */"path"),i=n(/*! fs */"fs"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! ./cd */"./node_modules/shelljs/src/cd.js"),a=n(/*! ./pwd */"./node_modules/shelljs/src/pwd.js");e.exports=function e(t,n){(t=o.parseOptions(t,{R:"recursive",A:"all",a:"all_deprecated"})).all_deprecated&&(o.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),n?"object"==typeof n?n=n:"string"==typeof n&&(n=[].slice.call(arguments,1)):n=["."];var c=[];function u(e,n){return!!("."!==r.basename(e)[0]||t.all||"."===r.basename(n)[0]&&r.basename(n).length>1)&&("win"===o.platform&&(e=e.replace(/\\/g,"/")),c.push(e),!0)}return n.forEach((function(n){if(i.existsSync(n)){var l=i.statSync(n);if(l.isFile())return void u(n,n);if(l.isDirectory())return void i.readdirSync(n).forEach((function(r){if(u(r,n)&&t.recursive){var o=a();s("",n),i.statSync(r).isDirectory()&&(c=c.concat(e("-R"+(t.all?"A":""),r+"/*"))),s("",o)}}))}var d=r.basename(n),p=r.dirname(n);if(d.search(/\*/)>-1&&i.existsSync(p)&&i.statSync(p).isDirectory){var f=d.replace(/(\^|\$|\(|\)|<|>|\[|\]|\{|\}|\.|\+|\?)/g,"\\$1");return f="^"+f.replace(/\*/g,".*")+"$",void i.readdirSync(p).forEach((function(n){if(n.match(new RegExp(f))){if(!u(r.normalize(p+"/"+n),d))return;if(t.recursive){var o=p+"/"+n;i.lstatSync(o).isDirectory()&&(c=c.concat(e("-R"+(t.all?"A":""),o+"/*")))}}}))}o.error("no such file or directory: "+n,!0)})),c}},"./node_modules/shelljs/src/mkdir.js": +/*! no static exports found */function(e,t,n){var r=n(/*! path */"path"),o=n(/*! fs */"fs"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),s=n(/*! ./cd */"./node_modules/shelljs/src/cd.js"),a=n(/*! ./pwd */"./node_modules/shelljs/src/pwd.js");e.exports=function e(t,n){(t=i.parseOptions(t,{R:"recursive",A:"all",a:"all_deprecated"})).all_deprecated&&(i.log("ls: Option -a is deprecated. Use -A instead"),t.all=!0),n?"object"==typeof n?n=n:"string"==typeof n&&(n=[].slice.call(arguments,1)):n=["."];var c=[];function u(e,n){return!!("."!==r.basename(e)[0]||t.all||"."===r.basename(n)[0]&&r.basename(n).length>1)&&("win"===i.platform&&(e=e.replace(/\\/g,"/")),c.push(e),!0)}return n.forEach((function(n){if(o.existsSync(n)){var l=o.statSync(n);if(l.isFile())return void u(n,n);if(l.isDirectory())return void o.readdirSync(n).forEach((function(r){if(u(r,n)&&t.recursive){var i=a();s("",n),o.statSync(r).isDirectory()&&(c=c.concat(e("-R"+(t.all?"A":""),r+"/*"))),s("",i)}}))}var d=r.basename(n),p=r.dirname(n);if(d.search(/\*/)>-1&&o.existsSync(p)&&o.statSync(p).isDirectory){var f=d.replace(/(\^|\$|\(|\)|<|>|\[|\]|\{|\}|\.|\+|\?)/g,"\\$1");return f="^"+f.replace(/\*/g,".*")+"$",void o.readdirSync(p).forEach((function(n){if(n.match(new RegExp(f))){if(!u(r.normalize(p+"/"+n),d))return;if(t.recursive){var i=p+"/"+n;o.lstatSync(i).isDirectory()&&(c=c.concat(e("-R"+(t.all?"A":""),i+"/*")))}}}))}i.error("no such file or directory: "+n,!0)})),c}},"./node_modules/shelljs/src/mkdir.js": /*!*******************************************!*\ !*** ./node_modules/shelljs/src/mkdir.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs"),o=n(/*! path */"path");function s(e){var t=o.dirname(e);i.existsSync(t)?i.mkdirSync(e,parseInt("0777",8)):(s(t),i.mkdirSync(e,parseInt("0777",8)))}e.exports=function(e,t){e=r.parseOptions(e,{p:"fullpath"}),t||r.error("no paths given"),"string"==typeof t&&(t=[].slice.call(arguments,1)),t.forEach((function(t){if(i.existsSync(t))e.fullpath||r.error("path already exists: "+t,!0);else{var n=o.dirname(t);i.existsSync(n)||e.fullpath?e.fullpath?s(t):i.mkdirSync(t,parseInt("0777",8)):r.error("no such file or directory: "+n,!0)}}))}},"./node_modules/shelljs/src/mv.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),i=n(/*! path */"path");function s(e){var t=i.dirname(e);o.existsSync(t)?o.mkdirSync(e,parseInt("0777",8)):(s(t),o.mkdirSync(e,parseInt("0777",8)))}e.exports=function(e,t){e=r.parseOptions(e,{p:"fullpath"}),t||r.error("no paths given"),"string"==typeof t&&(t=[].slice.call(arguments,1)),t.forEach((function(t){if(o.existsSync(t))e.fullpath||r.error("path already exists: "+t,!0);else{var n=i.dirname(t);o.existsSync(n)||e.fullpath?e.fullpath?s(t):o.mkdirSync(t,parseInt("0777",8)):r.error("no such file or directory: "+n,!0)}}))}},"./node_modules/shelljs/src/mv.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/mv.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e,t,n){e=o.parseOptions(e,{f:"force"}),arguments.length<3?o.error("missing and/or "):arguments.length>3?(t=[].slice.call(arguments,1,arguments.length-1),n=arguments[arguments.length-1]):"string"==typeof t?t=[t]:"length"in t?t=t:o.error("invalid arguments"),t=o.expand(t);var s=r.existsSync(n),a=s&&r.statSync(n);s&&a.isDirectory()||!(t.length>1)||o.error("dest is not a directory (too many sources)"),s&&a.isFile()&&!e.force&&o.error("dest file already exists: "+n),t.forEach((function(t){if(r.existsSync(t)){var s=n;r.existsSync(n)&&r.statSync(n).isDirectory()&&(s=i.normalize(n+"/"+i.basename(t))),!r.existsSync(s)||e.force?i.resolve(t)!==i.dirname(i.resolve(s))?r.renameSync(t,s):o.error("cannot move to self: "+t,!0):o.error("dest file already exists: "+s,!0)}else o.error("no such file or directory: "+t,!0)}))}},"./node_modules/shelljs/src/pwd.js": +/*! no static exports found */function(e,t,n){var r=n(/*! fs */"fs"),o=n(/*! path */"path"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e,t,n){e=i.parseOptions(e,{f:"force"}),arguments.length<3?i.error("missing and/or "):arguments.length>3?(t=[].slice.call(arguments,1,arguments.length-1),n=arguments[arguments.length-1]):"string"==typeof t?t=[t]:"length"in t?t=t:i.error("invalid arguments"),t=i.expand(t);var s=r.existsSync(n),a=s&&r.statSync(n);s&&a.isDirectory()||!(t.length>1)||i.error("dest is not a directory (too many sources)"),s&&a.isFile()&&!e.force&&i.error("dest file already exists: "+n),t.forEach((function(t){if(r.existsSync(t)){var s=n;r.existsSync(n)&&r.statSync(n).isDirectory()&&(s=o.normalize(n+"/"+o.basename(t))),!r.existsSync(s)||e.force?o.resolve(t)!==o.dirname(o.resolve(s))?r.renameSync(t,s):i.error("cannot move to self: "+t,!0):i.error("dest file already exists: "+s,!0)}else i.error("no such file or directory: "+t,!0)}))}},"./node_modules/shelljs/src/pwd.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/pwd.js ***! \*****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! path */"path"),i=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e){var t=r.resolve(process.cwd());return i.ShellString(t)}},"./node_modules/shelljs/src/rm.js": +/*! no static exports found */function(e,t,n){var r=n(/*! path */"path"),o=n(/*! ./common */"./node_modules/shelljs/src/common.js");e.exports=function(e){var t=r.resolve(process.cwd());return o.ShellString(t)}},"./node_modules/shelljs/src/rm.js": /*!****************************************!*\ !*** ./node_modules/shelljs/src/rm.js ***! \****************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./common */"./node_modules/shelljs/src/common.js"),i=n(/*! fs */"fs");function o(e,t){var n,a;n=i.readdirSync(e);for(var c=0;c=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)c.equal(u.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,o=n(/*! tls */"tls"),i=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=n(/*! assert */"assert"),u=n(/*! util */"util");function l(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,n,r,o){for(var i=p(n,r,o),s=0,a=t.requests.length;s=this.maxSockets?o.requests.push(i):o.createSocket(i,(function(t){function n(){o.emit("free",t,i)}function r(e){o.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,o={};n.sockets.push(o);var i=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(i);function a(i,a,u){if(s.removeAllListeners(),a.removeAllListeners(),200===i.statusCode)c.equal(u.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",i.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+i.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(o)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("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),n.removeSocket(o)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! url */"url"),i=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const o=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,o):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,o);e(t)}else e(n.toString(o))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===o.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 o=process.env[g.NO_PROXY];o&&(this._httpProxyBypassHosts=[],o.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=o.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=o.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 r.readBody(),a=this._prepareRequest(e,u,i),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,i=(e,t)=>{o||(o=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);i(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:i;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(o.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),o=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&o&&(t=this._proxyAgent),this._keepAlive&&!o&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||i.globalAgent.maxSockets),o){u||(u=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let o;const i="https:"===r.proxyUrl.protocol;o=a?i?u.httpsOverHttps:u.httpsOverHttp:i?u.httpOverHttps:u.httpOverHttp,t=o(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,n,r="https:"===e.protocol,i=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return i||(s&&r?i={proxyUrl:s}:a&&(i={proxyUrl:a})),i&&(i.proxyUrl.length>0&&(t=o.parse(i.proxyUrl)),(i.proxyUsername||i.proxyPassword)&&(n=i.proxyUsername+":"+i.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! qs */"./node_modules/qs/lib/index.js"),i=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=i.parse(t),o=i.parse(e);o.protocol=o.protocol||n.protocol,o.auth=o.auth||n.auth,o.host=o.host||n.host,o.pathname=r.resolve(n.pathname,o.pathname),!o.pathname.endsWith("/")&&e.endsWith("/")&&(o.pathname+="/"),a=i.format(o)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=o.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,o)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&o(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,o=n(/*! tls */"tls"),i=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=(n(/*! assert */"assert"),n(/*! util */"util"));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,n,r,o){for(var i=d(n,r,o),s=0,a=t.requests.length;s=this.maxSockets?o.requests.push(i):o.createSocket(i,(function(t){function n(){o.emit("free",t,i)}function r(e){o.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},u.prototype.createSocket=function(e,t){var n=this,o={};n.sockets.push(o);var i=p({},n.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")),r("making CONNECT request");var s=n.request(i);function a(i,a,c){var u;return s.removeAllListeners(),a.removeAllListeners(),200!==i.statusCode?(r("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 n.removeSocket(o)):c.length>0?(r("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 n.removeSocket(o)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("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),n.removeSocket(o)})),s.end()},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ -/*! no static exports found */function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},"./node_modules/uuid/lib/rng.js": +/*! no static exports found */function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},"./node_modules/uuid/lib/rng.js": /*!**************************************!*\ !*** ./node_modules/uuid/lib/rng.js ***! \**************************************/ @@ -420,19 +428,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*********************************!*\ !*** ./node_modules/uuid/v4.js ***! \*********************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./lib/rng */"./node_modules/uuid/lib/rng.js"),i=n(/*! ./lib/bytesToUuid */"./node_modules/uuid/lib/bytesToUuid.js");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},"./src/agent/azure/build-agent.ts": +/*! no static exports found */function(e,t,n){var r=n(/*! ./lib/rng */"./node_modules/uuid/lib/rng.js"),o=n(/*! ./lib/bytesToUuid */"./node_modules/uuid/lib/bytesToUuid.js");e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();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||o(s)}},"./src/agent/azure/build-agent.ts": /*!****************************************!*\ !*** ./src/agent/azure/build-agent.ts ***! \****************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),s=i(n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js")),a=i(n(/*! azure-pipelines-tool-lib/tool */"./node_modules/azure-pipelines-tool-lib/tool.js"));let c=class{get agentName(){return"Azure Pipelines"}find(e,t,n){return a.findLocalTool(e,t,n)}cacheDir(e,t,n,r){return a.cacheDir(e,t,n,r)}createTempDir(){return Promise.resolve(s.getVariable("Agent.TempDirectory"))}debug(e){s.debug(e)}setFailed(e,t){s.setResult(s.TaskResult.Failed,e,t)}setSucceeded(e,t){s.setResult(s.TaskResult.Succeeded,e,t)}exportVariable(e,t){s.setVariable(e,t)}getVariable(e){return s.getVariable(e)}addPath(e){a.prependPath(e)}which(e,t){return Promise.resolve(s.which(e,t))}exec(e,t){const n=s.tool(e);n.arg(t);const r=n.execSync();return Promise.resolve({code:r.code,error:r.error,stderr:r.stderr,stdout:r.stdout})}getSourceDir(){return this.getVariable("Build.SourcesDirectory")}setOutput(e,t){s.setVariable(e,t)}getInput(e,t){return s.getInput(e,t)}getListInput(e,t){return s.getInput(e,t).split("\n").filter(e=>""!==e)}getBooleanInput(e,t){return s.getBoolInput(e,t)}isValidInputFile(e,t){return s.filePathSupplied(e)&&this.fileExists(t)}fileExists(e){return s.exist(e)&&s.stats(e).isFile()}directoryExists(e){return s.exist(e)&&s.stats(e).isDirectory()}};c=r([o.injectable()],c),t.BuildAgent=c},"./src/core/dotnet-tool.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),s=o(n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js")),a=o(n(/*! azure-pipelines-tool-lib/tool */"./node_modules/azure-pipelines-tool-lib/tool.js"));let c=class{get agentName(){return"Azure Pipelines"}find(e,t,n){return a.findLocalTool(e,t,n)}cacheDir(e,t,n,r){return a.cacheDir(e,t,n,r)}createTempDir(){return Promise.resolve(s.getVariable("Agent.TempDirectory"))}debug(e){s.debug(e)}setFailed(e,t){s.setResult(s.TaskResult.Failed,e,t)}setSucceeded(e,t){s.setResult(s.TaskResult.Succeeded,e,t)}exportVariable(e,t){s.setVariable(e,t)}getVariable(e){return s.getVariable(e)}addPath(e){a.prependPath(e)}which(e,t){return Promise.resolve(s.which(e,t))}exec(e,t){const n=s.tool(e);n.arg(t);const r=n.execSync();return Promise.resolve({code:r.code,error:r.error,stderr:r.stderr,stdout:r.stdout})}getSourceDir(){return this.getVariable("Build.SourcesDirectory")}setOutput(e,t){s.setVariable(e,t)}getInput(e,t){return s.getInput(e,t)}getListInput(e,t){return s.getInput(e,t).split("\n").filter(e=>""!==e)}getBooleanInput(e,t){return s.getBoolInput(e,t)}isValidInputFile(e,t){return s.filePathSupplied(e)&&this.fileExists(t)}fileExists(e){return s.exist(e)&&s.stats(e).isFile()}directoryExists(e){return s.exist(e)&&s.stats(e).isDirectory()}};c=r([i.injectable()],c),t.BuildAgent=c},"./src/core/dotnet-tool.ts": /*!*********************************!*\ !*** ./src/core/dotnet-tool.ts ***! \*********************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const c=a(n(/*! fs */"fs")),u=a(n(/*! os */"os")),l=a(n(/*! path */"path")),d=a(n(/*! typed-rest-client/HttpClient */"./node_modules/typed-rest-client/HttpClient.js")),p=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),f=n(/*! ./models */"./src/core/models.ts");let h=class{constructor(e,t){this.buildAgent=e,this.versionManager=t,this.httpClient=new d.HttpClient("dotnet")}disableTelemetry(){this.buildAgent.exportVariable("DOTNET_CLI_TELEMETRY_OPTOUT","1")}execute(e,t){return console.log(`Command: ${e} ${t.join(" ")}`),this.buildAgent.exec(e,t)}toolInstall(e,t,n,r){return s(this,void 0,void 0,(function*(){let i;if(console.log(""),console.log("--------------------------"),console.log(`Installing ${e} version `+t),console.log("--------------------------"),this.versionManager.isExplicitVersion(t)&&(n=!1),n||(i=this.buildAgent.find(e,t)),!i){let n;if(this.versionManager.isExplicitVersion(t))n=t;else{if(n=yield this.queryLatestMatch(e,t,r),!n)throw new Error(`Unable to find ${e} version '${t}'.`);i=this.buildAgent.find(e,n)}i||(i=yield this.acquireTool(e,n))}if(this.buildAgent.debug(`toolPath: ${i}`),"win32"!==u.platform()&&!this.buildAgent.getVariable("DOTNET_ROOT")){let e=yield this.buildAgent.which("dotnet");e=c.readlinkSync(e)||e;const t=l.dirname(e);this.buildAgent.exportVariable("DOTNET_ROOT",t)}return this.buildAgent.addPath(i),i}))}queryLatestMatch(e,t,n){return s(this,void 0,void 0,(function*(){this.buildAgent.debug(`querying tool versions for ${e}${t?`@${t}`:""} ${n?"including pre-releases":""}`);const r=`https://api-v2v3search-0.nuget.org/query?q=${encodeURIComponent(e.toLowerCase())}&prerelease=${n?"true":"false"}&semVerLevel=2.0.0`,i=yield this.httpClient.get(r);if(!i||200!==i.message.statusCode)return null;const o=yield i.readBody(),s=JSON.parse(o).data[0].versions.map(e=>e.version);return s&&s.length?(this.buildAgent.debug(`got versions: ${s.join(", ")}`),this.versionManager.evaluateVersions(s,t)):null}))}acquireTool(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.buildAgent.createTempDir();let r=["tool","install",e,"--tool-path",n];t&&(t=this.versionManager.cleanVersion(t),r=r.concat(["--version",t]));const i=yield this.execute("dotnet",r),o=0===i.code?"success":"failure",s=0===i.code?i.stdout:i.stderr;if(this.buildAgent.debug(`tool install result: ${o} ${s}`),i.code)throw new Error("Error installing tool");return yield this.buildAgent.cacheDir(n,e,t)}))}};h=r([p.injectable(),o(0,p.inject(f.TYPES.IBuildAgent)),o(1,p.inject(f.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],h),t.DotnetTool=h},"./src/core/ioc.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const c=a(n(/*! fs */"fs")),u=a(n(/*! os */"os")),l=a(n(/*! path */"path")),d=a(n(/*! typed-rest-client/HttpClient */"./node_modules/typed-rest-client/HttpClient.js")),p=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),f=n(/*! ./models */"./src/core/models.ts");let h=class{constructor(e,t){this.buildAgent=e,this.versionManager=t,this.httpClient=new d.HttpClient("dotnet")}disableTelemetry(){this.buildAgent.exportVariable("DOTNET_CLI_TELEMETRY_OPTOUT","1")}execute(e,t){return console.log(`Command: ${e} ${t.join(" ")}`),this.buildAgent.exec(e,t)}toolInstall(e,t,n,r){return s(this,void 0,void 0,(function*(){let o;if(console.log(""),console.log("--------------------------"),console.log(`Installing ${e} version `+t),console.log("--------------------------"),this.versionManager.isExplicitVersion(t)&&(n=!1),n||(o=this.buildAgent.find(e,t)),!o){let n;if(this.versionManager.isExplicitVersion(t))n=t;else{if(n=yield this.queryLatestMatch(e,t,r),!n)throw new Error(`Unable to find ${e} version '${t}'.`);o=this.buildAgent.find(e,n)}o||(o=yield this.acquireTool(e,n))}if(this.buildAgent.debug(`toolPath: ${o}`),"win32"!==u.platform()&&!this.buildAgent.getVariable("DOTNET_ROOT")){let e=yield this.buildAgent.which("dotnet");e=c.readlinkSync(e)||e;const t=l.dirname(e);this.buildAgent.exportVariable("DOTNET_ROOT",t)}return this.buildAgent.addPath(o),o}))}queryLatestMatch(e,t,n){return s(this,void 0,void 0,(function*(){this.buildAgent.debug(`querying tool versions for ${e}${t?`@${t}`:""} ${n?"including pre-releases":""}`);const r=`https://api-v2v3search-0.nuget.org/query?q=${encodeURIComponent(e.toLowerCase())}&prerelease=${n?"true":"false"}&semVerLevel=2.0.0`,o=yield this.httpClient.get(r);if(!o||200!==o.message.statusCode)return null;const i=yield o.readBody(),s=JSON.parse(i).data[0].versions.map(e=>e.version);return s&&s.length?(this.buildAgent.debug(`got versions: ${s.join(", ")}`),this.versionManager.evaluateVersions(s,t)):null}))}acquireTool(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.buildAgent.createTempDir();let r=["tool","install",e,"--tool-path",n];t&&(t=this.versionManager.cleanVersion(t),r=r.concat(["--version",t]));const o=yield this.execute("dotnet",r),i=0===o.code?"success":"failure",s=0===o.code?o.stdout:o.stderr;if(this.buildAgent.debug(`tool install result: ${i} ${s}`),o.code)throw new Error("Error installing tool");return yield this.buildAgent.cacheDir(n,e,t)}))}};h=r([p.injectable(),i(0,p.inject(f.TYPES.IBuildAgent)),i(1,p.inject(f.TYPES.IVersionManager)),o("design:paramtypes",[Object,Object])],h),t.DotnetTool=h},"./src/core/ioc.ts": /*!*************************!*\ !*** ./src/core/ioc.ts ***! \*************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),i=n(/*! ./versionManager */"./src/core/versionManager.ts"),o=n(/*! ./models */"./src/core/models.ts"),s=n(/*! ../agent/mock/build-agent */"./src/agent/azure/build-agent.ts"),a=new r.Container;a.bind(o.TYPES.IVersionManager).to(i.VersionManager),a.bind(o.TYPES.IBuildAgent).to(s.BuildAgent),t.default=a},"./src/core/models.ts": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),o=n(/*! ./versionManager */"./src/core/versionManager.ts"),i=n(/*! ./models */"./src/core/models.ts"),s=n(/*! ../agent/mock/build-agent */"./src/agent/azure/build-agent.ts"),a=new r.Container;a.bind(i.TYPES.IVersionManager).to(o.VersionManager),a.bind(i.TYPES.IBuildAgent).to(s.BuildAgent),t.default=a},"./src/core/models.ts": /*!****************************!*\ !*** ./src/core/models.ts ***! \****************************/ @@ -444,11 +452,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!************************************!*\ !*** ./src/core/versionManager.ts ***! \************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const c=s(n(/*! semver-compare */"./node_modules/semver-compare/index.js")),u=a(n(/*! semver */"./node_modules/semver/semver.js")),l=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),d=n(/*! ./models */"./src/core/models.ts");let p=class{constructor(e){this.buildAgent=e}isExplicitVersion(e){const t=u.clean(e);this.buildAgent.debug("isExplicit: "+t);const n=null!=u.valid(t);return this.buildAgent.debug("explicit? "+n),n}evaluateVersions(e,t){let n;this.buildAgent.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(c.default)).length-1;r>=0;r--){const i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?this.buildAgent.debug("matched: "+n):this.buildAgent.debug("match not found"),n}cleanVersion(e){return this.buildAgent.debug("cleaning: "+e),u.clean(e)}};p=r([l.injectable(),o(0,l.inject(d.TYPES.IBuildAgent)),i("design:paramtypes",[Object])],p),t.VersionManager=p},"./src/tasks/gitreleasemanager/main.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const c=s(n(/*! semver-compare */"./node_modules/semver-compare/index.js")),u=a(n(/*! semver */"./node_modules/semver/semver.js")),l=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),d=n(/*! ./models */"./src/core/models.ts");let p=class{constructor(e){this.buildAgent=e}isExplicitVersion(e){const t=u.clean(e);this.buildAgent.debug("isExplicit: "+t);const n=null!=u.valid(t);return this.buildAgent.debug("explicit? "+n),n}evaluateVersions(e,t){let n;this.buildAgent.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(c.default)).length-1;r>=0;r--){const o=e[r];if(u.satisfies(o,t)){n=o;break}}return n?this.buildAgent.debug("matched: "+n):this.buildAgent.debug("match not found"),n}cleanVersion(e){return this.buildAgent.debug("cleaning: "+e),u.clean(e)}};p=r([l.injectable(),i(0,l.inject(d.TYPES.IBuildAgent)),o("design:paramtypes",[Object])],p),t.VersionManager=p},"./src/tasks/gitreleasemanager/main.ts": /*!*********************************************!*\ !*** ./src/tasks/gitreleasemanager/main.ts ***! \*********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ../../core/models */"./src/core/models.ts"),s=n(/*! ../../tools/gitreleasemanager/tool */"./src/tools/gitreleasemanager/tool.ts"),a=n(/*! ../../core/settings */"./src/core/settings.ts"),c=n(/*! ../../tools/gitreleasemanager/settings */"./src/tools/gitreleasemanager/settings.ts"),u=i(n(/*! ../../core/ioc */"./src/core/ioc.ts"));u.default.bind(o.TYPES.IGitReleaseManagerTool).to(s.GitReleaseManagerTool);const l=u.default.get(o.TYPES.IGitReleaseManagerTool),d=u.default.get(o.TYPES.IBuildAgent);t.setup=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=a.Settings.getSetupSettings(d);yield l.install(e.versionSpec,e.includePrerelease),d.setSucceeded("GitVersionManager installed successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.create=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getCreateSettings(d);yield l.create(e),d.setSucceeded("GitVersionManager created release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.discard=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getDiscardSettings(d);yield l.discard(e),d.setSucceeded("GitVersionManager discarded release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.close=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getCloseSettings(d);yield l.close(e),d.setSucceeded("GitVersionManager closed release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.open=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getOpenSettings(d);yield l.open(e),d.setSucceeded("GitVersionManager opened release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.publish=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getPublishSettings(d);yield l.publish(e),d.setSucceeded("GitVersionManager published release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.addAsset=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getAddAssetSettings(d);yield l.addAsset(e),d.setSucceeded("GitVersionManager added assets to release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))}},"./src/tasks/gitreleasemanager/open.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! ../../core/models */"./src/core/models.ts"),s=n(/*! ../../tools/gitreleasemanager/tool */"./src/tools/gitreleasemanager/tool.ts"),a=n(/*! ../../core/settings */"./src/core/settings.ts"),c=n(/*! ../../tools/gitreleasemanager/settings */"./src/tools/gitreleasemanager/settings.ts"),u=o(n(/*! ../../core/ioc */"./src/core/ioc.ts"));u.default.bind(i.TYPES.IGitReleaseManagerTool).to(s.GitReleaseManagerTool);const l=u.default.get(i.TYPES.IGitReleaseManagerTool),d=u.default.get(i.TYPES.IBuildAgent);t.setup=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=a.Settings.getSetupSettings(d);yield l.install(e.versionSpec,e.includePrerelease),d.setSucceeded("GitVersionManager installed successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.create=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getCreateSettings(d);yield l.create(e),d.setSucceeded("GitVersionManager created release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.discard=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getDiscardSettings(d);yield l.discard(e),d.setSucceeded("GitVersionManager discarded release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.close=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getCloseSettings(d);yield l.close(e),d.setSucceeded("GitVersionManager closed release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.open=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getOpenSettings(d);yield l.open(e),d.setSucceeded("GitVersionManager opened release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.publish=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getPublishSettings(d);yield l.publish(e),d.setSucceeded("GitVersionManager published release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.addAsset=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=c.Settings.getAddAssetSettings(d);yield l.addAsset(e),d.setSucceeded("GitVersionManager added assets to release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))}},"./src/tasks/gitreleasemanager/open.ts": /*!*********************************************!*\ !*** ./src/tasks/gitreleasemanager/open.ts ***! \*********************************************/ @@ -460,11 +468,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*************************************************!*\ !*** ./src/tools/gitreleasemanager/settings.ts ***! \*************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! ./models */"./src/tools/gitreleasemanager/models.ts");class i{static getCreateSettings(e){const t=e.getInput(r.CreateFields.milestone),n=e.getInput(r.CreateFields.name),o=e.getInput(r.CreateFields.inputFileName),s=e.getBooleanInput(r.CreateFields.isPreRelease),a=e.getInput(r.CreateFields.commit),c=e.getListInput(r.CreateFields.assets),u=i.getCommonSettings(e);return Object.assign(Object.assign({},u),{milestone:t,name:n,inputFileName:o,isPreRelease:s,commit:a,assets:c})}static getDiscardSettings(e){const t=e.getInput(r.DiscardFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getCloseSettings(e){const t=e.getInput(r.CloseFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getOpenSettings(e){const t=e.getInput(r.OpenFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getPublishSettings(e){const t=e.getInput(r.PublishFields.tagName),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{tagName:t})}static getAddAssetSettings(e){const t=e.getInput(r.AddAssetFields.tagName),n=e.getListInput(r.AddAssetFields.assets),o=i.getCommonSettings(e);return Object.assign(Object.assign({},o),{tagName:t,assets:n})}static getCommonSettings(e){return{owner:e.getInput(r.CommonFields.owner,!0),repository:e.getInput(r.CommonFields.repository,!0),token:e.getInput(r.CommonFields.token,!0),targetDirectory:e.getInput(r.CommonFields.targetDirectory)}}}t.Settings=i},"./src/tools/gitreleasemanager/tool.ts": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! ./models */"./src/tools/gitreleasemanager/models.ts");class o{static getCreateSettings(e){const t=e.getInput(r.CreateFields.milestone),n=e.getInput(r.CreateFields.name),i=e.getInput(r.CreateFields.inputFileName),s=e.getBooleanInput(r.CreateFields.isPreRelease),a=e.getInput(r.CreateFields.commit),c=e.getListInput(r.CreateFields.assets),u=o.getCommonSettings(e);return Object.assign(Object.assign({},u),{milestone:t,name:n,inputFileName:i,isPreRelease:s,commit:a,assets:c})}static getDiscardSettings(e){const t=e.getInput(r.DiscardFields.milestone),n=o.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getCloseSettings(e){const t=e.getInput(r.CloseFields.milestone),n=o.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getOpenSettings(e){const t=e.getInput(r.OpenFields.milestone),n=o.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getPublishSettings(e){const t=e.getInput(r.PublishFields.tagName),n=o.getCommonSettings(e);return Object.assign(Object.assign({},n),{tagName:t})}static getAddAssetSettings(e){const t=e.getInput(r.AddAssetFields.tagName),n=e.getListInput(r.AddAssetFields.assets),i=o.getCommonSettings(e);return Object.assign(Object.assign({},i),{tagName:t,assets:n})}static getCommonSettings(e){return{owner:e.getInput(r.CommonFields.owner,!0),repository:e.getInput(r.CommonFields.repository,!0),token:e.getInput(r.CommonFields.token,!0),targetDirectory:e.getInput(r.CommonFields.targetDirectory)}}}t.Settings=o},"./src/tools/gitreleasemanager/tool.ts": /*!*********************************************!*\ !*** ./src/tools/gitreleasemanager/tool.ts ***! \*********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),c=n(/*! ../../core/models */"./src/core/models.ts"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitReleaseManager.Tool",e,!1,t)}))}create(e){const t=this.getCreateArguments(e);return this.execute("dotnet-gitreleasemanager",t)}discard(e){const t=this.getDiscardArguments(e);return this.execute("dotnet-gitreleasemanager",t)}close(e){const t=this.getCloseArguments(e);return this.execute("dotnet-gitreleasemanager",t)}open(e){const t=this.getOpenArguments(e);return this.execute("dotnet-gitreleasemanager",t)}publish(e){const t=this.getPublishArguments(e);return this.execute("dotnet-gitreleasemanager",t)}addAsset(e){const t=this.getAddAssetArguments(e);return this.execute("dotnet-gitreleasemanager",t)}getCommonArguments(e){const t=[];return t.push("--owner",e.owner),t.push("--repository",e.repository),t.push("--token",e.token),e.targetDirectory=this.getRepoDir(e.targetDirectory),t.push("--targetDirectory",e.targetDirectory),t}getCreateArguments(e){const t=["create",...this.getCommonArguments(e)];if(e.milestone&&t.push("--milestone",e.milestone),e.name&&t.push("--name",e.name),e.commit&&t.push("--targetcommitish",e.commit),e.inputFileName){if(!this.buildAgent.fileExists(e.inputFileName))throw new Error("GitReleaseManager inputFilePath not found at "+e.inputFileName);t.push("--inputFilePath",e.inputFileName)}return e.isPreRelease&&t.push("--pre"),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getDiscardArguments(e){const t=["discard",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getCloseArguments(e){const t=["close",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getOpenArguments(e){const t=["open",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getPublishArguments(e){const t=["publish",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),t}getAddAssetArguments(e){const t=["addasset",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitReleaseManagerTool=d},assert: +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),c=n(/*! ../../core/models */"./src/core/models.ts"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitReleaseManager.Tool",e,!1,t)}))}create(e){const t=this.getCreateArguments(e);return this.execute("dotnet-gitreleasemanager",t)}discard(e){const t=this.getDiscardArguments(e);return this.execute("dotnet-gitreleasemanager",t)}close(e){const t=this.getCloseArguments(e);return this.execute("dotnet-gitreleasemanager",t)}open(e){const t=this.getOpenArguments(e);return this.execute("dotnet-gitreleasemanager",t)}publish(e){const t=this.getPublishArguments(e);return this.execute("dotnet-gitreleasemanager",t)}addAsset(e){const t=this.getAddAssetArguments(e);return this.execute("dotnet-gitreleasemanager",t)}getCommonArguments(e){const t=[];return t.push("--owner",e.owner),t.push("--repository",e.repository),t.push("--token",e.token),e.targetDirectory=this.getRepoDir(e.targetDirectory),t.push("--targetDirectory",e.targetDirectory),t}getCreateArguments(e){const t=["create",...this.getCommonArguments(e)];if(e.milestone&&t.push("--milestone",e.milestone),e.name&&t.push("--name",e.name),e.commit&&t.push("--targetcommitish",e.commit),e.inputFileName){if(!this.buildAgent.fileExists(e.inputFileName))throw new Error("GitReleaseManager inputFilePath not found at "+e.inputFileName);t.push("--inputFilePath",e.inputFileName)}return e.isPreRelease&&t.push("--pre"),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getDiscardArguments(e){const t=["discard",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getCloseArguments(e){const t=["close",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getOpenArguments(e){const t=["open",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getPublishArguments(e){const t=["publish",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),t}getAddAssetArguments(e){const t=["addasset",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}};d=r([u.injectable(),i(0,u.inject(c.TYPES.IBuildAgent)),i(1,u.inject(c.TYPES.IVersionManager)),o("design:paramtypes",[Object,Object])],d),t.GitReleaseManagerTool=d},assert: /*!*************************!*\ !*** external "assert" ***! \*************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/azure/gitreleasemanager/publish/bundle.js b/dist/azure/gitreleasemanager/publish/bundle.js index 98f2a7a..8a2c875 100644 --- a/dist/azure/gitreleasemanager/publish/bundle.js +++ b/dist/azure/gitreleasemanager/publish/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/publish.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/publish.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,19 +6,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function N(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function R(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+o.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,i=j(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),i=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=E("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function E(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new x(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=P;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));return m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;){n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return i.stderr.on("data",(function(e){(n.emit("stderr",e),a=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(i.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ @@ -30,11 +30,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),c=n(/*! fs */"fs"),u=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(E(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;e=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);return a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),n.push.apply(n,c),n}(s.body)).length&&1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),j=Math.max(c[0].length,c[1].length),x=3==c.length?Math.abs(l(c[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else{if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));return n.push.apply(n,c),n}(s.body)).length)if(1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),E=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(l(c[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ @@ -94,7 +94,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!**************************************************************!*\ !*** ./node_modules/inversify/lib/bindings/binding_count.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": /*!************************************************************!*\ !*** ./node_modules/inversify/lib/constants/error_msgs.js ***! \************************************************************/ @@ -102,7 +102,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/literal_types.js ***! \***************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/metadata_keys.js ***! \***************************************************************/ @@ -114,7 +114,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_module.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js");t.ContainerModule=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=function(e){this.id=r.id(),this.registry=e}},"./node_modules/inversify/lib/container/container_snapshot.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var o=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=o},"./node_modules/inversify/lib/container/container_snapshot.js": /*!********************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_snapshot.js ***! \********************************************************************/ @@ -142,11 +142,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),c=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),u=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,u=m(n.container,s.serviceIdentifier);return u.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),u=m(n.container,s.serviceIdentifier)),a=t?u:u.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=c.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new u.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new l.Metadata(a,n),u=new h.Target(t,"",n,c);if(void 0!==i){var d=new l.Metadata(i,o);u.metadata.push(d)}return u}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,c){var u,l;if(null===a){u=y(t,n,s,null,c),l=new f.Request(r,s,null,u,c);var h=new d.Plan(s,l);s.addPlan(h)}else u=y(t,n,s,a,c),l=a.addChildRequest(c.serviceIdentifier,u,c);u.forEach((function(n){var r=null;if(c.isArray())r=l.addChildRequest(n.serviceIdentifier,n,c);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var u=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var c=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function u(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var u=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(u)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,i){for(var o=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=Object.keys(r),a=0,u=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ @@ -162,11 +162,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var c=null;"string"==typeof a?c=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(c=a),null!==c&&this.metadata.push(c)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,c=null;if(t.length>0){var u=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);a=u,c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ @@ -198,7 +198,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -218,7 +218,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),N=o.slice(P.reEnd-8,P.reEnd),R=o.slice(P.reEnd);N+=R;var I=k.split("(").length-1,M=R;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=o.slice(0,k.reStart),C=o.slice(k.reStart,k.reEnd-8),R=o.slice(k.reEnd-8,k.reEnd),N=o.slice(k.reEnd);R+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,7 +249,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var N,R,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return u(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(N=$,R="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(R+" is deprecated, use "+I+" instead.",new Error("").stack),N.apply(N,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],i=p(j.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=k(t);return P(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=E++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=j(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=C,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return u(e,(function(r,i,o){var s;P(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=j();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ @@ -265,11 +265,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var j=0;j0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,7 +288,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return R(Object.create(null))}:s?function(){return R({__proto__:null})}:function(){return R({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=C(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=C(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=C(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -296,11 +296,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[c]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var N=s++;o[N]="^"+o[k]+o[E]+"$";var R=s++;o[R]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[E]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[N];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var E=s++;o[E]=o[c]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var x=s++;o[x]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[x]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var k=s++;o[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[P]+"\\s+",i[C]=new RegExp(o[C],"g");var R=s++;o[R]="^"+o[P]+o[x]+"$";var N=s++;o[N]="^"+o[P]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[x]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[x]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[x]+")\\s+-\\s+("+o[x]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ @@ -312,7 +312,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,c=r.WRITE,u=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),N=0;switch(x&&(N|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(N|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(N|=(A?u:0)+(O?c:0)+(P?a:0)),k&&(N|=y),S){case"+":w|=N;break;case"-":w&=~N;break;case"=":w=b+N,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,c=r&a.TYPE_MASK,u=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":u|=w;break;case"-":u&=~w;break;case"=":u=c+w,o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+u.toString(8)),r!=u&&(!e.verbose&&e.changes&&log(n+" -> "+u.toString(8)),o.chmodSync(n,u))}else i.error("Invalid symbolic mode change: "+t)})):(u=c+parseInt(t,8),o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r),o.chmodSync(n,u))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ @@ -404,11 +404,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=(n(/*! assert */"assert"),n(/*! util */"util"));function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},u.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){var u;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(u=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",u),void n.removeSocket(i)):c.length>0?(r("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 n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/azure/gitreleasemanager/setup/bundle.js b/dist/azure/gitreleasemanager/setup/bundle.js index 305637b..f734ea5 100644 --- a/dist/azure/gitreleasemanager/setup/bundle.js +++ b/dist/azure/gitreleasemanager/setup/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/setup.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/setup.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,19 +6,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function N(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function R(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),c=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),u=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+o.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),c=t.toUpperCase(),u=[];try{u=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,i=j(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new c.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,c=0,u=t;c0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var u=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),i=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=E("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,c,u=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=u.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function E(){switch(process.platform){case"win32":return c.Windows;case"darwin":return c.MacOS;case"linux":return c.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new x(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var c=e.level+1,u=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),c)})),l=u.length-1;l>=0;l--)i.push(u[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(c=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(u.cd(e),S("cd"))},t.pushd=function(e){u.pushd(e),S("pushd")},t.popd=function(){u.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var c=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(c.test(t)||i&&c.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var c={};c.type=this.testRunner,n&&(c.mergeResults=n),r&&(c.platform=r),i&&(c.config=i),o&&(c.runTitle=o),s&&(c.publishRunAttachments=s),e&&(c.resultFiles=e),c.testRunSystem=a,t.command("results.publish",c,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=P;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,c,u,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:c?c.toString():void 0,starttime:u,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var c={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",c,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var c=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,c)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));return m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!u.failOnStdErr,u.silent||(u.failOnStdErr?u.errStream:u.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),c=n(/*! child_process */"child_process"),u=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=u._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;){n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;c--)s+=e[c-1],a&&"\\"==e[c-1]?s+="\\":'"'==e[c-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,u=this._cloneExecOptions(t);u.silent||u.outStream.write(this._getCommandString(u)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(u),this._getSpawnOptions(u));m++,i=c.spawn(e._getSpawnFileName(),e._getSpawnArgs(u),e._getSpawnOptions(u)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||u.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));i.stdout.on("data",(function(e){n.emit("stdout",e),u.silent||u.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return i.stderr.on("data",(function(e){(n.emit("stderr",e),a=!u.failOnStdErr,u.silent)||(u.failOnStdErr?u.errStream:u.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||u.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=c.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(i.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=c.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(u._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(u._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(u._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(u._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ @@ -30,11 +30,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),c=n(/*! fs */"fs");var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={}));const l=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&c.existsSync(this._certConfig.caFile)&&(this._ca=c.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&c.existsSync(this._certConfig.certFile)&&(this._cert=c.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&c.existsSync(this._certConfig.keyFile)&&(this._key=c.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===u.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const c="https:"===i.parse(e).protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=c?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=c?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=c?s.globalAgent:o.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),c&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),c=n(/*! fs */"fs"),u=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=u.clean(e);l.debug("isExplicit: "+t);let n=null!=u.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(u.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=o.join(S(),e,u.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,u.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),u.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=u.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(E(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),c.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const u=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=c.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=u.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of c.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=u.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),c=o.join(r,t);return l.debug("destination file"+c),l.cp(e,c),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;e=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);return a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),n.push.apply(n,c),n}(s.body)).length&&1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),j=Math.max(c[0].length,c[1].length),x=3==c.length?Math.abs(l(c[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=u||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)c=s.body.split(/\.\./);else{if(1===(c=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,c=o.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));return n.push.apply(n,c),n}(s.body)).length)if(1===(c=e(c[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+c[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(c[0]),S=l(c[1]),E=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(l(c[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(c,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ @@ -94,7 +94,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!**************************************************************!*\ !*** ./node_modules/inversify/lib/bindings/binding_count.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": /*!************************************************************!*\ !*** ./node_modules/inversify/lib/constants/error_msgs.js ***! \************************************************************/ @@ -102,7 +102,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/literal_types.js ***! \***************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/metadata_keys.js ***! \***************************************************************/ @@ -114,7 +114,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_module.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js");t.ContainerModule=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=function(e){this.id=r.id(),this.registry=e}},"./node_modules/inversify/lib/container/container_snapshot.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var o=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=o},"./node_modules/inversify/lib/container/container_snapshot.js": /*!********************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_snapshot.js ***! \********************************************************************/ @@ -142,11 +142,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),c=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),u=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,u=m(n.container,s.serviceIdentifier);return u.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),u=m(n.container,s.serviceIdentifier)),a=t?u:u.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=c.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=c.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new u.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new l.Metadata(a,n),u=new h.Target(t,"",n,c);if(void 0!==i){var d=new l.Metadata(i,o);u.metadata.push(d)}return u}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,c){var u,l;if(null===a){u=y(t,n,s,null,c),l=new f.Request(r,s,null,u,c);var h=new d.Plan(s,l);s.addPlan(h)}else u=y(t,n,s,a,c),l=a.addChildRequest(c.serviceIdentifier,u,c);u.forEach((function(n){var r=null;if(c.isArray())r=l.addChildRequest(n.serviceIdentifier,n,c);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var u=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var c=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function u(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var u=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(u)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,i){for(var o=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=Object.keys(r),a=0,u=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ @@ -162,11 +162,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var c=null;"string"==typeof a?c=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(c=a),null!==c&&this.metadata.push(c)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,c=null;if(t.length>0){var u=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);a=u,c=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(c=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else c=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,c),c}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ @@ -198,7 +198,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -218,7 +218,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),N=o.slice(P.reEnd-8,P.reEnd),R=o.slice(P.reEnd);N+=R;var I=k.split("(").length-1,M=R;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var c=/\/+/;function u(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,u(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,u=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",c=!0;break;case"?":o+="[^/]",c=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=o.slice(0,k.reStart),C=o.slice(k.reStart,k.reEnd-8),R=o.slice(k.reEnd-8,k.reEnd),N=o.slice(k.reEnd);R+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,7 +249,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var N,R,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return u(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(N=$,R="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(R+" is deprecated, use "+I+" instead.",new Error("").stack),N.apply(N,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=l,u.port1.onmessage=a,a()};var l=function(){u.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],i=p(j.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=c(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=k(t);return P(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=E++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),u(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||u(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,i=e.length;r2?e.resolve(c(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=j(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=C,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return u(e,(function(r,i,o){var s;P(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return u(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,c(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,c(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},S.fbind=function(e){var t=S(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},A.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=c(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=c(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),i=j();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=c(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=c(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=c(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ @@ -265,11 +265,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var j=0;j0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,c,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return c&&!y?c(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return c?[g(y?n:c(n,p.encoder,m,"key"))+"="+g(c(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,7 +288,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return R(Object.create(null))}:s?function(){return R({__proto__:null})}:function(){return R({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=C(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=C(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=C(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],c=0,u=r;c0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -296,11 +296,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[c]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var N=s++;o[N]="^"+o[k]+o[E]+"$";var R=s++;o[R]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[E]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[N];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var c=s++;o[c]="[0-9]+";var u=s++;o[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[u]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var E=s++;o[E]=o[c]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var x=s++;o[x]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[x]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var k=s++;o[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[P]+"\\s+",i[C]=new RegExp(o[C],"g");var R=s++;o[R]="^"+o[P]+o[x]+"$";var N=s++;o[N]="^"+o[P]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[x]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[x]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[x]+")\\s+-\\s+("+o[x]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,c,u,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+a)).trim()}function ce(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,c;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",c=">=";break;case"<":i=X,o=ee,s=J,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var u=0;u=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var c=se(i),u=c||se(o),l=u||se(s);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var c=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",c);var u=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",u);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ @@ -312,7 +312,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,c=r.WRITE,u=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),N=0;switch(x&&(N|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(N|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(N|=(A?u:0)+(O?c:0)+(P?a:0)),k&&(N|=y),S){case"+":w|=N;break;case"-":w&=~N;break;case"=":w=b+N,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,c=r&a.TYPE_MASK,u=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":u|=w;break;case"-":u&=~w;break;case"=":u=c+w,o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+u.toString(8)),r!=u&&(!e.verbose&&e.changes&&log(n+" -> "+u.toString(8)),o.chmodSync(n,u))}else i.error("Invalid symbolic mode change: "+t)})):(u=c+parseInt(t,8),o.statSync(n).isDirectory()&&(u|=a.SETUID+a.SETGID&r),o.chmodSync(n,u))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ @@ -404,11 +404,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(c=n(/*! fs */"fs"),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!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const c=r.message.headers.location;if(!c)break;let u=i.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 r.readBody(),a=this._prepareRequest(e,u,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const c=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):c,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){u||(u=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),c=(n(/*! assert */"assert"),n(/*! util */"util"));function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},u.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){var u;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(u=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",u),void n.removeSocket(i)):c.length>0?(r("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 n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/azure/gitversion/execute/bundle.js b/dist/azure/gitversion/execute/bundle.js index fb03df9..7ab6932 100644 --- a/dist/azure/gitversion/execute/bundle.js +++ b/dist/azure/gitversion/execute/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitversion/execute.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitversion/execute.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,19 +6,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),u=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),c=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),u=t.toUpperCase(),c=[];try{c=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new u.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,u=0,c=t;u0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return B(t)?t:(e=D(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return B(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=D(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function B(e){if(!(e=D(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function D(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var c=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),u=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),c=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+o.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),u=t.toUpperCase(),c=[];try{c=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,i=j(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new u.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(R(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,u=0,c=t;u0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function C(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var c=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),i=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=E("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,u,c=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=c.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return u.Windows;case"darwin":return u.MacOS;case"linux":return u.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var u=e.level+1,c=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),u)})),l=c.length-1;l>=0;l--)i.push(c[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(u=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(c.cd(e),S("cd"))},t.pushd=function(e){c.pushd(e),S("pushd")},t.popd=function(){c.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var u=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(u.test(t)||i&&u.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var u={};u.type=this.testRunner,n&&(u.mergeResults=n),r&&(u.platform=r),i&&(u.config=i),o&&(u.runTitle=o),s&&(u.publishRunAttachments=s),e&&(u.resultFiles=e),u.testRunSystem=a,t.command("results.publish",u,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,u,c,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:u?u.toString():void 0,starttime:c,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var u={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",u,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,u,c=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=c.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function E(){switch(process.platform){case"win32":return u.Windows;case"darwin":return u.MacOS;case"linux":return u.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new x(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var u=e.level+1,c=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),u)})),l=c.length-1;l>=0;l--)i.push(c[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(u=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(c.cd(e),S("cd"))},t.pushd=function(e){c.pushd(e),S("pushd")},t.popd=function(){c.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var u=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(u.test(t)||i&&u.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var u={};u.type=this.testRunner,n&&(u.mergeResults=n),r&&(u.platform=r),i&&(u.config=i),o&&(u.runTitle=o),s&&(u.publishRunAttachments=s),e&&(u.resultFiles=e),u.testRunSystem=a,t.command("results.publish",u,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=P;var R=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=R,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,u,c,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:u?u.toString():void 0,starttime:c,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var u={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",u,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var u=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,u)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var u=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,u)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),u=n(/*! child_process */"child_process"),c=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=c._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;u--)s+=e[u-1],a&&"\\"==e[u-1]?s+="\\":'"'==e[u-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,c=this._cloneExecOptions(t);c.silent||c.outStream.write(this._getCommandString(c)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=u.spawn(this._getSpawnFileName(),this._getSpawnArgs(c),this._getSpawnOptions(c));return m++,i=u.spawn(e._getSpawnFileName(),e._getSpawnArgs(c),e._getSpawnOptions(c)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!c.failOnStdErr,c.silent||(c.failOnStdErr?c.errStream:c.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||c.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),c.silent||c.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!c.failOnStdErr,c.silent||(c.failOnStdErr?c.errStream:c.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||c.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=u.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=u.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(c._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(c._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(c._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(c._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(c._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),u=n(/*! child_process */"child_process"),c=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=c._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;){n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;u--)s+=e[u-1],a&&"\\"==e[u-1]?s+="\\":'"'==e[u-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,c=this._cloneExecOptions(t);c.silent||c.outStream.write(this._getCommandString(c)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=u.spawn(this._getSpawnFileName(),this._getSpawnArgs(c),this._getSpawnOptions(c));m++,i=u.spawn(e._getSpawnFileName(),e._getSpawnArgs(c),e._getSpawnOptions(c)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!c.failOnStdErr,c.silent)||(c.failOnStdErr?c.errStream:c.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||c.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));i.stdout.on("data",(function(e){n.emit("stdout",e),c.silent||c.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return i.stderr.on("data",(function(e){(n.emit("stderr",e),a=!c.failOnStdErr,c.silent)||(c.failOnStdErr?c.errStream:c.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||c.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=u.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(i.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=u.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(c._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(c._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(c._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(c._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(c._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ @@ -30,11 +30,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),u=n(/*! fs */"fs");var c;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(c=t.HttpCodes||(t.HttpCodes={}));const l=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===c.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const u="https:"===i.parse(e).protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=u?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=u?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=u?s.globalAgent:o.globalAgent),u&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),u&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),u=n(/*! fs */"fs");var c;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(c=t.HttpCodes||(t.HttpCodes={}));const l=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===c.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const u="https:"===i.parse(e).protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=u?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=u?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=u?s.globalAgent:o.globalAgent),u&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),u&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),u=n(/*! fs */"fs"),c=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=c.clean(e);l.debug("isExplicit: "+t);let n=null!=c.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(c.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,c.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,c.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),c.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=c.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),u.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const c=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=u.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=c.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of u.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=c.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),u=o.join(r,t);return l.debug("destination file"+u),l.cp(e,u),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=c.clean(e);l.debug("isExplicit: "+t);let n=null!=c.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(c.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=o.join(S(),e,c.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,c.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),c.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=c.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(E(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),u.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const c=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=u.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=c.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of u.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=c.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),u=o.join(r,t);return l.debug("destination file"+u),l.cp(e,u),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;e=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)u=s.body.split(/\.\./);else if(1===(u=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,u=o.split(",");u[u.length-1]+="{"+s+"}";var c=e(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),n.push.apply(n,u),n}(s.body)).length&&1===(u=e(u[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+u[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(u[0]),S=l(u[1]),j=Math.max(u[0].length,u[1].length),x=3==u.length?Math.abs(l(u[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(u,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var u,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=c||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)u=s.body.split(/\.\./);else{if(1===(u=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,u=o.split(",");u[u.length-1]+="{"+s+"}";var c=e(a);a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c));return n.push.apply(n,u),n}(s.body)).length)if(1===(u=e(u[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+u[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(u[0]),S=l(u[1]),E=Math.max(u[0].length,u[1].length),j=3==u.length?Math.abs(l(u[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(u,(function(t){return e(t,!1)}));for(var R=0;R=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ @@ -94,7 +94,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!**************************************************************!*\ !*** ./node_modules/inversify/lib/bindings/binding_count.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": /*!************************************************************!*\ !*** ./node_modules/inversify/lib/constants/error_msgs.js ***! \************************************************************/ @@ -102,7 +102,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/literal_types.js ***! \***************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/metadata_keys.js ***! \***************************************************************/ @@ -114,7 +114,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_module.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js");t.ContainerModule=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=function(e){this.id=r.id(),this.registry=e}},"./node_modules/inversify/lib/container/container_snapshot.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var o=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=o},"./node_modules/inversify/lib/container/container_snapshot.js": /*!********************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_snapshot.js ***! \********************************************************************/ @@ -142,11 +142,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),u=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),c=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,c=m(n.container,s.serviceIdentifier);return c.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),c=m(n.container,s.serviceIdentifier)),a=t?c:c.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=u.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=u.listMetadataForTarget(s,n),a+=u.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=u.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=u.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new c.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,u=new l.Metadata(a,n),c=new h.Target(t,"",n,u);if(void 0!==i){var d=new l.Metadata(i,o);c.metadata.push(d)}return c}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,u){var c,l;if(null===a){c=y(t,n,s,null,u),l=new f.Request(r,s,null,c,u);var h=new d.Plan(s,l);s.addPlan(h)}else c=y(t,n,s,a,u),l=a.addChildRequest(u.serviceIdentifier,c,u);c.forEach((function(n){var r=null;if(u.isArray())r=l.addChildRequest(n.serviceIdentifier,n,u);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var c=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var u=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function c(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var c=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(c)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,i){for(var o=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=Object.keys(r),a=0,c=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ @@ -162,11 +162,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var u=null;"string"==typeof a?u=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(u=a),null!==u&&this.metadata.push(u)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),u=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(u=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):u=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,u),u}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,u=null;if(t.length>0){var c=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);a=c,u=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(u=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else u=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,u),u}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ @@ -198,7 +198,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -218,7 +218,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),u=/\/+/;function c(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,c(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,c(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(u)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",u=!!n.nocase,c=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",u=!0;break;case"?":o+="[^/]",u=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),R=o.slice(P.reEnd-8,P.reEnd),N=o.slice(P.reEnd);R+=N;var I=k.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(c=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,c)):(c=d.match(l),this.debug("pattern match",l,d,c)),!c)return!1}if(o===a&&s===u)return!0;if(o===a)return n;if(s===u)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var u=/\/+/;function c(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,c(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,c(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(u)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",u=!!n.nocase,c=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",u=!0;break;case"?":o+="[^/]",u=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=o.slice(0,k.reStart),R=o.slice(k.reStart,k.reEnd-8),C=o.slice(k.reEnd-8,k.reEnd),N=o.slice(k.reEnd);C+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(c=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,c)):(c=d.match(l),this.debug("pattern match",l,d,c)),!c)return!1}if(o===a&&s===u)return!0;if(o===a)return n;if(s===u)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,7 +249,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),u(t,r);for(;s.length;)u(t=s.pop());n=!1}function u(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var c=new MessageChannel;c.port1.onmessage=function(){r=l,c.port1.onmessage=a,a()};var l=function(){c.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,u=s(Array.prototype.slice),c=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):V(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=u(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),c(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(V(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||c(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(u(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],B=[],D=[],F=!0;function L(){M.length=0,B.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(B,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(D,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),D.splice(n,1))})),B.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(B,e)&&(process.emit("unhandledRejection",t,e),D.push(e))})),B.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function V(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function q(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return c(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return c(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=V,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=q,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return q([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,u(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,u(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,u(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,u(arguments)])},S.fbind=function(e){var t=S(e),n=u(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(u(arguments))])}},A.prototype.fbind=function(){var e=this,t=u(arguments);return function(){return e.dispatch("apply",[this,t.concat(u(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=u(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=u(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=u(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=u(arguments,1);return function(){var n=t.concat(u(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=u(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=u(arguments,2);return function(){var r=n.concat(u(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=u(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=u(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=u(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=u(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),u(t,r);for(;s.length;)u(t=s.pop());n=!1}function u(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var c=new MessageChannel;c.port1.onmessage=function(){r=l,c.port1.onmessage=a,a()};var l=function(){c.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,u=s(Array.prototype.slice),c=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:R(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],i=p(j.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=u(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=k(t);return P(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=E++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),c(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||c(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,i=e.length;r2?e.resolve(u(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=j(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=R,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var C,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return c(e,(function(r,i,o){var s;P(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return c(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,u(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,u(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,u(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,u(arguments)])},S.fbind=function(e){var t=S(e),n=u(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(u(arguments))])}},A.prototype.fbind=function(){var e=this,t=u(arguments);return function(){return e.dispatch("apply",[this,t.concat(u(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(C=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),C.apply(C,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=u(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=u(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=u(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=u(arguments,1);return function(){var n=t.concat(u(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=u(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=u(arguments,2);return function(){var r=n.concat(u(arguments)),i=j();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=u(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=u(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=u(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=u(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ @@ -265,11 +265,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!y?u(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[g(y?n:u(n,p.encoder,m,"key"))+"="+g(u(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var j=0;j0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!y?u(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[g(y?n:u(n,p.encoder,m,"key"))+"="+g(u(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,7 +288,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=R(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=R(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=R(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -296,11 +296,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[u]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var R=s++;o[R]="^"+o[k]+o[E]+"$";var N=s++;o[N]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var B=s++;o[B]="^"+o[I]+o[E]+"$";var D=s++;o[D]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var V=s++;o[V]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var q=s++;o[q]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",u=">=";break;case"<":i=X,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[q]:i[V];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[D]:i[B];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var E=s++;o[E]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var x=s++;o[x]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[x]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var k=s++;o[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var R=s++;o[R]="(\\s*)"+o[P]+"\\s+",i[R]=new RegExp(o[R],"g");var C=s++;o[C]="^"+o[P]+o[x]+"$";var N=s++;o[N]="^"+o[P]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[x]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[x]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[x]+")\\s+-\\s+("+o[x]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",u=">=";break;case"<":i=X,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[R],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var u=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",u);var c=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",c);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var u=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",u);var c=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",c);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ @@ -312,7 +312,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,u=r.WRITE,c=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),R=0;switch(x&&(R|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(R|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(R|=(A?c:0)+(O?u:0)+(P?a:0)),k&&(R|=y),S){case"+":w|=R;break;case"-":w&=~R;break;case"=":w=b+R,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,u=r&a.TYPE_MASK,c=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":c|=w;break;case"-":c&=~w;break;case"=":c=u+w,o.statSync(n).isDirectory()&&(c|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+c.toString(8)),r!=c&&(!e.verbose&&e.changes&&log(n+" -> "+c.toString(8)),o.chmodSync(n,c))}else i.error("Invalid symbolic mode change: "+t)})):(c=u+parseInt(t,8),o.statSync(n).isDirectory()&&(c|=a.SETUID+a.SETGID&r),o.chmodSync(n,c))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ @@ -404,11 +404,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ @@ -464,7 +472,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!**************************************!*\ !*** ./src/tools/gitversion/tool.ts ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json","/output","buildserver"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: /*!*************************!*\ !*** external "assert" ***! \*************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/azure/gitversion/setup/bundle.js b/dist/azure/gitversion/setup/bundle.js index 0a2367e..2aa84c7 100644 --- a/dist/azure/gitversion/setup/bundle.js +++ b/dist/azure/gitversion/setup/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(2)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(5)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(10)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitversion/setup.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("process")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitversion/setup.ts")}({"./node_modules/azure-pipelines-task-lib sync recursive": /*!****************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib sync ***! \****************************************************/ @@ -6,19 +6,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/internal.js ***! \***********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),u=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),c=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;function g(e){h.write(e+o.EOL)}process.stderr,t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),u=t.toUpperCase(),c=[];try{c=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function j(e){var n,r,i=x(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function x(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function E(e,t,n){g(new u.TaskCommand(e,t,n).toString())}function T(e){E("task.issue",{type:"warning"},e)}function A(e){E("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function P(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function k(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(C(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,u=0,c=t;u0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function R(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return B(t)?t:(e=D(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return B(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=D(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function B(e){if(!(e=D(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function D(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(j("Agent.TempDirectory")||j("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{P(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=j("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=j,t._getVariableKey=x,t._command=E,t._warning=T,t._error=function(e){E("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=P,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var c=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=j("Agent.ProxyUsername"),n=j("Agent.ProxyPassword"),r=j("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=j("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=j("Agent.ClientCert");if(t){var n=j("Agent.ClientCertKey"),r=j("Agent.ClientCertArchive"),i=j("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=j("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! fs */"fs"),i=n(/*! path */"path"),o=n(/*! os */"os"),s=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),a=n(/*! util */"util"),u=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),c=n(/*! ./vault */"./node_modules/azure-pipelines-task-lib/vault.js"),l=n(/*! semver */"./node_modules/semver/semver.js"),d=n(/*! crypto */"crypto");function p(e,t){return e.slice(0,t.length)==t}function f(e,t){return e.slice(-t.length)==t}t._knownVariableMap={},l.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),t._startsWith=p,t._endsWith=f;var h=process.stdout;process.stderr;function g(e){h.write(e+o.EOL)}t._writeLine=g,t._setStdStream=function(e){h=e},t._setErrStream=function(e){e};var y={},m={},v=!1,_="en-US";function b(e){var t;if(O(e)){var n=r.readFileSync(e,"utf8").toString();0==n.indexOf("\ufeff")&&(n=n.slice(1));try{t=JSON.parse(n)}catch(e){A("unable to parse resjson with err: "+e.message)}}else A(".resjson file not found: "+e);return t}function w(e,t){var n={};if(O(e)){var o=b(e);if(o&&o.hasOwnProperty("messages")){var s,a=i.join(i.dirname(e),"Strings","resources.resjson"),u=t.toUpperCase(),c=[];try{c=r.readdirSync(a)}catch(e){}for(var l=0;l0?a.format.apply(this,[t].concat(n)):t}function E(e){var n,r,i=j(e);return t._knownVariableMap.hasOwnProperty(i)&&(r=t._knownVariableMap[i]),r&&r.secret?n=t._vault.retrieveSecret("SECRET_"+i):(n=process.env[i])||"AGENT.JOBSTATUS"!=e.toUpperCase()||(n=process.env["agent.jobstatus"]),A(e+"="+n),n}function j(e){if(!e)throw new Error(S("LIB_ParameterIsRequired","name"));return e.replace(/\./g,"_").replace(/ /g,"_").toUpperCase()}function x(e,t,n){g(new u.TaskCommand(e,t,n).toString())}function T(e){x("task.issue",{type:"warning"},e)}function A(e){x("task.debug",null,e)}function O(e){var t=!1;try{t=!(!e||null==r.statSync(e))}catch(e){if(!e||"ENOENT"!==e.code)throw e;t=!1}return t}function k(e,t){if(A("check path : "+e),!O(e))throw new Error(S("LIB_PathNotFound",t,e))}function P(e,t){try{if((d=r.statSync(e)).isFile())if("win32"==process.platform){var n=i.basename(e),o=n.lastIndexOf(".");if(o>=0){var s=n.substr(o).toUpperCase();if(t.some((function(e){return e.toUpperCase()==s})))return e}}else if(R(d))return e}catch(t){"ENOENT"!=t.code&&A("Unexpected error attempting to determine if executable file exists '"+e+"': "+t)}for(var a=e,u=0,c=t;u0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}function C(e){return{debug:e.debug,nobrace:e.nobrace,noglobstar:e.noglobstar,dot:e.dot,noext:e.noext,nocase:e.nocase,nonull:e.nonull,matchBase:e.matchBase,nocomment:e.nocomment,nonegate:e.nonegate,flipNegate:e.flipNegate}}function N(e,t){if(!e)throw new Error('ensurePatternRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensurePatternRooted() parameter "p" cannot be empty');return D(t)?t:(e=B(e),I(e=("win32"==process.platform?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^\/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]").replace(/\+\(/g,"[+](").replace(/@\(/g,"[@](").replace(/!\(/g,"[!]("),t))}function I(e,t){if(!e)throw new Error('ensureRooted() parameter "root" cannot be empty');if(!t)throw new Error('ensureRooted() parameter "p" cannot be empty');return D(t)?t:"win32"==process.platform&&e.match(/^[A-Z]:$/i)?e+t:(f(e,"/")||"win32"==process.platform&&f(e,"\\")||(e+=i.sep),e+t)}function M(e){if(!e)return"";if(e=B(e),"win32"==process.platform){if(/^[A-Z]:\\?[^\\]+$/i.test(e))return"\\"==e.charAt(2)?e.substring(0,3):e.substring(0,2);if(/^[A-Z]:\\?$/i.test(e))return"";var t=e.lastIndexOf("\\");return t<0?"":"\\"==e?"":0==t?"\\":/^\\\\[^\\]+(\\[^\\]*)?$/.test(e)?"":e.substring(0,t)}return e.indexOf("/")<0?"":"/"==e?"":f(e,"/")?e.substring(0,e.length-1):i.dirname(e)}function D(e){if(!(e=B(e)))throw new Error('isRooted() parameter "p" cannot be empty');return"win32"==process.platform?p(e,"\\")||/^[A-Z]:/i.test(e):p(e,"/")}function B(e){return e=e||"","win32"==process.platform?(e=e.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(e)?"\\":"")+e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function F(e,t){if(t){var n=d.randomBytes(256),o=d.createCipher("aes-256-ctr",n),s=o.update(t,"utf8","hex");s+=o.final("hex");var a=i.join(E("Agent.TempDirectory")||E("agent.workFolder")||process.cwd(),e);return r.writeFileSync(a,n.toString("base64"),{encoding:"utf8"}),new Buffer(a).toString("base64")+":"+new Buffer(s).toString("base64")}}t._setResourcePath=function(e){if(process.env.TASKLIB_INPROC_UNITS&&(m={},v=!1,y={},_="en-US"),m[e])T(S("LIB_ResourceFileAlreadySet",e));else{k(e,"resource file path"),m[e]=e,A("adding resource file: "+e);var t=w(e,_=E("system.culture")||_);for(var n in t)y[n]=t[n]}},t._loc=S,t._getVariable=E,t._getVariableKey=j,t._command=x,t._warning=T,t._error=function(e){x("task.issue",{type:"error"},e)},t._debug=A,t._exist=O,t._checkPath=k,t._which=function e(t,n){if(!t)throw new Error("parameter 'tool' is required");if(n){var r=e(t,!1);if(r)return r;throw"win32"==process.platform?new Error(S("LIB_WhichNotFound_Win",t)):new Error(S("LIB_WhichNotFound_Linux",t))}A("which '"+t+"'");try{var o=[];if("win32"==process.platform&&process.env.PATHEXT)for(var s=0,a=process.env.PATHEXT.split(i.delimiter);s=0||"win32"==process.platform&&t.indexOf("\\")>=0)return A("not found"),"";var c=[];if(process.env.PATH)for(var l=0,d=process.env.PATH.split(i.delimiter);l0){var t=E("Agent.ProxyUsername"),n=E("Agent.ProxyPassword"),r=E("Agent.ProxyBypassList");global._vsts_task_lib_proxy_url=e,global._vsts_task_lib_proxy_username=t,global._vsts_task_lib_proxy_bypass=r,global._vsts_task_lib_proxy_password=F("proxy",n||""),A("expose agent proxy configuration."),global._vsts_task_lib_proxy=!0}},t._exposeCertSettings=function(){var e=E("Agent.CAInfo");e&&(global._vsts_task_lib_cert_ca=e);var t=E("Agent.ClientCert");if(t){var n=E("Agent.ClientCertKey"),r=E("Agent.ClientCertArchive"),i=E("Agent.ClientCertPassword");global._vsts_task_lib_cert_clientcert=t,global._vsts_task_lib_cert_key=n,global._vsts_task_lib_cert_archive=r,global._vsts_task_lib_cert_passphrase=F("cert",i||"")}(e||t)&&(A("expose agent certificate configuration."),global._vsts_task_lib_cert=!0);var o=E("Agent.SkipCertValidation")||"false";o&&(global._vsts_task_lib_skip_cert_validation="TRUE"===o.toUpperCase())}},"./node_modules/azure-pipelines-task-lib/task.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/task.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,u,c=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=c.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function j(){switch(process.platform){case"win32":return u.Windows;case"darwin":return u.MacOS;case"linux":return u.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function x(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new E(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var u=e.level+1,c=d.readdirSync(e.path).map((function(t){return new E(p.join(e.path,t),u)})),l=c.length-1;l>=0;l--)i.push(c[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(u=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=j,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(c.cd(e),S("cd"))},t.pushd=function(e){c.pushd(e),S("pushd")},t.popd=function(){c.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var u=g._legacyFindFiles_convertPatternToRegExp(e);x(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(u.test(t)||i&&u.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,j=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var P=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var u={};u.type=this.testRunner,n&&(u.mergeResults=n),r&&(u.platform=r),i&&(u.config=i),o&&(u.runTitle=o),s&&(u.publishRunAttachments=s),e&&(u.resultFiles=e),u.testRunSystem=a,t.command("results.publish",u,"")},e}();t.TestPublisher=P;var k=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=k;var C=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=C,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,u,c,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:u?u.toString():void 0,starttime:c,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var u={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",u,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,s,a,u,c=n(/*! shelljs */"./node_modules/shelljs/shell.js"),l=n(/*! child_process */"child_process"),d=n(/*! fs */"fs"),p=n(/*! path */"path"),f=n(/*! os */"os"),h=n(/*! minimatch */"./node_modules/minimatch/minimatch.js"),g=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),y=n(/*! ./taskcommand */"./node_modules/azure-pipelines-task-lib/taskcommand.js"),m=n(/*! ./toolrunner */"./node_modules/azure-pipelines-task-lib/toolrunner.js"),v=n(/*! semver */"./node_modules/semver/semver.js");function _(e,n,i){t.debug("task result: "+r[e]),e==r.Failed&&n?t.error(n):e==r.SucceededWithIssues&&n&&t.warning(n);var o={result:r[e]};i&&(o.done="true"),t.command("task.complete",o,n)}function b(e){if(v.lt(e,"2.104.1"))throw new Error("assertAgent() requires the parameter to be 2.104.1 or higher");var n=t.getVariable("Agent.Version");if(n&&v.lt(n,e))throw new Error("Agent version "+e+" or higher is required")}function w(e,n){var r=g._vault.retrieveSecret("INPUT_"+g._getVariableKey(e));if(r&&(r=r.trim()),n&&!r)throw new Error(t.loc("LIB_InputRequired",e));return t.debug(e+"="+r),r}function S(e,n){var r=c.error();if(r){t.debug(e+" failed");var i=t.loc("LIB_OperationFailed",e,r);if(t.debug(i),!n)throw new Error(i)}}function E(){switch(process.platform){case"win32":return u.Windows;case"darwin":return u.MacOS;case"linux":return u.Linux;default:throw Error(t.loc("LIB_PlatformNotSupported",process.platform))}}function j(e,n){if(!e)return t.debug("no path specified"),[];e=p.normalize(e),t.debug("findPath: '"+e+"'"),T(n=n||{allowBrokenSymbolicLinks:!1,followSpecifiedSymbolicLink:!0,followSymbolicLinks:!0});try{d.lstatSync(e)}catch(e){if("ENOENT"==e.code)return t.debug("0 results"),[];throw e}try{for(var r=[],i=[new x(e,1)],o=[],s=function(){var e=i.pop();r.push(e.path);var s=void 0;if(n.followSymbolicLinks)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else if(n.followSpecifiedSymbolicLink&&1==r.length)try{s=d.statSync(e.path)}catch(r){if("ENOENT"!=r.code||!n.allowBrokenSymbolicLinks)throw r;s=d.lstatSync(e.path),t.debug(" "+e.path+" (broken symlink)")}else s=d.lstatSync(e.path);if(s.isDirectory()){if(t.debug(" "+e.path+" (directory)"),n.followSymbolicLinks){for(var a=d.realpathSync(e.path);o.length>=e.level;)o.pop();if(o.some((function(e){return e==a})))return t.debug(" cycle detected"),"continue";o.push(a)}for(var u=e.level+1,c=d.readdirSync(e.path).map((function(t){return new x(p.join(e.path,t),u)})),l=c.length-1;l>=0;l--)i.push(c[l])}else t.debug(" "+e.path+" (file)")};i.length;)s();return t.debug(r.length+" results"),r}catch(e){throw new Error(t.loc("LIB_OperationFailed","find",e.message))}}!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Cancelled=3]="Cancelled",e[e.Skipped=4]="Skipped"}(r=t.TaskResult||(t.TaskResult={})),function(e){e[e.Unknown=0]="Unknown",e[e.Initialized=1]="Initialized",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed"}(i=t.TaskState||(t.TaskState={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(o=t.IssueType||(t.IssueType={})),function(e){e[e.Container=0]="Container",e[e.FilePath=1]="FilePath",e[e.VersionControl=2]="VersionControl",e[e.GitRef=3]="GitRef",e[e.TfvcLabel=4]="TfvcLabel"}(s=t.ArtifactType||(t.ArtifactType={})),function(e){e[e.AuthParameter=0]="AuthParameter",e[e.DataParameter=1]="DataParameter",e[e.Url=2]="Url"}(a=t.FieldType||(t.FieldType={})),function(e){e[e.Windows=0]="Windows",e[e.MacOS=1]="MacOS",e[e.Linux=2]="Linux"}(u=t.Platform||(t.Platform={})),t.setStdStream=g._setStdStream,t.setErrStream=g._setErrStream,t.setResult=_,process.on("uncaughtException",(function(e){_(r.Failed,t.loc("LIB_UnhandledEx",e.message))})),t.setResourcePath=g._setResourcePath,t.loc=g._loc,t.getVariable=g._getVariable,t.assertAgent=b,t.getVariables=function(){return Object.keys(g._knownVariableMap).map((function(e){var n=g._knownVariableMap[e];return{name:n.name,value:t.getVariable(n.name),secret:n.secret}}))},t.setVariable=function(e,n,r){void 0===r&&(r=!1);var i=g._getVariableKey(e);g._knownVariableMap.hasOwnProperty(i)&&(r=r||g._knownVariableMap[i].secret);var o=n||"";if(t.debug("set "+e+"="+(r&&o?"********":o)),r){if(o&&o.match(/\r|\n/)&&"TRUE"!=(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));g._vault.storeSecret("SECRET_"+i,o),delete process.env[i]}else process.env[i]=o;g._knownVariableMap[i]={name:e,secret:r},t.command("task.setvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.setSecret=function(e){if(e){if(e.match(/\r|\n/)&&"TRUE"!==(""+process.env.SYSTEM_UNSAFEALLOWMULTILINESECRET).toUpperCase())throw new Error(t.loc("LIB_MultilineSecret"));t.command("task.setsecret",{},e)}},t.getInput=w,t.getBoolInput=function(e,t){return"TRUE"==(w(e,t)||"").toUpperCase()},t.getDelimitedInput=function(e,t,n){var r=w(e,n);if(!r)return[];var i=[];return r.split(t).forEach((function(e){e&&i.push(e)})),i},t.filePathSupplied=function(e){var n=this.resolve(this.getPathInput(e)||"")!==this.resolve(t.getVariable("build.sourcesDirectory")||t.getVariable("system.defaultWorkingDirectory")||"");return t.debug(e+"path supplied :"+n),n},t.getPathInput=function(e,n,r){var i=w(e,n);return i&&r&&t.checkPath(i,e),i},t.getEndpointUrl=function(e,n){var r=process.env["ENDPOINT_URL_"+e];if(!n&&!r)throw new Error(t.loc("LIB_EndpointNotExist",e));return t.debug(e+"="+r),r},t.getEndpointDataParameter=function(e,n,r){var i=process.env["ENDPOINT_DATA_"+e+"_"+n.toUpperCase()];if(!r&&!i)throw new Error(t.loc("LIB_EndpointDataNotExist",e,n));return t.debug(e+" data "+n+" = "+i),i},t.getEndpointAuthorizationScheme=function(e,n){var r=g._vault.retrieveSecret("ENDPOINT_AUTH_SCHEME_"+e);if(!n&&!r)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth scheme = "+r),r},t.getEndpointAuthorizationParameter=function(e,n,r){var i=g._vault.retrieveSecret("ENDPOINT_AUTH_PARAMETER_"+e+"_"+n.toUpperCase());if(!r&&!i)throw new Error(t.loc("LIB_EndpointAuthNotExist",e));return t.debug(e+" auth param "+n+" = "+i),i},t.getEndpointAuthorization=function(e,n){var i,o=g._vault.retrieveSecret("ENDPOINT_AUTH_"+e);n||o||_(r.Failed,t.loc("LIB_EndpointAuthNotExist",e)),t.debug(e+" exists "+(null!==o));try{o&&(i=JSON.parse(o))}catch(e){throw new Error(t.loc("LIB_InvalidEndpointAuth",o))}return i},t.getSecureFileName=function(e){var n=process.env["SECUREFILE_NAME_"+e];return t.debug("secure file name for id "+e+" = "+n),n},t.getSecureFileTicket=function(e){var n=g._vault.retrieveSecret("SECUREFILE_TICKET_"+e);return t.debug("secure file ticket for id "+e+" = "+n),n},t.getTaskVariable=function(e){b("2.115.0");var n=g._vault.retrieveSecret("VSTS_TASKVARIABLE_"+g._getVariableKey(e));return n&&(n=n.trim()),t.debug("task variable: "+e+"="+n),n},t.setTaskVariable=function(e,n,r){void 0===r&&(r=!1),b("2.115.0");var i=g._getVariableKey(e),o=n||"";t.debug("set task variable: "+e+"="+(r&&o?"********":o)),g._vault.storeSecret("VSTS_TASKVARIABLE_"+i,o),delete process.env[i],t.command("task.settaskvariable",{variable:e||"",issecret:(r||!1).toString()},o)},t.command=g._command,t.warning=g._warning,t.error=g._error,t.debug=g._debug,t.stats=function(e){return d.statSync(e)},t.exist=g._exist,t.writeFile=function(e,t,n){"string"==typeof n?d.writeFileSync(e,t,{encoding:n}):d.writeFileSync(e,t,n)},t.osType=function(){return f.type()},t.getPlatform=E,t.cwd=function(){return process.cwd()},t.checkPath=g._checkPath,t.cd=function(e){e&&(c.cd(e),S("cd"))},t.pushd=function(e){c.pushd(e),S("pushd")},t.popd=function(){c.popd(),S("popd")},t.mkdirP=function(e){if(!e)throw new Error(t.loc("LIB_ParameterIsRequired","p"));for(var n=[],r=e;;){if(n.length>=(process.env.TASKLIB_TEST_MKDIRP_FAILSAFE||1e3))return t.debug("loop is out of control"),void d.mkdirSync(e);t.debug("testing directory '"+r+"'");var i=void 0;try{i=d.statSync(r)}catch(i){if("ENOENT"==i.code){var o=p.dirname(r);if(r==o)throw new Error(t.loc("LIB_MkdirFailedInvalidDriveRoot",e,r));n.push(r),r=o;continue}throw"UNKNOWN"==i.code?new Error(t.loc("LIB_MkdirFailedInvalidShare",e,r)):i}if(!i.isDirectory())throw new Error(t.loc("LIB_MkdirFailedFileExists",e,r));break}for(;n.length;){var s=n.pop();t.debug("mkdir '"+s+"'");try{d.mkdirSync(s)}catch(n){throw new Error(t.loc("LIB_MkdirFailed",e,n.message))}}},t.resolve=function(){for(var e=[],n=0;n=0?o:s,s>=0?s:o);t=g._getDirectoryName(e.substring(0,a))}if(!t)return"continue";var u=g._legacyFindFiles_convertPatternToRegExp(e);j(t,{followSymbolicLinks:!0}).filter((function(e){if(r&&i)return!0;var t=d.statSync(e).isDirectory();return r&&!t||i&&t})).forEach((function(e){var t="win32"==process.platform?e.replace(/\\/g,"/"):e,r=t+"/",o=!1;if(u.test(t)||i&&u.test(r)){o=!0;for(var s=0,a=n;s=0)&&(b=g._ensureRooted(r,b),t.debug("rooted pattern: '"+b+"'")),p){t.debug("applying include pattern against original list");var w=h.match(e,b,l);t.debug(w.length+" matches");for(var S=0,E=w;S0){var r=t.getVariable("Agent.ProxyUsername"),i=t.getVariable("Agent.ProxyPassword"),o=JSON.parse(t.getVariable("Agent.ProxyBypassList")||"[]"),s=!1;return e&&o.forEach((function(t){new RegExp(t,"i").test(e)&&(s=!0)})),s?null:{proxyUrl:n,proxyUsername:r,proxyPassword:i,proxyBypassHosts:o}}return null},t.getHttpCertConfiguration=function(){var e=t.getVariable("Agent.CAInfo"),n=t.getVariable("Agent.ClientCert");if(e||n){var r={};if(r.caFile=e,r.certFile=n,n){var i=t.getVariable("Agent.ClientCertKey"),o=t.getVariable("Agent.ClientCertArchive"),s=t.getVariable("Agent.ClientCertPassword");r.keyFile=i,r.certArchiveFile=o,r.passphrase=s}return r}return null};var k=function(){function e(e){this.testRunner=e}return e.prototype.publish=function(e,n,r,i,o,s,a){a=a||"VSTSTask";var u={};u.type=this.testRunner,n&&(u.mergeResults=n),r&&(u.platform=r),i&&(u.config=i),o&&(u.runTitle=o),s&&(u.publishRunAttachments=s),e&&(u.resultFiles=e),u.testRunSystem=a,t.command("results.publish",u,"")},e}();t.TestPublisher=k;var P=function(){function e(){}return e.prototype.publish=function(e,n,r,i){var o={};e&&(o.codecoveragetool=e),n&&(o.summaryfile=n),r&&(o.reportdirectory=r),i&&(o.additionalcodecoveragefiles=i),t.command("codecoverage.publish",o,"")},e}();t.CodeCoveragePublisher=P;var R=function(){function e(e,t){this.buildTool=e,this.ccTool=t}return e.prototype.enableCodeCoverage=function(e){e.buildtool=this.buildTool,e.codecoveragetool=this.ccTool,t.command("codecoverage.enable",e,"")},e}();t.CodeCoverageEnabler=R,t.uploadFile=function(e){t.command("task.uploadfile",null,e)},t.prependPath=function(e){b("2.115.0"),t.command("task.prependpath",null,e)},t.uploadSummary=function(e){t.command("task.uploadsummary",null,e)},t.addAttachment=function(e,n,r){t.command("task.addattachment",{type:e,name:n},r)},t.setEndpoint=function(e,n,r,i){t.command("task.setendpoint",{id:e,field:a[n].toLowerCase(),key:r},i)},t.setProgress=function(e,n){t.command("task.setprogress",{value:""+e},n)},t.logDetail=function(e,n,o,s,a,u,c,l,d,p,f){var h={id:e,parentid:o,type:s,name:a,order:u?u.toString():void 0,starttime:c,finishtime:l,progress:d?d.toString():void 0,state:p?i[p]:void 0,result:f?r[f]:void 0};t.command("task.logdetail",h,n)},t.logIssue=function(e,n,r,i,s,a){var u={type:o[e].toLowerCase(),code:a,sourcepath:r,linenumber:i?i.toString():void 0,columnnumber:s?s.toString():void 0};t.command("task.logissue",u,n)},t.uploadArtifact=function(e,n,r){t.command("artifact.upload",{containerfolder:e,artifactname:r},n)},t.associateArtifact=function(e,n,r){t.command("artifact.associate",{type:s[r].toLowerCase(),artifactname:e},n)},t.uploadBuildLog=function(e){t.command("build.uploadlog",null,e)},t.updateBuildNumber=function(e){t.command("build.updatebuildnumber",null,e)},t.addBuildTag=function(e){t.command("build.addbuildtag",null,e)},t.updateReleaseName=function(e){b("2.132"),t.command("release.updatereleasename",null,e)},t.TaskCommand=y.TaskCommand,t.commandFromString=y.commandFromString,t.ToolRunner=m.ToolRunner,v.lt(process.versions.node,"4.2.0")&&this.warning("Tasks require a new agent. Upgrade your agent or node to 4.2.0 or later"),global._vsts_task_lib_loaded||(g._loadData(),g._exposeProxySettings(),g._exposeCertSettings())},"./node_modules/azure-pipelines-task-lib/taskcommand.js": /*!**************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/taskcommand.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return(e+="]")+function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var u=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,u)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}return e.prototype.toString=function(){var e="##vso["+this.command;if(this.properties&&Object.keys(this.properties).length>0)for(var t in e+=" ",this.properties)if(this.properties.hasOwnProperty(t)){var n=this.properties[t];n&&(e+=t+"="+(""+(n||"")).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")+";")}return e+="]",e+=function(e){return e.replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(""+(this.message||""))},e}();t.TaskCommand=r,t.commandFromString=function(e){var t=e.indexOf("["),n=e.indexOf("]");if(-1==t||-1==n||n-t<3)throw new Error("Invalid command brackets");var i=e.substring(t+1,n),o=i.indexOf(" "),s=i,a={};o>0&&(s=i.trim().substring(0,o),i.trim().substring(o+1).split(";").forEach((function(e){if((e=e.trim()).length>0){var t=e.indexOf("=");if(-1==t)throw new Error("Invalid property: "+e);var n=e.substring(0,t),r=e.substring(t+1);a[n]=r.replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%5D/g,"]").replace(/%3B/g,";").replace(/%25/g,"%")}})));var u=e.substring(n+1).replace(/%0D/g,"\r").replace(/%0A/g,"\n").replace(/%25/g,"%");return new r(s,a,u)}},"./node_modules/azure-pipelines-task-lib/toolrunner.js": /*!*************************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/toolrunner.js ***! \*************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),u=n(/*! child_process */"child_process"),c=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=c._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;)n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL);t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;u--)s+=e[u-1],a&&"\\"==e[u-1]?s+="\\":'"'==e[u-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,c=this._cloneExecOptions(t);c.silent||c.outStream.write(this._getCommandString(c)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=u.spawn(this._getSpawnFileName(),this._getSpawnArgs(c),this._getSpawnOptions(c));return m++,i=u.spawn(e._getSpawnFileName(),e._getSpawnArgs(c),e._getSpawnOptions(c)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){f&&f.write(e),y=!c.failOnStdErr,c.silent||(c.failOnStdErr?c.errStream:c.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||c.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))})),i.stdout.on("data",(function(e){n.emit("stdout",e),c.silent||c.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))})),i.stderr.on("data",(function(e){n.emit("stderr",e),a=!c.failOnStdErr,c.silent||(c.failOnStdErr?c.errStream:c.outStream).write(e),n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||c.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=u.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));return a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)})),a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))})),a.stderr.on("data",(function(e){i.processStderr=!0,t.emit("stderr",e),r.silent||(r.failOnStdErr?r.errStream:r.outStream).write(e),t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)})),(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=u.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(c._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(c._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(c._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(c._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(c._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": +/*! no static exports found */function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! q */"./node_modules/q/q.js"),s=n(/*! os */"os"),a=n(/*! events */"events"),u=n(/*! child_process */"child_process"),c=n(/*! ./internal */"./node_modules/azure-pipelines-task-lib/internal.js"),l=n(/*! fs */"fs"),d=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");return n.toolPath=c._which(t,!0),n.args=[],n._debug("toolRunner toolPath: "+t),n}return i(t,e),t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._argStringToArray=function(e){for(var t=[],n=!1,r=!1,i=!0,o="",s=function(e){r&&'"'!==e&&(o+="\\"),o+=e,r=!1},a=0;a-1;){n(r.substring(0,i)),i=(r=r.substring(i+s.EOL.length)).indexOf(s.EOL)}t=r}catch(e){this._debug("error processing line")}},t.prototype._getSpawnFileName=function(){return"win32"==process.platform&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath},t.prototype._getSpawnArgs=function(e){if("win32"==process.platform){if(this._isCmdFile()){for(var t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath),n=0;n",'"'],n=!1,r=function(e){if(t.some((function(t){return t==e})))return n=!0,"break"},i=0,o=e;i0;u--)s+=e[u-1],a&&"\\"==e[u-1]?s+="\\":'"'==e[u-1]?(a=!0,s+='"'):a=!1;return(s+='"').split("").reverse().join("")},t.prototype._uv_quote_cmd_arg=function(e){if(!e)return'""';if(e.indexOf(" ")<0&&e.indexOf("\t")<0&&e.indexOf('"')<0)return e;if(e.indexOf('"')<0&&e.indexOf("\\")<0)return'"'+e+'"';for(var t='"',n=!0,r=e.length;r>0;r--)t+=e[r-1],n&&"\\"==e[r-1]?t+="\\":'"'==e[r-1]?(n=!0,t+="\\"):n=!1;return(t+='"').split("").reverse().join("")},t.prototype._cloneExecOptions=function(e){var t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t},t.prototype._getSpawnOptions=function(e){e=e||{};var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype._getSpawnSyncOptions=function(e){var t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),t},t.prototype.execWithPiping=function(e,t){var n=this,r=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){n._debug(" "+e)}));var i,a=!0,c=this._cloneExecOptions(t);c.silent||c.outStream.write(this._getCommandString(c)+s.EOL);var d,p,f,h,g=e.toolPath,y=!0,m=0,v=0;d=this.toolPath,m++;var _=u.spawn(this._getSpawnFileName(),this._getSpawnArgs(c),this._getSpawnOptions(c));m++,i=u.spawn(e._getSpawnFileName(),e._getSpawnArgs(c),e._getSpawnOptions(c)),(f=this.pipeOutputToFile?l.createWriteStream(this.pipeOutputToFile):null)&&(m++,f.on("finish",(function(){m--,f=null,0==m&&(h?r.reject(h):r.resolve(v))})),f.on("error",(function(e){m--,n._debug("Failed to pipe output of "+d+" to file "+n.pipeOutputToFile+". Error = "+e),f=null,0==m&&(h?r.reject(h):r.resolve(v))}))),_.stdout.on("data",(function(e){try{f&&f.write(e),i.stdin.write(e)}catch(e){n._debug("Failed to pipe output of "+d+" to "+g),n._debug(g+" might have exited due to errors prematurely. Verify the arguments passed are valid.")}})),_.stderr.on("data",(function(e){(f&&f.write(e),y=!c.failOnStdErr,c.silent)||(c.failOnStdErr?c.errStream:c.outStream).write(e)})),_.on("error",(function(e){m--,f&&f.end(),i.stdin.end(),h=new Error(d+" failed. "+e.message),0==m&&r.reject(h)})),_.on("close",(function(e,t){m--,0==e||c.ignoreReturnCode||(y=!1,v=p=e),n._debug("success of first tool:"+y),f&&f.end(),i.stdin.end(),0==m&&(h?r.reject(h):r.resolve(v))}));i.stdout.on("data",(function(e){n.emit("stdout",e),c.silent||c.outStream.write(e),n._processLineBuffer(e,"",(function(e){n.emit("stdline",e)}))}));return i.stderr.on("data",(function(e){(n.emit("stderr",e),a=!c.failOnStdErr,c.silent)||(c.failOnStdErr?c.errStream:c.outStream).write(e);n._processLineBuffer(e,"",(function(e){n.emit("errline",e)}))})),i.on("error",(function(e){m--,h=new Error(g+" failed. "+e.message),0==m&&r.reject(h)})),i.on("close",(function(e,t){m--,n._debug("rc:"+e),v=e,"".length>0&&n.emit("stdline",""),"".length>0&&n.emit("errline",""),0==e||c.ignoreReturnCode||(a=!1),n._debug("success:"+a),y?a||(h=new Error(g+" failed with return code: "+e)):h=new Error(d+" failed with return code: "+p),0==m&&(h?r.reject(h):r.resolve(v))})),r.promise},t.prototype.arg=function(e){return e?(e instanceof Array?(this._debug(this.toolPath+" arg: "+JSON.stringify(e)),this.args=this.args.concat(e)):"string"==typeof e&&(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(e.trim())),this):this},t.prototype.line=function(e){return e?(this._debug(this.toolPath+" arg: "+e),this.args=this.args.concat(this._argStringToArray(e)),this):this},t.prototype.argIf=function(e,t){return e&&this.arg(t),this},t.prototype.pipeExecOutputToTool=function(e,t){return this.pipeOutputToTool=e,this.pipeOutputToFile=t,this},t.prototype.exec=function(e){var t=this;if(this.pipeOutputToTool)return this.execWithPiping(this.pipeOutputToTool,e);var n=o.defer();this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));var r=this._cloneExecOptions(e);r.silent||r.outStream.write(this._getCommandString(r)+s.EOL);var i=new p(r,this.toolPath);i.on("debug",(function(e){t._debug(e)}));var a=u.spawn(this._getSpawnFileName(),this._getSpawnArgs(r),this._getSpawnOptions(e));a.stdout.on("finish",(function(){r.silent||r.outStream.write(s.EOL)}));a.stdout.on("data",(function(e){t.emit("stdout",e),r.silent||r.outStream.write(e),t._processLineBuffer(e,"",(function(e){t.emit("stdline",e)}))}));return a.stderr.on("data",(function(e){(i.processStderr=!0,t.emit("stderr",e),r.silent)||(r.failOnStdErr?r.errStream:r.outStream).write(e);t._processLineBuffer(e,"",(function(e){t.emit("errline",e)}))})),a.on("error",(function(e){i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),a.on("exit",(function(e,n){i.processExitCode=e,i.processExited=!0,t._debug("Exit code "+e+" received from tool '"+t.toolPath+"'"),i.CheckComplete()})),a.on("close",(function(e,n){i.processExitCode=e,i.processExited=!0,i.processClosed=!0,t._debug("STDIO streams have closed for tool '"+t.toolPath+"'"),i.CheckComplete()})),i.on("done",(function(e,r){"".length>0&&t.emit("stdline",""),"".length>0&&t.emit("errline",""),a.removeAllListeners(),e?n.reject(e):n.resolve(r)})),n.promise},t.prototype.execSync=function(e){var t=this;this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args.forEach((function(e){t._debug(" "+e)}));(e=this._cloneExecOptions(e)).silent||e.outStream.write(this._getCommandString(e)+s.EOL);var n=u.spawnSync(this._getSpawnFileName(),this._getSpawnArgs(e),this._getSpawnSyncOptions(e));!e.silent&&n.stdout&&n.stdout.length>0&&e.outStream.write(n.stdout),!e.silent&&n.stderr&&n.stderr.length>0&&e.errStream.write(n.stderr);var r={code:n.status,error:n.error};return r.stdout=n.stdout?n.stdout.toString():"",r.stderr=n.stderr?n.stderr.toString():"",r},t}(a.EventEmitter);t.ToolRunner=d;var p=function(e){function t(t,n){var r=e.call(this)||this;if(r.delay=1e4,r.timeout=null,!n)throw new Error("toolPath must not be empty");r.options=t,r.toolPath=n;var i=process.env.TASKLIB_TEST_TOOLRUNNER_EXITDELAY;return i&&(r.delay=parseInt(i)),r}return i(t,e),t.prototype.CheckComplete=function(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(t.HandleTimeout,this.delay,this)))},t.prototype._debug=function(e){this.emit("debug",e)},t.prototype._setResult=function(){var e;this.processExited&&(this.processError?e=new Error(c._loc("LIB_ProcessError",this.toolPath,this.processError)):0==this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(c._loc("LIB_ProcessStderr",this.toolPath))):e=new Error(c._loc("LIB_ProcessExitCode",this.toolPath,this.processExitCode))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)},t.HandleTimeout=function(e){e.done||(!e.processClosed&&e.processExited&&(console.log(c._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath)),e._debug(c._loc("LIB_StdioNotClosed",e.delay/1e3,e.toolPath))),e._setResult())},t}(a.EventEmitter)},"./node_modules/azure-pipelines-task-lib/vault.js": /*!********************************************************!*\ !*** ./node_modules/azure-pipelines-task-lib/vault.js ***! \********************************************************/ @@ -30,11 +30,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js ***! \********************************************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),u=n(/*! fs */"fs");var c;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(c=t.HttpCodes||(t.HttpCodes={}));const l=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={})),t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===c.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const u="https:"===i.parse(e).protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=u?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=u?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=u?s.globalAgent:o.globalAgent),u&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),u&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! tunnel */"./node_modules/tunnel/index.js"),u=n(/*! fs */"fs");var c;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(c=t.HttpCodes||(t.HttpCodes={}));const l=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];class d{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let t="";this.message.on("data",e=>{t+=e}),this.message.on("end",()=>{e(t)})})))}}var p;t.HttpClientResponse=d,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY"}(p||(p={}));t.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._maxRedirects=50,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,this._httpProxy=n.proxy,n.proxy&&n.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],n.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=n.cert,this._certConfig&&this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig&&this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig&&this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8")),null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive))}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,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n);if(o&&o.message&&o.message.statusCode===c.Unauthorized){let e;for(let t=0;t0;){const t=o.message.headers.location;if(!t)break;yield o.readBody(),r=this._prepareRequest(e,t,i),o=yield this.requestRaw(r,n),s--}return o}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new d(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=i.parse(t);const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=n||{},r.options.headers["User-Agent"]=this.userAgent,r.options.agent=this._getAgent(t),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_getAgent(e){let t,n=this._getProxy(e),r=n.proxyUrl&&n.proxyUrl.hostname&&!this._isBypassProxy(e);if(this._keepAlive&&r&&(t=this._proxyAgent),this._keepAlive&&!r&&(t=this._agent),t)return t;const u="https:"===i.parse(e).protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||o.globalAgent.maxSockets),r){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.proxyAuth,host:n.proxyUrl.hostname,port:n.proxyUrl.port}};let r;const i="https:"===n.proxyUrl.protocol;r=u?i?a.httpsOverHttps:a.httpsOverHttp:i?a.httpOverHttps:a.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=u?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=u?s.globalAgent:o.globalAgent),u&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),u&&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,n,r="https:"===i.parse(e).protocol,o=this._httpProxy,s=process.env[p.HTTPS_PROXY],a=process.env[p.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isBypassProxy(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e)&&(t=!0)}),t}}},"./node_modules/azure-pipelines-tool-lib/tool.js": /*!*******************************************************!*\ !*** ./node_modules/azure-pipelines-tool-lib/tool.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! typed-rest-client/HttpClient */"./node_modules/azure-pipelines-tool-lib/node_modules/typed-rest-client/HttpClient.js"),o=n(/*! path */"path"),s=n(/*! os */"os"),a=n(/*! process */"process"),u=n(/*! fs */"fs"),c=n(/*! semver */"./node_modules/semver/semver.js"),l=n(/*! azure-pipelines-task-lib/task */"./node_modules/azure-pipelines-task-lib/task.js"),d=n(/*! semver-compare */"./node_modules/semver-compare/index.js"),p=n(/*! uuid/v4 */"./node_modules/uuid/v4.js");let f={proxy:l.getHttpProxyConfiguration(),cert:l.getHttpCertConfiguration()},h=new i.HttpClient("vsts-task-installer/1.2.3",null,f);function g(e){return new Promise(t=>setTimeout(t,e))}function y(e){let t=c.clean(e);l.debug("isExplicit: "+t);let n=null!=c.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(c.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);return l.exist(r)&&l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}}),n}function _(e,t,n){let r=o.join(S(),e,c.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,c.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(j(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function j(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),c.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");let r;if(n=n||s.arch(),y(t)||(t=m(v(e,n),t)),t){t=c.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(j(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),u.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const c=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=u.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=c.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of u.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=c.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),u=o.join(r,t);return l.debug("destination file"+u),l.cp(e,u),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;esetTimeout(t,e))}function y(e){let t=c.clean(e);l.debug("isExplicit: "+t);let n=null!=c.valid(t);return l.debug("explicit? "+n),n}function m(e,t){let n;l.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(d)).length-1;r>=0;r--){let i=e[r];if(c.satisfies(i,t)){n=i;break}}return n?l.debug("matched: "+n):l.debug("match not found"),n}function v(e,t){let n=[];t=t||s.arch();let r=o.join(S(),e);if(l.exist(r)){l.ls("",[r]).forEach(e=>{if(y(e)){let i=o.join(r,e,t);l.exist(i)&&l.exist(`${i}.complete`)&&n.push(e)}})}return n}function _(e,t,n){let r=o.join(S(),e,c.clean(t),n);l.debug("destination "+r);let i=`${r}.complete`;return l.rmRF(r),l.rmRF(i),l.mkdirP(r),r}function b(e,t,n){let r=`${o.join(S(),e,c.clean(t),n)}.complete`;l.writeFile(r,""),l.debug("finished caching tool")}function w(e){return e||(e=o.join(E(),p())),l.mkdirP(e),e}function S(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.ToolsDirectory");if(!e)throw new Error("Agent.ToolsDirectory is not set");return e}function E(){l.assertAgent("2.115.0");let e=l.getVariable("Agent.TempDirectory");if(!e)throw new Error("Agent.TempDirectory is not set");return e}l.setResourcePath(o.join(__dirname,"lib.json")),t.debug=function(e){l.debug(e)},t.prependPath=function(e){if(l.assertAgent("2.115.0"),!e)throw new Error("Parameter toolPath must not be null or empty");if(!l.exist(e)||!l.stats(e).isDirectory())throw new Error("Directory does not exist: "+e);console.log(l.loc("TOOL_LIB_PrependPath",e));let t=e+o.delimiter+a.env.PATH;l.debug("new Path: "+t),a.env.PATH=t,console.log("##vso[task.prependpath]"+e)},t.isExplicitVersion=y,t.cleanVersion=function(e){return l.debug("cleaning: "+e),c.clean(e)},t.evaluateVersions=m,t.findLocalTool=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||s.arch(),!y(t)){t=m(v(e,n),t)}let r;if(t){t=c.clean(t);let i=S(),s=o.join(i,e,t,n);l.debug("checking cache: "+s),l.exist(s)&&l.exist(`${s}.complete`)?(console.log(l.loc("TOOL_LIB_FoundInCache",e,t,n)),r=s):l.debug("not found")}return r},t.findLocalToolVersions=v,t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,s)=>r(this,void 0,void 0,(function*(){try{var a;if(l.debug(t),t=t||p(),a=o.isAbsolute(t)?t:o.join(E(),t),l.mkdirP(o.dirname(a)),console.log(l.loc("TOOL_LIB_Downloading",e)),l.debug("destination "+a),u.existsSync(a))throw new Error("Destination file path already exists");l.debug("downloading");const c=[i.HttpCodes.BadGateway,i.HttpCodes.ServiceUnavailable,i.HttpCodes.GatewayTimeout];let d=1;const f=3;let y=yield h.get(e);for(;d-1;)l.debug(`Download attempt "${d}" of "${f}" failed with status code "${y.message.statusCode}".`),d+=1,yield g(1e3),l.debug(`Downloading attempt "${d}" of "${f}"`),y=yield h.get(e);if(200!=y.message.statusCode){let n=new Error("Unexpected HTTP response: "+y.message.statusCode);throw n.httpStatusCode=y.message.statusCode,l.debug(`Failed to download "${t}" from "${e}". Code(${y.message.statusCode}) Message(${y.message.statusMessage})`),n}l.debug("creating stream");let m=u.createWriteStream(a);m.on("open",e=>r(this,void 0,void 0,(function*(){try{y.message.pipe(m).on("close",()=>{l.debug("download complete"),n(a)})}catch(e){s(e)}}))),m.on("error",e=>{m.end(),s(e)})}catch(e){s(e)}})))}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=c.clean(n),i=i||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",t,n,i)),l.debug("source dir: "+e),!l.stats(e).isDirectory())throw new Error("sourceDir is not a directory");let r=_(t,n,i);for(let t of u.readdirSync(e)){let n=o.join(e,t);l.cp(n,r+"/","-r")}return b(t,n,i),r}))},t.cacheFile=function(e,t,n,i,a){return r(this,void 0,void 0,(function*(){if(i=c.clean(i),a=a||s.arch(),console.log(l.loc("TOOL_LIB_CachingTool",n,i,a)),l.debug("source file:"+e),!l.stats(e).isFile())throw new Error("sourceFile is not a file");let r=_(n,i,a),u=o.join(r,t);return l.debug("destination file"+u),l.cp(e,u),b(n,i,a),r}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){if("win32"!=a.platform)throw new Error("extract7z() not supported on current OS");if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive")),t=w(t);let r=a.cwd();try{if(a.chdir(t),n){let t=l.tool(n).arg("x").arg("-bb1").arg("-bd").arg("-sccUTF-8").arg(e);yield t.exec()}else{let n=`& '${o.join(__dirname,"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,"")}'`,r=l.which("powershell",!0),i=l.tool(r).line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(n);i.on("stdout",e=>{a.stdout.write(e)}),i.on("stderr",e=>{a.stderr.write(e)}),yield i.exec({silent:!0})}}finally{a.chdir(r)}return t}))},t.extractTar=function(e,t){return r(this,void 0,void 0,(function*(){console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t),r=l.tool("tar");return r.arg(["xzC",n,"-f",e]),yield r.exec(),n}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");console.log(l.loc("TOOL_LIB_ExtractingArchive"));let n=w(t);if("win32"==a.platform){let t=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}', '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}')`,r=o.join(a.env.windir,"system32","chcp.com");yield l.exec(r,"65001");let i=l.tool("powershell").line("-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command").arg(t);yield i.exec()}else{let t=l.tool("unzip").arg(e);yield t.exec({cwd:n})}return n}))},t.scrape=function(e,t){return r(this,void 0,void 0,(function*(){let n=(yield(yield h.get(e)).readBody()).match(t),r={},i=[];for(let e=0;e=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)u=s.body.split(/\.\./);else if(1===(u=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,u=o.split(",");u[u.length-1]+="{"+s+"}";var c=e(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),n.push.apply(n,u),n}(s.body)).length&&1===(u=e(u[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+u[0]+e}));var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(u[0]),S=l(u[1]),j=Math.max(u[0].length,u[1].length),x=3==u.length?Math.abs(l(u[2])):1,E=h;S0){var k=new Array(P+1).join("0");O=A<0?"-"+k+O.slice(1):k+O}}v.push(O)}}else v=r(u,(function(t){return e(t,!1)}));for(var C=0;C=t}},"./node_modules/concat-map/index.js": +/*! no static exports found */function(e,t,n){var r=n(/*! concat-map */"./node_modules/concat-map/index.js"),i=n(/*! balanced-match */"./node_modules/balanced-match/index.js");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var u,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),y=c||d,m=s.body.indexOf(",")>=0;if(!y&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(y)u=s.body.split(/\.\./);else{if(1===(u=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,s=r.body,a=r.post,u=o.split(",");u[u.length-1]+="{"+s+"}";var c=e(a);a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c));return n.push.apply(n,u),n}(s.body)).length)if(1===(u=e(u[0],!1).map(p)).length)return(b=s.post.length?e(s.post,!1):[""]).map((function(e){return s.pre+u[0]+e}))}var v,_=s.pre,b=s.post.length?e(s.post,!1):[""];if(y){var w=l(u[0]),S=l(u[1]),E=Math.max(u[0].length,u[1].length),j=3==u.length?Math.abs(l(u[2])):1,x=h;S0){var P=new Array(k+1).join("0");O=A<0?"-"+P+O.slice(1):P+O}}v.push(O)}}else v=r(u,(function(t){return e(t,!1)}));for(var R=0;R=t}},"./node_modules/concat-map/index.js": /*!******************************************!*\ !*** ./node_modules/concat-map/index.js ***! \******************************************/ @@ -94,7 +94,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!**************************************************************!*\ !*** ./node_modules/inversify/lib/bindings/binding_count.js ***! \**************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js": /*!************************************************************!*\ !*** ./node_modules/inversify/lib/constants/error_msgs.js ***! \************************************************************/ @@ -102,7 +102,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/literal_types.js ***! \***************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js": /*!***************************************************************!*\ !*** ./node_modules/inversify/lib/constants/metadata_keys.js ***! \***************************************************************/ @@ -114,7 +114,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_module.js ***! \******************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js");t.ContainerModule=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=function(e){this.id=r.id(),this.registry=e}},"./node_modules/inversify/lib/container/container_snapshot.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var o=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=o},"./node_modules/inversify/lib/container/container_snapshot.js": /*!********************************************************************!*\ !*** ./node_modules/inversify/lib/container/container_snapshot.js ***! \********************************************************************/ @@ -142,11 +142,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************!*\ !*** ./node_modules/inversify/lib/planning/plan.js ***! \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Plan=function(e,t){this.parentContext=e,this.rootRequest=t}},"./node_modules/inversify/lib/planning/planner.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/planner.js ***! \********************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),u=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),c=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),p=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),f=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function g(e){return e._bindingDictionary}function y(e,t,n,o,s){var a,c=m(n.container,s.serviceIdentifier);return c.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),c=m(n.container,s.serviceIdentifier)),a=t?c:c.filter((function(e){var t=new f.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=u.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=u.listMetadataForTarget(s,n),a+=u.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;throw s=u.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s,a+=u.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,a,s,n.container),a}function m(e,t){var n=[],r=g(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=g,t.plan=function(e,t,n,r,g,m,v,_){void 0===_&&(_=!1);var b=new c.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,u=new l.Metadata(a,n),c=new h.Target(t,"",n,u);if(void 0!==i){var d=new l.Metadata(i,o);c.metadata.push(d)}return c}(n,r,g,0,m,v);try{return function e(t,n,r,s,a,u){var c,l;if(null===a){c=y(t,n,s,null,u),l=new f.Request(r,s,null,c,u);var h=new d.Plan(s,l);s.addPlan(h)}else c=y(t,n,s,a,u),l=a.addChildRequest(u.serviceIdentifier,c,u);c.forEach((function(n){var r=null;if(u.isArray())r=l.addChildRequest(n.serviceIdentifier,n,u);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=p.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var c=p.getBaseClassDependencyCount(t,n.implementationType);if(a.length0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=0,a=Object.keys(r);s0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var u=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function c(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var c=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(c)}var p=s.userGeneratedMetadata,f=Object.keys(p),h=function(e,t,n,r,i){for(var o=[],s=0;s0?f.length:n.length),g=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=Object.keys(r),a=0,c=s;a0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js": /*!********************************************************!*\ !*** ./node_modules/inversify/lib/planning/request.js ***! \********************************************************/ @@ -162,11 +162,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*******************************************************!*\ !*** ./node_modules/inversify/lib/planning/target.js ***! \*******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var u=null;"string"==typeof a?u=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(u=a),null!==u&&this.metadata.push(u)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t0?(a=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n),u=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(u=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)):u=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,u),u}},"./node_modules/inversify/lib/resolution/resolver.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,u=null;if(t.length>0){var c=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);a=c,u=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(u=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else u=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,u),u}},"./node_modules/inversify/lib/resolution/resolver.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/resolution/resolver.js ***! \***********************************************************/ @@ -198,7 +198,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*****************************************************************!*\ !*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***! \*****************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js": /*!***********************************************************!*\ !*** ./node_modules/inversify/lib/utils/binding_utils.js ***! \***********************************************************/ @@ -218,7 +218,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!*********************************************!*\ !*** ./node_modules/minimatch/minimatch.js ***! \*********************************************/ -/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),u=/\/+/;function c(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,c(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,c(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(u)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",u=!!n.nocase,c=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",u=!0;break;case"?":o+="[^/]",u=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var P=d[O],k=o.slice(0,P.reStart),C=o.slice(P.reStart,P.reEnd-8),R=o.slice(P.reEnd-8,P.reEnd),N=o.slice(P.reEnd);R+=N;var I=k.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(c=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,c)):(c=d.match(l),this.debug("pattern match",l,d,c)),!c)return!1}if(o===a&&s===u)return!0;if(o===a)return n;if(s===u)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": +/*! no static exports found */function(e,t,n){e.exports=l,l.Minimatch=d;var r={sep:"/"};try{r=n(/*! path */"path")}catch(e){}var i=l.GLOBSTAR=d.GLOBSTAR={},o=n(/*! brace-expansion */"./node_modules/brace-expansion/index.js"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var u=/\/+/;function c(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function l(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function p(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(n,r,i){return l(n,e,t)}},l.defaults=function(e){if(!e||!Object.keys(e).length)return l;var t=l,n=function(n,r,i){return t.minimatch(n,r,c(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,c(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?l.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(u)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",u=!!n.nocase,c=!1,l=[],d=[],p=!1,h=-1,g=-1,y="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function v(){if(r){switch(r){case"*":o+="[^/]*?",u=!0;break;case"?":o+="[^/]",u=!0;break;default:o+="\\"+r}m.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,b=0,w=e.length;b-1;O--){var k=d[O],P=o.slice(0,k.reStart),R=o.slice(k.reStart,k.reEnd-8),C=o.slice(k.reEnd-8,k.reEnd),N=o.slice(k.reEnd);C+=N;var I=P.split("(").length-1,M=N;for(b=0;b=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(c=r.nocase?d.toLowerCase()===l.toLowerCase():d===l,this.debug("string match",l,d,c)):(c=d.match(l),this.debug("pattern match",l,d,c)),!c)return!1}if(o===a&&s===u)return!0;if(o===a)return n;if(s===u)return o===a-1&&""===e[o];throw new Error("wtf?")}},"./node_modules/q/q.js": /*!*****************************!*\ !*** ./node_modules/q/q.js ***! \*****************************/ @@ -249,7 +249,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va * limitations under the License. * */ -!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),u(t,r);for(;s.length;)u(t=s.pop());n=!1}function u(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var c=new MessageChannel;c.port1.onmessage=function(){r=l,c.port1.onmessage=a,a()};var l=function(){c.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,u=s(Array.prototype.slice),c=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:C(e)?function(e){var t=x();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):V(e)}a="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e},S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var j=1;function x(){var t,n=[],r=[],i=p(x.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=u(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=P(t);return k(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=j++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),c(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(V(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||c(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function E(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return E((function(t,n){for(var r=0,i=e.length;r2?e.resolve(u(arguments,1)):e.resolve(n)}},S.Promise=E,S.promise=E,E.race=T,E.all=H,E.reject=U,E.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=x(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=P,S.isPromise=k,S.isPromiseAlike=C,S.isPending=function(e){return k(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!k(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return k(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R,N,I,M=[],B=[],D=[],F=!0;function L(){M.length=0,B.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(B,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(D,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),D.splice(n,1))})),B.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(B,e)&&(process.emit("unhandledRejection",t,e),D.push(e))})),B.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function V(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function q(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=x();return c(e,(function(r,i,o){var s;k(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return c(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0==--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=V,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=q,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return q([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=x();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,u(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,u(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,u(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,u(arguments)])},S.fbind=function(e){var t=S(e),n=u(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(u(arguments))])}},A.prototype.fbind=function(){var e=this,t=u(arguments);return function(){return e.dispatch("apply",[this,t.concat(u(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(R=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),R.apply(R,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=x(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=x();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=x(),n=u(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=u(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=u(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=u(arguments,1);return function(){var n=t.concat(u(arguments)),r=x();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=u(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=u(arguments,2);return function(){var r=n.concat(u(arguments)),i=x();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=u(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=u(t||[]),r=x();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=u(arguments,2),r=x();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=u(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": +!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=w(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,o=!1,s=[];function a(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),u(t,r);for(;s.length;)u(t=s.pop());n=!1}function u(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(a,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null},n||(n=!0,r())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)o=!0,r=function(){process.nextTick(a)};else if("function"==typeof setImmediate)r="undefined"!=typeof window?setImmediate.bind(window,a):function(){setImmediate(a)};else if("undefined"!=typeof MessageChannel){var c=new MessageChannel;c.port1.onmessage=function(){r=l,c.port1.onmessage=a,a()};var l=function(){c.port2.postMessage(0)};r=function(){setTimeout(a,0),l()}}else r=function(){setTimeout(a,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,r())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var a,u=s(Array.prototype.slice),c=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;ni.stackCounter)&&(f(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var o=function(e){for(var t=e.split("\n"),n=[],r=0;r=n&&o<=z}function w(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=_(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function S(e){return e instanceof A?e:R(e)?function(e){var t=j();return S.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):q(e)}S.resolve=S,S.nextTick=i,S.longStackSupport=!1;var E=1;function j(){var t,n=[],r=[],i=p(j.prototype),o=p(A.prototype);if(o.promiseDispatch=function(e,i,o){var s=u(arguments);n?(n.push(s),"when"===i&&o[1]&&r.push(o[1])):S.nextTick((function(){t.promiseDispatch.apply(t,s)}))},o.valueOf=function(){if(n)return o;var e=k(t);return P(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},S.longStackSupport&&e)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1),o.stackCounter=E++}function s(i){t=i,S.longStackSupport&&e&&(o.source=i),c(n,(function(e,t){S.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=o,i.resolve=function(e){t||s(S(e))},i.fulfill=function(e){t||s(q(e))},i.reject=function(e){t||s(U(e))},i.notify=function(e){t||c(r,(function(t,n){S.nextTick((function(){n(e)}))}),void 0)},i}function x(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=j();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return x((function(t,n){for(var r=0,i=e.length;r2?e.resolve(u(arguments,1)):e.resolve(n)}},S.Promise=x,S.promise=x,x.race=T,x.all=H,x.reject=U,x.resolve=S,S.passByCopy=function(e){return e},A.prototype.passByCopy=function(){return this},S.join=function(e,t){return S(e).join(t)},A.prototype.join=function(e){return S([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},S.race=T,A.prototype.race=function(){return this.then(S.race)},S.makePromise=A,A.prototype.toString=function(){return"[object Promise]"},A.prototype.then=function(e,t,n){var r=this,i=j(),o=!1;return S.nextTick((function(){r.promiseDispatch((function(t){o||(o=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))}),"when",[function(e){o||(o=!0,i.resolve(function(e){if("function"==typeof t){v(e,r);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!S.onerror)throw e;S.onerror(e)}r||i.notify(t)}]),i.promise},S.tap=function(e,t){return S(e).tap(t)},A.prototype.tap=function(e){return e=S(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},S.when=O,A.prototype.thenResolve=function(e){return this.then((function(){return e}))},S.thenResolve=function(e,t){return S(e).thenResolve(t)},A.prototype.thenReject=function(e){return this.then((function(){throw e}))},S.thenReject=function(e,t){return S(e).thenReject(t)},S.nearer=k,S.isPromise=P,S.isPromiseAlike=R,S.isPending=function(e){return P(e)&&"pending"===e.inspect().state},A.prototype.isPending=function(){return"pending"===this.inspect().state},S.isFulfilled=function(e){return!P(e)||"fulfilled"===e.inspect().state},A.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},S.isRejected=function(e){return P(e)&&"rejected"===e.inspect().state},A.prototype.isRejected=function(){return"rejected"===this.inspect().state};var C,N,I,M=[],D=[],B=[],F=!0;function L(){M.length=0,D.length=0,F||(F=!0)}function U(e){var t=A({when:function(t){return t&&function(e){if(F){var t=l(D,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){var n=l(B,e);-1!==n&&(process.emit("rejectionHandled",M[t],e),B.splice(n,1))})),D.splice(t,1),M.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof process&&"function"==typeof process.emit&&S.nextTick.runAfter((function(){-1!==l(D,e)&&(process.emit("unhandledRejection",t,e),B.push(e))})),D.push(e),t&&void 0!==t.stack?M.push(t.stack):M.push("(no stack) "+t))}(t,e),t}function q(e){return A({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function V(e,t,n){return S(e).spread(t,n)}function G(e,t,n){return S(e).dispatch(t,n)}function H(e){return O(e,(function(e){var t=0,n=j();return c(e,(function(r,i,o){var s;P(i)&&"fulfilled"===(s=i.inspect()).state?e[o]=s.value:(++t,O(i,(function(r){e[o]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:o,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return S.resolve();var t=S.defer(),n=0;return c(e,(function(r,i,o){var s=e[o];n++,O(s,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:o,value:e})}))}),void 0),t.promise}function $(e){return O(e,(function(e){return e=d(e,S),O(H(d(e,(function(e){return O(e,r,r)}))),(function(){return e}))}))}S.resetUnhandledRejections=L,S.getUnhandledReasons=function(){return M.slice()},S.stopUnhandledRejectionTracking=function(){L(),F=!1},L(),S.reject=U,S.fulfill=q,S.master=function(e){return A({isDef:function(){}},(function(t,n){return G(e,t,n)}),(function(){return S(e).inspect()}))},S.spread=V,A.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},S.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return U(e)}return o.done?S(o.value):O(o.value,r,i)}try{o=n[e](t)}catch(e){return m(e)?S(e.value):U(e)}return O(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},S.spawn=function(e){S.done(S.async(e)())},S.return=function(e){throw new a(e)},S.promised=function(e){return function(){return V([this,H(arguments)],(function(t,n){return e.apply(t,n)}))}},S.dispatch=G,A.prototype.dispatch=function(e,t){var n=this,r=j();return S.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},S.get=function(e,t){return S(e).dispatch("get",[t])},A.prototype.get=function(e){return this.dispatch("get",[e])},S.set=function(e,t,n){return S(e).dispatch("set",[t,n])},A.prototype.set=function(e,t){return this.dispatch("set",[e,t])},S.del=S.delete=function(e,t){return S(e).dispatch("delete",[t])},A.prototype.del=A.prototype.delete=function(e){return this.dispatch("delete",[e])},S.mapply=S.post=function(e,t,n){return S(e).dispatch("post",[t,n])},A.prototype.mapply=A.prototype.post=function(e,t){return this.dispatch("post",[e,t])},S.send=S.mcall=S.invoke=function(e,t){return S(e).dispatch("post",[t,u(arguments,2)])},A.prototype.send=A.prototype.mcall=A.prototype.invoke=function(e){return this.dispatch("post",[e,u(arguments,1)])},S.fapply=function(e,t){return S(e).dispatch("apply",[void 0,t])},A.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},S.try=S.fcall=function(e){return S(e).dispatch("apply",[void 0,u(arguments,1)])},A.prototype.fcall=function(){return this.dispatch("apply",[void 0,u(arguments)])},S.fbind=function(e){var t=S(e),n=u(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(u(arguments))])}},A.prototype.fbind=function(){var e=this,t=u(arguments);return function(){return e.dispatch("apply",[this,t.concat(u(arguments))])}},S.keys=function(e){return S(e).dispatch("keys",[])},A.prototype.keys=function(){return this.dispatch("keys",[])},S.all=H,A.prototype.all=function(){return H(this)},S.any=W,A.prototype.any=function(){return W(this)},S.allResolved=(C=$,N="allResolved",I="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(N+" is deprecated, use "+I+" instead.",new Error("").stack),C.apply(C,arguments)}),A.prototype.allResolved=function(){return $(this)},S.allSettled=function(e){return S(e).allSettled()},A.prototype.allSettled=function(){return this.then((function(e){return H(d(e,(function(e){function t(){return e.inspect()}return(e=S(e)).then(t,t)})))}))},S.fail=S.catch=function(e,t){return S(e).then(void 0,t)},A.prototype.fail=A.prototype.catch=function(e){return this.then(void 0,e)},S.progress=function(e,t){return S(e).then(void 0,void 0,t)},A.prototype.progress=function(e){return this.then(void 0,void 0,e)},S.fin=S.finally=function(e,t){return S(e).finally(t)},A.prototype.fin=A.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=S(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},S.done=function(e,t,n,r){return S(e).done(t,n,r)},A.prototype.done=function(e,t,n){var r=function(e){S.nextTick((function(){if(v(e,i),!S.onerror)throw e;S.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},S.timeout=function(e,t,n){return S(e).timeout(t,n)},A.prototype.timeout=function(e,t){var n=j(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},S.delay=function(e,t){return void 0===t&&(t=e,e=void 0),S(e).delay(t)},A.prototype.delay=function(e){return this.then((function(t){var n=j();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},S.nfapply=function(e,t){return S(e).nfapply(t)},A.prototype.nfapply=function(e){var t=j(),n=u(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},S.nfcall=function(e){var t=u(arguments,1);return S(e).nfapply(t)},A.prototype.nfcall=function(){var e=u(arguments),t=j();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},S.nfbind=S.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=u(arguments,1);return function(){var n=t.concat(u(arguments)),r=j();return n.push(r.makeNodeResolver()),S(e).fapply(n).fail(r.reject),r.promise}},A.prototype.nfbind=A.prototype.denodeify=function(){var e=u(arguments);return e.unshift(this),S.denodeify.apply(void 0,e)},S.nbind=function(e,t){var n=u(arguments,2);return function(){var r=n.concat(u(arguments)),i=j();function o(){return e.apply(t,arguments)}return r.push(i.makeNodeResolver()),S(o).fapply(r).fail(i.reject),i.promise}},A.prototype.nbind=function(){var e=u(arguments,0);return e.unshift(this),S.nbind.apply(void 0,e)},S.nmapply=S.npost=function(e,t,n){return S(e).npost(t,n)},A.prototype.nmapply=A.prototype.npost=function(e,t){var n=u(t||[]),r=j();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},S.nsend=S.nmcall=S.ninvoke=function(e,t){var n=u(arguments,2),r=j();return n.push(r.makeNodeResolver()),S(e).dispatch("post",[t,n]).fail(r.reject),r.promise},A.prototype.nsend=A.prototype.nmcall=A.prototype.ninvoke=function(e){var t=u(arguments,1),n=j();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},S.nodeify=function(e,t){return S(e).nodeify(t)},A.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){S.nextTick((function(){e(null,t)}))}),(function(t){S.nextTick((function(){e(t)}))}))},S.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var z=w();return S}))},"./node_modules/qs/lib/formats.js": /*!****************************************!*\ !*** ./node_modules/qs/lib/formats.js ***! \****************************************/ @@ -265,11 +265,11 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!y?u(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[g(y?n:u(n,p.encoder,m,"key"))+"="+g(u(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var j=0;j0?v+m:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,g,y,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!y?u(n,p.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[g(y?n:u(n,p.encoder,m,"key"))+"="+g(u(_,p.encoder,m,"value"))]:[g(n)+"="+g(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var E=0;E0?v+m:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": +/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},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)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js": /*!**************************************************!*\ !*** ./node_modules/reflect-metadata/Reflect.js ***! \**************************************************/ @@ -288,7 +288,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!T(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=k(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=k(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=k(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!x(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!S(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!S(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return!0;var i=R(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(g(t,n,r))return y(t,n,r);var i=R(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!S(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=R(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -296,11 +296,11 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var j=s++;o[j]=o[u]+"|x|X|\\*";var x=s++;o[x]=o[a]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[x]+")(?:\\.("+o[x]+")(?:\\.("+o[x]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[E]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[k]+"\\s+",i[C]=new RegExp(o[C],"g");var R=s++;o[R]="^"+o[k]+o[E]+"$";var N=s++;o[N]="^"+o[k]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var B=s++;o[B]="^"+o[I]+o[E]+"$";var D=s++;o[D]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[E]+")",i[U]=new RegExp(o[U],"g");var V=s++;o[V]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var q=s++;o[q]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",u=">=";break;case"<":i=X,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[q]:i[V];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[D]:i[B];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);return null==t?null:W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[g]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var S=s++;o[S]="((?:<|>)?=?)";var E=s++;o[E]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var x=s++;o[x]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var T=s++;o[T]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[m]+"?)?)?";var A=s++;o[A]="^"+o[S]+"\\s*"+o[x]+"$";var O=s++;o[O]="^"+o[S]+"\\s*"+o[T]+"$";var k=s++;o[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var R=s++;o[R]="(\\s*)"+o[P]+"\\s+",i[R]=new RegExp(o[R],"g");var C=s++;o[C]="^"+o[P]+o[x]+"$";var N=s++;o[N]="^"+o[P]+o[T]+"$";var I=s++;o[I]="(?:\\^)";var M=s++;o[M]="(\\s*)"+o[I]+"\\s+",i[M]=new RegExp(o[M],"g");var D=s++;o[D]="^"+o[I]+o[x]+"$";var B=s++;o[B]="^"+o[I]+o[T]+"$";var F=s++;o[F]="^"+o[S]+"\\s*("+b+")$|^$";var L=s++;o[L]="^"+o[S]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[S]+"\\s*("+b+"|"+o[x]+")",i[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[x]+")\\s+-\\s+("+o[x]+")\\s*$";var V=s++;o[V]="^\\s*("+o[T]+")\\s+-\\s+("+o[T]+")\\s*$";var G=s++;o[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=Y;var z=/^[0-9]+$/;function Y(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function X(e,t,n){return K(e,t,n)<0}function Q(e,t,n){return 0===K(e,t,n)}function Z(e,t,n){return 0!==K(e,t,n)}function ee(e,t,n){return K(e,t,n)>=0}function te(e,t,n){return K(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return X(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=K,t.compareLoose=function(e,t){return K(e,t,!0)},t.rcompare=function(e,t,n){return K(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=X,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=X,a=">",u=">=";break;case"<":i=X,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[F]:i[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[V]:i[q];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[R],"$1~")).replace(i[M],"$1^")).split(/\s+/).join(" ");var o=t?i[F]:i[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[N]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[A];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/shelljs/shell.js": /*!***************************************!*\ !*** ./node_modules/shelljs/shell.js ***! \***************************************/ -/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var u=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",u);var c=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",c);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var j=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",j),t.exit=process.exit,t.env=process.env;var x=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",x,{notUnix:!0});var E=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",E);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": +/*! no static exports found */function(e,t,n){var r=n(/*! ./src/common */"./node_modules/shelljs/src/common.js"),i=n(/*! ./src/cd */"./node_modules/shelljs/src/cd.js");t.cd=r.wrap("cd",i);var o=n(/*! ./src/pwd */"./node_modules/shelljs/src/pwd.js");t.pwd=r.wrap("pwd",o);var s=n(/*! ./src/ls */"./node_modules/shelljs/src/ls.js");t.ls=r.wrap("ls",s);var a=n(/*! ./src/find */"./node_modules/shelljs/src/find.js");t.find=r.wrap("find",a);var u=n(/*! ./src/cp */"./node_modules/shelljs/src/cp.js");t.cp=r.wrap("cp",u);var c=n(/*! ./src/rm */"./node_modules/shelljs/src/rm.js");t.rm=r.wrap("rm",c);var l=n(/*! ./src/mv */"./node_modules/shelljs/src/mv.js");t.mv=r.wrap("mv",l);var d=n(/*! ./src/mkdir */"./node_modules/shelljs/src/mkdir.js");t.mkdir=r.wrap("mkdir",d);var p=n(/*! ./src/test */"./node_modules/shelljs/src/test.js");t.test=r.wrap("test",p);var f=n(/*! ./src/cat */"./node_modules/shelljs/src/cat.js");t.cat=r.wrap("cat",f);var h=n(/*! ./src/to */"./node_modules/shelljs/src/to.js");String.prototype.to=r.wrap("to",h);var g=n(/*! ./src/toEnd */"./node_modules/shelljs/src/toEnd.js");String.prototype.toEnd=r.wrap("toEnd",g);var y=n(/*! ./src/sed */"./node_modules/shelljs/src/sed.js");t.sed=r.wrap("sed",y);var m=n(/*! ./src/grep */"./node_modules/shelljs/src/grep.js");t.grep=r.wrap("grep",m);var v=n(/*! ./src/which */"./node_modules/shelljs/src/which.js");t.which=r.wrap("which",v);var _=n(/*! ./src/echo */"./node_modules/shelljs/src/echo.js");t.echo=_;var b=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").dirs;t.dirs=r.wrap("dirs",b);var w=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").pushd;t.pushd=r.wrap("pushd",w);var S=n(/*! ./src/dirs */"./node_modules/shelljs/src/dirs.js").popd;t.popd=r.wrap("popd",S);var E=n(/*! ./src/ln */"./node_modules/shelljs/src/ln.js");t.ln=r.wrap("ln",E),t.exit=process.exit,t.env=process.env;var j=n(/*! ./src/exec */"./node_modules/shelljs/src/exec.js");t.exec=r.wrap("exec",j,{notUnix:!0});var x=n(/*! ./src/chmod */"./node_modules/shelljs/src/chmod.js");t.chmod=r.wrap("chmod",x);var T=n(/*! ./src/tempdir */"./node_modules/shelljs/src/tempdir.js");t.tempdir=r.wrap("tempdir",T);var A=n(/*! ./src/error */"./node_modules/shelljs/src/error.js");t.error=A,t.config=r.config},"./node_modules/shelljs/src/cat.js": /*!*****************************************!*\ !*** ./node_modules/shelljs/src/cat.js ***! \*****************************************/ @@ -312,7 +312,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!*******************************************!*\ !*** ./node_modules/shelljs/src/chmod.js ***! \*******************************************/ -/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a=(r={EXEC:1,WRITE:2,READ:4}).EXEC,u=r.WRITE,c=r.READ,l=r.EXEC<<3,d=r.WRITE<<3,p=r.READ<<3,f=r.EXEC<<6,h=r.WRITE<<6,g=r.READ<<6,y=parseInt("01000",8),m=parseInt("02000",8),v=parseInt("04000",8),_=parseInt("0770000",8);e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,b=r&_,w=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var _=s[1],S=s[2],j=s[3],x=-1!=_.indexOf("u")||"a"===_||""===_,E=-1!=_.indexOf("g")||"a"===_||""===_,T=-1!=_.indexOf("o")||"a"===_||""===_,A=-1!=j.indexOf("r"),O=-1!=j.indexOf("w"),P=-1!=j.indexOf("x"),k=-1!=j.indexOf("t"),C=-1!=j.indexOf("s"),R=0;switch(x&&(R|=(A?g:0)+(O?h:0)+(P?f:0)+(C?v:0)),E&&(R|=(A?p:0)+(O?d:0)+(P?l:0)+(C?m:0)),T&&(R|=(A?c:0)+(O?u:0)+(P?a:0)),k&&(R|=y),S){case"+":w|=R;break;case"-":w&=~R;break;case"=":w=b+R,o.statSync(n).isDirectory()&&(w|=v+m&r)}e.verbose&&log(n+" -> "+w.toString(8)),r!=w&&(!e.verbose&&e.changes&&log(n+" -> "+w.toString(8)),o.chmodSync(n,w))}else i.error("Invalid symbolic mode change: "+t)})):(w=b+parseInt(t,8),o.statSync(n).isDirectory()&&(w|=v+m&r),o.chmodSync(n,w))}}))}},"./node_modules/shelljs/src/common.js": +/*! no static exports found */function(e,t,n){var r,i=n(/*! ./common */"./node_modules/shelljs/src/common.js"),o=n(/*! fs */"fs"),s=n(/*! path */"path"),a={OTHER_EXEC:(r={EXEC:1,WRITE:2,READ:4}).EXEC,OTHER_WRITE:r.WRITE,OTHER_READ:r.READ,GROUP_EXEC:r.EXEC<<3,GROUP_WRITE:r.WRITE<<3,GROUP_READ:r.READ<<3,OWNER_EXEC:r.EXEC<<6,OWNER_WRITE:r.WRITE<<6,OWNER_READ:r.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)};e.exports=function(e,t,n){var r;n||(e.length>0&&"-"===e.charAt(0)?(n=t,t=e,e=""):i.error("You must specify a file.")),"string"==typeof n&&(n=[n]),(e=i.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"})).recursive?(r=[],i.expand(n).forEach((function e(t){var n=o.lstatSync(t);n.isSymbolicLink()||(r.push(t),n.isDirectory()&&o.readdirSync(t).forEach((function(n){e(t+"/"+n)})))}))):r=i.expand(n),r.forEach((function(n){if(n=s.resolve(n),o.existsSync(n)||i.error("File not found: "+n),!e.recursive||!o.lstatSync(n).isSymbolicLink()){var r=o.statSync(n).mode,u=r&a.TYPE_MASK,c=r;isNaN(parseInt(t,8))?t.split(",").forEach((function(t){var s=/([ugoa]*)([=\+-])([rwxXst]*)/i.exec(t);if(s){var l=s[1],d=s[2],p=s[3],f=-1!=l.indexOf("u")||"a"===l||""===l,h=-1!=l.indexOf("g")||"a"===l||""===l,g=-1!=l.indexOf("o")||"a"===l||""===l,y=-1!=p.indexOf("r"),m=-1!=p.indexOf("w"),v=-1!=p.indexOf("x"),_=-1!=p.indexOf("t"),b=-1!=p.indexOf("s"),w=0;switch(f&&(w|=(y?a.OWNER_READ:0)+(m?a.OWNER_WRITE:0)+(v?a.OWNER_EXEC:0)+(b?a.SETUID:0)),h&&(w|=(y?a.GROUP_READ:0)+(m?a.GROUP_WRITE:0)+(v?a.GROUP_EXEC:0)+(b?a.SETGID:0)),g&&(w|=(y?a.OTHER_READ:0)+(m?a.OTHER_WRITE:0)+(v?a.OTHER_EXEC:0)),_&&(w|=a.STICKY),d){case"+":c|=w;break;case"-":c&=~w;break;case"=":c=u+w,o.statSync(n).isDirectory()&&(c|=a.SETUID+a.SETGID&r)}e.verbose&&log(n+" -> "+c.toString(8)),r!=c&&(!e.verbose&&e.changes&&log(n+" -> "+c.toString(8)),o.chmodSync(n,c))}else i.error("Invalid symbolic mode change: "+t)})):(c=u+parseInt(t,8),o.statSync(n).isDirectory()&&(c|=a.SETUID+a.SETGID&r),o.chmodSync(n,c))}}))}},"./node_modules/shelljs/src/common.js": /*!********************************************!*\ !*** ./node_modules/shelljs/src/common.js ***! \********************************************/ @@ -404,11 +404,19 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={})),t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var g;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(g||(g={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[g.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[g.HTTPS_PROXY],a=process.env[g.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){return`${e.replace(/\?$/g,"")}${i.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))}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/lib/bytesToUuid.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/lib/bytesToUuid.js": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ @@ -464,7 +472,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!**************************************!*\ !*** ./src/tools/gitversion/tool.ts ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json","/output","buildserver"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: /*!*************************!*\ !*** external "assert" ***! \*************************/ @@ -524,4 +532,4 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(14)}})}])}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitreleasemanager/addasset/bundle.js b/dist/github/gitreleasemanager/addasset/bundle.js index 35fff15..e0be6c3 100644 --- a/dist/github/gitreleasemanager/addasset/bundle.js +++ b/dist/github/gitreleasemanager/addasset/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/addasset.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/addasset.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function N(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=N("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=N("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=N("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function N(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[w]+"\\s*("+_+")$|^$";var q=s++;o[q]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[q]=new RegExp(o[q],"g");var U=s++;o[U]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var V=0;V<35;V++)n(V,o[V]),i[V]||(i[V]=new RegExp(o[V]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function J(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return J(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=J,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=J,a=">",u=">=";break;case"<":i=J,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[q],"$1$2$3"),n("comparator trim",e,i[q]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var N=s++;o[N]="^"+o[w]+"\\s*"+o[S]+"$";var I=s++;o[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var C=s++;o[C]="^"+o[j]+o[A]+"$";var P=s++;o[P]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var q=s++;o[q]="^"+o[w]+"\\s*("+b+")$|^$";var B=s++;o[B]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=V(e),r=V(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[B],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[P]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[I]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitreleasemanager/close/bundle.js b/dist/github/gitreleasemanager/close/bundle.js index da0368b..6d8dba8 100644 --- a/dist/github/gitreleasemanager/close/bundle.js +++ b/dist/github/gitreleasemanager/close/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/close.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/close.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function N(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=N("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=N("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=N("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function N(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[w]+"\\s*("+_+")$|^$";var q=s++;o[q]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[q]=new RegExp(o[q],"g");var U=s++;o[U]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var V=0;V<35;V++)n(V,o[V]),i[V]||(i[V]=new RegExp(o[V]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function J(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return J(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=J,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=J,a=">",u=">=";break;case"<":i=J,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[q],"$1$2$3"),n("comparator trim",e,i[q]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var N=s++;o[N]="^"+o[w]+"\\s*"+o[S]+"$";var I=s++;o[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var C=s++;o[C]="^"+o[j]+o[A]+"$";var P=s++;o[P]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var q=s++;o[q]="^"+o[w]+"\\s*("+b+")$|^$";var B=s++;o[B]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=V(e),r=V(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[B],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[P]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[I]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitreleasemanager/create/bundle.js b/dist/github/gitreleasemanager/create/bundle.js index 0a44b16..724d147 100644 --- a/dist/github/gitreleasemanager/create/bundle.js +++ b/dist/github/gitreleasemanager/create/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/create.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/create.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function N(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=N("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=N("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=N("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function N(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[w]+"\\s*("+_+")$|^$";var q=s++;o[q]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[q]=new RegExp(o[q],"g");var U=s++;o[U]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var V=0;V<35;V++)n(V,o[V]),i[V]||(i[V]=new RegExp(o[V]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function J(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return J(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=J,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=J,a=">",u=">=";break;case"<":i=J,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[q],"$1$2$3"),n("comparator trim",e,i[q]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var N=s++;o[N]="^"+o[w]+"\\s*"+o[S]+"$";var I=s++;o[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var C=s++;o[C]="^"+o[j]+o[A]+"$";var P=s++;o[P]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var q=s++;o[q]="^"+o[w]+"\\s*("+b+")$|^$";var B=s++;o[B]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=V(e),r=V(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[B],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[P]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[I]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitreleasemanager/discard/bundle.js b/dist/github/gitreleasemanager/discard/bundle.js index 088c8c2..573f081 100644 --- a/dist/github/gitreleasemanager/discard/bundle.js +++ b/dist/github/gitreleasemanager/discard/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/discard.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/discard.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function N(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=N("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=N("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=N("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function N(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[w]+"\\s*("+_+")$|^$";var q=s++;o[q]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[q]=new RegExp(o[q],"g");var U=s++;o[U]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var V=0;V<35;V++)n(V,o[V]),i[V]||(i[V]=new RegExp(o[V]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function J(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return J(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=J,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=J,a=">",u=">=";break;case"<":i=J,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[q],"$1$2$3"),n("comparator trim",e,i[q]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var N=s++;o[N]="^"+o[w]+"\\s*"+o[S]+"$";var I=s++;o[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var C=s++;o[C]="^"+o[j]+o[A]+"$";var P=s++;o[P]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var q=s++;o[q]="^"+o[w]+"\\s*("+b+")$|^$";var B=s++;o[B]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=V(e),r=V(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[B],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[P]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[I]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitreleasemanager/open/bundle.js b/dist/github/gitreleasemanager/open/bundle.js index 8ccfc52..127ff89 100644 --- a/dist/github/gitreleasemanager/open/bundle.js +++ b/dist/github/gitreleasemanager/open/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/open.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/open.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function N(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=N("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=N("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=N("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function N(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[w]+"\\s*("+_+")$|^$";var q=s++;o[q]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[q]=new RegExp(o[q],"g");var U=s++;o[U]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var V=0;V<35;V++)n(V,o[V]),i[V]||(i[V]=new RegExp(o[V]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function J(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return J(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=J,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=J,a=">",u=">=";break;case"<":i=J,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[q],"$1$2$3"),n("comparator trim",e,i[q]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var N=s++;o[N]="^"+o[w]+"\\s*"+o[S]+"$";var I=s++;o[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var C=s++;o[C]="^"+o[j]+o[A]+"$";var P=s++;o[P]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var q=s++;o[q]="^"+o[w]+"\\s*("+b+")$|^$";var B=s++;o[B]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=V(e),r=V(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[B],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[P]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[I]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitreleasemanager/publish/bundle.js b/dist/github/gitreleasemanager/publish/bundle.js index d803b73..ee9ce12 100644 --- a/dist/github/gitreleasemanager/publish/bundle.js +++ b/dist/github/gitreleasemanager/publish/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/publish.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/publish.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function N(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=N("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=N("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=N("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function N(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[w]+"\\s*("+_+")$|^$";var q=s++;o[q]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[q]=new RegExp(o[q],"g");var U=s++;o[U]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var V=0;V<35;V++)n(V,o[V]),i[V]||(i[V]=new RegExp(o[V]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function J(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return J(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=J,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=J,a=">",u=">=";break;case"<":i=J,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[q],"$1$2$3"),n("comparator trim",e,i[q]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var N=s++;o[N]="^"+o[w]+"\\s*"+o[S]+"$";var I=s++;o[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var C=s++;o[C]="^"+o[j]+o[A]+"$";var P=s++;o[P]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var q=s++;o[q]="^"+o[w]+"\\s*("+b+")$|^$";var B=s++;o[B]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=V(e),r=V(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[B],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[P]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[I]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitreleasemanager/setup/bundle.js b/dist/github/gitreleasemanager/setup/bundle.js index 3a494d9..254ad9a 100644 --- a/dist/github/gitreleasemanager/setup/bundle.js +++ b/dist/github/gitreleasemanager/setup/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/setup.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/setup.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function N(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=N("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=N("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=N("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function N(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[w]+"\\s*("+_+")$|^$";var q=s++;o[q]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[q]=new RegExp(o[q],"g");var U=s++;o[U]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var V=0;V<35;V++)n(V,o[V]),i[V]||(i[V]=new RegExp(o[V]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function J(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return J(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=J,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=J,a=">",u=">=";break;case"<":i=J,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[q],"$1$2$3"),n("comparator trim",e,i[q]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var N=s++;o[N]="^"+o[w]+"\\s*"+o[S]+"$";var I=s++;o[I]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var C=s++;o[C]="^"+o[j]+o[A]+"$";var P=s++;o[P]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var q=s++;o[q]="^"+o[w]+"\\s*("+b+")$|^$";var B=s++;o[B]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=V(e),r=V(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[B],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[P]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[N]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[I]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitversion/execute/bundle.js b/dist/github/gitversion/execute/bundle.js index 8d33fe0..62450c0 100644 --- a/dist/github/gitversion/execute/bundle.js +++ b/dist/github/gitversion/execute/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitversion/execute.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitversion/execute.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function I(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=I("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=I("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=I("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function x(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return x(e,t,"<",n)},t.gtr=function(e,t,n){return x(e,t,">",n)},t.outside=x,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=j(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=j(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=j(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var q=s++;o[q]="^"+o[w]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[U]=new RegExp(o[U],"g");var F=s++;o[F]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var $=0;$<35;$++)n($,o[$]),i[$]||(i[$]=new RegExp(o[$]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[F];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[q],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var x=s++;o[x]="(?:~>?)";var j=s++;o[j]="(\\s*)"+o[x]+"\\s+",i[j]=new RegExp(o[j],"g");var P=s++;o[P]="^"+o[x]+o[A]+"$";var C=s++;o[C]="^"+o[x]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var q=s++;o[q]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var $=0;$<35;$++)n($,o[$]),i[$]||(i[$]=new RegExp(o[$]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[j],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[q],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -341,7 +345,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!**************************************!*\ !*** ./src/tools/gitversion/tool.ts ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json","/output","buildserver"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: /*!*************************!*\ !*** external "assert" ***! \*************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/github/gitversion/setup/bundle.js b/dist/github/gitversion/setup/bundle.js index 8034a6f..bda6def 100644 --- a/dist/github/gitversion/setup/bundle.js +++ b/dist/github/gitversion/setup/bundle.js @@ -1,4 +1,4 @@ -module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitversion/setup.ts")}({"./node_modules/@actions/core/lib/command.js": +module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("crypto")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitversion/setup.ts")}({"./node_modules/@actions/core/lib/command.js": /*!***************************************************!*\ !*** ./node_modules/@actions/core/lib/command.js ***! \***************************************************/ @@ -6,7 +6,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!************************************************!*\ !*** ./node_modules/@actions/core/lib/core.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ./command */"./node_modules/@actions/core/lib/command.js"),s=i(n(/*! os */"os")),a=i(n(/*! path */"path"));var u;function c(e){o.issue("error",e)}function l(e){o.issue("group",e)}function d(){o.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(u=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){process.env[e]=t,o.issueCommand("set-env",{name:e},t)},t.setSecret=function(e){o.issueCommand("add-mask",{},e)},t.addPath=function(e){o.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return n.trim()},t.setOutput=function(e,t){o.issueCommand("set-output",{name:e},t)},t.setFailed=function(e){process.exitCode=u.Failure,c(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){o.issueCommand("debug",{},e)},t.error=c,t.warning=function(e){o.issue("warning",e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=l,t.endGroup=d,t.group=function(e,t){return r(this,void 0,void 0,(function*(){let n;l(e);try{n=yield t()}finally{d()}return n}))},t.saveState=function(e,t){o.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}},"./node_modules/@actions/exec/lib/exec.js": /*!************************************************!*\ !*** ./node_modules/@actions/exec/lib/exec.js ***! \************************************************/ @@ -18,7 +18,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!****************************************************!*\ !*** ./node_modules/@actions/http-client/index.js ***! \****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u;!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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const c=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=p,t.isHttps=function(e){return"https:"===r.parse(e).protocol};t.HttpClient=class{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),p=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==l.indexOf(o.message.statusCode))return o;f+=1,f{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new p(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": +/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! url */"url"),i=n(/*! http */"http"),o=n(/*! https */"https"),s=n(/*! ./proxy */"./node_modules/@actions/http-client/proxy.js");let a;var u,c,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.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(u=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(c=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(l=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""};const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],p=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])}),this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===r.parse(e).protocol};class y{constructor(e,t,n){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||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,l.ApplicationJson),n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed)throw new Error("Client has already been disposed.");let o,s=r.parse(t),a=this._prepareRequest(e,s,i),c=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,l=0;for(;l0;){const u=o.message.headers.location;if(!u)break;let c=r.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");await o.readBody(),a=this._prepareRequest(e,c,i),o=await this.requestRaw(a,n),t--}if(-1==p.indexOf(o.message.statusCode))return o;l+=1,l{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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()}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s="https:"===r.parsedUrl.protocol;r.httpModule=s?o:i;const a=s?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;var i;return this.requestOptions&&this.requestOptions.headers&&(r=(i=this.requestOptions.headers,Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}))[t]),e[t]||r||n}_getAgent(e){let t,r=s.getProxyUrl(e),u=r&&r.hostname;if(this._keepAlive&&u&&(t=this._proxyAgent),this._keepAlive&&!u&&(t=this._agent),t)return t;const c="https:"===e.protocol;let l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||i.globalAgent.maxSockets),u){a||(a=n(/*! tunnel */"./node_modules/@actions/http-client/node_modules/tunnel/index.js"));const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o="https:"===r.protocol;i=c?o?a.httpsOverHttps:a.httpsOverHttp:o?a.httpOverHttps:a.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new o.Agent(e):new i.Agent(e),this._agent=t}return t||(t=c?o.globalAgent:i.globalAgent),c&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let s,a;i==u.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,y.dateTimeDeserializer):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:"Failed request: ("+i+")";let t=new Error(e);t.statusCode=i,o.result&&(t.result=o.result),r(t)}else n(o)})}}t.HttpClient=y},"./node_modules/@actions/http-client/node_modules/tunnel/index.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/http-client/node_modules/tunnel/index.js ***! \************************************************************************/ @@ -38,15 +38,19 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!********************************************!*\ !*** ./node_modules/@actions/io/lib/io.js ***! \********************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! child_process */"child_process"),o=n(/*! path */"path"),s=n(/*! util */"util"),a=n(/*! ./io-util */"./node_modules/@actions/io/lib/io-util.js"),u=s.promisify(i.exec);function c(e){return r(this,void 0,void 0,(function*(){if(a.IS_WINDOWS){try{(yield a.isDirectory(e,!0))?yield u(`rd /s /q "${e}"`):yield u(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield a.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield a.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield u(`rm -rf "${e}"`):yield a.unlink(e)}}))}function l(e){return r(this,void 0,void 0,(function*(){yield a.mkdirP(e)}))}function d(e,t,n){return r(this,void 0,void 0,(function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t)}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t))}const n=yield a.readlink(e);yield a.symlink(n,t,a.IS_WINDOWS?"junction":null)}else(yield a.exists(t))&&!n||(yield a.copyFile(e,t))}))}t.cp=function(e,t,n={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:s}=function(e){const t=null==e.force||e.force,n=Boolean(e.recursive);return{force:t,recursive:n}}(n),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!i)return;const c=u&&u.isDirectory()?o.join(t,o.basename(e)):t;if(!(yield a.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield a.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,n,i,o){return r(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield l(n);const r=yield a.readdir(t);for(const s of r){const r=`${t}/${s}`,u=`${n}/${s}`;(yield a.lstat(r)).isDirectory()?yield e(r,u,i,o):yield d(r,u,o)}yield a.chmod(n,(yield a.stat(t)).mode)}))}(e,c,0,i)}else{if(""===o.relative(e,c))throw new Error(`'${c}' and '${e}' are the same file`);yield d(e,c,i)}}))},t.mv=function(e,t,n={}){return r(this,void 0,void 0,(function*(){if(yield a.exists(t)){let r=!0;if((yield a.isDirectory(t))&&(t=o.join(t,o.basename(e)),r=yield a.exists(t)),r){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield c(t)}}yield l(o.dirname(t)),yield a.rename(e,t)}))},t.rmRF=c,t.mkdirP=l,t.which=function e(t,n){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("parameter 'tool' is required");if(n){if(!(yield e(t,!1)))throw a.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.`)}try{const e=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(o.delimiter))t&&e.push(t);if(a.isRooted(t)){const n=yield a.tryGetExecutablePath(t,e);return n||""}if(t.includes("/")||a.IS_WINDOWS&&t.includes("\\"))return"";const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(o.delimiter))e&&n.push(e);for(const r of n){const n=yield a.tryGetExecutablePath(r+o.sep+t,e);if(n)return n}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}}))}},"./node_modules/@actions/tool-cache/lib/retry-helper.js": +/*!**************************************************************!*\ + !*** ./node_modules/@actions/tool-cache/lib/retry-helper.js ***! + \**************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js"));t.RetryHelper=class{constructor(e,t,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e){return r(this,void 0,void 0,(function*(){let t=1;for(;tsetTimeout(t,1e3*e))}))}}},"./node_modules/@actions/tool-cache/lib/tool-cache.js": /*!************************************************************!*\ !*** ./node_modules/@actions/tool-cache/lib/tool-cache.js ***! \************************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),h=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),y=n(/*! assert */"assert");class m extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=m;const g="win32"===process.platform;let v=process.env.RUNNER_TEMP||"",_=process.env.RUNNER_TOOL_CACHE||"";if(!v||!_){let e;e=g?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",v||(v=l.join(e,"actions","temp")),_||(_=l.join(e,"actions","cache"))}function b(e,t){const n=[];t=t||c.arch();const r=l.join(_,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(A(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function E(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(v,f.default())),yield a.mkdirP(e),e}))}function w(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(_,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function T(e,t,n){const r=`${l.join(_,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function A(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){try{const o=new d.HttpClient("actions/tool-cache",[],{allowRetries:!0,maxRetries:3});if(t=t||l.join(v,f.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Downloading ${t}`),u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const c=yield o.get(e);if(200!==c.message.statusCode){const t=new m(c.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),t}const p=u.createWriteStream(t);p.on("open",()=>r(this,void 0,void 0,(function*(){try{c.message.pipe(p).on("close",()=>{s.debug("download complete"),n(t)})}catch(t){s.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`),i(t)}}))),p.on("error",e=>{p.end(),i(e)})}catch(e){i(e)}})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){y.ok(g,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield E(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield h.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield h.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield E(t);let r="";yield h.exec("tar --version",[],{ignoreReturnCode:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}});const i=r.toUpperCase().includes("GNU TAR"),o=[n];let s=t,a=e;return g&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",s,"-f",a),yield h.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield E(t),g?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield h.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield h.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield w(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return T(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield w(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),T(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!A(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(b(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(_,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=b},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(/*! @actions/core */"./node_modules/@actions/core/lib/core.js")),a=i(n(/*! @actions/io */"./node_modules/@actions/io/lib/io.js")),u=i(n(/*! fs */"fs")),c=i(n(/*! os */"os")),l=i(n(/*! path */"path")),d=i(n(/*! @actions/http-client */"./node_modules/@actions/http-client/index.js")),p=i(n(/*! semver */"./node_modules/@actions/tool-cache/node_modules/semver/semver.js")),f=i(n(/*! stream */"stream")),h=i(n(/*! util */"util")),y=o(n(/*! uuid/v4 */"./node_modules/uuid/v4.js")),m=n(/*! @actions/exec/lib/exec */"./node_modules/@actions/exec/lib/exec.js"),g=n(/*! assert */"assert"),v=n(/*! ./retry-helper */"./node_modules/@actions/tool-cache/lib/retry-helper.js");class _ extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=_;const b="win32"===process.platform;let E=process.env.RUNNER_TEMP||"",w=process.env.RUNNER_TOOL_CACHE||"";if(!E||!w){let e;e=b?process.env.USERPROFILE||"C:\\":"darwin"===process.platform?"/Users":"/home",E||(E=l.join(e,"actions","temp")),w||(w=l.join(e,"actions","cache"))}function T(e,t){const n=[];t=t||c.arch();const r=l.join(w,e);if(u.existsSync(r)){const e=u.readdirSync(r);for(const i of e)if(R(i)){const e=l.join(r,i,t||"");u.existsSync(e)&&u.existsSync(`${e}.complete`)&&n.push(i)}}return n}function O(e){return r(this,void 0,void 0,(function*(){return e||(e=l.join(E,y.default())),yield a.mkdirP(e),e}))}function A(e,t,n){return r(this,void 0,void 0,(function*(){const r=l.join(w,e,p.clean(t)||t,n||"");s.debug(`destination ${r}`);const i=`${r}.complete`;return yield a.rmRF(r),yield a.rmRF(i),yield a.mkdirP(r),r}))}function S(e,t,n){const r=`${l.join(w,e,p.clean(t)||t,n||"")}.complete`;u.writeFileSync(r,""),s.debug("finished caching tool")}function R(e){const t=p.clean(e)||"";s.debug(`isExplicit: ${t}`);const n=null!=p.valid(t);return s.debug(`explicit? ${n}`),n}function I(e,t){const n=global[e];return void 0!==n?n:t}t.downloadTool=function(e,t){return r(this,void 0,void 0,(function*(){t=t||l.join(E,y.default()),yield a.mkdirP(l.dirname(t)),s.debug(`Downloading ${e}`),s.debug(`Destination ${t}`);const n=I("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=I("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new v.RetryHelper(3,n,i);return yield o.execute(()=>r(this,void 0,void 0,(function*(){return yield function(e,t){return r(this,void 0,void 0,(function*(){if(u.existsSync(t))throw new Error(`Destination file path ${t} already exists`);const n=new d.HttpClient("actions/tool-cache",[],{allowRetries:!1}),r=yield n.get(e);if(200!==r.message.statusCode){const t=new _(r.message.statusCode);throw s.debug(`Failed to download from "${e}". Code(${r.message.statusCode}) Message(${r.message.statusMessage})`),t}const i=h.promisify(f.pipeline),o=I("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>r.message)();let c=!1;try{return yield i(o,u.createWriteStream(t)),s.debug("download complete"),c=!0,t}finally{if(!c){s.debug("download failed");try{yield a.rmRF(t)}catch(e){s.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"")})))}))},t.extract7z=function(e,t,n){return r(this,void 0,void 0,(function*(){g.ok(b,"extract7z() not supported on current OS"),g.ok(e,'parameter "file" is required'),t=yield O(t);const r=process.cwd();if(process.chdir(t),n)try{const t=["x","-bb1","-bd","-sccUTF-8",e],i={silent:!0};yield m.exec(`"${n}"`,t,i)}finally{process.chdir(r)}else{const n=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${l.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,"")}'`],i={silent:!0};try{const e=yield a.which("powershell",!0);yield m.exec(`"${e}"`,n,i)}finally{process.chdir(r)}}return t}))},t.extractTar=function(e,t,n="xz"){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");t=yield O(t),s.debug("Checking tar --version");let r="";yield m.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),s.debug(r.trim());const i=r.toUpperCase().includes("GNU TAR"),o=[n];let a=t,u=e;return b&&i&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),u=e.replace(/\\/g,"/")),i&&o.push("--warning=no-unknown-keyword"),o.push("-C",a,"-f",u),yield m.exec("tar",o),t}))},t.extractZip=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return t=yield O(t),b?yield function(e,t){return r(this,void 0,void 0,(function*(){const n=`$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,"")}')`,r=yield a.which("powershell"),i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",n];yield m.exec(`"${r}"`,i)}))}(e,t):yield function(e,t){return r(this,void 0,void 0,(function*(){const n=yield a.which("unzip");yield m.exec(`"${n}"`,[e],{cwd:t})}))}(e,t),t}))},t.cacheDir=function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(n=p.clean(n)||n,i=i||c.arch(),s.debug(`Caching tool ${t} ${n} ${i}`),s.debug(`source dir: ${e}`),!u.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield A(t,n,i);for(const t of u.readdirSync(e)){const n=l.join(e,t);yield a.cp(n,r,{recursive:!0})}return S(t,n,i),r}))},t.cacheFile=function(e,t,n,i,o){return r(this,void 0,void 0,(function*(){if(i=p.clean(i)||i,o=o||c.arch(),s.debug(`Caching tool ${n} ${i} ${o}`),s.debug(`source file: ${e}`),!u.statSync(e).isFile())throw new Error("sourceFile is not a file");const r=yield A(n,i,o),d=l.join(r,t);return s.debug(`destination file ${d}`),yield a.cp(e,d),S(n,i,o),r}))},t.find=function(e,t,n){if(!e)throw new Error("toolName parameter is required");if(!t)throw new Error("versionSpec parameter is required");if(n=n||c.arch(),!R(t)){t=function(e,t){let n="";s.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort((e,t)=>p.gt(e,t)?1:-1)).length-1;r>=0;r--){const i=e[r];if(p.satisfies(i,t)){n=i;break}}n?s.debug(`matched: ${n}`):s.debug("match not found");return n}(T(e,n),t)}let r="";if(t){t=p.clean(t)||"";const i=l.join(w,e,t,n);s.debug(`checking cache: ${i}`),u.existsSync(i)&&u.existsSync(`${i}.complete`)?(s.debug(`Found tool in cache ${e} ${t} ${n}`),r=i):s.debug("not found")}return r},t.findAllVersions=T},"./node_modules/@actions/tool-cache/node_modules/semver/semver.js": /*!************************************************************************!*\ !*** ./node_modules/@actions/tool-cache/node_modules/semver/semver.js ***! \************************************************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function A(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof A)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new A(e.raw,t);if(e instanceof w)return new A(e.value,t);if(!(this instanceof A))return new A(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 O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new A(t,n)}catch(e){return!1}return t.test(e)}function j(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new A(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new A(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new A(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=A,A.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},A.prototype.toString=function(){return this.range},A.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},A.prototype.intersects=function(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new A(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},A.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new A(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return j(e,t,"<",n)},t.gtr=function(e,t,n){return j(e,t,">",n)},t.outside=j,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new A(e,n),t=new A(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": +/*! no static exports found */function(e,t){var n;t=e.exports=d,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function u(e){s[e]=a++}u("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",u("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",u("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",u("GTLT"),o[s.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",u("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",u("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",u("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),u("LONETILDE"),o[s.LONETILDE]="(?:~>?)",u("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");u("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",u("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",u("LONECARET"),o[s.LONECARET]="(?:\\^)",u("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");u("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",u("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");u("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){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 d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=l(e),r=l(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function m(e,t,n){return h(e,t,n)<0}function g(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function _(e,t,n){return h(e,t,n)>=0}function b(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,r);case"!=":return v(e,n,r);case">":return y(e,n,r);case">=":return _(e,n,r);case"<":return m(e,n,r);case"<=":return b(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),i=new d(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=v,t.gte=_,t.lte=b,t.cmp=E,t.Comparator=w;var T={};function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new O(e.raw,t);if(e instanceof w)return new O(e.value,t);if(!(this instanceof O))return new O(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 A(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+t)+" "+(a=S(u)?"":S(c)?"<"+(+u+1)+".0.0":S(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function I(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function N(e,t,n){try{t=new O(t,n)}catch(e){return!1}return t.test(e)}function x(e,t,n,r){var i,o,s,a,u;switch(e=new d(e,r),t=new O(t,r),n){case">":i=y,o=b,s=m,a=">",u=">=";break;case"<":i=m,o=_,s=y,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,f=f||e,i(e.semver,p.semver,r)?p=e:s(e.semver,f.semver,r)&&(f=e)})),p.operator===a||p.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=T},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new O(e.value,t),N(this.value,n,t));if(""===e.operator)return""===e.value||(n=new O(this.value,t),N(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,i,o,s,a,u){n("xRange",e,r,i,o,s,a,u);var c=S(o),l=c||S(s),d=l||S(a),p=d;return"="===i&&p&&(i=""),u=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+u):l?r=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u:d&&(r=">="+o+"."+s+".0"+u+" <"+o+"."+(+s+1)+".0"+u),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new w(e,this.options)}),this)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(n){return A(n,t)&&e.set.some((function(e){return A(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new O(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new O(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return x(e,t,"<",n)},t.gtr=function(e,t,n){return x(e,t,">",n)},t.outside=x,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new O(e,n),t=new O(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},"./node_modules/inversify/lib/annotation/decorator_utils.js": /*!******************************************************************!*\ !*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***! \******************************************************************/ @@ -230,7 +234,7 @@ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;va /*!******************************************!*\ !*** ./node_modules/qs/lib/stringify.js ***! \******************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": +/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,s,u,l,d,f,h,y,m,g){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(m?n:u(n,p.encoder,g,"key"))+"="+y(u(_,p.encoder,g,"value"))]:[y(n)+"="+y(String(_))];var b,E=[];if(void 0===_)return E;if(a(l))b=l;else{var w=Object.keys(_);b=d?w.sort(d):w}for(var T=0;T0?v+g:""}},"./node_modules/qs/lib/utils.js": /*!**************************************!*\ !*** ./node_modules/qs/lib/utils.js ***! \**************************************/ @@ -253,7 +257,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!O(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=A(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=x(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=x(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=A(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=A(t)),function e(t,n){var r=v(t,n),i=x(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!E(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!w(t))throw new TypeError;if(!w(r)&&!b(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!E(o)){if(!w(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!w(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!w(n))throw new TypeError;return b(r)||(r=O(r)),g(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=j(n);return!E(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),function e(t,n,r){if(y(t,n,r))return m(t,n,r);var i=j(n);return E(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!w(t))throw new TypeError;return b(n)||(n=O(n)),m(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!w(e))throw new TypeError;return b(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=j(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new p,a=[],u=0,c=r;u0)return!0;var i=f.get(t);return i.delete(n),i.size>0||(f.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -261,23 +265,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var A=s++;o[A]=o[a]+"|x|X|\\*";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[O]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=s++;o[j]="(?:~>?)";var x=s++;o[x]="(\\s*)"+o[j]+"\\s+",i[x]=new RegExp(o[x],"g");var P=s++;o[P]="^"+o[j]+o[O]+"$";var C=s++;o[C]="^"+o[j]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[O]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var q=s++;o[q]="^"+o[w]+"\\s*("+_+")$|^$";var U=s++;o[U]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[O]+")",i[U]=new RegExp(o[U],"g");var F=s++;o[F]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var $=0;$<35;$++)n($,o[$]),i[$]||(i[$]=new RegExp(o[$]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var X=/^[0-9]+$/;function z(e,t){var n=X.test(e),r=X.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[F];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[U],"$1$2$3"),n("comparator trim",e,i[U]),e=(e=(e=e.replace(i[x],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[q],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=p(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=W,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[a]+"|"+o[c]+")";var f=s++;o[f]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var m=s++;o[m]="[0-9A-Za-z-]+";var g=s++;o[g]="(?:\\+("+o[m]+"(?:\\."+o[m]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[g]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[g]+"?",E=s++;o[E]="^"+b+"$";var w=s++;o[w]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var O=s++;o[O]=o[a]+"|x|X|\\*";var A=s++;o[A]="[v=\\s]*("+o[O]+")(?:\\.("+o[O]+")(?:\\.("+o[O]+")(?:"+o[h]+")?"+o[g]+"?)?)?";var S=s++;o[S]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[g]+"?)?)?";var R=s++;o[R]="^"+o[w]+"\\s*"+o[A]+"$";var I=s++;o[I]="^"+o[w]+"\\s*"+o[S]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var x=s++;o[x]="(?:~>?)";var j=s++;o[j]="(\\s*)"+o[x]+"\\s+",i[j]=new RegExp(o[j],"g");var P=s++;o[P]="^"+o[x]+o[A]+"$";var C=s++;o[C]="^"+o[x]+o[S]+"$";var M=s++;o[M]="(?:\\^)";var D=s++;o[D]="(\\s*)"+o[M]+"\\s+",i[D]=new RegExp(o[D],"g");var k=s++;o[k]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[w]+"\\s*("+b+")$|^$";var q=s++;o[q]="^"+o[w]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[w]+"\\s*("+b+"|"+o[A]+")",i[F]=new RegExp(o[F],"g");var U=s++;o[U]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var G=s++;o[G]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var $=0;$<35;$++)n($,o[$]),i[$]||(i[$]=new RegExp(o[$]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[E]:i[v]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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 W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[E]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Q(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=X;var z=/^[0-9]+$/;function X(e,t){var n=z.test(e),r=z.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function K(e,t,n){return Y(e,t,n)<0}function Q(e,t,n){return 0===Y(e,t,n)}function Z(e,t,n){return 0!==Y(e,t,n)}function ee(e,t,n){return Y(e,t,n)>=0}function te(e,t,n){return Y(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Q(e,n,r);case"!=":return Z(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return K(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,n){return Y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=K,t.eq=Q,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,p){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new W(e,r),t=new oe(t,r),n){case">":i=J,o=te,s=K,a=">",u=">=";break;case"<":i=K,o=ee,s=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:s(e.semver,p.semver,r)&&(p=e)})),d.operator===a||d.operator===u)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===u&&s(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[B]:i[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new W(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[j],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[q],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[L]:i[k];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[C]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[I]:i[R];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],f=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=f.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==p.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/uuid/index.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/uuid/index.js": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ @@ -341,7 +345,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!**************************************!*\ !*** ./src/tools/gitversion/tool.ts ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json","/output","buildserver"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: /*!*************************!*\ !*** external "assert" ***! \*************************/ @@ -381,20 +385,24 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***********************!*\ !*** external "path" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(9)},tls: +/*! no static exports found */function(e,t){e.exports=n(9)},stream: +/*!*************************!*\ + !*** external "stream" ***! + \*************************/ +/*! no static exports found */function(e,t){e.exports=n(10)},tls: /*!**********************!*\ !*** external "tls" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(10)},url: +/*! no static exports found */function(e,t){e.exports=n(11)},url: /*!**********************!*\ !*** external "url" ***! \**********************/ -/*! no static exports found */function(e,t){e.exports=n(11)},util: +/*! no static exports found */function(e,t){e.exports=n(12)},util: /*!***********************!*\ !*** external "util" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(12)},zlib: +/*! no static exports found */function(e,t){e.exports=n(13)},zlib: /*!***********************!*\ !*** external "zlib" ***! \***********************/ -/*! no static exports found */function(e,t){e.exports=n(13)}})}]); \ No newline at end of file +/*! no static exports found */function(e,t){e.exports=n(14)}})}]); \ No newline at end of file diff --git a/dist/mock/gitreleasemanager/addasset/bundle.js b/dist/mock/gitreleasemanager/addasset/bundle.js index 6e95601..cd18558 100644 --- a/dist/mock/gitreleasemanager/addasset/bundle.js +++ b/dist/mock/gitreleasemanager/addasset/bundle.js @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var M=s++;o[M]="^"+o[I]+o[O]+"$";var R=s++;o[R]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[R]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[R]+o[S]+"$";var B=s++;o[B]="^"+o[R]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ diff --git a/dist/mock/gitreleasemanager/close/bundle.js b/dist/mock/gitreleasemanager/close/bundle.js index 0045fd6..c54f032 100644 --- a/dist/mock/gitreleasemanager/close/bundle.js +++ b/dist/mock/gitreleasemanager/close/bundle.js @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var M=s++;o[M]="^"+o[I]+o[O]+"$";var R=s++;o[R]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[R]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[R]+o[S]+"$";var B=s++;o[B]="^"+o[R]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ diff --git a/dist/mock/gitreleasemanager/create/bundle.js b/dist/mock/gitreleasemanager/create/bundle.js index 16c9017..c17c562 100644 --- a/dist/mock/gitreleasemanager/create/bundle.js +++ b/dist/mock/gitreleasemanager/create/bundle.js @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var M=s++;o[M]="^"+o[I]+o[O]+"$";var R=s++;o[R]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[R]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[R]+o[S]+"$";var B=s++;o[B]="^"+o[R]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ diff --git a/dist/mock/gitreleasemanager/discard/bundle.js b/dist/mock/gitreleasemanager/discard/bundle.js index 7aeb756..0117fac 100644 --- a/dist/mock/gitreleasemanager/discard/bundle.js +++ b/dist/mock/gitreleasemanager/discard/bundle.js @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var M=s++;o[M]="^"+o[I]+o[O]+"$";var R=s++;o[R]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[R]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[R]+o[S]+"$";var B=s++;o[B]="^"+o[R]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ diff --git a/dist/mock/gitreleasemanager/open/bundle.js b/dist/mock/gitreleasemanager/open/bundle.js index 2d8f57f..72fa31f 100644 --- a/dist/mock/gitreleasemanager/open/bundle.js +++ b/dist/mock/gitreleasemanager/open/bundle.js @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var M=s++;o[M]="^"+o[I]+o[O]+"$";var R=s++;o[R]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[R]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[R]+o[S]+"$";var B=s++;o[B]="^"+o[R]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ diff --git a/dist/mock/gitreleasemanager/publish/bundle.js b/dist/mock/gitreleasemanager/publish/bundle.js index ff2df41..ce9c231 100644 --- a/dist/mock/gitreleasemanager/publish/bundle.js +++ b/dist/mock/gitreleasemanager/publish/bundle.js @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var M=s++;o[M]="^"+o[I]+o[O]+"$";var R=s++;o[R]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[R]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[R]+o[S]+"$";var B=s++;o[B]="^"+o[R]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ diff --git a/dist/mock/gitreleasemanager/setup/bundle.js b/dist/mock/gitreleasemanager/setup/bundle.js index 2e1895b..1c683b6 100644 --- a/dist/mock/gitreleasemanager/setup/bundle.js +++ b/dist/mock/gitreleasemanager/setup/bundle.js @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var M=s++;o[M]="^"+o[I]+o[O]+"$";var R=s++;o[R]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[R]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[R]+o[S]+"$";var B=s++;o[B]="^"+o[R]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ diff --git a/dist/mock/gitversion/execute/bundle.js b/dist/mock/gitversion/execute/bundle.js index c3b79ae..873e981 100644 --- a/dist/mock/gitversion/execute/bundle.js +++ b/dist/mock/gitversion/execute/bundle.js @@ -205,7 +205,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!E(r))throw new TypeError;t=r}}return t}(e,t)}if(!S(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!T(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!T(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;v(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!T(n))throw new TypeError;return b(r)||(r=j(r)),v(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=P(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return g(t,n,r);var i=P(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=m(t,n),i=P(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new f,a=[],u=0,c=r;u0)return!0;var i=p.get(t);return i.delete(n),i.size>0||(p.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!E(r))throw new TypeError;t=r}}return t}(e,t)}if(!S(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!T(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!T(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;v(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!T(n))throw new TypeError;return b(r)||(r=j(r)),v(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=I(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return g(t,n,r);var i=I(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=m(t,n),i=I(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new f,a=[],u=0,c=r;u0)return!0;var i=p.get(t);return i.delete(n),i.size>0||(p.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var m=s++,_="v?"+o[l]+o[h]+"?"+o[v]+"?";o[m]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[v]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[v]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var P=s++;o[P]="(\\s*)"+o[I]+"\\s+",i[P]=new RegExp(o[P],"g");var C=s++;o[C]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var V=s++;o[V]="^"+o[T]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[F]=new RegExp(o[F],"g");var L=s++;o[L]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var U=s++;o[U]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[m]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[m]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[V],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[L];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[P],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[V],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[U],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var m=s++,_="v?"+o[l]+o[h]+"?"+o[v]+"?";o[m]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[v]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[v]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var I=s++;o[I]="(\\s*)"+o[P]+"\\s+",i[I]=new RegExp(o[I],"g");var C=s++;o[C]="^"+o[P]+o[S]+"$";var R=s++;o[R]="^"+o[P]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var V=s++;o[V]="^"+o[T]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[F]=new RegExp(o[F],"g");var L=s++;o[L]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var U=s++;o[U]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[m]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[m]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[V],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[L];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[I],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[V],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[U],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ @@ -273,7 +273,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!**************************************!*\ !*** ./src/tools/gitversion/tool.ts ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json","/output","buildserver"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: /*!*************************!*\ !*** external "assert" ***! \*************************/ diff --git a/dist/mock/gitversion/setup/bundle.js b/dist/mock/gitversion/setup/bundle.js index cfc2199..85aa453 100644 --- a/dist/mock/gitversion/setup/bundle.js +++ b/dist/mock/gitversion/setup/bundle.js @@ -205,7 +205,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!E(r))throw new TypeError;t=r}}return t}(e,t)}if(!S(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!T(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!T(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;v(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!T(n))throw new TypeError;return b(r)||(r=j(r)),v(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=P(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return g(t,n,r);var i=P(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=m(t,n),i=P(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new f,a=[],u=0,c=r;u0)return!0;var i=p.get(t);return i.delete(n),i.size>0||(p.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": +var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return C(Object.create(null))}:s?function(){return C({__proto__:null})}:function(){return C({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!E(r))throw new TypeError;t=r}}return t}(e,t)}if(!S(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!T(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!T(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;v(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!T(n))throw new TypeError;return b(r)||(r=j(r)),v(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=I(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return g(t,n,r);var i=I(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=m(t,n),i=I(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new f,a=[],u=0,c=r;u0)return!0;var i=p.get(t);return i.delete(n),i.size>0||(p.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js": /*!**********************************************!*\ !*** ./node_modules/semver-compare/index.js ***! \**********************************************/ @@ -213,23 +213,23 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!***************************************!*\ !*** ./node_modules/semver/semver.js ***! \***************************************/ -/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var m=s++,_="v?"+o[l]+o[h]+"?"+o[v]+"?";o[m]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[v]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[v]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var P=s++;o[P]="(\\s*)"+o[I]+"\\s+",i[P]=new RegExp(o[P],"g");var C=s++;o[C]="^"+o[I]+o[S]+"$";var R=s++;o[R]="^"+o[I]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var V=s++;o[V]="^"+o[T]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[F]=new RegExp(o[F],"g");var L=s++;o[L]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var U=s++;o[U]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[m]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[m]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[V],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[L];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[P],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[V],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[U],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js": -/*!**************************************!*\ - !*** ./node_modules/tunnel/index.js ***! - \**************************************/ -/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js": -/*!*******************************************!*\ - !*** ./node_modules/tunnel/lib/tunnel.js ***! - \*******************************************/ -/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./node_modules/typed-rest-client/HttpClient.js": +/*! no static exports found */function(e,t){var n;t=e.exports=$,n="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 r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var m=s++,_="v?"+o[l]+o[h]+"?"+o[v]+"?";o[m]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[v]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[v]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=s++;o[P]="(?:~>?)";var I=s++;o[I]="(\\s*)"+o[P]+"\\s+",i[I]=new RegExp(o[I],"g");var C=s++;o[C]="^"+o[P]+o[S]+"$";var R=s++;o[R]="^"+o[P]+o[O]+"$";var M=s++;o[M]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[M]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[M]+o[S]+"$";var B=s++;o[B]="^"+o[M]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var V=s++;o[V]="^"+o[T]+"\\s*("+_+")$|^$";var F=s++;o[F]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[F]=new RegExp(o[F],"g");var L=s++;o[L]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var U=s++;o[U]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[m]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){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 $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[m]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[V],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[L];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[F],"$1$2$3"),n("comparator trim",e,i[F]),e=(e=(e=e.replace(i[I],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[V],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[C];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[U],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/typed-rest-client/HttpClient.js": /*!******************************************************!*\ !*** ./node_modules/typed-rest-client/HttpClient.js ***! \******************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;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 d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}else e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){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 i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.destroy(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(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,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;nObject.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.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,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.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))}}},"./node_modules/typed-rest-client/Util.js": /*!************************************************!*\ !*** ./node_modules/typed-rest-client/Util.js ***! \************************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts": +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.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`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./node_modules/typed-rest-client/node_modules/tunnel/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/index.js ***! + \*********************************************************************/ +/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js")},"./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js": +/*!**************************************************************************!*\ + !*** ./node_modules/typed-rest-client/node_modules/tunnel/lib/tunnel.js ***! + \**************************************************************************/ +/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=(n(/*! assert */"assert"),n(/*! util */"util"));function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=d(n,r,i),s=0,a=t.requests.length;s=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},c.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=f({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,u){var c;return s.removeAllListeners(),a.removeAllListeners(),200!==o.statusCode?(r("tunneling socket could not be established, statusCode=%d",o.statusCode),a.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+o.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):u.length>0?(r("got illegal response body from proxy"),a.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a))}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=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=r},"./src/agent/mock/build-agent.ts": /*!***************************************!*\ !*** ./src/agent/mock/build-agent.ts ***! \***************************************/ @@ -273,7 +273,7 @@ var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==t /*!**************************************!*\ !*** ./src/tools/gitversion/tool.ts ***! \**************************************/ -/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: +/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),c=n(/*! ../../core/models */"./src/core/models.ts"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitVersion.Tool",e,!1,t)}))}run(e){const t=this.getRepoDir(e.targetPath),n=this.getArguments(t,e);return this.execute("dotnet-gitversion",n)}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}getArguments(e,t){const n=[e,"/output","json","/output","buildserver"],{useConfigFile:r,configFilePath:i,updateAssemblyInfo:o,updateAssemblyInfoFilename:s,additionalArguments:a}=t;if(r){if(!this.buildAgent.isValidInputFile("configFilePath",i))throw new Error("GitVersion configuration file not found at "+i);n.push("/config",i)}if(o){if(n.push("/updateassemblyinfo"),!this.buildAgent.isValidInputFile("updateAssemblyInfoFilename",s))throw new Error("AssemblyInfoFilename file not found at "+s);n.push(s)}return n.push(a),n}writeGitVersionToAgent(e){this.buildAgent.setOutput("major",e.Major.toString()),this.buildAgent.setOutput("minor",e.Minor.toString()),this.buildAgent.setOutput("patch",e.Patch.toString()),this.buildAgent.setOutput("preReleaseTag",e.PreReleaseTag),this.buildAgent.setOutput("preReleaseTagWithDash",e.PreReleaseTagWithDash),this.buildAgent.setOutput("preReleaseLabel",e.PreReleaseLabel),this.buildAgent.setOutput("preReleaseNumber",e.PreReleaseNumber.toString()),this.buildAgent.setOutput("weightedPreReleaseNumber",e.WeightedPreReleaseNumber.toString()),this.buildAgent.setOutput("buildMetaData",e.BuildMetaData.toString()),this.buildAgent.setOutput("buildMetaDataPadded",e.BuildMetaDataPadded),this.buildAgent.setOutput("fullBuildMetaData",e.FullBuildMetaData),this.buildAgent.setOutput("majorMinorPatch",e.MajorMinorPatch),this.buildAgent.setOutput("semVer",e.SemVer),this.buildAgent.setOutput("legacySemVer",e.LegacySemVer),this.buildAgent.setOutput("legacySemVerPadded",e.LegacySemVerPadded),this.buildAgent.setOutput("assemblySemVer",e.AssemblySemVer),this.buildAgent.setOutput("assemblySemFileVer",e.AssemblySemFileVer),this.buildAgent.setOutput("fullSemVer",e.FullSemVer),this.buildAgent.setOutput("informationalVersion",e.InformationalVersion),this.buildAgent.setOutput("branchName",e.BranchName),this.buildAgent.setOutput("sha",e.Sha),this.buildAgent.setOutput("shortSha",e.ShortSha),this.buildAgent.setOutput("nuGetVersionV2",e.NuGetVersionV2),this.buildAgent.setOutput("nuGetVersion",e.NuGetVersion),this.buildAgent.setOutput("nuGetPreReleaseTagV2",e.NuGetPreReleaseTagV2),this.buildAgent.setOutput("nuGetPreReleaseTag",e.NuGetPreReleaseTag),this.buildAgent.setOutput("versionSourceSha",e.VersionSourceSha),this.buildAgent.setOutput("commitsSinceVersionSource",e.CommitsSinceVersionSource.toString()),this.buildAgent.setOutput("commitsSinceVersionSourcePadded",e.CommitsSinceVersionSourcePadded),this.buildAgent.setOutput("commitDate",e.CommitDate)}};d=r([u.injectable(),o(0,u.inject(c.TYPES.IBuildAgent)),o(1,u.inject(c.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitVersionTool=d},assert: /*!*************************!*\ !*** external "assert" ***! \*************************/