From db343a2112c26affe31ffea85f74d21750bf99c0 Mon Sep 17 00:00:00 2001 From: phungtruongnguyen94 Date: Tue, 8 Feb 2022 14:07:38 +0700 Subject: [PATCH] update build --- index.js | 2 +- src/index.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0a3350c..8b83c37 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("path")),r=e(require("fs")),o=e(require("constants")),n=e(require("stream")),s=e(require("util")),i=e(require("assert")),a=e(require("os")),c=e(require("http")),u=e(require("https"));require("net");var l=e(require("tls")),p=e(require("events")),f=e(require("url")),d=e(require("zlib")),h=e(require("child_process")),m=e(require("tty")),y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var w=function(e){return Object.defineProperty(function(...t){if("function"!=typeof t[t.length-1])return new Promise((r,o)=>{e.call(this,...t,(e,t)=>null!=e?o(e):r(t))});e.apply(this,t)},"name",{value:e.name})},v=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(e=>r(null,e),r)},"name",{value:e.name})},E=process.cwd,T=null,S=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return T||(T=E.call(process)),T};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var _=process.chdir;process.chdir=function(e){T=null,_.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_)}var O=n.Stream,k=Object.getPrototypeOf||function(e){return e.__proto__},P=b(function(e){var t,n;function a(e,r){Object.defineProperty(e,t,{get:function(){return r}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(t=Symbol.for("graceful-fs.queue"),n=Symbol.for("graceful-fs.previous")):(t="___graceful-fs.queue",n="___graceful-fs.previous");var c,u=function(){};function l(e){(function(e){var t,r;function n(t){return t?function(r,o,n){return t.call(e,r,o,function(e){l(e)&&(e=null),n&&n.apply(this,arguments)})}:t}function s(t){return t?function(r,o){try{return t.call(e,r,o)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(r,o,n,s){return t.call(e,r,o,n,function(e){l(e)&&(e=null),s&&s.apply(this,arguments)})}:t}function a(t){return t?function(r,o,n){try{return t.call(e,r,o,n)}catch(e){if(!l(e))throw e}}:t}function c(t){return t?function(r,o,n){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),n&&n.apply(this,arguments)}return"function"==typeof o&&(n=o,o=null),o?t.call(e,r,o,s):t.call(e,r,s)}:t}function u(t){return t?function(r,o){var n=o?t.call(e,r,o):t.call(e,r);return n&&(n.uid<0&&(n.uid+=4294967296),n.gid<0&&(n.gid+=4294967296)),n}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}o.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,o.O_WRONLY|o.O_SYMLINK,r,function(t,o){t?n&&n(t):e.fchmod(o,r,function(t){e.close(o,function(e){n&&n(t||e)})})})},e.lchmodSync=function(t,r){var n,s=e.openSync(t,o.O_WRONLY|o.O_SYMLINK,r),i=!0;try{n=e.fchmodSync(s,r),i=!1}finally{if(i)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return n}}(e),e.lutimes||function(e){o.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,s){e.open(t,o.O_SYMLINK,function(t,o){t?s&&s(t):e.futimes(o,r,n,function(t){e.close(o,function(e){s&&s(t||e)})})})},e.lutimesSync=function(t,r,n){var s,i=e.openSync(t,o.O_SYMLINK),a=!0;try{s=e.futimesSync(i,r,n),a=!1}finally{if(a)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return s}):(e.lutimes=function(e,t,r,o){o&&process.nextTick(o)},e.lutimesSync=function(){})}(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,r,o){o&&process.nextTick(o)},e.lchownSync=function(){}),"win32"===S&&(e.rename=(t=e.rename,function(r,o,n){var s=Date.now(),i=0;t(r,o,function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-s<6e4)return setTimeout(function(){e.stat(o,function(e,s){e&&"ENOENT"===e.code?t(r,o,a):n(c)})},i),void(i<100&&(i+=10));n&&n(c)})})),e.read=function(t){function r(r,o,n,s,i,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,p,f){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,r,o,n,s,i,c);a.apply(this,arguments)}}return t.call(e,r,o,n,s,i,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync=(r=e.readSync,function(t,o,n,s,i){for(var a=0;;)try{return r.call(e,t,o,n,s,i)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})})(e),e.gracefulify=l,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,o){return"function"==typeof r&&(o=r,r=null),function e(r,o,n,s){return t(r,o,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof n&&n.apply(this,arguments):p([e,[r,o,n],t,s||Date.now(),Date.now()])})}(e,r,o)};var r=e.writeFile;e.writeFile=function(e,t,o,n){return"function"==typeof o&&(n=o,o=null),function e(t,o,n,s,i){return r(t,o,n,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):p([e,[t,o,n,s],r,i||Date.now(),Date.now()])})}(e,t,o,n)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,s,i){return n(t,r,o,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):p([e,[t,r,o,s],n,i||Date.now(),Date.now()])})}(e,t,r,o)});var s=e.copyFile;s&&(e.copyFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=0),function e(t,r,o,n,i){return s(t,r,o,function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof n&&n.apply(this,arguments):p([e,[t,r,o,n],s,i||Date.now(),Date.now()])})}(e,t,r,o)});var i=e.readdir;if(e.readdir=function(e,t,r){return"function"==typeof t&&(r=t,t=null),function e(t,r,o,n){return i(t,r,function(s,i){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(i&&i.sort&&i.sort(),"function"==typeof o&&o.call(this,s,i)):p([e,[t,r,o],s,n||Date.now(),Date.now()])})}(e,t,r)},"v0.8"===process.version.substr(0,4)){var a=function(e){return{ReadStream:function t(r,o){if(!(this instanceof t))return new t(r,o);O.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,o=o||{};for(var s=Object.keys(o),i=0,a=s.length;ithis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,function(e,t){if(e)return n.emit("error",e),void(n.readable=!1);n.fd=t,n.emit("open",t),n._read()}):process.nextTick(function(){n._read()})},WriteStream:function t(r,o){if(!(this instanceof t))return new t(r,o);O.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var n=Object.keys(o),s=0,i=n.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}(e);h=a.ReadStream,m=a.WriteStream}var c=e.ReadStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var e=this;g(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})});var u=e.WriteStream;u&&(m.prototype=Object.create(u.prototype),m.prototype.open=function(){var e=this;g(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))})}),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var f=h;Object.defineProperty(e,"FileReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var d=m;function h(e,t){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function m(e,t){return this instanceof m?(u.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var y=e.open;function g(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,n,s){return y(t,r,o,function(i,a){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof n&&n.apply(this,arguments):p([e,[t,r,o,n],i,s||Date.now(),Date.now()])})}(e,t,r,o)}return e.open=g,e}function p(e){u("ENQUEUE",e[0].name,e[1]),r[t].push(e),d()}function f(){for(var e=Date.now(),o=0;o2&&(r[t][o][3]=e,r[t][o][4]=e);d()}function d(){if(clearTimeout(c),c=void 0,0!==r[t].length){var e=r[t].shift(),o=e[0],n=e[1],s=e[2],i=e[3],a=e[4];if(void 0===i)u("RETRY",o.name,n),o.apply(null,n);else if(Date.now()-i>=6e4){u("TIMEOUT",o.name,n);var l=n.pop();"function"==typeof l&&l.call(null,s)}else{var p=Date.now()-a,f=Math.max(a-i,1);p>=Math.min(1.2*f,100)?(u("RETRY",o.name,n),o.apply(null,n.concat([i]))):r[t].push(e)}void 0===c&&(c=setTimeout(d,0))}}s.debuglog?u=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(u=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),r[t]||(a(r,y[t]||[]),r.close=function(e){function t(t,o){return e.call(r,t,function(e){e||f(),"function"==typeof o&&o.apply(this,arguments)})}return Object.defineProperty(t,n,{value:e}),t}(r.close),r.closeSync=function(e){function t(t){e.apply(r,arguments),f()}return Object.defineProperty(t,n,{value:e}),t}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){u(r[t]),i.equal(r[t].length,0)})),y[t]||a(y,r[t]),e.exports=l(function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:k(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(e.exports=l(r),r.__patched=!0)}),C=b(function(e,t){const r=w,o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof P[e]);Object.assign(t,P),o.forEach(e=>{t[e]=r(P[e])}),t.realpath.native=r(P.realpath.native),t.exists=function(e,t){return"function"==typeof t?P.exists(e,t):new Promise(t=>P.exists(e,t))},t.read=function(e,t,r,o,n,s){return"function"==typeof s?P.read(e,t,r,o,n,s):new Promise((s,i)=>{P.read(e,t,r,o,n,(e,t,r)=>{if(e)return i(e);s({bytesRead:t,buffer:r})})})},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?P.write(e,t,...r):new Promise((o,n)=>{P.write(e,t,...r,(e,t,r)=>{if(e)return n(e);o({bytesWritten:t,buffer:r})})})},"function"==typeof P.writev&&(t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?P.writev(e,t,...r):new Promise((o,n)=>{P.writev(e,t,...r,(e,t,r)=>{if(e)return n(e);o({bytesWritten:t,buffers:r})})})})}),A={checkPath:function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(t.parse(e).root,""))){const t=new Error("Path contains invalid characters: "+e);throw t.code="EINVAL",t}}};const{checkPath:R}=A,j=e=>"number"==typeof e?e:{mode:511,...e}.mode;var x={makeDir:async(e,t)=>(R(e),C.mkdir(e,{mode:j(t),recursive:!0})),makeDirSync:(e,t)=>(R(e),C.mkdirSync(e,{mode:j(t),recursive:!0}))};const F=v,{makeDir:G,makeDirSync:I}=x,D=F(G);var N={mkdirs:D,mkdirsSync:I,mkdirp:D,mkdirpSync:I,ensureDir:D,ensureDirSync:I};function U(e,t,r){const o=r.dereference?e=>C.stat(e,{bigint:!0}):e=>C.lstat(e,{bigint:!0});return Promise.all([o(e),o(t).catch(e=>{if("ENOENT"===e.code)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function L(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function M(e,r){const o=t.resolve(e).split(t.sep).filter(e=>e),n=t.resolve(r).split(t.sep).filter(e=>e);return o.reduce((e,t,r)=>e&&n[r]===t,!0)}function B(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var q={checkPaths:function(e,r,o,n,i){s.callbackify(U)(e,r,n,(n,s)=>{if(n)return i(n);const{srcStat:a,destStat:c}=s;if(c){if(L(a,c)){const n=t.basename(e),s=t.basename(r);return"move"===o&&n!==s&&n.toLowerCase()===s.toLowerCase()?i(null,{srcStat:a,destStat:c,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!c.isDirectory())return i(new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`));if(!a.isDirectory()&&c.isDirectory())return i(new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`))}return a.isDirectory()&&M(e,r)?i(new Error(B(e,r,o))):i(null,{srcStat:a,destStat:c})})},checkPathsSync:function(e,r,o,n){const{srcStat:s,destStat:i}=function(e,t,r){let o;const n=r.dereference?e=>C.statSync(e,{bigint:!0}):e=>C.lstatSync(e,{bigint:!0}),s=n(e);try{o=n(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:o}}(e,r,n);if(i){if(L(s,i)){const n=t.basename(e),a=t.basename(r);if("move"===o&&n!==a&&n.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`)}if(s.isDirectory()&&M(e,r))throw new Error(B(e,r,o));return{srcStat:s,destStat:i}},checkParentPaths:function e(r,o,n,s,i){const a=t.resolve(t.dirname(r)),c=t.resolve(t.dirname(n));if(c===a||c===t.parse(c).root)return i();C.stat(c,{bigint:!0},(t,a)=>t?"ENOENT"===t.code?i():i(t):L(o,a)?i(new Error(B(r,n,s))):e(r,o,c,s,i))},checkParentPathsSync:function e(r,o,n,s){const i=t.resolve(t.dirname(r)),a=t.resolve(t.dirname(n));if(a===i||a===t.parse(a).root)return;let c;try{c=C.statSync(a,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(L(o,c))throw new Error(B(r,n,s));return e(r,o,a,s)},isSrcSubdir:M,areIdentical:L};const $=N.mkdirsSync;function H(e,r,o,n){const s=(n.dereference?P.statSync:P.lstatSync)(r);if(s.isDirectory())return function(e,t,r,o,n){return t?V(r,o,n):function(e,t,r,o){return P.mkdirSync(r),V(t,r,o),W(r,e)}(e.mode,r,o,n)}(s,e,r,o,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,r,o,n){return t?function(e,t,r,o){if(o.overwrite)return P.unlinkSync(r),z(e,t,r,o);if(o.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,o,n):z(e,r,o,n)}(s,e,r,o,n);if(s.isSymbolicLink())return function(e,r,o,n){let s=P.readlinkSync(r);if(n.dereference&&(s=t.resolve(process.cwd(),s)),e){let e;try{e=P.readlinkSync(o)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return P.symlinkSync(s,o);throw e}if(n.dereference&&(e=t.resolve(process.cwd(),e)),q.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(P.statSync(o).isDirectory()&&q.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return P.unlinkSync(t),P.symlinkSync(e,t)}(s,o)}return P.symlinkSync(s,o)}(e,r,o,n);if(s.isSocket())throw new Error("Cannot copy a socket file: "+r);if(s.isFIFO())throw new Error("Cannot copy a FIFO pipe: "+r);throw new Error("Unknown file: "+r)}function z(e,t,r,o){return P.copyFileSync(t,r),o.preserveTimestamps&&function(e,t,r){(function(e){return 0==(128&e)})(e)&&function(e,t){W(e,128|t)}(r,e),function(e,t){const r=P.statSync(e);!function(e,t,r){const o=P.openSync(e,"r+");P.futimesSync(o,t,r),P.closeSync(o)}(t,r.atime,r.mtime)}(t,r)}(e.mode,t,r),W(r,e.mode)}function W(e,t){return P.chmodSync(e,t)}function V(e,r,o){P.readdirSync(e).forEach(n=>function(e,r,o,n){const s=t.join(r,e),i=t.join(o,e),{destStat:a}=q.checkPathsSync(s,i,"copy",n);return function(e,t,r,o){if(!o.filter||o.filter(t,r))return H(e,t,r,o)}(a,s,i,n)}(n,e,r,o))}var J={copySync:function(e,r,o){"function"==typeof o&&(o={filter:o}),(o=o||{}).clobber=!("clobber"in o)||!!o.clobber,o.overwrite="overwrite"in o?!!o.overwrite:o.clobber,o.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:n,destStat:s}=q.checkPathsSync(e,r,"copy",o);return q.checkParentPathsSync(e,n,r,"copy"),function(e,r,o,n){if(n.filter&&!n.filter(r,o))return;const s=t.dirname(o);return P.existsSync(s)||$(s),H(e,r,o,n)}(s,e,r,o)}},Y={pathExists:v(function(e){return C.access(e).then(()=>!0).catch(()=>!1)}),pathExistsSync:C.existsSync};const K=N.mkdirs,Q=Y.pathExists;function Z(e,r,o,n,s){const i=t.dirname(o);Q(i,(t,a)=>t?s(t):a?ee(e,r,o,n,s):void K(i,t=>t?s(t):ee(e,r,o,n,s)))}function X(e,t,r,o,n,s){Promise.resolve(n.filter(r,o)).then(i=>i?e(t,r,o,n,s):s(),e=>s(e))}function ee(e,r,o,n,s){(n.dereference?P.stat:P.lstat)(r,(i,a)=>i?s(i):a.isDirectory()?function(e,t,r,o,n,s){return t?ne(r,o,n,s):function(e,t,r,o,n){P.mkdir(r,s=>{if(s)return n(s);ne(t,r,o,t=>t?n(t):oe(r,e,n))})}(e.mode,r,o,n,s)}(a,e,r,o,n,s):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(e,t,r,o,n,s){return t?function(e,t,r,o,n){if(!o.overwrite)return o.errorOnExist?n(new Error(`'${r}' already exists`)):n();P.unlink(r,s=>s?n(s):te(e,t,r,o,n))}(e,r,o,n,s):te(e,r,o,n,s)}(a,e,r,o,n,s):a.isSymbolicLink()?function(e,r,o,n,s){P.readlink(r,(r,i)=>r?s(r):(n.dereference&&(i=t.resolve(process.cwd(),i)),e?void P.readlink(o,(r,a)=>r?"EINVAL"===r.code||"UNKNOWN"===r.code?P.symlink(i,o,s):s(r):(n.dereference&&(a=t.resolve(process.cwd(),a)),q.isSrcSubdir(i,a)?s(new Error(`Cannot copy '${i}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&q.isSrcSubdir(a,i)?s(new Error(`Cannot overwrite '${a}' with '${i}'.`)):function(e,t,r){P.unlink(t,o=>o?r(o):P.symlink(e,t,r))}(i,o,s))):P.symlink(i,o,s)))}(e,r,o,n,s):a.isSocket()?s(new Error("Cannot copy a socket file: "+r)):a.isFIFO()?s(new Error("Cannot copy a FIFO pipe: "+r)):s(new Error("Unknown file: "+r)))}function te(e,t,r,o,n){P.copyFile(t,r,s=>s?n(s):o.preserveTimestamps?function(e,t,r,o){return function(e){return 0==(128&e)}(e)?function(e,t,r){return oe(e,128|t,r)}(r,e,n=>n?o(n):re(e,t,r,o)):re(e,t,r,o)}(e.mode,t,r,n):oe(r,e.mode,n))}function re(e,t,r,o){!function(e,t,r){P.stat(e,(e,o)=>e?r(e):function(e,t,r,o){P.open(e,"r+",(e,n)=>{if(e)return o(e);P.futimes(n,t,r,e=>{P.close(n,t=>{o&&o(e||t)})})})}(t,o.atime,o.mtime,r))}(t,r,t=>t?o(t):oe(r,e,o))}function oe(e,t,r){return P.chmod(e,t,r)}function ne(e,r,o,n){P.readdir(e,(s,i)=>s?n(s):function e(r,o,n,s,i){const a=r.pop();return a?function(r,o,n,s,i,a){const c=t.join(n,o),u=t.join(s,o);q.checkPaths(c,u,"copy",i,(t,o)=>{if(t)return a(t);const{destStat:l}=o;!function(e,t,r,o,n){o.filter?X(ee,e,t,r,o,n):ee(e,t,r,o,n)}(l,c,u,i,t=>t?a(t):e(r,n,s,i,a))})}(r,a,o,n,s,i):i()}(i,e,r,o,n))}var se={copy:w(function(e,t,r,o){"function"!=typeof r||o?"function"==typeof r&&(r={filter:r}):(o=r,r={}),o=o||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),q.checkPaths(e,t,"copy",r,(n,s)=>{if(n)return o(n);const{srcStat:i,destStat:a}=s;q.checkParentPaths(e,i,t,"copy",n=>n?o(n):r.filter?X(Z,a,e,t,r,o):Z(a,e,t,r,o))})})};const ie="win32"===process.platform;function ae(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||P[t],e[t+="Sync"]=e[t]||P[t]}),e.maxBusyTries=e.maxBusyTries||3}function ce(e,t,r){let o=0;"function"==typeof t&&(r=t,t={}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i.strictEqual(typeof r,"function","rimraf: callback function required"),i(t,"rimraf: invalid options argument provided"),i.strictEqual(typeof t,"object","rimraf: options should be object"),ae(t),ue(e,t,function n(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&oue(e,t,n),100*o);"ENOENT"===s.code&&(s=null)}r(s)})}function ue(e,t,r){i(e),i(t),i("function"==typeof r),t.lstat(e,(o,n)=>o&&"ENOENT"===o.code?r(null):o&&"EPERM"===o.code&&ie?le(e,t,o,r):n&&n.isDirectory()?fe(e,t,o,r):void t.unlink(e,o=>{if(o){if("ENOENT"===o.code)return r(null);if("EPERM"===o.code)return ie?le(e,t,o,r):fe(e,t,o,r);if("EISDIR"===o.code)return fe(e,t,o,r)}return r(o)}))}function le(e,t,r,o){i(e),i(t),i("function"==typeof o),t.chmod(e,438,n=>{n?o("ENOENT"===n.code?null:r):t.stat(e,(n,s)=>{n?o("ENOENT"===n.code?null:r):s.isDirectory()?fe(e,t,r,o):t.unlink(e,o)})})}function pe(e,t,r){let o;i(e),i(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{o=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}o.isDirectory()?he(e,t,r):t.unlinkSync(e)}function fe(e,r,o,n){i(e),i(r),i("function"==typeof n),r.rmdir(e,s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?n(s&&"ENOTDIR"===s.code?o:s):function(e,r,o){i(e),i(r),i("function"==typeof o),r.readdir(e,(n,s)=>{if(n)return o(n);let i,a=s.length;if(0===a)return r.rmdir(e,o);s.forEach(n=>{ce(t.join(e,n),r,t=>{if(!i)return t?o(i=t):void(0==--a&&r.rmdir(e,o))})})})}(e,r,n)})}function de(e,t){let r;ae(t=t||{}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i(t,"rimraf: missing options"),i.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&ie&&pe(e,t,r)}try{r&&r.isDirectory()?he(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return ie?pe(e,t,r):he(e,t,r);if("EISDIR"!==r.code)throw r;he(e,t,r)}}function he(e,r,o){i(e),i(r);try{r.rmdirSync(e)}catch(n){if("ENOTDIR"===n.code)throw o;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(e,r){if(i(e),i(r),r.readdirSync(e).forEach(o=>de(t.join(e,o),r)),!ie)return r.rmdirSync(e,r);{const t=Date.now();do{try{return r.rmdirSync(e,r)}catch{}}while(Date.now()-t<500)}}(e,r);else if("ENOENT"!==n.code)throw n}}var me=ce;ce.sync=de;var ye={remove:w(function(e,t){if(P.rm)return P.rm(e,{recursive:!0,force:!0},t);me(e,t)}),removeSync:function(e){if(P.rmSync)return P.rmSync(e,{recursive:!0,force:!0});me.sync(e)}};const ge=v(async function(e){let r;try{r=await C.readdir(e)}catch{return N.mkdirs(e)}return Promise.all(r.map(r=>ye.remove(t.join(e,r))))});function be(e){let r;try{r=C.readdirSync(e)}catch{return N.mkdirsSync(e)}r.forEach(r=>{r=t.join(e,r),ye.removeSync(r)})}var we={emptyDirSync:be,emptydirSync:be,emptyDir:ge,emptydir:ge},ve={createFile:w(function(e,r){function o(){P.writeFile(e,"",e=>{if(e)return r(e);r()})}P.stat(e,(n,s)=>{if(!n&&s.isFile())return r();const i=t.dirname(e);P.stat(i,(e,t)=>{if(e)return"ENOENT"===e.code?N.mkdirs(i,e=>{if(e)return r(e);o()}):r(e);t.isDirectory()?o():P.readdir(i,e=>{if(e)return r(e)})})})}),createFileSync:function(e){let r;try{r=P.statSync(e)}catch{}if(r&&r.isFile())return;const o=t.dirname(e);try{P.statSync(o).isDirectory()||P.readdirSync(o)}catch(e){if(!e||"ENOENT"!==e.code)throw e;N.mkdirsSync(o)}P.writeFileSync(e,"")}};const Ee=w,Te=Y.pathExists,{areIdentical:Se}=q;var _e={createLink:Ee(function(e,r,o){function n(e,t){P.link(e,t,e=>{if(e)return o(e);o(null)})}P.lstat(r,(s,i)=>{P.lstat(e,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),o(s);if(i&&Se(a,i))return o(null);const c=t.dirname(r);Te(c,(t,s)=>t?o(t):s?n(e,r):void N.mkdirs(c,t=>{if(t)return o(t);n(e,r)}))})})}),createLinkSync:function(e,r){let o;try{o=P.lstatSync(r)}catch{}try{const t=P.lstatSync(e);if(o&&Se(t,o))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=t.dirname(r);return P.existsSync(n)||N.mkdirsSync(n),P.linkSync(e,r)}};const Oe=Y.pathExists,ke=w,Pe=N.mkdirs,Ce=N.mkdirsSync,Ae=Y.pathExists,{areIdentical:Re}=q;function je(e,r,o,n){!function(e,r,o){if(t.isAbsolute(e))return P.lstat(e,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),o(t)):o(null,{toCwd:e,toDst:e}));{const n=t.dirname(r),s=t.join(n,e);Oe(s,(r,i)=>r?o(r):i?o(null,{toCwd:s,toDst:e}):P.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),o(r)):o(null,{toCwd:e,toDst:t.relative(n,e)})))}}(e,r,(s,i)=>{if(s)return n(s);e=i.toDst,function(e,t,r){if(r="function"==typeof t?t:r,t="function"!=typeof t&&t)return r(null,t);P.lstat(e,(e,o)=>{if(e)return r(null,"file");t=o&&o.isDirectory()?"dir":"file",r(null,t)})}(i.toCwd,o,(o,s)=>{if(o)return n(o);const i=t.dirname(r);Ae(i,(t,o)=>t?n(t):o?C.symlink(e,r,s,n):void Pe(i,t=>{if(t)return n(t);C.symlink(e,r,s,n)}))})})}var xe={createSymlink:ke(function(e,t,r,o){o="function"==typeof r?r:o,r="function"!=typeof r&&r,C.lstat(t,(n,s)=>{!n&&s.isSymbolicLink()?Promise.all([C.stat(e),C.stat(t)]).then(([n,s])=>{if(Re(n,s))return o(null);je(e,t,r,o)}):je(e,t,r,o)})}),createSymlinkSync:function(e,r,o){let n;try{n=C.lstatSync(r)}catch{}if(n&&n.isSymbolicLink()){const t=C.statSync(e),o=C.statSync(r);if(Re(t,o))return}const s=function(e,r){let o;if(t.isAbsolute(e)){if(o=P.existsSync(e),!o)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const n=t.dirname(r),s=t.join(n,e);if(o=P.existsSync(s),o)return{toCwd:s,toDst:e};if(o=P.existsSync(e),!o)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:t.relative(n,e)}}}(e,r);e=s.toDst,o=function(e,t){let r;if(t)return t;try{r=P.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}(s.toCwd,o);const i=t.dirname(r);return C.existsSync(i)||Ce(i),C.symlinkSync(e,r,o)}},Fe={createFile:ve.createFile,createFileSync:ve.createFileSync,ensureFile:ve.createFile,ensureFileSync:ve.createFileSync,createLink:_e.createLink,createLinkSync:_e.createLinkSync,ensureLink:_e.createLink,ensureLinkSync:_e.createLinkSync,createSymlink:xe.createSymlink,createSymlinkSync:xe.createSymlinkSync,ensureSymlink:xe.createSymlink,ensureSymlinkSync:xe.createSymlinkSync},Ge={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:o=null,spaces:n}={}){const s=r?t:"";return JSON.stringify(e,o,n).replace(/\n/g,t)+s},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}};let Ie;try{Ie=P}catch(e){Ie=r}const{stringify:De,stripBom:Ne}=Ge,Ue={readFile:v(async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||Ie,o=!("throws"in t)||t.throws;let n,s=await w(r.readFile)(e,t);s=Ne(s);try{n=JSON.parse(s,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return n}),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||Ie,o=!("throws"in t)||t.throws;try{let o=r.readFileSync(e,t);return o=Ne(o),JSON.parse(o,t.reviver)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:v(async function(e,t,r={}){const o=r.fs||Ie,n=De(t,r);await w(o.writeFile)(e,n,r)}),writeFileSync:function(e,t,r={}){const o=r.fs||Ie,n=De(t,r);return o.writeFileSync(e,n,r)}};var Le={readJson:Ue.readFile,readJsonSync:Ue.readFileSync,writeJson:Ue.writeFile,writeJsonSync:Ue.writeFileSync};const Me=Y.pathExists;var Be={outputFile:w(function(e,r,o,n){"function"==typeof o&&(n=o,o="utf8");const s=t.dirname(e);Me(s,(t,i)=>t?n(t):i?P.writeFile(e,r,o,n):void N.mkdirs(s,t=>{if(t)return n(t);P.writeFile(e,r,o,n)}))}),outputFileSync:function(e,...r){const o=t.dirname(e);if(P.existsSync(o))return P.writeFileSync(e,...r);N.mkdirsSync(o),P.writeFileSync(e,...r)}};const{stringify:qe}=Ge,{outputFile:$e}=Be,{stringify:He}=Ge,{outputFileSync:ze}=Be;Le.outputJson=v(async function(e,t,r={}){const o=qe(t,r);await $e(e,o,r)}),Le.outputJsonSync=function(e,t,r){const o=He(t,r);ze(e,o,r)},Le.outputJSON=Le.outputJson,Le.outputJSONSync=Le.outputJsonSync,Le.writeJSON=Le.writeJson,Le.writeJSONSync=Le.writeJsonSync,Le.readJSON=Le.readJson,Le.readJSONSync=Le.readJsonSync;var We=Le;const Ve=J.copySync,Je=ye.removeSync,Ye=N.mkdirpSync;function Ke(e,t,r){try{P.renameSync(e,t)}catch(o){if("EXDEV"!==o.code)throw o;return function(e,t,r){return Ve(e,t,{overwrite:r,errorOnExist:!0}),Je(e)}(e,t,r)}}var Qe={moveSync:function(e,r,o){const n=(o=o||{}).overwrite||o.clobber||!1,{srcStat:s,isChangingCase:i=!1}=q.checkPathsSync(e,r,"move",o);return q.checkParentPathsSync(e,s,r,"move"),function(e){const r=t.dirname(e);return t.parse(r).root===r}(r)||Ye(t.dirname(r)),function(e,t,r,o){if(o)return Ke(e,t,r);if(r)return Je(t),Ke(e,t,r);if(P.existsSync(t))throw new Error("dest already exists.");return Ke(e,t,r)}(e,r,n,i)}};const Ze=se.copy,Xe=ye.remove,et=N.mkdirp,tt=Y.pathExists;function rt(e,t,r,o,n){return o?ot(e,t,r,n):r?Xe(t,o=>o?n(o):ot(e,t,r,n)):void tt(t,(o,s)=>o?n(o):s?n(new Error("dest already exists.")):ot(e,t,r,n))}function ot(e,t,r,o){P.rename(e,t,n=>n?"EXDEV"!==n.code?o(n):function(e,t,r,o){Ze(e,t,{overwrite:r,errorOnExist:!0},t=>t?o(t):Xe(e,o))}(e,t,r,o):o())}var nt,st={move:w(function(e,r,o,n){"function"==typeof o&&(n=o,o={});const s=o.overwrite||o.clobber||!1;q.checkPaths(e,r,"move",o,(o,i)=>{if(o)return n(o);const{srcStat:a,isChangingCase:c=!1}=i;q.checkParentPaths(e,a,r,"move",o=>o?n(o):function(e){const r=t.dirname(e);return t.parse(r).root===r}(r)?rt(e,r,s,c,n):void et(t.dirname(r),t=>t?n(t):rt(e,r,s,c,n)))})})},it={...C,...J,...se,...we,...Fe,...We,...N,...Qe,...st,...Be,...Y,...ye},at=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}}),ct=b(function(e,t){var r=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=r(a);function n(e,t,r){const n=new s(e,t,r);process.stdout.write(n.toString()+o.EOL)}t.issueCommand=n,t.issue=function(e,t=""){n(e,{},t)};class s{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const o=this.properties[r];o&&(t?t=!1:e+=",",e+=`${r}=${i(o)}`)}}return e+="::"+function(e){return at.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}function i(e){return at.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}),ut=b(function(e,t){var o=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=o(r),s=o(a);t.issueCommand=function(e,t){const r=process.env["GITHUB_"+e];if(!r)throw new Error("Unable to find environment variable for file command "+e);if(!n.existsSync(r))throw new Error("Missing file at path: "+r);n.appendFileSync(r,`${at.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}}),lt=b(function(e,r){var o=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const s=n(a),i=n(t);var c;function u(e){ct.issue("error",e instanceof Error?e.toString():e)}function l(e){ct.issue("group",e)}function p(){ct.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(c=r.ExitCode||(r.ExitCode={})),r.exportVariable=function(e,t){const r=at.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";ut.issueCommand("ENV",`${e}<<${t}${s.EOL}${r}${s.EOL}${t}`)}else ct.issueCommand("set-env",{name:e},r)},r.setSecret=function(e){ct.issueCommand("add-mask",{},e)},r.addPath=function(e){process.env.GITHUB_PATH?ut.issueCommand("PATH",e):ct.issueCommand("add-path",{},e),process.env.PATH=`${e}${i.delimiter}${process.env.PATH}`},r.getInput=function(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw new Error("Input required and not supplied: "+e);return r.trim()},r.setOutput=function(e,t){ct.issueCommand("set-output",{name:e},t)},r.setCommandEcho=function(e){ct.issue("echo",e?"on":"off")},r.setFailed=function(e){process.exitCode=c.Failure,u(e)},r.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},r.debug=function(e){ct.issueCommand("debug",{},e)},r.error=u,r.warning=function(e){ct.issue("warning",e instanceof Error?e.toString():e)},r.info=function(e){process.stdout.write(e+s.EOL)},r.startGroup=l,r.endGroup=p,r.group=function(e,t){return o(this,void 0,void 0,function*(){let r;l(e);try{r=yield t()}finally{p()}return r})},r.saveState=function(e,t){ct.issueCommand("save-state",{name:e},t)},r.getState=function(e){return process.env["STATE_"+e]||""}}),pt=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Context=void 0,t.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(r.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(r.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${a.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}}),ft=b(function(e,t){function r(e){if(!e.hostname)return!1;let t,r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=Number(e.port):"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let o=[e.hostname.toUpperCase()];"number"==typeof t&&o.push(`${o[0]}:${t}`);for(let e of r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e))if(o.some(t=>t===e))return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.getProxyUrl=function(e){let t,o,n="https:"===e.protocol;return r(e)||(o=n?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,o&&(t=new URL(o))),t},t.checkBypass=r});function dt(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||c.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,o,n){for(var s=mt(r,o,n),i=0,a=t.requests.length;i=this.maxSockets?n.requests.push(s):n.createSocket(s,function(t){function r(){n.emit("free",t,s)}function o(e){n.removeSocket(t),t.removeListener("free",r),t.removeListener("close",o),t.removeListener("agentRemove",o)}t.on("free",r),t.on("close",o),t.on("agentRemove",o),e.onSocket(t)})},dt.prototype.createSocket=function(e,t){var r=this,o={};r.sockets.push(o);var n=yt({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),nt("making CONNECT request");var s=r.request(n);function i(n,i,a){var c;return s.removeAllListeners(),i.removeAllListeners(),200!==n.statusCode?(nt("tunneling socket could not be established, statusCode=%d",n.statusCode),i.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):a.length>0?(nt("got illegal response body from proxy"),i.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):(nt("tunneling connection has established"),r.sockets[r.sockets.indexOf(o)]=i,t(i))}s.useChunkedEncodingByDefault=!1,s.once("response",function(e){e.upgrade=!0}),s.once("upgrade",function(e,t,r){process.nextTick(function(){i(e,t,r)})}),s.once("connect",i),s.once("error",function(t){s.removeAllListeners(),nt("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),r.removeSocket(o)}),s.end()},dt.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e)})}};var gt={httpOverHttp:function(e){var t=new dt(e);return t.request=c.request,t},httpsOverHttp:function(e){var t=new dt(e);return t.request=c.request,t.createSocket=ht,t.defaultPort=443,t},httpOverHttps:function(e){var t=new dt(e);return t.request=u.request,t},httpsOverHttps:function(e){var t=new dt(e);return t.request=u.request,t.createSocket=ht,t.defaultPort=443,t},debug:nt=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(){}},bt=b(function(e,t){let r;var o,n,s;Object.defineProperty(t,"__esModule",{value:!0}),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"}(o=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(n=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(s=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=ft.getProxyUrl(new URL(e));return t?t.href:""};const i=[o.MovedPermanently,o.ResourceMoved,o.SeeOther,o.TemporaryRedirect,o.PermanentRedirect],a=[o.BadGateway,o.ServiceUnavailable,o.GatewayTimeout],l=["OPTIONS","GET","DELETE","HEAD"];class p extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,p.prototype)}}t.HttpClientError=p;class f{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])}),this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=f,t.isHttps=function(e){return"https:"===new URL(e).protocol};class d{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||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,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,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,o){return this.request(e,t,r,o)}async getJson(e,t={}){t[n.Accept]=this._getExistingOrDefaultHeader(t,n.Accept,s.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let i=await this.post(e,o,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let i=await this.put(e,o,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let i=await this.patch(e,o,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw new Error("Client has already been disposed.");let s,c=new URL(t),u=this._prepareRequest(e,c,n),p=this._allowRetries&&-1!=l.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const o=s.message.headers.location;if(!o)break;let i=new URL(o);if("https:"==c.protocol&&c.protocol!=i.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.");if(await s.readBody(),i.hostname!==c.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];u=this._prepareRequest(e,i,n),s=await this.requestRaw(u,r),t--}if(-1==a.indexOf(s.message.statusCode))return s;f+=1,f{this.requestRawWithCallback(e,t,function(e,t){e&&o(e),r(t)})})}requestRawWithCallback(e,t,r){let o;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let n=!1,s=(e,t)=>{n||(n=!0,r(e,t))},i=e.httpModule.request(e.options,e=>{let t=new f(e);s(null,t)});i.on("socket",e=>{o=e}),i.setTimeout(this._socketTimeout||18e4,()=>{o&&o.end(),s(new Error("Request timeout: "+e.options.path),null)}),i.on("error",function(e){s(e,null)}),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){i.end()}),t.pipe(i)):i.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const n="https:"===o.parsedUrl.protocol;o.httpModule=n?u:c;const s=n?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):s,o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||""),o.options.method=e,o.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(o.options.headers["user-agent"]=this.userAgent),o.options.agent=this._getAgent(o.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(o.options)}),o}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,r){let o;var n;return this.requestOptions&&this.requestOptions.headers&&(o=(n=this.requestOptions.headers,Object.keys(n).reduce((e,t)=>(e[t.toLowerCase()]=n[t],e),{}))[t]),e[t]||o||r}_getAgent(e){let t,o=ft.getProxyUrl(e),n=o&&o.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const s="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||c.globalAgent.maxSockets),n){r||(r=gt);const e={maxSockets:i,keepAlive:this._keepAlive,proxy:{proxyAuth:`${o.username}:${o.password}`,host:o.hostname,port:o.port}};let n;const a="https:"===o.protocol;n=s?a?r.httpsOverHttps:r.httpsOverHttp:a?r.httpOverHttps:r.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=s?new u.Agent(e):new c.Agent(e),this._agent=t}return t||(t=s?u.globalAgent:c.globalAgent),s&&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(r,n)=>{const s=e.message.statusCode,i={statusCode:s,result:null,headers:{}};let a,c;s==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,d.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+s+")";let t=new p(e,s);t.result=i.result,n(t)}else r(i)})}}t.HttpClient=d}),wt=b(function(e,t){var r=y&&y.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const s=n(bt);t.getAuthString=function(e,t){if(!e&&!t.auth)throw new Error("Parameter token or opts.auth is required");if(e&&t.auth)throw new Error("Parameters token and opts.auth may not both be specified");return"string"==typeof t.auth?t.auth:"token "+e},t.getProxyAgent=function(e){return(new s.HttpClient).getAgent(e)},t.getApiBaseUrl=function(){return process.env.GITHUB_API_URL||"https://api.github.com"}});function vt(){return"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var Et=function e(t,r,o,n){if("function"!=typeof o)throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(r)?r.reverse().reduce(function(r,o){return e.bind(null,t,o,r,n)},o)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,n)},o)():o(n)})},Tt=function(e,t,r,o){var n=o;e.registry[r]||(e.registry[r]=[]),"before"===t&&(o=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(o=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){return n(r=e,t)}).then(function(){return r})}),"error"===t&&(o=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return n(e,t)})}),e.registry[r].push({hook:o,orig:n})},St=function(e,t,r){if(e.registry[t]){var o=e.registry[t].map(function(e){return e.orig}).indexOf(r);-1!==o&&e.registry[t].splice(o,1)}},_t=Function.bind,Ot=_t.bind(_t);function kt(e,t,r){var o=Ot(St,null).apply(null,r?[t,r]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(function(o){var n=r?[t,o,r]:[t,o];e[o]=e.api[o]=Ot(Tt,null).apply(null,n)})}function Pt(){var e={registry:{}},t=Et.bind(null,e);return kt(t,e),t}var Ct=!1;function At(){return Ct||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),Ct=!0),Pt()}At.Singular=function(){var e={registry:{}},t=Et.bind(null,e,"h");return kt(t,e,"h"),t}.bind(),At.Collection=Pt.bind();var Rt=At,jt=At.Singular,xt=At.Collection;function Ft(e){return"[object Object]"===Object.prototype.toString.call(e)}function Gt(e){var t,r;return!1!==Ft(e)&&(void 0===(t=e.constructor)||!1!==Ft(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function It(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Dt(e,t,r){if("string"==typeof t){let[e,o]=t.split(" ");r=Object.assign(o?{method:e,url:o}:{url:e},r)}else r=Object.assign({},t);var o;r.headers=(o=r.headers)?Object.keys(o).reduce((e,t)=>(e[t.toLowerCase()]=o[t],e),{}):{},It(r),It(r.headers);const n=function e(t,r){const o=Object.assign({},t);return Object.keys(r).forEach(n=>{Gt(r[n])?n in t?o[n]=e(t[n],r[n]):Object.assign(o,{[n]:r[n]}):Object.assign(o,{[n]:r[n]})}),o}(e||{},r);return e&&e.mediaType.previews.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=n.mediaType.previews.map(e=>e.replace(/-preview/,"")),n}Rt.Hook=At,Rt.Singular=jt,Rt.Collection=xt;const Nt=/\{[^}]+\}/g;function Ut(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Lt(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function Mt(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function Bt(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function qt(e,t,r){return t="+"===e||"#"===e?Mt(t):Bt(t),r?Bt(r)+"="+t:t}function $t(e){return null!=e}function Ht(e){return";"===e||"&"===e||"?"===e}function zt(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,o,n){if(o){let e="";const n=[];if(-1!==r.indexOf(o.charAt(0))&&(e=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(r){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,o){var n=e[r],s=[];if($t(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),o&&"*"!==o&&(n=n.substring(0,parseInt(o,10))),s.push(qt(t,n,Ht(t)?r:""));else if("*"===o)Array.isArray(n)?n.filter($t).forEach(function(e){s.push(qt(t,e,Ht(t)?r:""))}):Object.keys(n).forEach(function(e){$t(n[e])&&s.push(qt(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter($t).forEach(function(r){e.push(qt(t,r))}):Object.keys(n).forEach(function(r){$t(n[r])&&(e.push(Bt(r)),e.push(qt(t,n[r].toString())))}),Ht(t)?s.push(Bt(r)+"="+e.join(",")):0!==e.length&&s.push(e.join(","))}else";"===t?$t(n)&&s.push(Bt(r)):""!==n||"&"!==t&&"?"!==t?""===n&&s.push(""):s.push(Bt(r)+"=");return s}(t,e,o[1],o[2]||o[3]))}),e&&"+"!==e){var s=",";return"?"===e?s="&":"#"!==e&&(s=e),(0!==n.length?e:"")+n.join(s)}return n.join(",")}return Mt(n)})}function Wt(e){let t,r=e.method.toUpperCase(),o=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),s=Lt(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(Nt);return t?t.map(Ut).reduce((e,t)=>e.concat(t),[]):[]}(o);var a;o=(a=o,{expand:zt.bind(null,a)}).expand(s),/^http/.test(o)||(o=e.baseUrl+o);const c=Lt(s,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,"application/vnd$1$2."+e.mediaType.format)).join(",")),e.mediaType.previews.length)){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?"."+e.mediaType.format:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?o=function(e,t){const r=/\?/.test(e)?"&":"?",o=Object.keys(t);return 0===o.length?e:e+r+o.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(o,c):"data"in c?t=c.data:Object.keys(c).length?t=c:n["content-length"]=0,n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:o,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function Vt(e,t,r){return Wt(Dt(e,t,r))}const Jt=function e(t,r){const o=Dt(t,r),n=Vt.bind(null,o);return Object.assign(n,{DEFAULTS:o,defaults:e.bind(null,o),merge:Dt.bind(null,o),parse:Wt})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.10 "+vt()},mediaType:{format:"",previews:[]}}),Yt=n.Readable,Kt=Symbol("buffer"),Qt=Symbol("type");class Zt{constructor(){this[Qt]="";const e=arguments[0],t=arguments[1],r=[];if(e){const t=e,o=Number(t.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=r.size;let s=void 0===o?0:o;var i=r.timeout;let a=void 0===i?0:i;null==e?e=null:sr(e)?e=Buffer.from(e.toString()):ir(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[tr]={body:e,disturbed:!1,error:null},this.size=s,this.timeout=a,e instanceof n&&e.on("error",function(e){const r="AbortError"===e.name?e:new Xt(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[tr].error=r})}function nr(){var e=this;if(this[tr].disturbed)return or.Promise.reject(new TypeError("body used already for: "+this.url));if(this[tr].disturbed=!0,this[tr].error)return or.Promise.reject(this[tr].error);let t=this.body;if(null===t)return or.Promise.resolve(Buffer.alloc(0));if(ir(t)&&(t=t.stream()),Buffer.isBuffer(t))return or.Promise.resolve(t);if(!(t instanceof n))return or.Promise.resolve(Buffer.alloc(0));let r=[],o=0,s=!1;return new or.Promise(function(n,i){let a;e.timeout&&(a=setTimeout(function(){s=!0,i(new Xt(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(s=!0,i(t)):i(new Xt(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!s&&null!==t){if(e.size&&o+t.length>e.size)return s=!0,void i(new Xt(`content size at ${e.url} over limit: ${e.size}`,"max-size"));o+=t.length,r.push(t)}}),t.on("end",function(){if(!s){clearTimeout(a);try{n(Buffer.concat(r,o))}catch(t){i(new Xt(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function sr(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function ir(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function ar(e){let t,r,o=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof n&&"function"!=typeof o.getBoundary&&(t=new rr,r=new rr,o.pipe(t),o.pipe(r),e[tr].body=t,o=r),o}function cr(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":sr(e)?"application/x-www-form-urlencoded;charset=UTF-8":ir(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?"multipart/form-data;boundary="+e.getBoundary():e instanceof n?null:"text/plain;charset=UTF-8"}function ur(e){const t=e.body;return null===t?0:ir(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}or.prototype={get body(){return this[tr].body},get bodyUsed(){return this[tr].disturbed},arrayBuffer(){return nr.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return nr.call(this).then(function(t){return Object.assign(new Zt([],{type:e.toLowerCase()}),{[Kt]:t})})},json(){var e=this;return nr.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return or.Promise.reject(new Xt(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return nr.call(this).then(function(e){return e.toString()})},buffer(){return nr.call(this)},textConverted(){var e=this;return nr.call(this).then(function(t){return function(e,t){if("function"!=typeof er)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let o,n,s="utf-8";return r&&(o=/charset=([^;]*)/i.exec(r)),n=e.slice(0,1024).toString(),!o&&n&&(o=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[mr]=Object.create(null),e instanceof yr){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e))this.append(t,e[t])}}}get(e){fr(e=""+e);const t=hr(this[mr],e);return void 0===t?null:this[mr][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=gr(this),o=0;for(;o1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[mr]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[mr][t].join(", ")}:function(t){return[t.toLowerCase(),e[mr][t].join(", ")]})}yr.prototype.entries=yr.prototype[Symbol.iterator],Object.defineProperty(yr.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(yr.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const br=Symbol("internal");function wr(e,t){const r=Object.create(vr);return r[br]={target:e,kind:t,index:0},r}const vr=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==vr)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[br];const t=e.index,r=gr(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[br].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Er(e){const t=Object.assign({__proto__:null},e[mr]),r=hr(e[mr],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(vr,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Tr=Symbol("Response internals"),Sr=c.STATUS_CODES;class _r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};or.call(this,e,t);const r=t.status||200,o=new yr(t.headers);if(null!=e&&!o.has("Content-Type")){const t=cr(e);t&&o.append("Content-Type",t)}this[Tr]={url:t.url,status:r,statusText:t.statusText||Sr[r],headers:o,counter:t.counter}}get url(){return this[Tr].url||""}get status(){return this[Tr].status}get ok(){return this[Tr].status>=200&&this[Tr].status<300}get redirected(){return this[Tr].counter>0}get statusText(){return this[Tr].statusText}get headers(){return this[Tr].headers}clone(){return new _r(ar(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}or.mixIn(_r.prototype),Object.defineProperties(_r.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(_r.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Or=Symbol("Request internals"),kr=f.parse,Pr=f.format,Cr="destroy"in n.Readable.prototype;function Ar(e){return"object"==typeof e&&"object"==typeof e[Or]}class Rr{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ar(e)?t=kr(e.url):(t=kr(e&&e.href?e.href:""+e),e={});let o=r.method||e.method||"GET";if(o=o.toUpperCase(),(null!=r.body||Ar(e)&&null!==e.body)&&("GET"===o||"HEAD"===o))throw new TypeError("Request with GET/HEAD method cannot have body");let n=null!=r.body?r.body:Ar(e)&&null!==e.body?ar(e):null;or.call(this,n,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new yr(r.headers||e.headers||{});if(null!=n&&!s.has("Content-Type")){const e=cr(n);e&&s.append("Content-Type",e)}let i=Ar(e)?e.signal:null;if("signal"in r&&(i=r.signal),null!=i&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Or]={method:o,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:t,signal:i},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[Or].method}get url(){return Pr(this[Or].parsedURL)}get headers(){return this[Or].headers}get redirect(){return this[Or].redirect}get signal(){return this[Or].signal}clone(){return new Rr(this)}}function jr(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}or.mixIn(Rr.prototype),Object.defineProperty(Rr.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Rr.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(jr.prototype=Object.create(Error.prototype)).constructor=jr,jr.prototype.name="AbortError";const xr=n.PassThrough,Fr=f.resolve;function Gr(e,t){if(!Gr.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return or.Promise=Gr.Promise,new Gr.Promise(function(r,o){const s=new Rr(e,t),i=function(e){const t=e[Or].parsedURL,r=new yr(e[Or].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!Cr)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let o=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(o="0"),null!=e.body){const t=ur(e);"number"==typeof t&&(o=String(t))}o&&r.set("Content-Length",o),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let s=e.agent;return"function"==typeof s&&(s=s(t)),r.has("Connection")||s||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:Er(r),agent:s})}(s),a=("https:"===i.protocol?u:c).request,l=s.signal;let p=null;const f=function(){let e=new jr("The user aborted a request.");o(e),s.body&&s.body instanceof n.Readable&&s.body.destroy(e),p&&p.body&&p.body.emit("error",e)};if(l&&l.aborted)return void f();const h=function(){f(),g()},m=a(i);let y;function g(){m.abort(),l&&l.removeEventListener("abort",h),clearTimeout(y)}l&&l.addEventListener("abort",h),s.timeout&&m.once("socket",function(e){y=setTimeout(function(){o(new Xt("network timeout at: "+s.url,"request-timeout")),g()},s.timeout)}),m.on("error",function(e){o(new Xt(`request to ${s.url} failed, reason: ${e.message}`,"system",e)),g()}),m.on("response",function(e){clearTimeout(y);const t=function(e){const t=new yr;for(const r of Object.keys(e))if(!lr.test(r))if(Array.isArray(e[r]))for(const o of e[r])pr.test(o)||(void 0===t[mr][r]?t[mr][r]=[o]:t[mr][r].push(o));else pr.test(e[r])||(t[mr][r]=[e[r]]);return t}(e.headers);if(Gr.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:Fr(s.url,n);switch(s.redirect){case"error":return o(new Xt("uri requested responds with a redirect, redirect mode is set to error: "+s.url,"no-redirect")),void g();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){o(e)}break;case"follow":if(null===i)break;if(s.counter>=s.follow)return o(new Xt("maximum redirect reached at: "+s.url,"max-redirect")),void g();const n={headers:new yr(s.headers),follow:s.follow,counter:s.counter+1,agent:s.agent,compress:s.compress,method:s.method,body:s.body,signal:s.signal,timeout:s.timeout,size:s.size};return 303!==e.statusCode&&s.body&&null===ur(s)?(o(new Xt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void g()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==s.method)||(n.method="GET",n.body=void 0,n.headers.delete("content-length")),r(Gr(new Rr(i,n))),void g())}}e.once("end",function(){l&&l.removeEventListener("abort",h)});let n=e.pipe(new xr);const i={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:s.size,timeout:s.timeout,counter:s.counter},a=t.get("Content-Encoding");if(!s.compress||"HEAD"===s.method||null===a||204===e.statusCode||304===e.statusCode)return p=new _r(n,i),void r(p);if("gzip"==a||"x-gzip"==a)return n=n.pipe(d.createGunzip({flush:d.Z_SYNC_FLUSH,finishFlush:d.Z_SYNC_FLUSH})),p=new _r(n,i),void r(p);if("deflate"!=a&&"x-deflate"!=a){if("br"==a&&"function"==typeof d.createBrotliDecompress)return n=n.pipe(d.createBrotliDecompress()),p=new _r(n,i),void r(p);p=new _r(n,i),r(p)}else e.pipe(new xr).once("data",function(e){n=n.pipe(8==(15&e[0])?d.createInflate():d.createInflateRaw()),p=new _r(n,i),r(p)})}),function(e,t){const r=t.body;null===r?e.end():ir(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(m,s)})}Gr.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Gr.Promise=global.Promise;class Ir extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Dr=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){o[e]=t[e]}),o;function o(){for(var e=new Array(arguments.length),r=0;rconsole.warn(e));class qr extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(Br(new Ir("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const o=Object.assign({},r.request);r.request.headers.authorization&&(o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o}}function $r(e){(Gt(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||Gr)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(n=>{r=n.url,t=n.status;for(const e of n.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new qr(n.statusText,t,{headers:o,request:e})}if(304===t)throw new qr("Not modified",t,{headers:o,request:e});if(t>=400)return n.text().then(r=>{const n=new qr(r,t,{headers:o,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e),n.message=n.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw n});const s=n.headers.get("content-type");return/application\/json/.test(s)?n.json():!s||/^text\/|charset=utf-8$/.test(s)?n.text():function(e){return e.arrayBuffer()}(n)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof qr)throw t;throw new qr(t.message,500,{headers:o,request:e})})}const Hr=function e(t,r){const o=t.defaults(r);return Object.assign(function(t,r){const n=o.merge(t,r);if(!n.request||!n.request.hook)return $r(o.parse(n));const s=(e,t)=>$r(o.parse(o.merge(e,t)));return Object.assign(s,{endpoint:o,defaults:e.bind(null,o)}),n.request.hook(s,n)},{endpoint:o,defaults:e.bind(null,o)})}(Jt,{headers:{"user-agent":"octokit-request.js/5.4.12 "+vt()}});class zr extends Error{constructor(e,t){super(t.data.errors[0].message),Object.assign(this,t.data),Object.assign(this,{headers:t.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Wr=["method","baseUrl","url","headers","request","query","mediaType"],Vr=/\/api\/v3\/?$/;function Jr(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){if("string"==typeof t&&r&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const o="string"==typeof t?Object.assign({query:t},r):t,n=Object.keys(o).reduce((e,t)=>Wr.includes(t)?(e[t]=o[t],e):(e.variables||(e.variables={}),e.variables[t]=o[t],e),{}),s=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Vr.test(s)&&(n.url=s.replace(Vr,"/api/graphql")),e(n).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new zr(n,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:Jr.bind(null,r),endpoint:Hr.endpoint})}async function Yr(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Kr(e,t,r,o){const n=t.endpoint.merge(r,o);return n.headers.authorization=function(e){return 3===e.split(/\./).length?"bearer "+e:"token "+e}(e),t(n)}Jr(Hr,{headers:{"user-agent":"octokit-graphql.js/4.5.8 "+vt()},method:"POST",url:"/graphql"});const Qr=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Yr.bind(null,e),{hook:Kr.bind(null,e)})};class Zr{constructor(e={}){const t=new xt,r={baseUrl:Hr.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};var o;if(r.headers["user-agent"]=[e.userAgent,"octokit-core.js/3.2.4 "+vt()].filter(Boolean).join(" "),e.baseUrl&&(r.baseUrl=e.baseUrl),e.previews&&(r.mediaType.previews=e.previews),e.timeZone&&(r.headers["time-zone"]=e.timeZone),this.request=Hr.defaults(r),this.graphql=(o=this.request,Jr(o,{method:"POST",url:"/graphql"})).defaults(r),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=t,e.authStrategy){const{authStrategy:r,...o}=e,n=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",n.hook),this.auth=n}else if(e.auth){const r=Qr(e.auth);t.wrap("request",r.hook),this.auth=r}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){return class extends(this){constructor(...t){const r=t[0]||{};super("function"!=typeof e?Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null):e(r))}}}static plugin(...e){var t;const r=this.plugins;return(t=class extends(this){}).plugins=r.concat(e.filter(e=>!r.includes(e))),t}}Zr.VERSION="3.2.4",Zr.plugins=[];var Xr={__proto__:null,Octokit:Zr};const eo={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits"]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};function to(e,t,r,o,n){const s=e.request.defaults(o);return Object.assign(function(...o){let i=s.endpoint.merge(...o);if(n.mapToData)return i=Object.assign({},i,{data:i[n.mapToData],[n.mapToData]:void 0}),s(i);if(n.renamed){const[o,s]=n.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${o}.${s}()`)}if(n.deprecated&&e.log.warn(n.deprecated),n.renamedParameters){const i=s.endpoint.merge(...o);for(const[o,s]of Object.entries(n.renamedParameters))o in i&&(e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${r}()". Use "${s}" instead`),s in i||(i[s]=i[o]),delete i[o]);return s(i)}return s(...o)},s)}function ro(e){return function(e,t){const r={};for(const[o,n]of Object.entries(t))for(const[t,s]of Object.entries(n)){const[n,i,a]=s,[c,u]=n.split(/ /),l=Object.assign({method:c,url:u},i);r[o]||(r[o]={}),r[o][t]=a?to(e,o,t,l,a):e.request.defaults(l)}return r}(e,eo)}ro.VERSION="4.4.1";var oo=ro;function no(e,t,r){const o="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),n="function"==typeof t?t:e.request,s=o.method,i=o.headers;let a=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};const e=function(e){if(!("total_count"in e.data)||"url"in e.data)return e;const t=e.data.incomplete_results,r=e.data.repository_selection,o=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const n=Object.keys(e.data)[0];return e.data=e.data[n],void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=o,e}(await n({method:s,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}})}}function so(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),function e(t,r,o,n){return o.next().then(s=>{if(s.done)return r;let i=!1;return r=r.concat(n?n(s.value,function(){i=!0}):s.value.data),i?r:e(t,r,o,n)})}(e,[],no(e,t,r)[Symbol.asyncIterator](),o)}function io(e){return{paginate:Object.assign(so.bind(null,e),{iterator:no.bind(null,e)})}}Object.assign(so,{iterator:no}),io.VERSION="2.6.2";var ao,co=io,uo=b(function(e,t){var r=y&&y.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokitOptions=t.GitHub=t.context=void 0;const s=n(pt),i=n(wt);t.context=new s.Context;const a=i.getApiBaseUrl(),c={baseUrl:a,request:{agent:i.getProxyAgent(a)}};t.GitHub=Xr.Octokit.plugin(oo,co).defaults(c),t.getOctokitOptions=function(e,t){const r=Object.assign({},t||{}),o=i.getAuthString(e,r);return o&&(r.auth=o),r}}),lo=b(function(e,t){var r=y&&y.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokit=t.context=void 0;const s=n(pt);t.context=new s.Context,t.getOctokit=function(e,t){return new uo.GitHub(uo.getOctokitOptions(e,t))}}),po=b(function(e,o){var n,s=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})};function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(o,"__esModule",{value:!0}),o.chmod=(n=r.promises).chmod,o.copyFile=n.copyFile,o.lstat=n.lstat,o.mkdir=n.mkdir,o.readdir=n.readdir,o.readlink=n.readlink,o.rename=n.rename,o.rmdir=n.rmdir,o.stat=n.stat,o.symlink=n.symlink,o.unlink=n.unlink,o.IS_WINDOWS="win32"===process.platform,o.exists=function(e){return s(this,void 0,void 0,function*(){try{yield o.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},o.isDirectory=function(e,t=!1){return s(this,void 0,void 0,function*(){return(t?yield o.stat(e):yield o.lstat(e)).isDirectory()})},o.isRooted=function(e){if(!(e=function(e){return e=e||"",o.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return o.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},o.mkdirP=function e(r,n=1e3,a=1){return s(this,void 0,void 0,function*(){if(i.ok(r,"a path argument must be provided"),r=t.resolve(r),a>=n)return o.mkdir(r);try{return void(yield o.mkdir(r))}catch(s){switch(s.code){case"ENOENT":return yield e(t.dirname(r),n,a+1),void(yield o.mkdir(r));default:{let e;try{e=yield o.stat(r)}catch(e){throw s}if(!e.isDirectory())throw s}}}})},o.tryGetExecutablePath=function(e,r){return s(this,void 0,void 0,function*(){let n=void 0;try{n=yield o.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile())if(o.IS_WINDOWS){const o=t.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===o))return e}else if(a(n))return e;const s=e;for(const i of r){e=s+i,n=void 0;try{n=yield o.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(o.IS_WINDOWS){try{const r=t.dirname(e),n=t.basename(e).toUpperCase();for(const s of yield o.readdir(r))if(n===s.toUpperCase()){e=t.join(r,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(a(n))return e}}return""})}}),fo=b(function(e,r){var o=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0});const n=s.promisify(h.exec);function i(e){return o(this,void 0,void 0,function*(){if(po.IS_WINDOWS){try{(yield po.isDirectory(e,!0))?yield n(`rd /s /q "${e}"`):yield n(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield po.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield po.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield n(`rm -rf "${e}"`):yield po.unlink(e)}})}function a(e){return o(this,void 0,void 0,function*(){yield po.mkdirP(e)})}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield po.lstat(e)).isSymbolicLink()){try{yield po.lstat(t),yield po.unlink(t)}catch(e){"EPERM"===e.code&&(yield po.chmod(t,"0666"),yield po.unlink(t))}const r=yield po.readlink(e);yield po.symlink(r,t,po.IS_WINDOWS?"junction":null)}else(yield po.exists(t))&&!r||(yield po.copyFile(e,t))})}r.cp=function(e,r,n={}){return o(this,void 0,void 0,function*(){const{force:s,recursive:i}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(n),u=(yield po.exists(r))?yield po.stat(r):null;if(u&&u.isFile()&&!s)return;const l=u&&u.isDirectory()?t.join(r,t.basename(e)):r;if(!(yield po.exists(e)))throw new Error("no such file or directory: "+e);if((yield po.stat(e)).isDirectory()){if(!i)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,r,n,s){return o(this,void 0,void 0,function*(){if(n>=255)return;n++,yield a(r);const o=yield po.readdir(t);for(const i of o){const o=`${t}/${i}`,a=`${r}/${i}`;(yield po.lstat(o)).isDirectory()?yield e(o,a,n,s):yield c(o,a,s)}yield po.chmod(r,(yield po.stat(t)).mode)})}(e,l,0,s)}else{if(""===t.relative(e,l))throw new Error(`'${l}' and '${e}' are the same file`);yield c(e,l,s)}})},r.mv=function(e,r,n={}){return o(this,void 0,void 0,function*(){if(yield po.exists(r)){let o=!0;if((yield po.isDirectory(r))&&(r=t.join(r,t.basename(e)),o=yield po.exists(r)),o){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield i(r)}}yield a(t.dirname(r)),yield po.rename(e,r)})},r.rmRF=i,r.mkdirP=a,r.which=function e(r,n){return o(this,void 0,void 0,function*(){if(!r)throw new Error("parameter 'tool' is required");if(n&&!(yield e(r,!1)))throw po.IS_WINDOWS?new Error(`Unable to locate executable file: ${r}. 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: ${r}. 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(po.IS_WINDOWS&&process.env.PATHEXT)for(const r of process.env.PATHEXT.split(t.delimiter))r&&e.push(r);if(po.isRooted(r))return(yield po.tryGetExecutablePath(r,e))||"";if(r.includes("/")||po.IS_WINDOWS&&r.includes("\\"))return"";const o=[];if(process.env.PATH)for(const e of process.env.PATH.split(t.delimiter))e&&o.push(e);for(const n of o){const o=yield po.tryGetExecutablePath(n+t.sep+r,e);if(o)return o}return""}catch(e){throw new Error("which failed with message "+e.message)}})}}),ho=b(function(e,r){var o=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const s=n(a),i=n(p),c=n(h),u=n(t),l=n(fo),f=n(po),d="win32"===process.platform;r.ToolRunner=class extends i.EventEmitter{constructor(e,t,r){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),o=this._getSpawnArgs(e);let n=t?"":"[command]";if(d)if(this._isCmdFile()){n+=r;for(const e of o)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of o)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of o)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of o)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let o=t+e.toString(),n=o.indexOf(s.EOL);for(;n>-1;)r(o.substring(0,n)),o=o.substring(n+s.EOL.length),n=o.indexOf(s.EOL);t=o}catch(e){this._debug("error processing line. Failed with error "+e)}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const o of e)if(t.some(e=>e===o)){r=!0;break}if(!r)return e;let o='"',n=!0;for(let t=e.length;t>0;t--)o+=e[t-1],n&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(n=!0,o+='"'):n=!1;return o+='"',o.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let o=e.length;o>0;o--)t+=e[o-1],r&&"\\"===e[o-1]?t+="\\":'"'===e[o-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return o(this,void 0,void 0,function*(){return!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield l.which(this.toolPath,!0),new Promise((e,t)=>{this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);const o=new m(r,this.toolPath);o.on("debug",e=>{this._debug(e)});const n=this._getSpawnFileName(),i=c.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));if(i.stdout&&i.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})}),i.stderr&&i.stderr.on("data",e=>{o.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),i.on("error",e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()}),i.on("exit",e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()}),i.on("close",e=>{o.processExitCode=e,o.processExited=!0,o.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),o.CheckComplete()}),o.on("done",(r,o)=>{"".length>0&&this.emit("stdline",""),"".length>0&&this.emit("errline",""),i.removeAllListeners(),r?t(r):e(o)}),this.options.input){if(!i.stdin)throw new Error("child process missing stdin");i.stdin.end(this.options.input)}})})}},r.argStringToArray=function(e){const t=[];let r=!1,o=!1,n="";function s(e){o&&'"'!==e&&(n+="\\"),n+=e,o=!1}for(let i=0;i0&&(t.push(n),n=""):o?s(a):r=!r}return n.length>0&&t.push(n.trim()),t};class m extends i.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(m.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}}),mo=g(b(function(e,t){var r=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},o=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=o(ho);t.exec=function(e,t,o){return r(this,void 0,void 0,function*(){const r=n.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=r[0];return t=r.slice(1).concat(t||[]),new n.ToolRunner(s,t,o).exec()})}})),yo=Object.prototype.toString,go=function(e){var t=yo.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===yo.call(e.callee)),r};if(!Object.keys){var bo=Object.prototype.hasOwnProperty,wo=Object.prototype.toString,vo=go,Eo=Object.prototype.propertyIsEnumerable,To=!Eo.call({toString:null},"toString"),So=Eo.call(function(){},"prototype"),_o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Oo=function(e){var t=e.constructor;return t&&t.prototype===e},ko={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Po=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!ko["$"+e]&&bo.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{Oo(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();ao=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===wo.call(e),o=vo(e),n=t&&"[object String]"===wo.call(e),s=[];if(!t&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var i=So&&r;if(n&&e.length>0&&!bo.call(e,0))for(var a=0;a0)for(var c=0;c2?arguments[2]:{},o=xo(t);Fo&&(o=Io.call(o,Object.getOwnPropertySymbols(t)));for(var n=0;n1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=nn(e),o=sn("%"+(r.length>0?r[0]:"")+"%",t),n=1;n=r.length){var s=Jo(o,r[n]);if(!t&&!(r[n]in o))throw new Vo("base intrinsic for "+e+" exists, but the property is not available.");o=s?s.get||s.value:o[r[n]]}else o=o[r[n]];return o},cn=an("%Function%"),un=cn.apply,ln=cn.call,pn=function(){return Wo.apply(ln,arguments)};pn.apply=function(){return Wo.apply(un,arguments)};var fn=pn(an("String.prototype.indexOf")),dn=function(e,t){var r=an(e,!!t);return"function"==typeof r&&fn(e,".prototype.")?pn(r):r},hn=an("%Object.defineProperty%",!0);if(hn)try{hn({},"a",{value:1})}catch(e){hn=null}var mn=dn("Object.prototype.propertyIsEnumerable"),yn=Wo.call(Function.call,Object.prototype.hasOwnProperty),gn=an("%TypeError%"),bn=an("%SyntaxError%"),wn={"Property Descriptor":function(e,t){if("Object"!==e(t))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var o in t)if(yn(t,o)&&!r[o])return!1;var n=yn(t,"[[Value]]"),s=yn(t,"[[Get]]")||yn(t,"[[Set]]");if(n&&s)throw new gn("Property Descriptors may not be both accessor and data descriptors");return!0}},vn=function(e,t,r,o){var n=wn[t];if("function"!=typeof n)throw new bn("unknown record type: "+t);if(!n(e,o))throw new gn(r+" must be a "+t)},En=function(e){return"symbol"==typeof e?"Symbol":function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}(e)},Tn=function(e){if(void 0===e)return e;vn(En,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t},Sn=an("%Object.getOwnPropertyDescriptor%");if(Sn)try{Sn([],"length")}catch(e){Sn=null}var _n=Sn,On=an("%Array%"),kn=!On.isArray&&dn("Object.prototype.toString"),Pn=On.isArray||function(e){return"[object Array]"===kn(e)},Cn=function(e){return"string"==typeof e||"symbol"==typeof e},An=RegExp.prototype.exec,Rn=Object.getOwnPropertyDescriptor,jn=Object.prototype.toString,xn="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Fn=function(e){return!!e},Gn=an("%Symbol.match%",!0),In=Function.prototype.toString,Dn=/^\s*class\b/,Nn=function(e){try{var t=In.call(e);return Dn.test(t)}catch(e){return!1}},Un=Object.prototype.toString,Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Mn=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(Ln)return function(e){try{return!Nn(e)&&(In.call(e),!0)}catch(e){return!1}}(e);if(Nn(e))return!1;var t=Un.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},Bn=an("%TypeError%"),qn=an("%TypeError%"),$n=dn("Object.prototype.propertyIsEnumerable"),Hn=function(e){return void 0!==e&&(vn(En,"Property Descriptor","Desc",e),!(!yn(e,"[[Value]]")&&!yn(e,"[[Writable]]")))},zn=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},Wn=an("%Object%"),Vn=Wn.isExtensible,Jn=Wn.preventExtensions?function(e){return!zn(e)&&Vn(e)}:function(e){return!zn(e)},Yn=Number.isNaN||function(e){return e!=e},Kn=function(e,t){return e===t?0!==e||1/e==1/t:Yn(e)&&Yn(t)},Qn=an("%TypeError%"),Zn=an("%TypeError%"),Xn=function(e,t){if(null==e)throw new Zn(t||"Cannot call method on "+e);return e},es=an("%Object%"),ts=Object.getOwnPropertyDescriptor,rs=Object.getOwnPropertyNames,os=Object.getOwnPropertySymbols,ns=dn("Array.prototype.concat"),ss=dn("Array.prototype.reduce"),is=os?function(e){return ns(rs(e),os(e))}:rs,as=Mn(ts)&&Mn(rs),cs=function(e){if(Xn(e),!as)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var t=function(e){return Xn(e),es(e)}(e);return ss(is(t),function(e,r){var o=ts(t,r);return void 0!==o&&function(e,t,r){if("Object"!==En(e))throw new Qn("Assertion failed: Type(O) is not Object");if(!Cn(t))throw new Qn("Assertion failed: IsPropertyKey(P) is not true");var o=function(e,t){if("Object"!==En(e))throw new qn("Assertion failed: O must be an Object");if(!Cn(t))throw new qn("Assertion failed: P must be a Property Key");if(yn(e,t)){if(!_n){var r=Pn(e)&&"length"===t,o=function(e){if(!e||"object"!=typeof e)return!1;if(Gn){var t=e[Gn];if(void 0!==t)return Fn(t)}return function(e){if(!e||"object"!=typeof e)return!1;if(!xn)return"[object RegExp]"===jn.call(e);var t=Rn(e,"lastIndex");return!(!t||!yn(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,An.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}(e)}(e)&&"lastIndex"===t;return{"[[Configurable]]":!(r||o),"[[Enumerable]]":$n(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return function(e){if("Object"!==En(e))throw new Bn("ToPropertyDescriptor requires an object");var t={};if(yn(e,"enumerable")&&(t["[[Enumerable]]"]=Fn(e.enumerable)),yn(e,"configurable")&&(t["[[Configurable]]"]=Fn(e.configurable)),yn(e,"value")&&(t["[[Value]]"]=e.value),yn(e,"writable")&&(t["[[Writable]]"]=Fn(e.writable)),yn(e,"get")){var r=e.get;if(void 0!==r&&!Mn(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(yn(e,"set")){var o=e.set;if(void 0!==o&&!Mn(o))throw new Bn("setter must be a function");t["[[Set]]"]=o}if((yn(t,"[[Get]]")||yn(t,"[[Set]]"))&&(yn(t,"[[Value]]")||yn(t,"[[Writable]]")))throw new Bn("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}(_n(e,t))}}(e,t),n=o||Jn(e);(!o||o.writable&&o.configurable)&&n&&function(e,t,r,o,n,s){if(!hn){if(!e(s))return!1;if(!s["[[Configurable]]"]||!s["[[Writable]]"])return!1;if(n in o&&mn(o,n)!==!!s["[[Enumerable]]"])return!1;var i=s["[[Value]]"];return o[n]=i,t(o[n],i)}hn(o,n,r(s))}(Hn,Kn,Tn,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}(e,r,o),e},{})},us=function(){return"function"==typeof Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:cs};Mo(cs,{getPolyfill:us,implementation:cs,shim:function(){var e=us();return Mo(Object,{getOwnPropertyDescriptors:e},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==e}}),e}});var ls=cs;if("function"!=typeof Object.defineProperty||"function"!=typeof Object.defineProperties||[].__proto__!==Array.prototype)throw new TypeError("util.promisify requires a true ES5 environment, that also supports `__proto__`");if("function"!=typeof Promise)throw new TypeError("`Promise` must be globally available for util.promisify to work.");var ps=dn("Array.prototype.slice"),fs=dn("Array.prototype.concat"),ds=dn("Array.prototype.forEach"),hs=qo(),ms=hs?Symbol("util.promisify.custom"):null,ys=hs?Symbol("customPromisifyArgs"):null,gs=function(e){if("function"!=typeof e){var t=new TypeError('The "original" argument must be of type function');throw t.name="TypeError [ERR_INVALID_ARG_TYPE]",t.code="ERR_INVALID_ARG_TYPE",t}if(hs&&e[ms]){var r=e[ms];if("function"!=typeof r)throw new TypeError("The [util.promisify.custom] property must be a function");return Object.defineProperty(r,ms,{configurable:!0,enumerable:!1,value:r,writable:!1}),r}var o=e[ys],n=function(){var t=ps(arguments),r=this;return new Promise(function(n,s){e.apply(r,fs(t,function(e){var t=arguments.length>1?ps(arguments,1):[];if(e)s(e);else if(void 0!==o&&t.length>1){var r={};ds(o,function(e,o){r[e]=t[o]}),n(r)}else n(t[0])}))})};return n.__proto__=e.__proto__,Object.defineProperty(n,ms,{configurable:!0,enumerable:!1,value:n,writable:!1}),Object.defineProperties(n,ls(e))},bs=ys;gs.custom=ms,gs.customPromisifyArgs=bs;var ws=function(){return"function"==typeof s.promisify?s.promisify:gs},vs=ws(),Es=function(e){return vs.apply(s,arguments)};Mo(Es,{custom:vs.custom,customPromisifyArgs:vs.customPromisifyArgs,getPolyfill:ws,implementation:gs,shim:function(){var e=ws();return e!==s.promisify&&Object.defineProperty(s,"promisify",{configurable:!0,enumerable:!0,value:e,writable:!0}),e}});var Ts=Es,Ss="win32"===process.platform,_s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(Ss)var Os=/(.*?)(?:[\/\\]+|$)/g;else Os=/(.*?)(?:[\/]+|$)/g;if(Ss)var ks=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else ks=/^[\/]*/;var Ps=Fs;Fs.realpath=Fs,Fs.sync=Gs,Fs.realpathSync=Gs,Fs.monkeypatch=function(){r.realpath=Fs,r.realpathSync=Gs},Fs.unmonkeypatch=function(){r.realpath=Cs,r.realpathSync=As};var Cs=r.realpath,As=r.realpathSync,Rs=process.version,js=/^v[0-5]\./.test(Rs);function xs(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function Fs(e,o,n){if(js)return Cs(e,o,n);"function"==typeof o&&(n=o,o=null),Cs(e,o,function(s,i){xs(s)?function(e,o,n){if("function"!=typeof n&&(n=function(e){return"function"==typeof e?e:function(){var e;if(_s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}(o),o=null),e=t.resolve(e),o&&Object.prototype.hasOwnProperty.call(o,e))return process.nextTick(n.bind(null,null,o[e]));var s,i,a,c,u=e,l={},p={};function f(){var t=ks.exec(e);s=t[0].length,i=t[0],a=t[0],c="",Ss&&!p[a]?r.lstat(a,function(e){if(e)return n(e);p[a]=!0,d()}):process.nextTick(d)}function d(){if(s>=e.length)return o&&(o[u]=e),n(null,e);Os.lastIndex=s;var t=Os.exec(e);return c=i,i+=t[0],s=Os.lastIndex,p[a=c+t[1]]||o&&o[a]===a?process.nextTick(d):o&&Object.prototype.hasOwnProperty.call(o,a)?y(o[a]):r.lstat(a,h)}function h(e,t){if(e)return n(e);if(!t.isSymbolicLink())return p[a]=!0,o&&(o[a]=a),process.nextTick(d);if(!Ss){var s=t.dev.toString(32)+":"+t.ino.toString(32);if(l.hasOwnProperty(s))return m(null,l[s],a)}r.stat(a,function(e){if(e)return n(e);r.readlink(a,function(e,t){Ss||(l[s]=t),m(e,t)})})}function m(e,r,s){if(e)return n(e);var i=t.resolve(c,r);o&&(o[s]=i),y(i)}function y(r){e=t.resolve(r,e.slice(s)),f()}f()}(e,o,n):n(s,i)})}function Gs(e,o){if(js)return As(e,o);try{return As(e,o)}catch(n){if(xs(n))return function(e,o){if(e=t.resolve(e),o&&Object.prototype.hasOwnProperty.call(o,e))return o[e];var n,s,i,a,c=e,u={},l={};function p(){var t=ks.exec(e);n=t[0].length,s=t[0],i=t[0],a="",Ss&&!l[i]&&(r.lstatSync(i),l[i]=!0)}for(p();n=0&&u>0){for(o=[],s=r.length;l>=0&&!a;)l==c?(o.push(l),c=r.indexOf(e,l+1)):1==o.length?a=[o.pop(),u]:((n=o.pop())=0?c:u;o.length&&(a=[s,i])}return a}Ns.range=Ls;var Ms="\0SLASH"+Math.random()+"\0",Bs="\0OPEN"+Math.random()+"\0",qs="\0CLOSE"+Math.random()+"\0",$s="\0COMMA"+Math.random()+"\0",Hs="\0PERIOD"+Math.random()+"\0";function zs(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Ws(e){return e.split(Ms).join("\\").split(Bs).join("{").split(qs).join("}").split($s).join(",").split(Hs).join(".")}function Vs(e){return"{"+e+"}"}function Js(e){return/^-?0\d/.test(e)}function Ys(e,t){return e<=t}function Ks(e,t){return e>=t}var Qs=ni;ni.Minimatch=si;var Zs={sep:"/"};try{Zs=t}catch(e){}var Xs=ni.GLOBSTAR=si.GLOBSTAR={},ei={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ti="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),ri=/\/+/;function oi(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function ni(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new si(t,r).match(e))}function si(e,t){if(!(this instanceof si))return new si(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Zs.sep&&(e=e.split(Zs.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 ii(e,t){if(t||(t=this instanceof si?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),function e(t,r){var o=[],n=Ds("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s,i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=i||a,u=n.body.indexOf(",")>=0;if(!c&&!u)return n.post.match(/,.*\}/)?e(t=n.pre+"{"+n.body+qs+n.post):[t];if(c)s=n.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var r=[],o=Ds("{","}",t);if(!o)return t.split(",");var n=o.body,s=o.post,i=o.pre.split(",");i[i.length-1]+="{"+n+"}";var a=e(s);return s.length&&(i[i.length-1]+=a.shift(),i.push.apply(i,a)),r.push.apply(r,i),r}(n.body)).length&&1===(s=e(s[0],!1).map(Vs)).length)return(f=n.post.length?e(n.post,!1):[""]).map(function(e){return n.pre+s[0]+e});var l,p=n.pre,f=n.post.length?e(n.post,!1):[""];if(c){var d=zs(s[0]),h=zs(s[1]),m=Math.max(s[0].length,s[1].length),y=3==s.length?Math.abs(zs(s[2])):1,g=Ys;h0){var T=new Array(E+1).join("0");v=w<0?"-"+T+v.slice(1):T+v}}l.push(v)}}else l=function(t,r){for(var o=[],n=0;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Xs;if(""===e)return"";var o,n="",s=!!r.nocase,i=!1,a=[],c=[],u=!1,l=-1,p=-1,f="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(o){switch(o){case"*":n+="[^/]*?",s=!0;break;case"?":n+="[^/]",s=!0;break;default:n+="\\"+o}d.debug("clearStateChar %j %j",o,n),o=!1}}for(var m,y=0,g=e.length;y-1;_--){var O=c[_],k=n.slice(0,O.reStart),P=n.slice(O.reStart,O.reEnd-8),C=n.slice(O.reEnd-8,O.reEnd),A=n.slice(O.reEnd);C+=A;var R=k.split("(").length-1,j=A;for(y=0;y=0&&!(o=e[n]);n--);for(n=0;n>> no match, partial?",e,p,t,f),p!==i))}if("string"==typeof u?(c=o.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(n===i&&s===a)return!0;if(n===i)return r;if(s===a)return n===i-1&&""===e[n];throw new Error("wtf?")};var ci=b(function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),ui=b(function(e){try{if("function"!=typeof s.inherits)throw"";e.exports=s.inherits}catch(t){e.exports=ci}});function li(e){return"/"===e.charAt(0)}function pi(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",o=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||o)}var fi="win32"===process.platform?pi:li,di=pi;function hi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}fi.posix=li,fi.win32=di;var mi=Qs.Minimatch;function yi(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function gi(e,t){return e.localeCompare(t)}function bi(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new mi(r,{dot:!0})}return{matcher:new mi(e,{dot:!0}),gmatcher:t}}function wi(e,r){var o=r;return o="/"===r.charAt(0)?t.join(e.root,r):fi(r)||""===r?r:e.changedCwd?t.resolve(e.cwd,r):t.resolve(r),"win32"===process.platform&&(o=o.replace(/\\/g,"/")),o}function vi(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Ei={alphasort:gi,alphasorti:yi,setopts:function(e,r,o){if(o||(o={}),o.matchBase&&-1===r.indexOf("/")){if(o.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.silent=!!o.silent,e.pattern=r,e.strict=!1!==o.strict,e.realpath=!!o.realpath,e.realpathCache=o.realpathCache||Object.create(null),e.follow=!!o.follow,e.dot=!!o.dot,e.mark=!!o.mark,e.nodir=!!o.nodir,e.nodir&&(e.mark=!0),e.sync=!!o.sync,e.nounique=!!o.nounique,e.nonull=!!o.nonull,e.nosort=!!o.nosort,e.nocase=!!o.nocase,e.stat=!!o.stat,e.noprocess=!!o.noprocess,e.absolute=!!o.absolute,e.maxLength=o.maxLength||Infinity,e.cache=o.cache||Object.create(null),e.statCache=o.statCache||Object.create(null),e.symlinks=o.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(bi))}(e,o),e.changedCwd=!1;var n=process.cwd();hi(o,"cwd")?(e.cwd=t.resolve(o.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=o.root||t.resolve(e.cwd,"/"),e.root=t.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=fi(e.cwd)?e.cwd:wi(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!o.nomount,o.nonegate=!0,o.nocomment=!0,e.minimatch=new mi(r,o),e.options=e.minimatch.options},ownProp:hi,makeAbs:wi,finish:function(e){for(var t=e.nounique,r=t?[]:Object.create(null),o=0,n=e.matches.length;othis.maxLength)return!1;if(!this.stat&&_i(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!o||"DIR"===n)return n;if(o&&"FILE"===n)return!1}var s=this.statCache[t];if(!s){var i;try{i=r.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(i&&i.isSymbolicLink())try{s=r.statSync(t)}catch(e){s=i}else s=i}return this.statCache[t]=s,n=!0,s&&(n=s.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!o||"FILE"!==n)&&n},Ci.prototype._mark=function(e){return Ei.mark(this,e)},Ci.prototype._makeAbs=function(e){return Ei.makeAbs(this,e)};var Ai=Object.create(null),Ri=Dr(function(e,t){return Ai[e]?(Ai[e].push(t),null):(Ai[e]=[t],function(e){return Nr(function t(){var r=Ai[e],o=r.length,n=ji(arguments);try{for(var s=0;so?(r.splice(0,o),process.nextTick(function(){t.apply(null,n)})):delete Ai[e]}})}(e))});function ji(e){for(var t=e.length,r=[],o=0;o1)return!0;for(var n=0;nthis.maxLength)return t();if(!this.stat&&Ii(this.cache,o)){var s=this.cache[o];if(Array.isArray(s)&&(s="DIR"),!n||"DIR"===s)return t(null,s);if(n&&"FILE"===s)return t()}var i=this.statCache[o];if(void 0!==i){if(!1===i)return t(null,i);var a=i.isDirectory()?"DIR":"FILE";return n&&"FILE"===a?t():t(null,a,i)}var c=this,u=Ri("stat\0"+o,function(n,s){if(s&&s.isSymbolicLink())return r.stat(o,function(r,n){r?c._stat2(e,o,null,s,t):c._stat2(e,o,r,n,t)});c._stat2(e,o,n,s,t)});u&&r.lstat(o,u)},Mi.prototype._stat2=function(e,t,r,o,n){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,n();var s="/"===e.slice(-1);if(this.statCache[t]=o,"/"===t.slice(-1)&&o&&!o.isDirectory())return n(null,!1,o);var i=!0;return o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||i,s&&"FILE"===i?n():n(null,i,o)};var Bi=["write","end","destroy"],qi=["resume","pause"],$i=["data","close"],Hi=Array.prototype.slice,zi=function(e,t){var r=new n,o=!1;return Wi(Bi,function(t){r[t]=function(){return e[t].apply(e,arguments)}}),Wi(qi,function(e){r[e]=function(){r.emit(e);var o=t[e];if(o)return o.apply(t,arguments);t.emit(e)}}),Wi($i,function(e){t.on(e,function(){var t=Hi.call(arguments);t.unshift(e),r.emit.apply(r,t)})}),t.on("end",function(){if(!o){o=!0;var e=Hi.call(arguments);e.unshift("end"),r.emit.apply(r,e)}}),e.on("drain",function(){r.emit("drain")}),e.on("error",s),t.on("error",s),r.writable=e.writable,r.readable=t.readable,r;function s(e){r.emit("error",e)}};function Wi(e,t){if(e.forEach)return e.forEach(t);for(var r=0;rfunction(...r){return new(0,t.promiseModule)((o,n)=>{r.push(t.multiArgs?(...e)=>{t.errorFirst?e[0]?n(e):(e.shift(),o(e)):o(e)}:t.errorFirst?(e,t)=>{e?n(e):o(t)}:o),e.apply(this,r)})};var Ji=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=typeof e;if(null===e||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);const o=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let n;n="function"===r?function(...r){return t.excludeMain?e(...r):Vi(e,t).apply(this,r)}:Object.create(Object.getPrototypeOf(e));for(const r in e){const s=e[r];n[r]="function"==typeof s&&o(r)?Vi(s,t):s}return n},Yi=b(function(e){const t=e=>Object.assign({level:9},e);e.exports=(e,r)=>e?Ji(d.gzip)(e,t(r)).then(e=>e.length).catch(e=>0):Promise.resolve(0),e.exports.sync=(e,r)=>d.gzipSync(e,t(r)).length,e.exports.stream=e=>{const r=new n.PassThrough,o=new n.PassThrough,s=zi(r,o);let i=0;const a=d.createGzip(t(e)).on("data",e=>{i+=e.length}).on("error",()=>{s.gzipSize=0}).on("end",()=>{s.gzipSize=i,s.emit("gzip-size",i),o.end()});return r.pipe(a),r.pipe(o,{end:!1}),s},e.exports.file=(t,o)=>new Promise((n,s)=>{const i=r.createReadStream(t);i.on("error",s);const a=i.pipe(e.exports.stream(o));a.on("error",s),a.on("gzip-size",n)}),e.exports.fileSync=(t,o)=>e.exports.sync(r.readFileSync(t),o)}),Ki=/[|\\{}()[\]^$+*?.]/g,Qi=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Ki,"\\$&")},Zi={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Xi=b(function(e){var t={};for(var r in Zi)Zi.hasOwnProperty(r)&&(t[Zi[r]]=r);var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var n in o)if(o.hasOwnProperty(n)){if(!("channels"in o[n]))throw new Error("missing channels property: "+n);if(!("labels"in o[n]))throw new Error("missing channel labels property: "+n);if(o[n].labels.length!==o[n].channels)throw new Error("channel and label counts mismatch: "+n);var s=o[n].channels,i=o[n].labels;delete o[n].channels,delete o[n].labels,Object.defineProperty(o[n],"channels",{value:s}),Object.defineProperty(o[n],"labels",{value:i})}o.rgb.hsl=function(e){var t,r,o=e[0]/255,n=e[1]/255,s=e[2]/255,i=Math.min(o,n,s),a=Math.max(o,n,s),c=a-i;return a===i?t=0:o===a?t=(n-s)/c:n===a?t=2+(s-o)/c:s===a&&(t=4+(o-n)/c),(t=Math.min(60*t,360))<0&&(t+=360),r=(i+a)/2,[t,100*(a===i?0:r<=.5?c/(a+i):c/(2-a-i)),100*r]},o.rgb.hsv=function(e){var t,r,o,n,s,i=e[0]/255,a=e[1]/255,c=e[2]/255,u=Math.max(i,a,c),l=u-Math.min(i,a,c),p=function(e){return(u-e)/6/l+.5};return 0===l?n=s=0:(s=l/u,t=p(i),r=p(a),o=p(c),i===u?n=o-r:a===u?n=1/3+t-o:c===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*s,100*u]},o.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[o.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},o.rgb.cmyk=function(e){var t,r=e[0]/255,o=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-o,1-n)))/(1-t)||0),100*((1-o-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var r=t[e];if(r)return r;var o,n,s,i=Infinity;for(var a in Zi)if(Zi.hasOwnProperty(a)){var c=(n=e,s=Zi[a],Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)+Math.pow(n[2]-s[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*t+.7152*r+.0722*o),100*(.0193*t+.1192*r+.9505*o)]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),r=t[0],n=t[1],s=t[2];return n/=100,s/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},o.hsl.rgb=function(e){var t,r,o,n,s,i=e[0]/360,a=e[1]/100,c=e[2]/100;if(0===a)return[s=255*c,s,s];t=2*c-(r=c<.5?c*(1+a):c+a-c*a),n=[0,0,0];for(var u=0;u<3;u++)(o=i+1/3*-(u-1))<0&&o++,o>1&&o--,n[u]=255*(s=6*o<1?t+6*(r-t)*o:2*o<1?r:3*o<2?t+(r-t)*(2/3-o)*6:t);return n},o.hsl.hsv=function(e){var t=e[0],r=e[1]/100,o=e[2]/100,n=r,s=Math.max(o,.01);return r*=(o*=2)<=1?o:2-o,n*=s<=1?s:2-s,[t,100*(0===o?2*n/(s+n):2*r/(o+r)),(o+r)/2*100]},o.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,o=e[2]/100,n=Math.floor(t)%6,s=t-Math.floor(t),i=255*o*(1-r),a=255*o*(1-r*s),c=255*o*(1-r*(1-s));switch(o*=255,n){case 0:return[o,c,i];case 1:return[a,o,i];case 2:return[i,o,c];case 3:return[i,a,o];case 4:return[c,i,o];case 5:return[o,i,a]}},o.hsv.hsl=function(e){var t,r,o,n=e[0],s=e[1]/100,i=e[2]/100,a=Math.max(i,.01);return o=(2-s)*i,r=s*a,[n,100*(r=(r/=(t=(2-s)*a)<=1?t:2-t)||0),100*(o/=2)]},o.hwb.rgb=function(e){var t,r,o,n,s,i,a,c=e[0]/360,u=e[1]/100,l=e[2]/100,p=u+l;switch(p>1&&(u/=p,l/=p),o=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(o=1-o),n=u+o*((r=1-l)-u),t){default:case 6:case 0:s=r,i=n,a=u;break;case 1:s=n,i=r,a=u;break;case 2:s=u,i=r,a=n;break;case 3:s=u,i=n,a=r;break;case 4:s=n,i=u,a=r;break;case 5:s=r,i=u,a=n}return[255*s,255*i,255*a]},o.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-o)+o)),255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},o.xyz.rgb=function(e){var t,r,o,n=e[0]/100,s=e[1]/100,i=e[2]/100;return r=-.9689*n+1.8758*s+.0415*i,o=.0557*n+-.204*s+1.057*i,t=(t=3.2406*n+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(o=Math.min(Math.max(0,o),1))]},o.xyz.lab=function(e){var t=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},o.lab.xyz=function(e){var t,r,o;t=e[1]/500+(r=(e[0]+16)/116),o=r-e[2]/200;var n=Math.pow(r,3),s=Math.pow(t,3),i=Math.pow(o,3);return r=n>.008856?n:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,[t*=95.047,r*=100,o*=108.883]},o.lab.lch=function(e){var t,r=e[0],o=e[1],n=e[2];return(t=360*Math.atan2(n,o)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(o*o+n*n),t]},o.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},o.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],s=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(s=Math.round(s/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],r=e[1],o=e[2];return t===r&&r===o?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(o/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},o.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map(function(e){return e+e}).join(""));var o=parseInt(r,16);return[o>>16&255,o>>8&255,255&o]},o.rgb.hcg=function(e){var t,r=e[0]/255,o=e[1]/255,n=e[2]/255,s=Math.max(Math.max(r,o),n),i=Math.min(Math.min(r,o),n),a=s-i;return t=a<=0?0:s===r?(o-n)/a%6:s===o?2+(n-r)/a:4+(r-o)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?i/(1-a):0)]},o.hsl.hcg=function(e){var t,r=e[1]/100,o=e[2]/100,n=0;return(t=o<.5?2*r*o:2*r*(1-o))<1&&(n=(o-.5*t)/(1-t)),[e[0],100*t,100*n]},o.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,o=0;return r<1&&(o=(t-r)/(1-r)),[e[0],100*r,100*o]},o.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var o,n=[0,0,0],s=e[0]/360%1*6,i=s%1,a=1-i;switch(Math.floor(s)){case 0:n[0]=1,n[1]=i,n[2]=0;break;case 1:n[0]=a,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=i;break;case 3:n[0]=0,n[1]=a,n[2]=1;break;case 4:n[0]=i,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=a}return[255*(t*n[0]+(o=(1-t)*r)),255*(t*n[1]+o),255*(t*n[2]+o)]},o.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),o=0;return r>0&&(o=t/r),[e[0],100*o,100*r]},o.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],100*o,100*r]},o.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,o=0;return r<1&&(o=(t-r)/(1-r)),[e[0],100*r,100*o]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});function ea(e,t){return function(r){return t(e(r))}}function ta(e,t){for(var r=[t[e].parent,e],o=Xi[t[e].parent][e],n=t[e].parent;t[n].parent;)r.unshift(t[n].parent),o=ea(Xi[t[n].parent][n],o),n=t[n].parent;return o.conversion=r,o}var ra={};Object.keys(Xi).forEach(function(e){ra[e]={},Object.defineProperty(ra[e],"channels",{value:Xi[e].channels}),Object.defineProperty(ra[e],"labels",{value:Xi[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(Xi),r=t.length,o=0;o1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var o=r.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(o)})});var oa=ra,na=b(function(e){const t=(e,t)=>function(){const r=e.apply(oa,arguments);return`[${r+t}m`},r=(e,t)=>function(){const r=e.apply(oa,arguments);return`[${38+t};5;${r}m`},o=(e,t)=>function(){const r=e.apply(oa,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const t of Object.keys(n)){const r=n[t];for(const t of Object.keys(r)){const o=r[t];n[t]={open:`[${o[0]}m`,close:`[${o[1]}m`},r[t]=n[t],e.set(o[0],o[1])}Object.defineProperty(n,t,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:e,enumerable:!1})}const s=e=>e,i=(e,t,r)=>[e,t,r];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:t(s,0)},n.color.ansi256={ansi256:r(s,0)},n.color.ansi16m={rgb:o(i,0)},n.bgColor.ansi={ansi:t(s,10)},n.bgColor.ansi256={ansi256:r(s,10)},n.bgColor.ansi16m={rgb:o(i,10)};for(let e of Object.keys(oa)){if("object"!=typeof oa[e])continue;const s=oa[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(n.color.ansi[e]=t(s.ansi16,0),n.bgColor.ansi[e]=t(s.ansi16,10)),"ansi256"in s&&(n.color.ansi256[e]=r(s.ansi256,0),n.bgColor.ansi256[e]=r(s.ansi256,10)),"rgb"in s&&(n.color.ansi16m[e]=o(s.rgb,0),n.bgColor.ansi16m[e]=o(s.rgb,10))}return n}})}),sa=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(r+e),n=t.indexOf("--");return-1!==o&&(-1===n||o=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ia)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in ia)||"codeship"===ia.CI_NAME?1:t;if("TEAMCITY_VERSION"in ia)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ia.TEAMCITY_VERSION)?1:0;if("truecolor"===ia.COLORTERM)return 3;if("TERM_PROGRAM"in ia){const e=parseInt((ia.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ia.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ia.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ia.TERM)||"COLORTERM"in ia?1:t}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}sa("no-color")||sa("no-colors")||sa("color=false")?aa=!1:(sa("color")||sa("colors")||sa("color=true")||sa("color=always"))&&(aa=!0),"FORCE_COLOR"in ia&&(aa=0===ia.FORCE_COLOR.length||0!==parseInt(ia.FORCE_COLOR,10));var ua={supportsColor:ca,stdout:ca(process.stdout),stderr:ca(process.stderr)};const la=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,pa=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,fa=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,da=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ha=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function ma(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):ha.get(e)||e}function ya(e,t){const r=[],o=t.trim().split(/\s*,\s*/g);let n;for(const t of o)if(isNaN(t)){if(!(n=t.match(fa)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(n[2].replace(da,(e,t,r)=>t?ma(t):r))}else r.push(Number(t));return r}function ga(e){pa.lastIndex=0;const t=[];let r;for(;null!==(r=pa.exec(e));){const e=r[1];if(r[2]){const o=ya(e,r[2]);t.push([e].concat(o))}else t.push([e])}return t}function ba(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let o=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in o))throw new Error("Unknown Chalk style: "+e);o=r[e].length>0?o[e].apply(o,r[e]):o[e]}return o}var wa=(e,t)=>{const r=[],o=[];let n=[];if(t.replace(la,(t,s,i,a,c,u)=>{if(s)n.push(ma(s));else if(a){const t=n.join("");n=[],o.push(0===r.length?t:ba(e,r)(t)),r.push({inverse:i,styles:ga(a)})}else if(c){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(ba(e,r)(n.join(""))),n=[],r.pop()}else n.push(u)}),o.push(n.join("")),r.length>0)throw new Error(`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`);return o.join("")},va=b(function(e){const t=ua.stdout,r="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],n=new Set(["gray"]),s=Object.create(null);function i(e,r){e.level=void 0===(r=r||{}).level?t?t.level:0:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return i(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}i(this,e)}r&&(na.blue.open="");for(const e of Object.keys(na))na[e].closeRe=new RegExp(Qi(na[e].close),"g"),s[e]={get(){const t=na[e];return u.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};s.visible={get(){return u.call(this,this._styles||[],!0,"visible")}},na.color.closeRe=new RegExp(Qi(na.color.close),"g");for(const e of Object.keys(na.color.ansi))n.has(e)||(s[e]={get(){const t=this.level;return function(){const r=na.color[o[t]][e].apply(null,arguments),n={open:r,close:na.color.close,closeRe:na.color.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});na.bgColor.closeRe=new RegExp(Qi(na.bgColor.close),"g");for(const e of Object.keys(na.bgColor.ansi))n.has(e)||(s["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=na.bgColor[o[t]][e].apply(null,arguments),n={open:r,close:na.bgColor.close,closeRe:na.bgColor.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const c=Object.defineProperties(()=>{},s);function u(e,t,r){const o=function(){return l.apply(o,arguments)};o._styles=e,o._empty=t;const n=this;return Object.defineProperty(o,"level",{enumerable:!0,get:()=>n.level,set(e){n.level=e}}),Object.defineProperty(o,"enabled",{enumerable:!0,get:()=>n.enabled,set(e){n.enabled=e}}),o.hasGrey=this.hasGrey||"gray"===r||"grey"===r,o.__proto__=c,o}function l(){const e=arguments,t=e.length;let o=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var ka=(e,t)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t=Object.assign({bits:!1,binary:!1},t)).bits?t.binary?_a:Sa:t.binary?Ta:Ea;if(t.signed&&0===e)return" 0 "+r[0];const o=e<0,n=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return n+Oa(e,t.locale)+" "+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e=Number((e/Math.pow(t.binary?1024:1e3,s)).toPrecision(3)),n+Oa(e,t.locale)+" "+r[s]},Pa=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=s.promisify(r.readFile),i=e=>"string"==typeof e?Buffer.from(e,"utf8"):e,a=(e,t)=>({params:{[d.constants.BROTLI_PARAM_MODE]:e&&"mode"in e&&e.mode||d.constants.BROTLI_DEFAULT_MODE,[d.constants.BROTLI_PARAM_QUALITY]:e&&"quality"in e&&e.quality||d.constants.BROTLI_MAX_QUALITY,[d.constants.BROTLI_PARAM_SIZE_HINT]:t?t.byteLength:0}});async function c(e,t){const r=i(e);return new Promise(function(e,o){d.brotliCompress(r,a(t,r),(t,r)=>{null!==t&&o(t),e(r.byteLength)})})}function u(e,t){const r=i(e);return d.brotliCompressSync(r,a(t,r)).byteLength}t.default=c,t.sync=u,t.stream=function(e){const t=new n.PassThrough,r=new n.PassThrough,o=zi(t,r);let s=0;const i=d.createBrotliCompress(a(e)).on("data",e=>{s+=e.length}).on("error",()=>{o.brotliSize=0}).on("end",()=>{o.brotliSize=s,o.emit("brotli-size",s),r.end()});return t.pipe(i),t.pipe(r,{end:!1}),o},t.file=async function(e,t){const r=await o(e);return await c(r,t)},t.fileSync=function(e,t){return u(r.readFileSync(e),t)}}),Ca=function(e,t){return function(){for(var r=new Array(arguments.length),o=0;o0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*Xa;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Za;case"minutes":case"minute":case"mins":case"min":case"m":return r*Qa;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ka;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return tc(e,Xa,"day")||tc(e,Za,"hour")||tc(e,Qa,"minute")||tc(e,Ka,"second")||e+" ms"}(e):function(e){return e>=Xa?Math.round(e/Xa)+"d":e>=Za?Math.round(e/Za)+"h":e>=Qa?Math.round(e/Qa)+"m":e>=Ka?Math.round(e/Ka)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function tc(e,t,r){if(!(e=31||"{}".userAgent&&"{}".userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}),nc=b(function(e,t){(t=e.exports=rc).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),o=0;o=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function r(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[r]=o,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)},t.enable(r())}),sc=b(function(e){e.exports="undefined"==typeof process||"renderer"===process.type?oc:nc}),ic=n.Writable,ac=sc("follow-redirects"),cc={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},uc=Object.create(null);function lc(e,t){ic.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(e.hostname||(e.hostname=e.host),delete e.host),t&&this.on("response",t);var r=this;if(this._onNativeResponse=function(e){r._processResponse(e)},!e.pathname&&e.path){var o=e.path.indexOf("?");o<0?e.pathname=e.path:(e.pathname=e.path.substring(0,o),e.search=e.path.substring(o))}this._performRequest()}function pc(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(o){var n=o+":",s=r[n]=e[o],a=t[o]=Object.create(s);a.request=function(e,o){return"string"==typeof e?(e=f.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:n,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=r,i.equal(e.protocol,n,"protocol mismatch"),ac("options",e),new lc(e,o)},a.get=function(e,t){var r=a.request(e,t);return r.end(),r}}),t}["abort","aborted","error","socket","timeout"].forEach(function(e){uc[e]=function(t){this._redirectable.emit(e,t)}}),(lc.prototype=Object.create(ic.prototype)).write=function(e,t,r){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):r&&r()},lc.prototype.end=function(e,t,r){"function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null);var o=this._currentRequest;this.write(e||"",t,function(){o.end(null,null,r)})},lc.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},lc.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){lc.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(lc.prototype,e,{get:function(){return this._currentRequest[e]}})}),lc.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var n in this._currentUrl=f.format(this._options),o._redirectable=this,uc)n&&o.on(n,uc[n]);if(this._isRedirect){var s=0,i=this._requestBodyBuffers;!function e(){if(s=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var r,o=this._options.headers;if(307!==e.statusCode&&!(this._options.method in cc))for(r in this._options.method="GET",this._requestBodyBuffers=[],o)/^content-/i.test(r)&&delete o[r];if(!this._isRedirect)for(r in o)/^host$/i.test(r)&&delete o[r];var n=f.resolve(this._currentUrl,t);ac("redirecting to",n),Object.assign(this._options,f.parse(n)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var fc=pc({http:c,https:u});fc.wrap=pc;var dc,hc="Promise based HTTP client for the browser and node.js",mc={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},yc={type:"git",url:"https://github.com/axios/axios.git"},gc=["xhr","http","ajax","promise","node"],bc={url:"https://github.com/axios/axios/issues"},wc="https://github.com/axios/axios",vc={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},Ec={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Tc={"follow-redirects":"1.5.10"},Sc=[{path:"./dist/axios.min.js",threshold:"5kB"}],_c=(dc={__proto__:null,name:"axios",version:"0.19.2",description:hc,main:"index.js",scripts:mc,repository:yc,keywords:gc,author:"Matt Zabriskie",license:"MIT",bugs:bc,homepage:wc,devDependencies:vc,browser:Ec,typings:"./index.d.ts",dependencies:Tc,bundlesize:Sc,default:{name:"axios",version:"0.19.2",description:hc,main:"index.js",scripts:mc,repository:yc,keywords:gc,author:"Matt Zabriskie",license:"MIT",bugs:bc,homepage:wc,devDependencies:vc,browser:Ec,typings:"./index.d.ts",dependencies:Tc,bundlesize:Sc}})&&dc.default||dc,Oc=fc.http,kc=fc.https,Pc=/https:?/,Cc={"Content-Type":"application/x-www-form-urlencoded"};function Ac(e,t){!Ia.isUndefined(e)&&Ia.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Rc,jc={adapter:("undefined"!=typeof XMLHttpRequest?Rc=function(e){return new Promise(function(t,r){var o=e.data,n=e.headers;Ia.isFormData(o)&&delete n["Content-Type"];var s=new XMLHttpRequest;e.auth&&(n.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password||"")));var i=Wa(e.baseURL,e.url);if(s.open(e.method.toUpperCase(),Na(i,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))){var o,n,i,a,c,u="getAllResponseHeaders"in s?(o=s.getAllResponseHeaders(),c={},o?(Ia.forEach(o.split("\n"),function(e){if(a=e.indexOf(":"),n=Ia.trim(e.substr(0,a)).toLowerCase(),i=Ia.trim(e.substr(a+1)),n){if(c[n]&&Va.indexOf(n)>=0)return;c[n]="set-cookie"===n?(c[n]?c[n]:[]).concat([i]):c[n]?c[n]+", "+i:i}}),c):c):null;za(t,r,{data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:u,config:e,request:s}),s=null}},s.onabort=function(){s&&(r(Ha("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(Ha("Network Error",e,null,s)),s=null},s.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Ha(t,e,"ECONNABORTED",s)),s=null},Ia.isStandardBrowserEnv()){var a=Ya,c=(e.withCredentials||Ja(i))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;c&&(n[e.xsrfHeaderName]=c)}if("setRequestHeader"in s&&Ia.forEach(n,function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete n[t]:s.setRequestHeader(t,e)}),Ia.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){s&&(s.abort(),r(e),s=null)}),void 0===o&&(o=null),s.send(o)})}:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(Rc=function(e){return new Promise(function(t,r){var o=function(e){t(e)},n=function(e){r(e)},s=e.data,i=e.headers;if(i["User-Agent"]||i["user-agent"]||(i["User-Agent"]="axios/"+_c.version),s&&!Ia.isStream(s)){if(Buffer.isBuffer(s));else if(Ia.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else{if(!Ia.isString(s))return n(Ha("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));s=Buffer.from(s,"utf-8")}i["Content-Length"]=s.length}var a=void 0;e.auth&&(a=(e.auth.username||"")+":"+(e.auth.password||""));var l=Wa(e.baseURL,e.url),p=f.parse(l),h=p.protocol||"http:";if(!a&&p.auth){var m=p.auth.split(":");a=(m[0]||"")+":"+(m[1]||"")}a&&delete i.Authorization;var y=Pc.test(h),g=y?e.httpsAgent:e.httpAgent,b={path:Na(p.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:i,agent:g,agents:{http:e.httpAgent,https:e.httpsAgent},auth:a};e.socketPath?b.socketPath=e.socketPath:(b.hostname=p.hostname,b.port=p.port);var w,v=e.proxy;if(!v&&!1!==v){var E=h.slice(0,-1)+"_proxy",T=process.env[E]||process.env[E.toUpperCase()];if(T){var S=f.parse(T),_=process.env.no_proxy||process.env.NO_PROXY,O=!0;if(_&&(O=!_.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||"."===e[0]&&p.hostname.substr(p.hostname.length-e.length)===e||p.hostname===e)})),O&&(v={host:S.hostname,port:S.port},S.auth)){var k=S.auth.split(":");v.auth={username:k[0],password:k[1]}}}}if(v&&(b.hostname=v.host,b.host=v.host,b.headers.host=p.hostname+(p.port?":"+p.port:""),b.port=v.port,b.path=h+"//"+p.hostname+(p.port?":"+p.port:"")+b.path,v.auth)){var P=Buffer.from(v.auth.username+":"+v.auth.password,"utf8").toString("base64");b.headers["Proxy-Authorization"]="Basic "+P}var C=y&&(!v||Pc.test(v.protocol));e.transport?w=e.transport:0===e.maxRedirects?w=C?u:c:(e.maxRedirects&&(b.maxRedirects=e.maxRedirects),w=C?kc:Oc),e.maxContentLength&&e.maxContentLength>-1&&(b.maxBodyLength=e.maxContentLength);var A=w.request(b,function(t){if(!A.aborted){var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=204===t.statusCode?r:r.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var s=t.req||A,i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:s};if("stream"===e.responseType)i.data=r,za(o,n,i);else{var a=[];r.on("data",function(t){a.push(t),e.maxContentLength>-1&&Buffer.concat(a).length>e.maxContentLength&&(r.destroy(),n(Ha("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,s)))}),r.on("error",function(t){A.aborted||n($a(t,e,null,s))}),r.on("end",function(){var t=Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding)),i.data=t,za(o,n,i)})}}});A.on("error",function(t){A.aborted||n($a(t,e,null,A))}),e.timeout&&A.setTimeout(e.timeout,function(){A.abort(),n(Ha("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",A))}),e.cancelToken&&e.cancelToken.promise.then(function(e){A.aborted||(A.abort(),n(e))}),Ia.isStream(s)?s.on("error",function(t){n($a(t,e,null,A))}).pipe(A):A.end(s)})}),Rc),transformRequest:[function(e,t){return qa(t,"Accept"),qa(t,"Content-Type"),Ia.isFormData(e)||Ia.isArrayBuffer(e)||Ia.isBuffer(e)||Ia.isStream(e)||Ia.isFile(e)||Ia.isBlob(e)?e:Ia.isArrayBufferView(e)?e.buffer:Ia.isURLSearchParams(e)?(Ac(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Ia.isObject(e)?(Ac(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ia.forEach(["delete","get","head"],function(e){jc.headers[e]={}}),Ia.forEach(["post","put","patch"],function(e){jc.headers[e]=Ia.merge(Cc)});var xc=jc;function Fc(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Gc=function(e){return Fc(e),e.headers=e.headers||{},e.data=Ma(e.data,e.headers,e.transformRequest),e.headers=Ia.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Ia.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||xc.adapter)(e).then(function(t){return Fc(e),t.data=Ma(t.data,t.headers,e.transformResponse),t},function(t){return Ba(t)||(Fc(e),t&&t.response&&(t.response.data=Ma(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},Ic=function(e,t){t=t||{};var r={},o=["url","method","params","data"],n=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];Ia.forEach(o,function(e){void 0!==t[e]&&(r[e]=t[e])}),Ia.forEach(n,function(o){Ia.isObject(t[o])?r[o]=Ia.deepMerge(e[o],t[o]):void 0!==t[o]?r[o]=t[o]:Ia.isObject(e[o])?r[o]=Ia.deepMerge(e[o]):void 0!==e[o]&&(r[o]=e[o])}),Ia.forEach(s,function(o){void 0!==t[o]?r[o]=t[o]:void 0!==e[o]&&(r[o]=e[o])});var i=o.concat(n).concat(s),a=Object.keys(t).filter(function(e){return-1===i.indexOf(e)});return Ia.forEach(a,function(o){void 0!==t[o]?r[o]=t[o]:void 0!==e[o]&&(r[o]=e[o])}),r};function Dc(e){this.defaults=e,this.interceptors={request:new La,response:new La}}Dc.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Ic(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=[Gc,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},Dc.prototype.getUri=function(e){return e=Ic(this.defaults,e),Na(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Ia.forEach(["delete","get","head","options"],function(e){Dc.prototype[e]=function(t,r){return this.request(Ia.merge(r||{},{method:e,url:t}))}}),Ia.forEach(["post","put","patch"],function(e){Dc.prototype[e]=function(t,r,o){return this.request(Ia.merge(o||{},{method:e,url:t,data:r}))}});var Nc=Dc;function Uc(e){this.message=e}Uc.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Uc.prototype.__CANCEL__=!0;var Lc=Uc;function Mc(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new Lc(e),t(r.reason))})}Mc.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Mc.source=function(){var e;return{token:new Mc(function(t){e=t}),cancel:e}};var Bc=Mc;function qc(e){var t=new Nc(e),r=Ca(Nc.prototype.request,t);return Ia.extend(r,Nc.prototype,t),Ia.extend(r,t),r}var $c=qc(xc);$c.Axios=Nc,$c.create=function(e){return qc(Ic($c.defaults,e))},$c.Cancel=Lc,$c.CancelToken=Bc,$c.isCancel=Ba,$c.all=function(e){return Promise.all(e)},$c.spread=function(e){return function(t){return e.apply(null,t)}};var Hc=$c;Hc.default=$c;var zc=Hc;let Wc,Vc,Jc,Yc,Kc,Qc,Zc,Xc,eu,tu="github";if(process.env.TRAVIS)Wc=process.env.TRAVIS_REPO_SLUG,Vc=process.env.TRAVIS_PULL_REQUEST_SHA||process.env.TRAVIS_COMMIT,Jc=process.env.TRAVIS_EVENT_TYPE,Yc=process.env.TRAVIS_COMMIT_MESSAGE,Kc=process.env.TRAVIS_PULL_REQUEST,Xc=`https://travis-ci.org/${Wc}/jobs/${process.env.TRAVIS_JOB_ID}`,eu=`https://travis-ci.org/${Wc}/builds/${process.env.TRAVIS_JOB_ID}`,Qc="push"===process.env.TRAVIS_EVENT_TYPE?process.env.TRAVIS_BRANCH:process.env.TRAVIS_PULL_REQUEST_BRANCH,Zc="travis";else if(process.env.CIRCLECI)Wc=process.env.CIRCLE_PROJECT_USERNAME+"/"+process.env.CIRCLE_PROJECT_REPONAME,Vc=process.env.CIRCLE_SHA1,Jc="push",Yc="",process.env.CI_PULL_REQUEST?(Kc=process.env.CI_PULL_REQUEST.split("/").pop(),Jc="pull_request"):Kc="",Qc=process.env.CIRCLE_BRANCH,Zc="circle";else if(process.env.WERCKER)Wc=process.env.WERCKER_GIT_OWNER+"/"+process.env.WERCKER_GIT_REPOSITORY,Vc=process.env.WERCKER_GIT_COMMIT,Jc="push",Yc="",Kc="",Qc=process.env.WERCKER_GIT_BRANCH,Zc="wercker";else if(process.env.DRONE)Wc=process.env.DRONE_REPO||process.env.CI_REPO||function(e){e||(e=process.env);let t=e.DRONE_REMOTE||e.CI_REMOTE;if(!t)return"";let r=t.split("/").slice(-2);return r[0]+"/"+r[1].replace(/\.git$/,"")}(process.env),Vc=process.env.DRONE_COMMIT||process.env.CI_COMMIT,Jc=process.env.DRONE_BUILD_EVENT||process.env.DRONE_EVENT||process.env.CI_EVENT||"push",Yc="",Kc=process.env.DRONE_PULL_REQUEST,Qc=process.env.DRONE_BRANCH||process.env.CI_BRANCH,Zc="drone";else if(process.env.GITLAB_CI)Wc=process.env.CI_PROJECT_PATH,Qc=process.env.CI_COMMIT_REF_NAME,Yc=process.env.CI_COMMIT_MESSAGE,Kc=process.env.CI_MERGE_REQUEST_ID||"",Vc=process.env.CI_COMMIT_SHA,Jc=process.env.CI_PIPELINE_SOURCE,Xc=process.env.CI_JOB_URL,tu="gitlab",Zc="gitlab";else if("codeship"===process.env.CI_NAME)Wc=process.env.CI_REPO_NAME,Qc=process.env.CI_BRANCH,Yc=process.env.CI_COMMIT_MESSAGE||process.env.CI_MESSAGE,Jc="push",Kc=process.env.CI_PR_NUMBER,Vc=process.env.CI_COMMIT_ID,eu=process.env.CI_BUILD_URL,Zc="codeship";else if(process.env.GITHUB_ACTION){const e=process.env.GITHUB_REF.split("/")[2];Wc=process.env.GITHUB_REPOSITORY,Vc=process.env.GITHUB_SHA,Jc=process.env.GITHUB_EVENT_NAME,Yc="",Kc="pull_request"===Jc?e:"",Qc="pull_request"===Jc?process.env.GITHUB_HEAD_REF:e,Zc="github_actions"}else process.env.NETLIFY?(Wc=process.env.REPOSITORY_URL.split("@github.com/").pop(),Jc=process.env.PULL_REQUEST?"pull_request":"push",Kc=process.env.PULL_REQUEST?process.env.REVIEW_ID:"",Vc=process.env.COMMIT_REF,Qc=process.env.HEAD,Zc="netlify"):process.env.NOW_GITHUB_ORG?(Wc=process.env.NOW_GITHUB_ORG+"/"+process.env.NOW_GITHUB_REPO,Jc="push",Kc="",Vc=process.env.NOW_GITHUB_COMMIT_SHA,Qc=process.env.NOW_GITHUB_COMMIT_REF,Zc="now"):process.env.CI&&(Wc=process.env.CI_REPO_OWNER+"/"+process.env.CI_REPO_NAME,Vc=process.env.CI_COMMIT_SHA,Jc=process.env.CI_EVENT||"push",Yc=process.env.CI_COMMIT_MESSAGE,Kc=process.env.CI_MERGE_REQUEST_ID,Qc=process.env.CI_BRANCH,Zc="custom");var ru={repo:Wc,sha:Vc,event:Jc,commit_message:Yc,branch:Qc,pull_request_number:Kc,ci:Zc,platform:tu,jobUrl:Xc,buildUrl:eu};const{repo:ou,sha:nu,ci:su}=ru,iu=process.env.SIZE_STORE_ENDPOINT||"https://size-store.now.sh";var au={publishDiff:async function(e,t){if("test"!==process.env.NODE_ENV&&su)try{const r={ci:su,repo:ou,sha:nu,filename:t,diff:e};await zc.post(iu+"/diff",r)}catch(e){console.error("error: while publishing diff",e)}},publishSizes:async function(e,t){if("test"!==process.env.NODE_ENV&&su)try{const r={ci:su,repo:ou,sha:nu,filename:t,size:e};await zc.post(iu+"/size",r)}catch(e){console.error("error: while publishing sizes",e)}}},cu=function(e){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((t,r)=>{arguments[arguments.length]=(e,o)=>{if(e)return r(e);t(o)},arguments.length++,e.apply(this,arguments)});e.apply(this,arguments)},"name",{value:e.name})},uu=b(function(e,t){const r=cu,o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof P[e]);Object.keys(P).forEach(e=>{"promises"!==e&&(t[e]=P[e])}),o.forEach(e=>{t[e]=r(P[e])}),t.exists=function(e,t){return"function"==typeof t?P.exists(e,t):new Promise(t=>P.exists(e,t))},t.read=function(e,t,r,o,n,s){return"function"==typeof s?P.read(e,t,r,o,n,s):new Promise((s,i)=>{P.read(e,t,r,o,n,(e,t,r)=>{if(e)return i(e);s({bytesRead:t,buffer:r})})})},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?P.write(e,t,...r):new Promise((o,n)=>{P.write(e,t,...r,(e,t,r)=>{if(e)return n(e);o({bytesWritten:t,buffer:r})})})},"function"==typeof P.realpath.native&&(t.realpath.native=r(P.realpath.native))});const lu=/[<>:"|?*]/;var pu=function(e){const r=function(e){return(e=t.normalize(t.resolve(e)).split(t.sep)).length>0?e[0]:null}(e);return e=e.replace(r,""),lu.test(e)};const fu=pu,du=parseInt("0777",8),hu=pu,mu=parseInt("0777",8);var yu=function e(r,o,n){o&&"object"==typeof o||(o={mode:o});let s=o.mode;const i=o.fs||P;if("win32"===process.platform&&hu(r)){const e=new Error(r+" contains invalid WIN32 path characters.");throw e.code="EINVAL",e}void 0===s&&(s=mu&~process.umask()),n||(n=null),r=t.resolve(r);try{i.mkdirSync(r,s),n=n||r}catch(s){if("ENOENT"===s.code){if(t.dirname(r)===r)throw s;n=e(t.dirname(r),o,n),e(r,o,n)}else{let e;try{e=i.statSync(r)}catch(e){throw s}if(!e.isDirectory())throw s}}return n};const gu=cu(function e(r,o,n,s){if("function"==typeof o?(n=o,o={}):o&&"object"==typeof o||(o={mode:o}),"win32"===process.platform&&fu(r)){const e=new Error(r+" contains invalid WIN32 path characters.");return e.code="EINVAL",n(e)}let i=o.mode;const a=o.fs||P;void 0===i&&(i=du&~process.umask()),s||(s=null),n=n||function(){},r=t.resolve(r),a.mkdir(r,i,i=>{if(!i)return n(null,s=s||r);switch(i.code){case"ENOENT":if(t.dirname(r)===r)return n(i);e(t.dirname(r),o,(t,s)=>{t?n(t,s):e(r,o,n,s)});break;default:a.stat(r,(e,t)=>{e||!t.isDirectory()?n(i,s):n(null,s)})}})});var bu={mkdirs:gu,mkdirsSync:yu,mkdirp:gu,mkdirpSync:yu,ensureDir:gu,ensureDirSync:yu};const wu=process.versions.node.split("."),vu=Number.parseInt(wu[0],10),Eu=Number.parseInt(wu[1],10),Tu=Number.parseInt(wu[2],10);function Su(){if(vu>10)return!0;if(10===vu){if(Eu>5)return!0;if(5===Eu&&Tu>=0)return!0}return!1}function _u(e,r){const o=t.resolve(e).split(t.sep).filter(e=>e),n=t.resolve(r).split(t.sep).filter(e=>e);return o.reduce((e,t,r)=>e&&n[r]===t,!0)}function Ou(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var ku={checkPaths:function(e,t,r,o){!function(e,t,r){Su()?P.stat(e,{bigint:!0},(e,o)=>{if(e)return r(e);P.stat(t,{bigint:!0},(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:o,destStat:null}):r(e):r(null,{srcStat:o,destStat:t}))}):P.stat(e,(e,o)=>{if(e)return r(e);P.stat(t,(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:o,destStat:null}):r(e):r(null,{srcStat:o,destStat:t}))})}(e,t,(n,s)=>{if(n)return o(n);const{srcStat:i,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===i.ino&&a.dev===i.dev?o(new Error("Source and destination must not be the same.")):i.isDirectory()&&_u(e,t)?o(new Error(Ou(e,t,r))):o(null,{srcStat:i,destStat:a})})},checkPathsSync:function(e,t,r){const{srcStat:o,destStat:n}=function(e,t){let r,o;r=Su()?P.statSync(e,{bigint:!0}):P.statSync(e);try{o=Su()?P.statSync(t,{bigint:!0}):P.statSync(t)}catch(e){if("ENOENT"===e.code)return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:o}}(e,t);if(n&&n.ino&&n.dev&&n.ino===o.ino&&n.dev===o.dev)throw new Error("Source and destination must not be the same.");if(o.isDirectory()&&_u(e,t))throw new Error(Ou(e,t,r));return{srcStat:o,destStat:n}},checkParentPaths:function e(r,o,n,s,i){const a=t.resolve(t.dirname(r)),c=t.resolve(t.dirname(n));if(c===a||c===t.parse(c).root)return i();Su()?P.stat(c,{bigint:!0},(t,a)=>t?"ENOENT"===t.code?i():i(t):a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?i(new Error(Ou(r,n,s))):e(r,o,c,s,i)):P.stat(c,(t,a)=>t?"ENOENT"===t.code?i():i(t):a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?i(new Error(Ou(r,n,s))):e(r,o,c,s,i))},checkParentPathsSync:function e(r,o,n,s){const i=t.resolve(t.dirname(r)),a=t.resolve(t.dirname(n));if(a===i||a===t.parse(a).root)return;let c;try{c=Su()?P.statSync(a,{bigint:!0}):P.statSync(a)}catch(e){if("ENOENT"===e.code)return;throw e}if(c.ino&&c.dev&&c.ino===o.ino&&c.dev===o.dev)throw new Error(Ou(r,n,s));return e(r,o,a,s)},isSrcSubdir:_u};const Pu=bu.mkdirsSync;function Cu(e,r,o,n){if(!n.filter||n.filter(r,o))return function(e,r,o,n){const s=(n.dereference?P.statSync:P.lstatSync)(r);return s.isDirectory()?function(e,t,r,o,n){if(!t)return function(e,t,r,o){return P.mkdirSync(r),Ru(t,r,o),P.chmodSync(r,e.mode)}(e,r,o,n);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${o}' with directory '${r}'.`);return Ru(r,o,n)}(s,e,r,o,n):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(e,t,r,o,n){return t?function(e,t,r,o){if(o.overwrite)return P.unlinkSync(r),Au(e,t,r,o);if(o.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,o,n):Au(e,r,o,n)}(s,e,r,o,n):s.isSymbolicLink()?function(e,r,o,n){let s=P.readlinkSync(r);if(n.dereference&&(s=t.resolve(process.cwd(),s)),e){let e;try{e=P.readlinkSync(o)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return P.symlinkSync(s,o);throw e}if(n.dereference&&(e=t.resolve(process.cwd(),e)),ku.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(P.statSync(o).isDirectory()&&ku.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return P.unlinkSync(t),P.symlinkSync(e,t)}(s,o)}return P.symlinkSync(s,o)}(e,r,o,n):void 0}(e,r,o,n)}function Au(e,t,r,o){return"function"==typeof P.copyFileSync?(P.copyFileSync(t,r),P.chmodSync(r,e.mode),o.preserveTimestamps?function(e,t,r){const o=P.openSync(e,"r+");return P.futimesSync(o,t,r),P.closeSync(o)}(r,e.atime,e.mtime):void 0):function(e,t,r,o){const n=function(e){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(65536)}catch(e){return new Buffer(65536)}return new Buffer(65536)}(),s=P.openSync(t,"r"),i=P.openSync(r,"w",e.mode);let a=0;for(;afunction(e,r,o,n){const s=t.join(r,e),i=t.join(o,e),{destStat:a}=ku.checkPathsSync(s,i,"copy");return Cu(a,s,i,n)}(n,e,r,o))}var ju,xu={copySync:function(e,r,o){"function"==typeof o&&(o={filter:o}),(o=o||{}).clobber=!("clobber"in o)||!!o.clobber,o.overwrite="overwrite"in o?!!o.overwrite:o.clobber,o.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:n,destStat:s}=ku.checkPathsSync(e,r,"copy");return ku.checkParentPathsSync(e,n,r,"copy"),function(e,r,o,n){if(n.filter&&!n.filter(r,o))return;const s=t.dirname(o);return P.existsSync(s)||Pu(s),Cu(e,r,o,n)}(s,e,r,o)}},Fu={pathExists:(ju=function(e){return uu.access(e).then(()=>!0).catch(()=>!1)},Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return ju.apply(this,arguments);ju.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:ju.name})),pathExistsSync:uu.existsSync};const Gu=bu.mkdirs,Iu=Fu.pathExists;function Du(e,r,o,n,s){const i=t.dirname(o);Iu(i,(t,a)=>t?s(t):a?Uu(e,r,o,n,s):void Gu(i,t=>t?s(t):Uu(e,r,o,n,s)))}function Nu(e,t,r,o,n,s){Promise.resolve(n.filter(r,o)).then(i=>i?e(t,r,o,n,s):s(),e=>s(e))}function Uu(e,t,r,o,n){return o.filter?Nu(Lu,e,t,r,o,n):Lu(e,t,r,o,n)}function Lu(e,r,o,n,s){(n.dereference?P.stat:P.lstat)(r,(i,a)=>i?s(i):a.isDirectory()?function(e,t,r,o,n,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${o}' with directory '${r}'.`)):qu(r,o,n,s):function(e,t,r,o,n){P.mkdir(r,s=>{if(s)return n(s);qu(t,r,o,t=>t?n(t):P.chmod(r,e.mode,n))})}(e,r,o,n,s)}(a,e,r,o,n,s):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(e,t,r,o,n,s){return t?function(e,t,r,o,n){if(!o.overwrite)return o.errorOnExist?n(new Error(`'${r}' already exists`)):n();P.unlink(r,s=>s?n(s):Mu(e,t,r,o,n))}(e,r,o,n,s):Mu(e,r,o,n,s)}(a,e,r,o,n,s):a.isSymbolicLink()?function(e,r,o,n,s){P.readlink(r,(r,i)=>r?s(r):(n.dereference&&(i=t.resolve(process.cwd(),i)),e?void P.readlink(o,(r,a)=>r?"EINVAL"===r.code||"UNKNOWN"===r.code?P.symlink(i,o,s):s(r):(n.dereference&&(a=t.resolve(process.cwd(),a)),ku.isSrcSubdir(i,a)?s(new Error(`Cannot copy '${i}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&ku.isSrcSubdir(a,i)?s(new Error(`Cannot overwrite '${a}' with '${i}'.`)):function(e,t,r){P.unlink(t,o=>o?r(o):P.symlink(e,t,r))}(i,o,s))):P.symlink(i,o,s)))}(e,r,o,n,s):void 0)}function Mu(e,t,r,o,n){return"function"==typeof P.copyFile?P.copyFile(t,r,t=>t?n(t):Bu(e,r,o,n)):function(e,t,r,o,n){const s=P.createReadStream(t);s.on("error",e=>n(e)).once("open",()=>{const t=P.createWriteStream(r,{mode:e.mode});t.on("error",e=>n(e)).on("open",()=>s.pipe(t)).once("close",()=>Bu(e,r,o,n))})}(e,t,r,o,n)}function Bu(e,t,r,o){P.chmod(t,e.mode,n=>n?o(n):r.preserveTimestamps?function(e,t,r,o){P.open(e,"r+",(e,n)=>{if(e)return o(e);P.futimes(n,t,r,e=>{P.close(n,t=>{o&&o(e||t)})})})}(t,e.atime,e.mtime,o):o())}function qu(e,r,o,n){P.readdir(e,(s,i)=>s?n(s):function e(r,o,n,s,i){const a=r.pop();return a?function(r,o,n,s,i,a){const c=t.join(n,o),u=t.join(s,o);ku.checkPaths(c,u,"copy",(t,o)=>{if(t)return a(t);const{destStat:l}=o;Uu(l,c,u,i,t=>t?a(t):e(r,n,s,i,a))})}(r,a,o,n,s,i):i()}(i,e,r,o,n))}var $u={copy:cu(function(e,t,r,o){"function"!=typeof r||o?"function"==typeof r&&(r={filter:r}):(o=r,r={}),o=o||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),ku.checkPaths(e,t,"copy",(n,s)=>{if(n)return o(n);const{srcStat:i,destStat:a}=s;ku.checkParentPaths(e,i,t,"copy",n=>n?o(n):r.filter?Nu(Du,a,e,t,r,o):Du(a,e,t,r,o))})})};const Hu="win32"===process.platform;function zu(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||P[t],e[t+="Sync"]=e[t]||P[t]}),e.maxBusyTries=e.maxBusyTries||3}function Wu(e,t,r){let o=0;"function"==typeof t&&(r=t,t={}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i.strictEqual(typeof r,"function","rimraf: callback function required"),i(t,"rimraf: invalid options argument provided"),i.strictEqual(typeof t,"object","rimraf: options should be object"),zu(t),Vu(e,t,function n(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&oVu(e,t,n),100*o);"ENOENT"===s.code&&(s=null)}r(s)})}function Vu(e,t,r){i(e),i(t),i("function"==typeof r),t.lstat(e,(o,n)=>o&&"ENOENT"===o.code?r(null):o&&"EPERM"===o.code&&Hu?Ju(e,t,o,r):n&&n.isDirectory()?Ku(e,t,o,r):void t.unlink(e,o=>{if(o){if("ENOENT"===o.code)return r(null);if("EPERM"===o.code)return Hu?Ju(e,t,o,r):Ku(e,t,o,r);if("EISDIR"===o.code)return Ku(e,t,o,r)}return r(o)}))}function Ju(e,t,r,o){i(e),i(t),i("function"==typeof o),r&&i(r instanceof Error),t.chmod(e,438,n=>{n?o("ENOENT"===n.code?null:r):t.stat(e,(n,s)=>{n?o("ENOENT"===n.code?null:r):s.isDirectory()?Ku(e,t,r,o):t.unlink(e,o)})})}function Yu(e,t,r){let o;i(e),i(t),r&&i(r instanceof Error);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{o=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}o.isDirectory()?Zu(e,t,r):t.unlinkSync(e)}function Ku(e,r,o,n){i(e),i(r),o&&i(o instanceof Error),i("function"==typeof n),r.rmdir(e,s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?n(s&&"ENOTDIR"===s.code?o:s):function(e,r,o){i(e),i(r),i("function"==typeof o),r.readdir(e,(n,s)=>{if(n)return o(n);let i,a=s.length;if(0===a)return r.rmdir(e,o);s.forEach(n=>{Wu(t.join(e,n),r,t=>{if(!i)return t?o(i=t):void(0==--a&&r.rmdir(e,o))})})})}(e,r,n)})}function Qu(e,t){let r;zu(t=t||{}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i(t,"rimraf: missing options"),i.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&Hu&&Yu(e,t,r)}try{r&&r.isDirectory()?Zu(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return Hu?Yu(e,t,r):Zu(e,t,r);if("EISDIR"!==r.code)throw r;Zu(e,t,r)}}function Zu(e,r,o){i(e),i(r),o&&i(o instanceof Error);try{r.rmdirSync(e)}catch(n){if("ENOTDIR"===n.code)throw o;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(e,r){if(i(e),i(r),r.readdirSync(e).forEach(o=>Qu(t.join(e,o),r)),!Hu)return r.rmdirSync(e,r);{const t=Date.now();do{try{return r.rmdirSync(e,r)}catch(e){}}while(Date.now()-t<500)}}(e,r);else if("ENOENT"!==n.code)throw n}}var Xu=Wu;Wu.sync=Qu;var el={remove:cu(Xu),removeSync:Xu.sync};const tl=cu(function(e,r){r=r||function(){},P.readdir(e,(o,n)=>{if(o)return bu.mkdirs(e,r);n=n.map(r=>t.join(e,r)),function e(){const t=n.pop();if(!t)return r();el.remove(t,t=>{if(t)return r(t);e()})}()})});function rl(e){let r;try{r=P.readdirSync(e)}catch(t){return bu.mkdirsSync(e)}r.forEach(r=>{r=t.join(e,r),el.removeSync(r)})}var ol={emptyDirSync:rl,emptydirSync:rl,emptyDir:tl,emptydir:tl};const nl=Fu.pathExists;var sl={createFile:cu(function(e,r){function o(){P.writeFile(e,"",e=>{if(e)return r(e);r()})}P.stat(e,(n,s)=>{if(!n&&s.isFile())return r();const i=t.dirname(e);nl(i,(e,t)=>e?r(e):t?o():void bu.mkdirs(i,e=>{if(e)return r(e);o()}))})}),createFileSync:function(e){let r;try{r=P.statSync(e)}catch(e){}if(r&&r.isFile())return;const o=t.dirname(e);P.existsSync(o)||bu.mkdirsSync(o),P.writeFileSync(e,"")}};const il=Fu.pathExists;var al={createLink:cu(function(e,r,o){function n(e,t){P.link(e,t,e=>{if(e)return o(e);o(null)})}il(r,(s,i)=>s?o(s):i?o(null):void P.lstat(e,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),o(s);const i=t.dirname(r);il(i,(t,s)=>t?o(t):s?n(e,r):void bu.mkdirs(i,t=>{if(t)return o(t);n(e,r)}))}))}),createLinkSync:function(e,r){if(P.existsSync(r))return;try{P.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const o=t.dirname(r);return P.existsSync(o)||bu.mkdirsSync(o),P.linkSync(e,r)}};const cl=Fu.pathExists,ul=bu.mkdirs,ll=bu.mkdirsSync,pl=Fu.pathExists;var fl,dl={createSymlink:cu(function(e,r,o,n){n="function"==typeof o?o:n,o="function"!=typeof o&&o,pl(r,(s,i)=>s?n(s):i?n(null):void function(e,r,o){if(t.isAbsolute(e))return P.lstat(e,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),o(t)):o(null,{toCwd:e,toDst:e}));{const n=t.dirname(r),s=t.join(n,e);cl(s,(r,i)=>r?o(r):i?o(null,{toCwd:s,toDst:e}):P.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),o(r)):o(null,{toCwd:e,toDst:t.relative(n,e)})))}}(e,r,(s,i)=>{if(s)return n(s);e=i.toDst,function(e,t,r){if(r="function"==typeof t?t:r,t="function"!=typeof t&&t)return r(null,t);P.lstat(e,(e,o)=>{if(e)return r(null,"file");t=o&&o.isDirectory()?"dir":"file",r(null,t)})}(i.toCwd,o,(o,s)=>{if(o)return n(o);const i=t.dirname(r);pl(i,(t,o)=>t?n(t):o?P.symlink(e,r,s,n):void ul(i,t=>{if(t)return n(t);P.symlink(e,r,s,n)}))})}))}),createSymlinkSync:function(e,r,o){if(P.existsSync(r))return;const n=function(e,r){let o;if(t.isAbsolute(e)){if(o=P.existsSync(e),!o)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const n=t.dirname(r),s=t.join(n,e);if(o=P.existsSync(s),o)return{toCwd:s,toDst:e};if(o=P.existsSync(e),!o)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:t.relative(n,e)}}}(e,r);e=n.toDst,o=function(e,t){let r;if(t)return t;try{r=P.lstatSync(e)}catch(e){return"file"}return r&&r.isDirectory()?"dir":"file"}(n.toCwd,o);const s=t.dirname(r);return P.existsSync(s)||ll(s),P.symlinkSync(e,r,o)}},hl={createFile:sl.createFile,createFileSync:sl.createFileSync,ensureFile:sl.createFile,ensureFileSync:sl.createFileSync,createLink:al.createLink,createLinkSync:al.createLinkSync,ensureLink:al.createLink,ensureLinkSync:al.createLinkSync,createSymlink:dl.createSymlink,createSymlinkSync:dl.createSymlinkSync,ensureSymlink:dl.createSymlink,ensureSymlinkSync:dl.createSymlinkSync};try{fl=P}catch(e){fl=r}function ml(e,t){var r,o="\n";return"object"==typeof t&&null!==t&&(t.spaces&&(r=t.spaces),t.EOL&&(o=t.EOL)),JSON.stringify(e,t?t.replacer:null,r).replace(/\n/g,o)+o}function yl(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var gl={readFile:function(e,t,r){null==r&&(r=t,t={}),"string"==typeof t&&(t={encoding:t});var o=!0;"throws"in(t=t||{})&&(o=t.throws),(t.fs||fl).readFile(e,t,function(n,s){if(n)return r(n);var i;s=yl(s);try{i=JSON.parse(s,t?t.reviver:null)}catch(t){return o?(t.message=e+": "+t.message,r(t)):r(null,null)}r(null,i)})},readFileSync:function(e,t){"string"==typeof(t=t||{})&&(t={encoding:t});var r=t.fs||fl,o=!0;"throws"in t&&(o=t.throws);try{var n=r.readFileSync(e,t);return n=yl(n),JSON.parse(n,t.reviver)}catch(t){if(o)throw t.message=e+": "+t.message,t;return null}},writeFile:function(e,t,r,o){null==o&&(o=r,r={});var n=(r=r||{}).fs||fl,s="";try{s=ml(t,r)}catch(e){return void(o&&o(e,null))}n.writeFile(e,s,r,o)},writeFileSync:function(e,t,r){var o=(r=r||{}).fs||fl,n=ml(t,r);return o.writeFileSync(e,n,r)}};const bl=cu;var wl={readJson:bl(gl.readFile),readJsonSync:gl.readFileSync,writeJson:bl(gl.writeFile),writeJsonSync:gl.writeFileSync};const vl=Fu.pathExists;wl.outputJson=cu(function(e,r,o,n){"function"==typeof o&&(n=o,o={});const s=t.dirname(e);vl(s,(t,i)=>t?n(t):i?wl.writeJson(e,r,o,n):void bu.mkdirs(s,t=>{if(t)return n(t);wl.writeJson(e,r,o,n)}))}),wl.outputJsonSync=function(e,r,o){const n=t.dirname(e);P.existsSync(n)||bu.mkdirsSync(n),wl.writeJsonSync(e,r,o)},wl.outputJSON=wl.outputJson,wl.outputJSONSync=wl.outputJsonSync,wl.writeJSON=wl.writeJson,wl.writeJSONSync=wl.writeJsonSync,wl.readJSON=wl.readJson,wl.readJSONSync=wl.readJsonSync;var El=wl;const Tl=xu.copySync,Sl=el.removeSync,_l=bu.mkdirpSync;function Ol(e,t,r){try{P.renameSync(e,t)}catch(o){if("EXDEV"!==o.code)throw o;return function(e,t,r){return Tl(e,t,{overwrite:r,errorOnExist:!0}),Sl(e)}(e,t,r)}}var kl={moveSync:function(e,r,o){const n=(o=o||{}).overwrite||o.clobber||!1,{srcStat:s}=ku.checkPathsSync(e,r,"move");return ku.checkParentPathsSync(e,s,r,"move"),_l(t.dirname(r)),function(e,t,r){if(r)return Sl(t),Ol(e,t,r);if(P.existsSync(t))throw new Error("dest already exists.");return Ol(e,t,r)}(e,r,n)}};const Pl=$u.copy,Cl=el.remove,Al=bu.mkdirp,Rl=Fu.pathExists;function jl(e,t,r,o){P.rename(e,t,n=>n?"EXDEV"!==n.code?o(n):function(e,t,r,o){Pl(e,t,{overwrite:r,errorOnExist:!0},t=>t?o(t):Cl(e,o))}(e,t,r,o):o())}var xl={move:cu(function(e,r,o,n){"function"==typeof o&&(n=o,o={});const s=o.overwrite||o.clobber||!1;ku.checkPaths(e,r,"move",(o,i)=>{if(o)return n(o);const{srcStat:a}=i;ku.checkParentPaths(e,a,r,"move",o=>{if(o)return n(o);Al(t.dirname(r),t=>t?n(t):function(e,t,r,o){if(r)return Cl(t,n=>n?o(n):jl(e,t,r,o));Rl(t,(n,s)=>n?o(n):s?o(new Error("dest already exists.")):jl(e,t,r,o))}(e,r,s,n))})})})};const Fl=Fu.pathExists;var Gl={outputFile:cu(function(e,r,o,n){"function"==typeof o&&(n=o,o="utf8");const s=t.dirname(e);Fl(s,(t,i)=>t?n(t):i?P.writeFile(e,r,o,n):void bu.mkdirs(s,t=>{if(t)return n(t);P.writeFile(e,r,o,n)}))}),outputFileSync:function(e,...r){const o=t.dirname(e);if(P.existsSync(o))return P.writeFileSync(e,...r);bu.mkdirsSync(o),P.writeFileSync(e,...r)}},Il=b(function(e){e.exports=Object.assign({},uu,xu,$u,ol,hl,El,bu,kl,xl,Gl,Fu,el),Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>r.promises})});const{publishSizes:Dl,publishDiff:Nl}=au,{noop:Ul,toFileMap:Ll,toMap:Ml,dedupe:Bl}={noop:function(e){return e},toMap:function(e,t){return e.reduce((e,r,o)=>(e[r]=t[o],e),{})},dedupe:function(e,t,r){return r.indexOf(e)===t},toFileMap:function(e){return e.reduce((e,t)=>(t.size&&(e[t.filename]=t.size),e),{})}},ql=Ts(xi),$l=Pa.sync;$l.file=(e,t)=>new Promise((r,o)=>{const n=Il.createReadStream(e);n.on("error",o);const s=n.pipe(Pa.stream(t));s.on("error",o),s.on("brotli-size",r)});const Hl=e=>Buffer.byteLength(e);Hl.file=async e=>(await Il.stat(e)).size;const zl={brotli:$l,gzip:Yi,none:Hl};async function Wl(e){try{return(await Il.readJSON(e)).sort((e,t)=>t.timestamp-e.timestamp)}catch(e){return[]}}async function Vl(e){try{return await r.promises.access(e,r.constants.F_OK),!0}catch(e){}return!1}function Jl(e){if(e)return console.log(`Stripping hash from build chunks using '${e}' pattern.`),function(t){return t.replace(new RegExp(e),(e,...t)=>{if((t=t.slice(0,-2).filter(e=>null!=e)).length){for(let r=0;r0?"+":"")+ka(e);if(0===Math.abs(e));else if(0===t)r+=" (new file)";else if(t===-e)r+=" (removed)";else{const o=Math.round(e/t*100);r+=` (${o>0?"+":""}${o}%)`}return r}function Kl(e,t){if(0===t)return"🆕";const r=Math.round(e/t*100);return r>=50?"🆘":r>=20?"🚨":r>=10?"⚠ī¸":r>=5?"🔍":r<=-50?"🏆":r<=-20?"🎉":r<=-10?"👏":r<=-5?"✅":""}function Ql(e){if(0==e.length)return"";for(;e.every(e=>!e[e.length-1]);)for(const t of e)t.pop();const[t]=e;let r=t.length;if(3===r&&e.every(e=>"0 B"===e[2])){r-=1;for(const t of e)t.pop()}return 0===r?"":[["Filename","Size","Change",""].slice(0,r),[":---",":---:",":---:",":---:"].slice(0,r),...e].map(e=>`| ${e.join(" | ")} |`).join("\n")}function Zl(e){return/^(1|true|yes)$/.test(e)}(async()=>{try{const e=lt.getInput("repo-token"),o=lo.getOctokit(e);await async function(e,o,n,s){const{number:i}=o.issue;try{lt.debug("pr"+JSON.stringify(o.payload,null,2))}catch(e){}let a,c;if("push"==o.eventName)a=o.payload.before,c=o.payload.ref,console.log(`Pushed new commit on top of ${c} (${a})`);else{if("pull_request"!=o.eventName&&"pull_request_target"!=o.eventName)throw new Error(`Unsupported eventName in github.context: ${o.eventName}. Only "pull_request", "pull_request_target", and "push" triggered workflows are currently supported.`);{const e=o.payload.pull_request;a=e.base.sha,c=e.base.ref,console.log(`PR #${i} is targeted at ${c} (${c})`)}}const u=new class{constructor(e){const r=e||{};r.pattern=r.pattern||"**/*.{mjs,js,jsx,css,html}",r.filename=r.filename||"size-plugin.json",r.writeFile=!1!==r.writeFile,r.stripHash=r.stripHash||Ul,r.filepath=t.join(process.cwd(),r.filename),r.mode=r.mode||process.env.NODE_ENV,r.compression=r.compression||"gzip",this.compressionSize=zl[r.compression],this.options=r}filterFiles(e){const t=Qs.filter(this.options.pattern),r=this.options.exclude?Qs.filter(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))}async readFromDisk(e){const r=await ql(this.options.pattern,{cwd:e,ignore:this.options.exclude}),o=await Promise.all(this.filterFiles(r).map(r=>this.compressionSize.file(t.join(e,r)).catch(()=>null)));return Ml(r.map(e=>this.options.stripHash(e)),o)}async getPreviousSizes(e){const t=await Wl(this.options.filepath);if(t.length){const[{files:e}]=t;return Ll(e)}return this.readFromDisk(e)}async getSizes(e){const t=this.filterFiles(Object.keys(e)),r=await Promise.all(t.map(t=>this.compressionSize(e[t].source)));return Ml(t.map(e=>this.options.stripHash(e)),r)}async getDiff(e,t){const r=[...Object.keys(e),...Object.keys(t)].filter(Bl),o=[];for(const n of r){const r=t[n]||0;o.push({filename:n,size:r,delta:r-(e[n]||0)})}return o}async printSizes(e){const t=Math.max(...e.map(e=>e.filename.length),this.options.columnWidth||0);let r="";const o=[];for(const n of e){const e=n.filename,s=n.size,i=n.delta,a=new Array(t-e.length+2).join(" ")+e+" ⏤ ",c=s>102400?"red":s>40960?"yellow":s>20480?"cyan":"green";let u=va[c](ka(s)),l="";i&&Math.abs(i)>1&&(l=(i>0?"+":"")+ka(i),i>1024?(u=va.bold(u),l=va.red(l)):i<-10&&(l=va.green(l)),u+=` (${l})`);let p=a+u+"\n";const f={name:e,size:s,sizeText:u,delta:i,deltaText:l,msg:a,color:c};o.push(f),this.options.decorateItem&&(p=this.options.decorateItem(p,f)||p),r+=p}if(this.options.decorateAfter){const t=this.options.decorateAfter({sizes:o,raw:e,output:r});t&&(r+="\n"+t.replace(/^\n/g,""))}return r}async uploadSizes(e){const t={timestamp:Date.now(),files:e};if(this.options.save&&await this.options.save(t),this.options.publish&&await Nl(t,this.options.filename),"production"===this.options.mode&&t.files.some(e=>0!==e.delta)){const e=await Wl(this.options.filepath);e.unshift(t),this.options.writeFile&&(await Il.ensureFile(this.options.filename),await Il.writeJSON(this.options.filename,e)),this.options.publish&&await Dl(e,this.options.filename)}}async execute(e,t){const r=await(this.options.getPreviousSizes||this.getPreviousSizes).call(this,t),o=await(this.options.getSizes||this.getSizes).call(this,e),n=await(this.options.getDiff||this.getDiff).call(this,r,o),s=await(this.options.printSizes||this.printSizes).call(this,n);return await(this.options.uploadSizes||this.uploadSizes).call(this,n),s}}({compression:lt.getInput("compression"),pattern:lt.getInput("pattern")||"**/dist/**/*.{js,mjs,cjs}",exclude:lt.getInput("exclude")||"{**/*.map,**/node_modules/**}",stripHash:Jl(lt.getInput("strip-hash"))}),l=lt.getInput("build-script")||"build";console.log("current dir "+process.cwd());let p=await Vl(t.resolve(process.cwd(),"yarn.lock")),f=await Vl(t.resolve(process.cwd(),"package-lock.json")),d="npm",h="npm install";mo.exec(`git config --global --add url."https://${n}:x-oauth-basic@github.com/manabie-com".insteadOf "https://github.com/manabie-com"`),p?h=d="yarn --frozen-lockfile":f&&(h="npm ci"),console.log("get new sizes");const m=await u.readFromDisk(process.cwd());console.log("new size:"),console.log(m);const y=lt.getInput("cwd");r.existsSync(y)?(it.copySync(process.cwd(),process.cwd()+y.replace(".",""),{overwrite:!0,filter:e=>e.indexOf(y.replace("./",""))>-1}),process.chdir(y),console.log("change dir to "+y)):(r.mkdirSync(y),it.copySync(process.cwd(),process.cwd()+y.replace(".",""),{overwrite:!0,filter:e=>e.indexOf(y.replace("./",""))>-1}),process.chdir(y),console.log("change dir to "+y)),console.log("current dir "+process.cwd()),lt.startGroup("[base] Checkout target branch");try{if(!c)throw Error("missing context.payload.pull_request.base.ref");await mo.exec("git fetch -n origin "+c),console.log("successfully fetched base.ref")}catch(e){console.log("fetching base.ref failed",e.message);try{await mo.exec("git fetch -n origin "+a),console.log("successfully fetched base.sha")}catch(e){console.log("fetching base.sha failed",e.message);try{await mo.exec("git fetch -n")}catch(e){console.log("fetch failed",e.message)}}}console.log("checking out and building base commit");try{if(!c)throw Error("missing context.payload.base.ref");await mo.exec("git reset --hard "+c)}catch(e){await mo.exec("git reset --hard "+a)}lt.endGroup();const g=lt.getInput("clean-script");g&&(lt.startGroup(`[base] Cleanup via ${d} run ${g}`),await mo.exec(`${d} run ${g}`),lt.endGroup()),lt.startGroup("[base] Install Dependencies"),p=await Vl(t.resolve(process.cwd(),"yarn.lock")),f=await Vl(t.resolve(process.cwd(),"package-lock.json")),mo.exec(`git config --global --add url."https://${n}:x-oauth-basic@github.com/manabie-com".insteadOf "https://github.com/manabie-com"`),p?h=d="yarn --frozen-lockfile":f&&(h="npm ci"),console.log("Installing using "+h),await mo.exec(h),lt.endGroup(),lt.startGroup("[base] Build using "+d),await mo.exec(`${d} run ${l}`),lt.endGroup(),await mo.exec("git reset --hard"),console.log("get old sizes");const b=await u.readFromDisk(process.cwd());console.log("old sizes:"),console.log(b);const w=await u.getDiff(b,m);lt.startGroup("Size Differences:");const v=await u.printSizes(w);console.log(v),lt.endGroup();const E=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:o,minimumChangeThreshold:n}){let s=[],i=[],a=0,c=0;for(const t of e){const{filename:e,size:u,delta:l}=t;a+=u,c+=l;const p=u-l,f=Math.abs(l)ℹī¸ View Unchanged\n\n${Ql(i)}\n\n\n\n`),t){const e=a-c;let t=Yl(c,e),r=Kl(c,e);u=`**Total Size:** ${ka(a)}\n\n${u}`,u=`**Size Change:** ${t} ${r}\n\n${u}`}return u}(w,{collapseUnchanged:Zl(lt.getInput("collapse-unchanged")),omitUnchanged:Zl(lt.getInput("omit-unchanged")),showTotal:Zl(lt.getInput("show-total")),minimumChangeThreshold:parseInt(lt.getInput("minimum-change-threshold"),10)});let T=!1;const S={...o.repo,issue_number:i},_={...S,body:E+'\n\ncompressed-size-action'};if("pull_request"!==o.eventName&&"pull_request_target"!==o.eventName)console.log("No PR associated with this action run. Not posting a check or comment."),T=!1;else if(Zl(lt.getInput("use-check")))if(n){const t=await async function(e,t){const r=await e.checks.create({...t.repo,name:"Compressed Size",head_sha:t.payload.pull_request.head.sha,status:"in_progress"});return async o=>{await e.checks.update({...t.repo,check_run_id:r.data.id,completed_at:(new Date).toISOString(),status:"completed",...o})}}(e,o);await t({conclusion:"success",output:{title:"Compressed Size Action",summary:E}})}else T=!0;else{let t;lt.startGroup("Updating stats PR comment");try{const r=(await e.issues.listComments(S)).data;for(let e=r.length;e--;){const o=r[e];if("Bot"===o.user.type&&/[\s\n]*(compressed|gzip)-size-action/.test(o.body)){t=o.id;break}}}catch(e){console.log("Error checking for previous comments: "+e.message)}if(t){console.log("Updating previous comment #"+t);try{await e.issues.updateComment({...o.repo,comment_id:t,body:_.body})}catch(e){console.log("Error editing previous comment: "+e.message),t=null}}if(!t){console.log("Creating new comment");try{await e.issues.createComment(_)}catch(t){console.log("Error creating comment: "+t.message),console.log("Submitting a PR review comment instead...");try{const t=o.issue;await e.pulls.createReview({owner:t.owner,repo:t.repo,pull_number:t.number,event:"COMMENT",body:_.body})}catch(e){console.log("Error creating PR review."),T=!0}}}lt.endGroup()}T&&console.log(`\n\t\t\tError: compressed-size-action was unable to comment on your PR.\n\t\t\tThis can happen for PR's originating from a fork without write permissions.\n\t\t\tYou can copy the size table directly into a comment using the markdown below:\n\t\t\t\n\n${_.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}(o,lo.context,e)}catch(e){lt.setFailed(e.message)}})(); +function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("path")),r=e(require("fs")),o=e(require("constants")),n=e(require("stream")),s=e(require("util")),i=e(require("assert")),a=e(require("os")),c=e(require("http")),u=e(require("https"));require("net");var l=e(require("tls")),p=e(require("events")),f=e(require("url")),d=e(require("zlib")),h=e(require("child_process")),m=e(require("tty")),y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var w=function(e){return Object.defineProperty(function(...t){if("function"!=typeof t[t.length-1])return new Promise((r,o)=>{e.call(this,...t,(e,t)=>null!=e?o(e):r(t))});e.apply(this,t)},"name",{value:e.name})},v=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(e=>r(null,e),r)},"name",{value:e.name})},E=process.cwd,T=null,S=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return T||(T=E.call(process)),T};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var _=process.chdir;process.chdir=function(e){T=null,_.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_)}var O=n.Stream,k=Object.getPrototypeOf||function(e){return e.__proto__},P=b(function(e){var t,n;function a(e,r){Object.defineProperty(e,t,{get:function(){return r}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(t=Symbol.for("graceful-fs.queue"),n=Symbol.for("graceful-fs.previous")):(t="___graceful-fs.queue",n="___graceful-fs.previous");var c,u=function(){};function l(e){(function(e){var t,r;function n(t){return t?function(r,o,n){return t.call(e,r,o,function(e){l(e)&&(e=null),n&&n.apply(this,arguments)})}:t}function s(t){return t?function(r,o){try{return t.call(e,r,o)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(r,o,n,s){return t.call(e,r,o,n,function(e){l(e)&&(e=null),s&&s.apply(this,arguments)})}:t}function a(t){return t?function(r,o,n){try{return t.call(e,r,o,n)}catch(e){if(!l(e))throw e}}:t}function c(t){return t?function(r,o,n){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),n&&n.apply(this,arguments)}return"function"==typeof o&&(n=o,o=null),o?t.call(e,r,o,s):t.call(e,r,s)}:t}function u(t){return t?function(r,o){var n=o?t.call(e,r,o):t.call(e,r);return n&&(n.uid<0&&(n.uid+=4294967296),n.gid<0&&(n.gid+=4294967296)),n}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}o.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,o.O_WRONLY|o.O_SYMLINK,r,function(t,o){t?n&&n(t):e.fchmod(o,r,function(t){e.close(o,function(e){n&&n(t||e)})})})},e.lchmodSync=function(t,r){var n,s=e.openSync(t,o.O_WRONLY|o.O_SYMLINK,r),i=!0;try{n=e.fchmodSync(s,r),i=!1}finally{if(i)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return n}}(e),e.lutimes||function(e){o.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,s){e.open(t,o.O_SYMLINK,function(t,o){t?s&&s(t):e.futimes(o,r,n,function(t){e.close(o,function(e){s&&s(t||e)})})})},e.lutimesSync=function(t,r,n){var s,i=e.openSync(t,o.O_SYMLINK),a=!0;try{s=e.futimesSync(i,r,n),a=!1}finally{if(a)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return s}):(e.lutimes=function(e,t,r,o){o&&process.nextTick(o)},e.lutimesSync=function(){})}(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,r,o){o&&process.nextTick(o)},e.lchownSync=function(){}),"win32"===S&&(e.rename=(t=e.rename,function(r,o,n){var s=Date.now(),i=0;t(r,o,function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-s<6e4)return setTimeout(function(){e.stat(o,function(e,s){e&&"ENOENT"===e.code?t(r,o,a):n(c)})},i),void(i<100&&(i+=10));n&&n(c)})})),e.read=function(t){function r(r,o,n,s,i,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,p,f){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,r,o,n,s,i,c);a.apply(this,arguments)}}return t.call(e,r,o,n,s,i,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync=(r=e.readSync,function(t,o,n,s,i){for(var a=0;;)try{return r.call(e,t,o,n,s,i)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})})(e),e.gracefulify=l,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,o){return"function"==typeof r&&(o=r,r=null),function e(r,o,n,s){return t(r,o,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof n&&n.apply(this,arguments):p([e,[r,o,n],t,s||Date.now(),Date.now()])})}(e,r,o)};var r=e.writeFile;e.writeFile=function(e,t,o,n){return"function"==typeof o&&(n=o,o=null),function e(t,o,n,s,i){return r(t,o,n,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):p([e,[t,o,n,s],r,i||Date.now(),Date.now()])})}(e,t,o,n)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,s,i){return n(t,r,o,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):p([e,[t,r,o,s],n,i||Date.now(),Date.now()])})}(e,t,r,o)});var s=e.copyFile;s&&(e.copyFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=0),function e(t,r,o,n,i){return s(t,r,o,function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof n&&n.apply(this,arguments):p([e,[t,r,o,n],s,i||Date.now(),Date.now()])})}(e,t,r,o)});var i=e.readdir;if(e.readdir=function(e,t,r){return"function"==typeof t&&(r=t,t=null),function e(t,r,o,n){return i(t,r,function(s,i){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(i&&i.sort&&i.sort(),"function"==typeof o&&o.call(this,s,i)):p([e,[t,r,o],s,n||Date.now(),Date.now()])})}(e,t,r)},"v0.8"===process.version.substr(0,4)){var a=function(e){return{ReadStream:function t(r,o){if(!(this instanceof t))return new t(r,o);O.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,o=o||{};for(var s=Object.keys(o),i=0,a=s.length;ithis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,function(e,t){if(e)return n.emit("error",e),void(n.readable=!1);n.fd=t,n.emit("open",t),n._read()}):process.nextTick(function(){n._read()})},WriteStream:function t(r,o){if(!(this instanceof t))return new t(r,o);O.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var n=Object.keys(o),s=0,i=n.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}(e);h=a.ReadStream,m=a.WriteStream}var c=e.ReadStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var e=this;g(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})});var u=e.WriteStream;u&&(m.prototype=Object.create(u.prototype),m.prototype.open=function(){var e=this;g(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))})}),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var f=h;Object.defineProperty(e,"FileReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var d=m;function h(e,t){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function m(e,t){return this instanceof m?(u.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var y=e.open;function g(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,n,s){return y(t,r,o,function(i,a){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof n&&n.apply(this,arguments):p([e,[t,r,o,n],i,s||Date.now(),Date.now()])})}(e,t,r,o)}return e.open=g,e}function p(e){u("ENQUEUE",e[0].name,e[1]),r[t].push(e),d()}function f(){for(var e=Date.now(),o=0;o2&&(r[t][o][3]=e,r[t][o][4]=e);d()}function d(){if(clearTimeout(c),c=void 0,0!==r[t].length){var e=r[t].shift(),o=e[0],n=e[1],s=e[2],i=e[3],a=e[4];if(void 0===i)u("RETRY",o.name,n),o.apply(null,n);else if(Date.now()-i>=6e4){u("TIMEOUT",o.name,n);var l=n.pop();"function"==typeof l&&l.call(null,s)}else{var p=Date.now()-a,f=Math.max(a-i,1);p>=Math.min(1.2*f,100)?(u("RETRY",o.name,n),o.apply(null,n.concat([i]))):r[t].push(e)}void 0===c&&(c=setTimeout(d,0))}}s.debuglog?u=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(u=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),r[t]||(a(r,y[t]||[]),r.close=function(e){function t(t,o){return e.call(r,t,function(e){e||f(),"function"==typeof o&&o.apply(this,arguments)})}return Object.defineProperty(t,n,{value:e}),t}(r.close),r.closeSync=function(e){function t(t){e.apply(r,arguments),f()}return Object.defineProperty(t,n,{value:e}),t}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){u(r[t]),i.equal(r[t].length,0)})),y[t]||a(y,r[t]),e.exports=l(function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:k(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(e.exports=l(r),r.__patched=!0)}),C=b(function(e,t){const r=w,o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof P[e]);Object.assign(t,P),o.forEach(e=>{t[e]=r(P[e])}),t.realpath.native=r(P.realpath.native),t.exists=function(e,t){return"function"==typeof t?P.exists(e,t):new Promise(t=>P.exists(e,t))},t.read=function(e,t,r,o,n,s){return"function"==typeof s?P.read(e,t,r,o,n,s):new Promise((s,i)=>{P.read(e,t,r,o,n,(e,t,r)=>{if(e)return i(e);s({bytesRead:t,buffer:r})})})},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?P.write(e,t,...r):new Promise((o,n)=>{P.write(e,t,...r,(e,t,r)=>{if(e)return n(e);o({bytesWritten:t,buffer:r})})})},"function"==typeof P.writev&&(t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?P.writev(e,t,...r):new Promise((o,n)=>{P.writev(e,t,...r,(e,t,r)=>{if(e)return n(e);o({bytesWritten:t,buffers:r})})})})}),A={checkPath:function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(t.parse(e).root,""))){const t=new Error("Path contains invalid characters: "+e);throw t.code="EINVAL",t}}};const{checkPath:R}=A,j=e=>"number"==typeof e?e:{mode:511,...e}.mode;var x={makeDir:async(e,t)=>(R(e),C.mkdir(e,{mode:j(t),recursive:!0})),makeDirSync:(e,t)=>(R(e),C.mkdirSync(e,{mode:j(t),recursive:!0}))};const F=v,{makeDir:G,makeDirSync:I}=x,D=F(G);var N={mkdirs:D,mkdirsSync:I,mkdirp:D,mkdirpSync:I,ensureDir:D,ensureDirSync:I};function U(e,t,r){const o=r.dereference?e=>C.stat(e,{bigint:!0}):e=>C.lstat(e,{bigint:!0});return Promise.all([o(e),o(t).catch(e=>{if("ENOENT"===e.code)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function L(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function M(e,r){const o=t.resolve(e).split(t.sep).filter(e=>e),n=t.resolve(r).split(t.sep).filter(e=>e);return o.reduce((e,t,r)=>e&&n[r]===t,!0)}function B(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var q={checkPaths:function(e,r,o,n,i){s.callbackify(U)(e,r,n,(n,s)=>{if(n)return i(n);const{srcStat:a,destStat:c}=s;if(c){if(L(a,c)){const n=t.basename(e),s=t.basename(r);return"move"===o&&n!==s&&n.toLowerCase()===s.toLowerCase()?i(null,{srcStat:a,destStat:c,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!c.isDirectory())return i(new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`));if(!a.isDirectory()&&c.isDirectory())return i(new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`))}return a.isDirectory()&&M(e,r)?i(new Error(B(e,r,o))):i(null,{srcStat:a,destStat:c})})},checkPathsSync:function(e,r,o,n){const{srcStat:s,destStat:i}=function(e,t,r){let o;const n=r.dereference?e=>C.statSync(e,{bigint:!0}):e=>C.lstatSync(e,{bigint:!0}),s=n(e);try{o=n(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:o}}(e,r,n);if(i){if(L(s,i)){const n=t.basename(e),a=t.basename(r);if("move"===o&&n!==a&&n.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`)}if(s.isDirectory()&&M(e,r))throw new Error(B(e,r,o));return{srcStat:s,destStat:i}},checkParentPaths:function e(r,o,n,s,i){const a=t.resolve(t.dirname(r)),c=t.resolve(t.dirname(n));if(c===a||c===t.parse(c).root)return i();C.stat(c,{bigint:!0},(t,a)=>t?"ENOENT"===t.code?i():i(t):L(o,a)?i(new Error(B(r,n,s))):e(r,o,c,s,i))},checkParentPathsSync:function e(r,o,n,s){const i=t.resolve(t.dirname(r)),a=t.resolve(t.dirname(n));if(a===i||a===t.parse(a).root)return;let c;try{c=C.statSync(a,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(L(o,c))throw new Error(B(r,n,s));return e(r,o,a,s)},isSrcSubdir:M,areIdentical:L};const $=N.mkdirsSync;function H(e,r,o,n){const s=(n.dereference?P.statSync:P.lstatSync)(r);if(s.isDirectory())return function(e,t,r,o,n){return t?V(r,o,n):function(e,t,r,o){return P.mkdirSync(r),V(t,r,o),W(r,e)}(e.mode,r,o,n)}(s,e,r,o,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,r,o,n){return t?function(e,t,r,o){if(o.overwrite)return P.unlinkSync(r),z(e,t,r,o);if(o.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,o,n):z(e,r,o,n)}(s,e,r,o,n);if(s.isSymbolicLink())return function(e,r,o,n){let s=P.readlinkSync(r);if(n.dereference&&(s=t.resolve(process.cwd(),s)),e){let e;try{e=P.readlinkSync(o)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return P.symlinkSync(s,o);throw e}if(n.dereference&&(e=t.resolve(process.cwd(),e)),q.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(P.statSync(o).isDirectory()&&q.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return P.unlinkSync(t),P.symlinkSync(e,t)}(s,o)}return P.symlinkSync(s,o)}(e,r,o,n);if(s.isSocket())throw new Error("Cannot copy a socket file: "+r);if(s.isFIFO())throw new Error("Cannot copy a FIFO pipe: "+r);throw new Error("Unknown file: "+r)}function z(e,t,r,o){return P.copyFileSync(t,r),o.preserveTimestamps&&function(e,t,r){(function(e){return 0==(128&e)})(e)&&function(e,t){W(e,128|t)}(r,e),function(e,t){const r=P.statSync(e);!function(e,t,r){const o=P.openSync(e,"r+");P.futimesSync(o,t,r),P.closeSync(o)}(t,r.atime,r.mtime)}(t,r)}(e.mode,t,r),W(r,e.mode)}function W(e,t){return P.chmodSync(e,t)}function V(e,r,o){P.readdirSync(e).forEach(n=>function(e,r,o,n){const s=t.join(r,e),i=t.join(o,e),{destStat:a}=q.checkPathsSync(s,i,"copy",n);return function(e,t,r,o){if(!o.filter||o.filter(t,r))return H(e,t,r,o)}(a,s,i,n)}(n,e,r,o))}var J={copySync:function(e,r,o){"function"==typeof o&&(o={filter:o}),(o=o||{}).clobber=!("clobber"in o)||!!o.clobber,o.overwrite="overwrite"in o?!!o.overwrite:o.clobber,o.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:n,destStat:s}=q.checkPathsSync(e,r,"copy",o);return q.checkParentPathsSync(e,n,r,"copy"),function(e,r,o,n){if(n.filter&&!n.filter(r,o))return;const s=t.dirname(o);return P.existsSync(s)||$(s),H(e,r,o,n)}(s,e,r,o)}},Y={pathExists:v(function(e){return C.access(e).then(()=>!0).catch(()=>!1)}),pathExistsSync:C.existsSync};const K=N.mkdirs,Q=Y.pathExists;function Z(e,r,o,n,s){const i=t.dirname(o);Q(i,(t,a)=>t?s(t):a?ee(e,r,o,n,s):void K(i,t=>t?s(t):ee(e,r,o,n,s)))}function X(e,t,r,o,n,s){Promise.resolve(n.filter(r,o)).then(i=>i?e(t,r,o,n,s):s(),e=>s(e))}function ee(e,r,o,n,s){(n.dereference?P.stat:P.lstat)(r,(i,a)=>i?s(i):a.isDirectory()?function(e,t,r,o,n,s){return t?ne(r,o,n,s):function(e,t,r,o,n){P.mkdir(r,s=>{if(s)return n(s);ne(t,r,o,t=>t?n(t):oe(r,e,n))})}(e.mode,r,o,n,s)}(a,e,r,o,n,s):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(e,t,r,o,n,s){return t?function(e,t,r,o,n){if(!o.overwrite)return o.errorOnExist?n(new Error(`'${r}' already exists`)):n();P.unlink(r,s=>s?n(s):te(e,t,r,o,n))}(e,r,o,n,s):te(e,r,o,n,s)}(a,e,r,o,n,s):a.isSymbolicLink()?function(e,r,o,n,s){P.readlink(r,(r,i)=>r?s(r):(n.dereference&&(i=t.resolve(process.cwd(),i)),e?void P.readlink(o,(r,a)=>r?"EINVAL"===r.code||"UNKNOWN"===r.code?P.symlink(i,o,s):s(r):(n.dereference&&(a=t.resolve(process.cwd(),a)),q.isSrcSubdir(i,a)?s(new Error(`Cannot copy '${i}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&q.isSrcSubdir(a,i)?s(new Error(`Cannot overwrite '${a}' with '${i}'.`)):function(e,t,r){P.unlink(t,o=>o?r(o):P.symlink(e,t,r))}(i,o,s))):P.symlink(i,o,s)))}(e,r,o,n,s):a.isSocket()?s(new Error("Cannot copy a socket file: "+r)):a.isFIFO()?s(new Error("Cannot copy a FIFO pipe: "+r)):s(new Error("Unknown file: "+r)))}function te(e,t,r,o,n){P.copyFile(t,r,s=>s?n(s):o.preserveTimestamps?function(e,t,r,o){return function(e){return 0==(128&e)}(e)?function(e,t,r){return oe(e,128|t,r)}(r,e,n=>n?o(n):re(e,t,r,o)):re(e,t,r,o)}(e.mode,t,r,n):oe(r,e.mode,n))}function re(e,t,r,o){!function(e,t,r){P.stat(e,(e,o)=>e?r(e):function(e,t,r,o){P.open(e,"r+",(e,n)=>{if(e)return o(e);P.futimes(n,t,r,e=>{P.close(n,t=>{o&&o(e||t)})})})}(t,o.atime,o.mtime,r))}(t,r,t=>t?o(t):oe(r,e,o))}function oe(e,t,r){return P.chmod(e,t,r)}function ne(e,r,o,n){P.readdir(e,(s,i)=>s?n(s):function e(r,o,n,s,i){const a=r.pop();return a?function(r,o,n,s,i,a){const c=t.join(n,o),u=t.join(s,o);q.checkPaths(c,u,"copy",i,(t,o)=>{if(t)return a(t);const{destStat:l}=o;!function(e,t,r,o,n){o.filter?X(ee,e,t,r,o,n):ee(e,t,r,o,n)}(l,c,u,i,t=>t?a(t):e(r,n,s,i,a))})}(r,a,o,n,s,i):i()}(i,e,r,o,n))}var se={copy:w(function(e,t,r,o){"function"!=typeof r||o?"function"==typeof r&&(r={filter:r}):(o=r,r={}),o=o||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),q.checkPaths(e,t,"copy",r,(n,s)=>{if(n)return o(n);const{srcStat:i,destStat:a}=s;q.checkParentPaths(e,i,t,"copy",n=>n?o(n):r.filter?X(Z,a,e,t,r,o):Z(a,e,t,r,o))})})};const ie="win32"===process.platform;function ae(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||P[t],e[t+="Sync"]=e[t]||P[t]}),e.maxBusyTries=e.maxBusyTries||3}function ce(e,t,r){let o=0;"function"==typeof t&&(r=t,t={}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i.strictEqual(typeof r,"function","rimraf: callback function required"),i(t,"rimraf: invalid options argument provided"),i.strictEqual(typeof t,"object","rimraf: options should be object"),ae(t),ue(e,t,function n(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&oue(e,t,n),100*o);"ENOENT"===s.code&&(s=null)}r(s)})}function ue(e,t,r){i(e),i(t),i("function"==typeof r),t.lstat(e,(o,n)=>o&&"ENOENT"===o.code?r(null):o&&"EPERM"===o.code&&ie?le(e,t,o,r):n&&n.isDirectory()?fe(e,t,o,r):void t.unlink(e,o=>{if(o){if("ENOENT"===o.code)return r(null);if("EPERM"===o.code)return ie?le(e,t,o,r):fe(e,t,o,r);if("EISDIR"===o.code)return fe(e,t,o,r)}return r(o)}))}function le(e,t,r,o){i(e),i(t),i("function"==typeof o),t.chmod(e,438,n=>{n?o("ENOENT"===n.code?null:r):t.stat(e,(n,s)=>{n?o("ENOENT"===n.code?null:r):s.isDirectory()?fe(e,t,r,o):t.unlink(e,o)})})}function pe(e,t,r){let o;i(e),i(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{o=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}o.isDirectory()?he(e,t,r):t.unlinkSync(e)}function fe(e,r,o,n){i(e),i(r),i("function"==typeof n),r.rmdir(e,s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?n(s&&"ENOTDIR"===s.code?o:s):function(e,r,o){i(e),i(r),i("function"==typeof o),r.readdir(e,(n,s)=>{if(n)return o(n);let i,a=s.length;if(0===a)return r.rmdir(e,o);s.forEach(n=>{ce(t.join(e,n),r,t=>{if(!i)return t?o(i=t):void(0==--a&&r.rmdir(e,o))})})})}(e,r,n)})}function de(e,t){let r;ae(t=t||{}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i(t,"rimraf: missing options"),i.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&ie&&pe(e,t,r)}try{r&&r.isDirectory()?he(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return ie?pe(e,t,r):he(e,t,r);if("EISDIR"!==r.code)throw r;he(e,t,r)}}function he(e,r,o){i(e),i(r);try{r.rmdirSync(e)}catch(n){if("ENOTDIR"===n.code)throw o;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(e,r){if(i(e),i(r),r.readdirSync(e).forEach(o=>de(t.join(e,o),r)),!ie)return r.rmdirSync(e,r);{const t=Date.now();do{try{return r.rmdirSync(e,r)}catch{}}while(Date.now()-t<500)}}(e,r);else if("ENOENT"!==n.code)throw n}}var me=ce;ce.sync=de;var ye={remove:w(function(e,t){if(P.rm)return P.rm(e,{recursive:!0,force:!0},t);me(e,t)}),removeSync:function(e){if(P.rmSync)return P.rmSync(e,{recursive:!0,force:!0});me.sync(e)}};const ge=v(async function(e){let r;try{r=await C.readdir(e)}catch{return N.mkdirs(e)}return Promise.all(r.map(r=>ye.remove(t.join(e,r))))});function be(e){let r;try{r=C.readdirSync(e)}catch{return N.mkdirsSync(e)}r.forEach(r=>{r=t.join(e,r),ye.removeSync(r)})}var we={emptyDirSync:be,emptydirSync:be,emptyDir:ge,emptydir:ge},ve={createFile:w(function(e,r){function o(){P.writeFile(e,"",e=>{if(e)return r(e);r()})}P.stat(e,(n,s)=>{if(!n&&s.isFile())return r();const i=t.dirname(e);P.stat(i,(e,t)=>{if(e)return"ENOENT"===e.code?N.mkdirs(i,e=>{if(e)return r(e);o()}):r(e);t.isDirectory()?o():P.readdir(i,e=>{if(e)return r(e)})})})}),createFileSync:function(e){let r;try{r=P.statSync(e)}catch{}if(r&&r.isFile())return;const o=t.dirname(e);try{P.statSync(o).isDirectory()||P.readdirSync(o)}catch(e){if(!e||"ENOENT"!==e.code)throw e;N.mkdirsSync(o)}P.writeFileSync(e,"")}};const Ee=w,Te=Y.pathExists,{areIdentical:Se}=q;var _e={createLink:Ee(function(e,r,o){function n(e,t){P.link(e,t,e=>{if(e)return o(e);o(null)})}P.lstat(r,(s,i)=>{P.lstat(e,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),o(s);if(i&&Se(a,i))return o(null);const c=t.dirname(r);Te(c,(t,s)=>t?o(t):s?n(e,r):void N.mkdirs(c,t=>{if(t)return o(t);n(e,r)}))})})}),createLinkSync:function(e,r){let o;try{o=P.lstatSync(r)}catch{}try{const t=P.lstatSync(e);if(o&&Se(t,o))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=t.dirname(r);return P.existsSync(n)||N.mkdirsSync(n),P.linkSync(e,r)}};const Oe=Y.pathExists,ke=w,Pe=N.mkdirs,Ce=N.mkdirsSync,Ae=Y.pathExists,{areIdentical:Re}=q;function je(e,r,o,n){!function(e,r,o){if(t.isAbsolute(e))return P.lstat(e,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),o(t)):o(null,{toCwd:e,toDst:e}));{const n=t.dirname(r),s=t.join(n,e);Oe(s,(r,i)=>r?o(r):i?o(null,{toCwd:s,toDst:e}):P.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),o(r)):o(null,{toCwd:e,toDst:t.relative(n,e)})))}}(e,r,(s,i)=>{if(s)return n(s);e=i.toDst,function(e,t,r){if(r="function"==typeof t?t:r,t="function"!=typeof t&&t)return r(null,t);P.lstat(e,(e,o)=>{if(e)return r(null,"file");t=o&&o.isDirectory()?"dir":"file",r(null,t)})}(i.toCwd,o,(o,s)=>{if(o)return n(o);const i=t.dirname(r);Ae(i,(t,o)=>t?n(t):o?C.symlink(e,r,s,n):void Pe(i,t=>{if(t)return n(t);C.symlink(e,r,s,n)}))})})}var xe={createSymlink:ke(function(e,t,r,o){o="function"==typeof r?r:o,r="function"!=typeof r&&r,C.lstat(t,(n,s)=>{!n&&s.isSymbolicLink()?Promise.all([C.stat(e),C.stat(t)]).then(([n,s])=>{if(Re(n,s))return o(null);je(e,t,r,o)}):je(e,t,r,o)})}),createSymlinkSync:function(e,r,o){let n;try{n=C.lstatSync(r)}catch{}if(n&&n.isSymbolicLink()){const t=C.statSync(e),o=C.statSync(r);if(Re(t,o))return}const s=function(e,r){let o;if(t.isAbsolute(e)){if(o=P.existsSync(e),!o)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const n=t.dirname(r),s=t.join(n,e);if(o=P.existsSync(s),o)return{toCwd:s,toDst:e};if(o=P.existsSync(e),!o)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:t.relative(n,e)}}}(e,r);e=s.toDst,o=function(e,t){let r;if(t)return t;try{r=P.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}(s.toCwd,o);const i=t.dirname(r);return C.existsSync(i)||Ce(i),C.symlinkSync(e,r,o)}},Fe={createFile:ve.createFile,createFileSync:ve.createFileSync,ensureFile:ve.createFile,ensureFileSync:ve.createFileSync,createLink:_e.createLink,createLinkSync:_e.createLinkSync,ensureLink:_e.createLink,ensureLinkSync:_e.createLinkSync,createSymlink:xe.createSymlink,createSymlinkSync:xe.createSymlinkSync,ensureSymlink:xe.createSymlink,ensureSymlinkSync:xe.createSymlinkSync},Ge={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:o=null,spaces:n}={}){const s=r?t:"";return JSON.stringify(e,o,n).replace(/\n/g,t)+s},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}};let Ie;try{Ie=P}catch(e){Ie=r}const{stringify:De,stripBom:Ne}=Ge,Ue={readFile:v(async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||Ie,o=!("throws"in t)||t.throws;let n,s=await w(r.readFile)(e,t);s=Ne(s);try{n=JSON.parse(s,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return n}),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||Ie,o=!("throws"in t)||t.throws;try{let o=r.readFileSync(e,t);return o=Ne(o),JSON.parse(o,t.reviver)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:v(async function(e,t,r={}){const o=r.fs||Ie,n=De(t,r);await w(o.writeFile)(e,n,r)}),writeFileSync:function(e,t,r={}){const o=r.fs||Ie,n=De(t,r);return o.writeFileSync(e,n,r)}};var Le={readJson:Ue.readFile,readJsonSync:Ue.readFileSync,writeJson:Ue.writeFile,writeJsonSync:Ue.writeFileSync};const Me=Y.pathExists;var Be={outputFile:w(function(e,r,o,n){"function"==typeof o&&(n=o,o="utf8");const s=t.dirname(e);Me(s,(t,i)=>t?n(t):i?P.writeFile(e,r,o,n):void N.mkdirs(s,t=>{if(t)return n(t);P.writeFile(e,r,o,n)}))}),outputFileSync:function(e,...r){const o=t.dirname(e);if(P.existsSync(o))return P.writeFileSync(e,...r);N.mkdirsSync(o),P.writeFileSync(e,...r)}};const{stringify:qe}=Ge,{outputFile:$e}=Be,{stringify:He}=Ge,{outputFileSync:ze}=Be;Le.outputJson=v(async function(e,t,r={}){const o=qe(t,r);await $e(e,o,r)}),Le.outputJsonSync=function(e,t,r){const o=He(t,r);ze(e,o,r)},Le.outputJSON=Le.outputJson,Le.outputJSONSync=Le.outputJsonSync,Le.writeJSON=Le.writeJson,Le.writeJSONSync=Le.writeJsonSync,Le.readJSON=Le.readJson,Le.readJSONSync=Le.readJsonSync;var We=Le;const Ve=J.copySync,Je=ye.removeSync,Ye=N.mkdirpSync;function Ke(e,t,r){try{P.renameSync(e,t)}catch(o){if("EXDEV"!==o.code)throw o;return function(e,t,r){return Ve(e,t,{overwrite:r,errorOnExist:!0}),Je(e)}(e,t,r)}}var Qe={moveSync:function(e,r,o){const n=(o=o||{}).overwrite||o.clobber||!1,{srcStat:s,isChangingCase:i=!1}=q.checkPathsSync(e,r,"move",o);return q.checkParentPathsSync(e,s,r,"move"),function(e){const r=t.dirname(e);return t.parse(r).root===r}(r)||Ye(t.dirname(r)),function(e,t,r,o){if(o)return Ke(e,t,r);if(r)return Je(t),Ke(e,t,r);if(P.existsSync(t))throw new Error("dest already exists.");return Ke(e,t,r)}(e,r,n,i)}};const Ze=se.copy,Xe=ye.remove,et=N.mkdirp,tt=Y.pathExists;function rt(e,t,r,o,n){return o?ot(e,t,r,n):r?Xe(t,o=>o?n(o):ot(e,t,r,n)):void tt(t,(o,s)=>o?n(o):s?n(new Error("dest already exists.")):ot(e,t,r,n))}function ot(e,t,r,o){P.rename(e,t,n=>n?"EXDEV"!==n.code?o(n):function(e,t,r,o){Ze(e,t,{overwrite:r,errorOnExist:!0},t=>t?o(t):Xe(e,o))}(e,t,r,o):o())}var nt,st={move:w(function(e,r,o,n){"function"==typeof o&&(n=o,o={});const s=o.overwrite||o.clobber||!1;q.checkPaths(e,r,"move",o,(o,i)=>{if(o)return n(o);const{srcStat:a,isChangingCase:c=!1}=i;q.checkParentPaths(e,a,r,"move",o=>o?n(o):function(e){const r=t.dirname(e);return t.parse(r).root===r}(r)?rt(e,r,s,c,n):void et(t.dirname(r),t=>t?n(t):rt(e,r,s,c,n)))})})},it={...C,...J,...se,...we,...Fe,...We,...N,...Qe,...st,...Be,...Y,...ye},at=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}}),ct=b(function(e,t){var r=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=r(a);function n(e,t,r){const n=new s(e,t,r);process.stdout.write(n.toString()+o.EOL)}t.issueCommand=n,t.issue=function(e,t=""){n(e,{},t)};class s{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const o=this.properties[r];o&&(t?t=!1:e+=",",e+=`${r}=${i(o)}`)}}return e+="::"+function(e){return at.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}function i(e){return at.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}),ut=b(function(e,t){var o=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=o(r),s=o(a);t.issueCommand=function(e,t){const r=process.env["GITHUB_"+e];if(!r)throw new Error("Unable to find environment variable for file command "+e);if(!n.existsSync(r))throw new Error("Missing file at path: "+r);n.appendFileSync(r,`${at.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}}),lt=b(function(e,r){var o=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const s=n(a),i=n(t);var c;function u(e){ct.issue("error",e instanceof Error?e.toString():e)}function l(e){ct.issue("group",e)}function p(){ct.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(c=r.ExitCode||(r.ExitCode={})),r.exportVariable=function(e,t){const r=at.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";ut.issueCommand("ENV",`${e}<<${t}${s.EOL}${r}${s.EOL}${t}`)}else ct.issueCommand("set-env",{name:e},r)},r.setSecret=function(e){ct.issueCommand("add-mask",{},e)},r.addPath=function(e){process.env.GITHUB_PATH?ut.issueCommand("PATH",e):ct.issueCommand("add-path",{},e),process.env.PATH=`${e}${i.delimiter}${process.env.PATH}`},r.getInput=function(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw new Error("Input required and not supplied: "+e);return r.trim()},r.setOutput=function(e,t){ct.issueCommand("set-output",{name:e},t)},r.setCommandEcho=function(e){ct.issue("echo",e?"on":"off")},r.setFailed=function(e){process.exitCode=c.Failure,u(e)},r.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},r.debug=function(e){ct.issueCommand("debug",{},e)},r.error=u,r.warning=function(e){ct.issue("warning",e instanceof Error?e.toString():e)},r.info=function(e){process.stdout.write(e+s.EOL)},r.startGroup=l,r.endGroup=p,r.group=function(e,t){return o(this,void 0,void 0,function*(){let r;l(e);try{r=yield t()}finally{p()}return r})},r.saveState=function(e,t){ct.issueCommand("save-state",{name:e},t)},r.getState=function(e){return process.env["STATE_"+e]||""}}),pt=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Context=void 0,t.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(r.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(r.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${a.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}}),ft=b(function(e,t){function r(e){if(!e.hostname)return!1;let t,r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=Number(e.port):"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let o=[e.hostname.toUpperCase()];"number"==typeof t&&o.push(`${o[0]}:${t}`);for(let e of r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e))if(o.some(t=>t===e))return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.getProxyUrl=function(e){let t,o,n="https:"===e.protocol;return r(e)||(o=n?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,o&&(t=new URL(o))),t},t.checkBypass=r});function dt(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||c.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,o,n){for(var s=mt(r,o,n),i=0,a=t.requests.length;i=this.maxSockets?n.requests.push(s):n.createSocket(s,function(t){function r(){n.emit("free",t,s)}function o(e){n.removeSocket(t),t.removeListener("free",r),t.removeListener("close",o),t.removeListener("agentRemove",o)}t.on("free",r),t.on("close",o),t.on("agentRemove",o),e.onSocket(t)})},dt.prototype.createSocket=function(e,t){var r=this,o={};r.sockets.push(o);var n=yt({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),nt("making CONNECT request");var s=r.request(n);function i(n,i,a){var c;return s.removeAllListeners(),i.removeAllListeners(),200!==n.statusCode?(nt("tunneling socket could not be established, statusCode=%d",n.statusCode),i.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):a.length>0?(nt("got illegal response body from proxy"),i.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):(nt("tunneling connection has established"),r.sockets[r.sockets.indexOf(o)]=i,t(i))}s.useChunkedEncodingByDefault=!1,s.once("response",function(e){e.upgrade=!0}),s.once("upgrade",function(e,t,r){process.nextTick(function(){i(e,t,r)})}),s.once("connect",i),s.once("error",function(t){s.removeAllListeners(),nt("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),r.removeSocket(o)}),s.end()},dt.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e)})}};var gt={httpOverHttp:function(e){var t=new dt(e);return t.request=c.request,t},httpsOverHttp:function(e){var t=new dt(e);return t.request=c.request,t.createSocket=ht,t.defaultPort=443,t},httpOverHttps:function(e){var t=new dt(e);return t.request=u.request,t},httpsOverHttps:function(e){var t=new dt(e);return t.request=u.request,t.createSocket=ht,t.defaultPort=443,t},debug:nt=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(){}},bt=b(function(e,t){let r;var o,n,s;Object.defineProperty(t,"__esModule",{value:!0}),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"}(o=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(n=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(s=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=ft.getProxyUrl(new URL(e));return t?t.href:""};const i=[o.MovedPermanently,o.ResourceMoved,o.SeeOther,o.TemporaryRedirect,o.PermanentRedirect],a=[o.BadGateway,o.ServiceUnavailable,o.GatewayTimeout],l=["OPTIONS","GET","DELETE","HEAD"];class p extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,p.prototype)}}t.HttpClientError=p;class f{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])}),this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=f,t.isHttps=function(e){return"https:"===new URL(e).protocol};class d{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||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,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,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,o){return this.request(e,t,r,o)}async getJson(e,t={}){t[n.Accept]=this._getExistingOrDefaultHeader(t,n.Accept,s.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let i=await this.post(e,o,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let i=await this.put(e,o,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,s.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,s.ApplicationJson);let i=await this.patch(e,o,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw new Error("Client has already been disposed.");let s,c=new URL(t),u=this._prepareRequest(e,c,n),p=this._allowRetries&&-1!=l.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const o=s.message.headers.location;if(!o)break;let i=new URL(o);if("https:"==c.protocol&&c.protocol!=i.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.");if(await s.readBody(),i.hostname!==c.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];u=this._prepareRequest(e,i,n),s=await this.requestRaw(u,r),t--}if(-1==a.indexOf(s.message.statusCode))return s;f+=1,f{this.requestRawWithCallback(e,t,function(e,t){e&&o(e),r(t)})})}requestRawWithCallback(e,t,r){let o;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let n=!1,s=(e,t)=>{n||(n=!0,r(e,t))},i=e.httpModule.request(e.options,e=>{let t=new f(e);s(null,t)});i.on("socket",e=>{o=e}),i.setTimeout(this._socketTimeout||18e4,()=>{o&&o.end(),s(new Error("Request timeout: "+e.options.path),null)}),i.on("error",function(e){s(e,null)}),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){i.end()}),t.pipe(i)):i.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const n="https:"===o.parsedUrl.protocol;o.httpModule=n?u:c;const s=n?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):s,o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||""),o.options.method=e,o.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(o.options.headers["user-agent"]=this.userAgent),o.options.agent=this._getAgent(o.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(o.options)}),o}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,r){let o;var n;return this.requestOptions&&this.requestOptions.headers&&(o=(n=this.requestOptions.headers,Object.keys(n).reduce((e,t)=>(e[t.toLowerCase()]=n[t],e),{}))[t]),e[t]||o||r}_getAgent(e){let t,o=ft.getProxyUrl(e),n=o&&o.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const s="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||c.globalAgent.maxSockets),n){r||(r=gt);const e={maxSockets:i,keepAlive:this._keepAlive,proxy:{proxyAuth:`${o.username}:${o.password}`,host:o.hostname,port:o.port}};let n;const a="https:"===o.protocol;n=s?a?r.httpsOverHttps:r.httpsOverHttp:a?r.httpOverHttps:r.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=s?new u.Agent(e):new c.Agent(e),this._agent=t}return t||(t=s?u.globalAgent:c.globalAgent),s&&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(r,n)=>{const s=e.message.statusCode,i={statusCode:s,result:null,headers:{}};let a,c;s==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,d.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+s+")";let t=new p(e,s);t.result=i.result,n(t)}else r(i)})}}t.HttpClient=d}),wt=b(function(e,t){var r=y&&y.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const s=n(bt);t.getAuthString=function(e,t){if(!e&&!t.auth)throw new Error("Parameter token or opts.auth is required");if(e&&t.auth)throw new Error("Parameters token and opts.auth may not both be specified");return"string"==typeof t.auth?t.auth:"token "+e},t.getProxyAgent=function(e){return(new s.HttpClient).getAgent(e)},t.getApiBaseUrl=function(){return process.env.GITHUB_API_URL||"https://api.github.com"}});function vt(){return"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var Et=function e(t,r,o,n){if("function"!=typeof o)throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(r)?r.reverse().reduce(function(r,o){return e.bind(null,t,o,r,n)},o)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,n)},o)():o(n)})},Tt=function(e,t,r,o){var n=o;e.registry[r]||(e.registry[r]=[]),"before"===t&&(o=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(o=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){return n(r=e,t)}).then(function(){return r})}),"error"===t&&(o=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return n(e,t)})}),e.registry[r].push({hook:o,orig:n})},St=function(e,t,r){if(e.registry[t]){var o=e.registry[t].map(function(e){return e.orig}).indexOf(r);-1!==o&&e.registry[t].splice(o,1)}},_t=Function.bind,Ot=_t.bind(_t);function kt(e,t,r){var o=Ot(St,null).apply(null,r?[t,r]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(function(o){var n=r?[t,o,r]:[t,o];e[o]=e.api[o]=Ot(Tt,null).apply(null,n)})}function Pt(){var e={registry:{}},t=Et.bind(null,e);return kt(t,e),t}var Ct=!1;function At(){return Ct||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),Ct=!0),Pt()}At.Singular=function(){var e={registry:{}},t=Et.bind(null,e,"h");return kt(t,e,"h"),t}.bind(),At.Collection=Pt.bind();var Rt=At,jt=At.Singular,xt=At.Collection;function Ft(e){return"[object Object]"===Object.prototype.toString.call(e)}function Gt(e){var t,r;return!1!==Ft(e)&&(void 0===(t=e.constructor)||!1!==Ft(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function It(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Dt(e,t,r){if("string"==typeof t){let[e,o]=t.split(" ");r=Object.assign(o?{method:e,url:o}:{url:e},r)}else r=Object.assign({},t);var o;r.headers=(o=r.headers)?Object.keys(o).reduce((e,t)=>(e[t.toLowerCase()]=o[t],e),{}):{},It(r),It(r.headers);const n=function e(t,r){const o=Object.assign({},t);return Object.keys(r).forEach(n=>{Gt(r[n])?n in t?o[n]=e(t[n],r[n]):Object.assign(o,{[n]:r[n]}):Object.assign(o,{[n]:r[n]})}),o}(e||{},r);return e&&e.mediaType.previews.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=n.mediaType.previews.map(e=>e.replace(/-preview/,"")),n}Rt.Hook=At,Rt.Singular=jt,Rt.Collection=xt;const Nt=/\{[^}]+\}/g;function Ut(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Lt(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function Mt(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function Bt(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function qt(e,t,r){return t="+"===e||"#"===e?Mt(t):Bt(t),r?Bt(r)+"="+t:t}function $t(e){return null!=e}function Ht(e){return";"===e||"&"===e||"?"===e}function zt(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,o,n){if(o){let e="";const n=[];if(-1!==r.indexOf(o.charAt(0))&&(e=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(r){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,o){var n=e[r],s=[];if($t(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),o&&"*"!==o&&(n=n.substring(0,parseInt(o,10))),s.push(qt(t,n,Ht(t)?r:""));else if("*"===o)Array.isArray(n)?n.filter($t).forEach(function(e){s.push(qt(t,e,Ht(t)?r:""))}):Object.keys(n).forEach(function(e){$t(n[e])&&s.push(qt(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter($t).forEach(function(r){e.push(qt(t,r))}):Object.keys(n).forEach(function(r){$t(n[r])&&(e.push(Bt(r)),e.push(qt(t,n[r].toString())))}),Ht(t)?s.push(Bt(r)+"="+e.join(",")):0!==e.length&&s.push(e.join(","))}else";"===t?$t(n)&&s.push(Bt(r)):""!==n||"&"!==t&&"?"!==t?""===n&&s.push(""):s.push(Bt(r)+"=");return s}(t,e,o[1],o[2]||o[3]))}),e&&"+"!==e){var s=",";return"?"===e?s="&":"#"!==e&&(s=e),(0!==n.length?e:"")+n.join(s)}return n.join(",")}return Mt(n)})}function Wt(e){let t,r=e.method.toUpperCase(),o=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),s=Lt(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(Nt);return t?t.map(Ut).reduce((e,t)=>e.concat(t),[]):[]}(o);var a;o=(a=o,{expand:zt.bind(null,a)}).expand(s),/^http/.test(o)||(o=e.baseUrl+o);const c=Lt(s,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,"application/vnd$1$2."+e.mediaType.format)).join(",")),e.mediaType.previews.length)){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?"."+e.mediaType.format:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?o=function(e,t){const r=/\?/.test(e)?"&":"?",o=Object.keys(t);return 0===o.length?e:e+r+o.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(o,c):"data"in c?t=c.data:Object.keys(c).length?t=c:n["content-length"]=0,n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:o,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function Vt(e,t,r){return Wt(Dt(e,t,r))}const Jt=function e(t,r){const o=Dt(t,r),n=Vt.bind(null,o);return Object.assign(n,{DEFAULTS:o,defaults:e.bind(null,o),merge:Dt.bind(null,o),parse:Wt})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.10 "+vt()},mediaType:{format:"",previews:[]}}),Yt=n.Readable,Kt=Symbol("buffer"),Qt=Symbol("type");class Zt{constructor(){this[Qt]="";const e=arguments[0],t=arguments[1],r=[];if(e){const t=e,o=Number(t.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=r.size;let s=void 0===o?0:o;var i=r.timeout;let a=void 0===i?0:i;null==e?e=null:sr(e)?e=Buffer.from(e.toString()):ir(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[tr]={body:e,disturbed:!1,error:null},this.size=s,this.timeout=a,e instanceof n&&e.on("error",function(e){const r="AbortError"===e.name?e:new Xt(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[tr].error=r})}function nr(){var e=this;if(this[tr].disturbed)return or.Promise.reject(new TypeError("body used already for: "+this.url));if(this[tr].disturbed=!0,this[tr].error)return or.Promise.reject(this[tr].error);let t=this.body;if(null===t)return or.Promise.resolve(Buffer.alloc(0));if(ir(t)&&(t=t.stream()),Buffer.isBuffer(t))return or.Promise.resolve(t);if(!(t instanceof n))return or.Promise.resolve(Buffer.alloc(0));let r=[],o=0,s=!1;return new or.Promise(function(n,i){let a;e.timeout&&(a=setTimeout(function(){s=!0,i(new Xt(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(s=!0,i(t)):i(new Xt(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!s&&null!==t){if(e.size&&o+t.length>e.size)return s=!0,void i(new Xt(`content size at ${e.url} over limit: ${e.size}`,"max-size"));o+=t.length,r.push(t)}}),t.on("end",function(){if(!s){clearTimeout(a);try{n(Buffer.concat(r,o))}catch(t){i(new Xt(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function sr(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function ir(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function ar(e){let t,r,o=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof n&&"function"!=typeof o.getBoundary&&(t=new rr,r=new rr,o.pipe(t),o.pipe(r),e[tr].body=t,o=r),o}function cr(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":sr(e)?"application/x-www-form-urlencoded;charset=UTF-8":ir(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?"multipart/form-data;boundary="+e.getBoundary():e instanceof n?null:"text/plain;charset=UTF-8"}function ur(e){const t=e.body;return null===t?0:ir(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}or.prototype={get body(){return this[tr].body},get bodyUsed(){return this[tr].disturbed},arrayBuffer(){return nr.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return nr.call(this).then(function(t){return Object.assign(new Zt([],{type:e.toLowerCase()}),{[Kt]:t})})},json(){var e=this;return nr.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return or.Promise.reject(new Xt(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return nr.call(this).then(function(e){return e.toString()})},buffer(){return nr.call(this)},textConverted(){var e=this;return nr.call(this).then(function(t){return function(e,t){if("function"!=typeof er)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let o,n,s="utf-8";return r&&(o=/charset=([^;]*)/i.exec(r)),n=e.slice(0,1024).toString(),!o&&n&&(o=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[mr]=Object.create(null),e instanceof yr){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e))this.append(t,e[t])}}}get(e){fr(e=""+e);const t=hr(this[mr],e);return void 0===t?null:this[mr][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=gr(this),o=0;for(;o1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[mr]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[mr][t].join(", ")}:function(t){return[t.toLowerCase(),e[mr][t].join(", ")]})}yr.prototype.entries=yr.prototype[Symbol.iterator],Object.defineProperty(yr.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(yr.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const br=Symbol("internal");function wr(e,t){const r=Object.create(vr);return r[br]={target:e,kind:t,index:0},r}const vr=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==vr)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[br];const t=e.index,r=gr(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[br].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Er(e){const t=Object.assign({__proto__:null},e[mr]),r=hr(e[mr],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(vr,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Tr=Symbol("Response internals"),Sr=c.STATUS_CODES;class _r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};or.call(this,e,t);const r=t.status||200,o=new yr(t.headers);if(null!=e&&!o.has("Content-Type")){const t=cr(e);t&&o.append("Content-Type",t)}this[Tr]={url:t.url,status:r,statusText:t.statusText||Sr[r],headers:o,counter:t.counter}}get url(){return this[Tr].url||""}get status(){return this[Tr].status}get ok(){return this[Tr].status>=200&&this[Tr].status<300}get redirected(){return this[Tr].counter>0}get statusText(){return this[Tr].statusText}get headers(){return this[Tr].headers}clone(){return new _r(ar(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}or.mixIn(_r.prototype),Object.defineProperties(_r.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(_r.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Or=Symbol("Request internals"),kr=f.parse,Pr=f.format,Cr="destroy"in n.Readable.prototype;function Ar(e){return"object"==typeof e&&"object"==typeof e[Or]}class Rr{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ar(e)?t=kr(e.url):(t=kr(e&&e.href?e.href:""+e),e={});let o=r.method||e.method||"GET";if(o=o.toUpperCase(),(null!=r.body||Ar(e)&&null!==e.body)&&("GET"===o||"HEAD"===o))throw new TypeError("Request with GET/HEAD method cannot have body");let n=null!=r.body?r.body:Ar(e)&&null!==e.body?ar(e):null;or.call(this,n,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new yr(r.headers||e.headers||{});if(null!=n&&!s.has("Content-Type")){const e=cr(n);e&&s.append("Content-Type",e)}let i=Ar(e)?e.signal:null;if("signal"in r&&(i=r.signal),null!=i&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Or]={method:o,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:t,signal:i},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[Or].method}get url(){return Pr(this[Or].parsedURL)}get headers(){return this[Or].headers}get redirect(){return this[Or].redirect}get signal(){return this[Or].signal}clone(){return new Rr(this)}}function jr(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}or.mixIn(Rr.prototype),Object.defineProperty(Rr.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Rr.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(jr.prototype=Object.create(Error.prototype)).constructor=jr,jr.prototype.name="AbortError";const xr=n.PassThrough,Fr=f.resolve;function Gr(e,t){if(!Gr.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return or.Promise=Gr.Promise,new Gr.Promise(function(r,o){const s=new Rr(e,t),i=function(e){const t=e[Or].parsedURL,r=new yr(e[Or].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!Cr)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let o=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(o="0"),null!=e.body){const t=ur(e);"number"==typeof t&&(o=String(t))}o&&r.set("Content-Length",o),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let s=e.agent;return"function"==typeof s&&(s=s(t)),r.has("Connection")||s||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:Er(r),agent:s})}(s),a=("https:"===i.protocol?u:c).request,l=s.signal;let p=null;const f=function(){let e=new jr("The user aborted a request.");o(e),s.body&&s.body instanceof n.Readable&&s.body.destroy(e),p&&p.body&&p.body.emit("error",e)};if(l&&l.aborted)return void f();const h=function(){f(),g()},m=a(i);let y;function g(){m.abort(),l&&l.removeEventListener("abort",h),clearTimeout(y)}l&&l.addEventListener("abort",h),s.timeout&&m.once("socket",function(e){y=setTimeout(function(){o(new Xt("network timeout at: "+s.url,"request-timeout")),g()},s.timeout)}),m.on("error",function(e){o(new Xt(`request to ${s.url} failed, reason: ${e.message}`,"system",e)),g()}),m.on("response",function(e){clearTimeout(y);const t=function(e){const t=new yr;for(const r of Object.keys(e))if(!lr.test(r))if(Array.isArray(e[r]))for(const o of e[r])pr.test(o)||(void 0===t[mr][r]?t[mr][r]=[o]:t[mr][r].push(o));else pr.test(e[r])||(t[mr][r]=[e[r]]);return t}(e.headers);if(Gr.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:Fr(s.url,n);switch(s.redirect){case"error":return o(new Xt("uri requested responds with a redirect, redirect mode is set to error: "+s.url,"no-redirect")),void g();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){o(e)}break;case"follow":if(null===i)break;if(s.counter>=s.follow)return o(new Xt("maximum redirect reached at: "+s.url,"max-redirect")),void g();const n={headers:new yr(s.headers),follow:s.follow,counter:s.counter+1,agent:s.agent,compress:s.compress,method:s.method,body:s.body,signal:s.signal,timeout:s.timeout,size:s.size};return 303!==e.statusCode&&s.body&&null===ur(s)?(o(new Xt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void g()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==s.method)||(n.method="GET",n.body=void 0,n.headers.delete("content-length")),r(Gr(new Rr(i,n))),void g())}}e.once("end",function(){l&&l.removeEventListener("abort",h)});let n=e.pipe(new xr);const i={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:s.size,timeout:s.timeout,counter:s.counter},a=t.get("Content-Encoding");if(!s.compress||"HEAD"===s.method||null===a||204===e.statusCode||304===e.statusCode)return p=new _r(n,i),void r(p);if("gzip"==a||"x-gzip"==a)return n=n.pipe(d.createGunzip({flush:d.Z_SYNC_FLUSH,finishFlush:d.Z_SYNC_FLUSH})),p=new _r(n,i),void r(p);if("deflate"!=a&&"x-deflate"!=a){if("br"==a&&"function"==typeof d.createBrotliDecompress)return n=n.pipe(d.createBrotliDecompress()),p=new _r(n,i),void r(p);p=new _r(n,i),r(p)}else e.pipe(new xr).once("data",function(e){n=n.pipe(8==(15&e[0])?d.createInflate():d.createInflateRaw()),p=new _r(n,i),r(p)})}),function(e,t){const r=t.body;null===r?e.end():ir(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(m,s)})}Gr.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Gr.Promise=global.Promise;class Ir extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Dr=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){o[e]=t[e]}),o;function o(){for(var e=new Array(arguments.length),r=0;rconsole.warn(e));class qr extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(Br(new Ir("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const o=Object.assign({},r.request);r.request.headers.authorization&&(o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o}}function $r(e){(Gt(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||Gr)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(n=>{r=n.url,t=n.status;for(const e of n.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new qr(n.statusText,t,{headers:o,request:e})}if(304===t)throw new qr("Not modified",t,{headers:o,request:e});if(t>=400)return n.text().then(r=>{const n=new qr(r,t,{headers:o,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e),n.message=n.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw n});const s=n.headers.get("content-type");return/application\/json/.test(s)?n.json():!s||/^text\/|charset=utf-8$/.test(s)?n.text():function(e){return e.arrayBuffer()}(n)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof qr)throw t;throw new qr(t.message,500,{headers:o,request:e})})}const Hr=function e(t,r){const o=t.defaults(r);return Object.assign(function(t,r){const n=o.merge(t,r);if(!n.request||!n.request.hook)return $r(o.parse(n));const s=(e,t)=>$r(o.parse(o.merge(e,t)));return Object.assign(s,{endpoint:o,defaults:e.bind(null,o)}),n.request.hook(s,n)},{endpoint:o,defaults:e.bind(null,o)})}(Jt,{headers:{"user-agent":"octokit-request.js/5.4.12 "+vt()}});class zr extends Error{constructor(e,t){super(t.data.errors[0].message),Object.assign(this,t.data),Object.assign(this,{headers:t.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Wr=["method","baseUrl","url","headers","request","query","mediaType"],Vr=/\/api\/v3\/?$/;function Jr(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){if("string"==typeof t&&r&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const o="string"==typeof t?Object.assign({query:t},r):t,n=Object.keys(o).reduce((e,t)=>Wr.includes(t)?(e[t]=o[t],e):(e.variables||(e.variables={}),e.variables[t]=o[t],e),{}),s=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Vr.test(s)&&(n.url=s.replace(Vr,"/api/graphql")),e(n).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new zr(n,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:Jr.bind(null,r),endpoint:Hr.endpoint})}async function Yr(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Kr(e,t,r,o){const n=t.endpoint.merge(r,o);return n.headers.authorization=function(e){return 3===e.split(/\./).length?"bearer "+e:"token "+e}(e),t(n)}Jr(Hr,{headers:{"user-agent":"octokit-graphql.js/4.5.8 "+vt()},method:"POST",url:"/graphql"});const Qr=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Yr.bind(null,e),{hook:Kr.bind(null,e)})};class Zr{constructor(e={}){const t=new xt,r={baseUrl:Hr.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};var o;if(r.headers["user-agent"]=[e.userAgent,"octokit-core.js/3.2.4 "+vt()].filter(Boolean).join(" "),e.baseUrl&&(r.baseUrl=e.baseUrl),e.previews&&(r.mediaType.previews=e.previews),e.timeZone&&(r.headers["time-zone"]=e.timeZone),this.request=Hr.defaults(r),this.graphql=(o=this.request,Jr(o,{method:"POST",url:"/graphql"})).defaults(r),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=t,e.authStrategy){const{authStrategy:r,...o}=e,n=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",n.hook),this.auth=n}else if(e.auth){const r=Qr(e.auth);t.wrap("request",r.hook),this.auth=r}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){return class extends(this){constructor(...t){const r=t[0]||{};super("function"!=typeof e?Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null):e(r))}}}static plugin(...e){var t;const r=this.plugins;return(t=class extends(this){}).plugins=r.concat(e.filter(e=>!r.includes(e))),t}}Zr.VERSION="3.2.4",Zr.plugins=[];var Xr={__proto__:null,Octokit:Zr};const eo={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits"]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};function to(e,t,r,o,n){const s=e.request.defaults(o);return Object.assign(function(...o){let i=s.endpoint.merge(...o);if(n.mapToData)return i=Object.assign({},i,{data:i[n.mapToData],[n.mapToData]:void 0}),s(i);if(n.renamed){const[o,s]=n.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${o}.${s}()`)}if(n.deprecated&&e.log.warn(n.deprecated),n.renamedParameters){const i=s.endpoint.merge(...o);for(const[o,s]of Object.entries(n.renamedParameters))o in i&&(e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${r}()". Use "${s}" instead`),s in i||(i[s]=i[o]),delete i[o]);return s(i)}return s(...o)},s)}function ro(e){return function(e,t){const r={};for(const[o,n]of Object.entries(t))for(const[t,s]of Object.entries(n)){const[n,i,a]=s,[c,u]=n.split(/ /),l=Object.assign({method:c,url:u},i);r[o]||(r[o]={}),r[o][t]=a?to(e,o,t,l,a):e.request.defaults(l)}return r}(e,eo)}ro.VERSION="4.4.1";var oo=ro;function no(e,t,r){const o="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),n="function"==typeof t?t:e.request,s=o.method,i=o.headers;let a=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};const e=function(e){if(!("total_count"in e.data)||"url"in e.data)return e;const t=e.data.incomplete_results,r=e.data.repository_selection,o=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const n=Object.keys(e.data)[0];return e.data=e.data[n],void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=o,e}(await n({method:s,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}})}}function so(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),function e(t,r,o,n){return o.next().then(s=>{if(s.done)return r;let i=!1;return r=r.concat(n?n(s.value,function(){i=!0}):s.value.data),i?r:e(t,r,o,n)})}(e,[],no(e,t,r)[Symbol.asyncIterator](),o)}function io(e){return{paginate:Object.assign(so.bind(null,e),{iterator:no.bind(null,e)})}}Object.assign(so,{iterator:no}),io.VERSION="2.6.2";var ao,co=io,uo=b(function(e,t){var r=y&&y.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokitOptions=t.GitHub=t.context=void 0;const s=n(pt),i=n(wt);t.context=new s.Context;const a=i.getApiBaseUrl(),c={baseUrl:a,request:{agent:i.getProxyAgent(a)}};t.GitHub=Xr.Octokit.plugin(oo,co).defaults(c),t.getOctokitOptions=function(e,t){const r=Object.assign({},t||{}),o=i.getAuthString(e,r);return o&&(r.auth=o),r}}),lo=b(function(e,t){var r=y&&y.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokit=t.context=void 0;const s=n(pt);t.context=new s.Context,t.getOctokit=function(e,t){return new uo.GitHub(uo.getOctokitOptions(e,t))}}),po=b(function(e,o){var n,s=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})};function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(o,"__esModule",{value:!0}),o.chmod=(n=r.promises).chmod,o.copyFile=n.copyFile,o.lstat=n.lstat,o.mkdir=n.mkdir,o.readdir=n.readdir,o.readlink=n.readlink,o.rename=n.rename,o.rmdir=n.rmdir,o.stat=n.stat,o.symlink=n.symlink,o.unlink=n.unlink,o.IS_WINDOWS="win32"===process.platform,o.exists=function(e){return s(this,void 0,void 0,function*(){try{yield o.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},o.isDirectory=function(e,t=!1){return s(this,void 0,void 0,function*(){return(t?yield o.stat(e):yield o.lstat(e)).isDirectory()})},o.isRooted=function(e){if(!(e=function(e){return e=e||"",o.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return o.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},o.mkdirP=function e(r,n=1e3,a=1){return s(this,void 0,void 0,function*(){if(i.ok(r,"a path argument must be provided"),r=t.resolve(r),a>=n)return o.mkdir(r);try{return void(yield o.mkdir(r))}catch(s){switch(s.code){case"ENOENT":return yield e(t.dirname(r),n,a+1),void(yield o.mkdir(r));default:{let e;try{e=yield o.stat(r)}catch(e){throw s}if(!e.isDirectory())throw s}}}})},o.tryGetExecutablePath=function(e,r){return s(this,void 0,void 0,function*(){let n=void 0;try{n=yield o.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile())if(o.IS_WINDOWS){const o=t.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===o))return e}else if(a(n))return e;const s=e;for(const i of r){e=s+i,n=void 0;try{n=yield o.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(o.IS_WINDOWS){try{const r=t.dirname(e),n=t.basename(e).toUpperCase();for(const s of yield o.readdir(r))if(n===s.toUpperCase()){e=t.join(r,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(a(n))return e}}return""})}}),fo=b(function(e,r){var o=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0});const n=s.promisify(h.exec);function i(e){return o(this,void 0,void 0,function*(){if(po.IS_WINDOWS){try{(yield po.isDirectory(e,!0))?yield n(`rd /s /q "${e}"`):yield n(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield po.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield po.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield n(`rm -rf "${e}"`):yield po.unlink(e)}})}function a(e){return o(this,void 0,void 0,function*(){yield po.mkdirP(e)})}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield po.lstat(e)).isSymbolicLink()){try{yield po.lstat(t),yield po.unlink(t)}catch(e){"EPERM"===e.code&&(yield po.chmod(t,"0666"),yield po.unlink(t))}const r=yield po.readlink(e);yield po.symlink(r,t,po.IS_WINDOWS?"junction":null)}else(yield po.exists(t))&&!r||(yield po.copyFile(e,t))})}r.cp=function(e,r,n={}){return o(this,void 0,void 0,function*(){const{force:s,recursive:i}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(n),u=(yield po.exists(r))?yield po.stat(r):null;if(u&&u.isFile()&&!s)return;const l=u&&u.isDirectory()?t.join(r,t.basename(e)):r;if(!(yield po.exists(e)))throw new Error("no such file or directory: "+e);if((yield po.stat(e)).isDirectory()){if(!i)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,r,n,s){return o(this,void 0,void 0,function*(){if(n>=255)return;n++,yield a(r);const o=yield po.readdir(t);for(const i of o){const o=`${t}/${i}`,a=`${r}/${i}`;(yield po.lstat(o)).isDirectory()?yield e(o,a,n,s):yield c(o,a,s)}yield po.chmod(r,(yield po.stat(t)).mode)})}(e,l,0,s)}else{if(""===t.relative(e,l))throw new Error(`'${l}' and '${e}' are the same file`);yield c(e,l,s)}})},r.mv=function(e,r,n={}){return o(this,void 0,void 0,function*(){if(yield po.exists(r)){let o=!0;if((yield po.isDirectory(r))&&(r=t.join(r,t.basename(e)),o=yield po.exists(r)),o){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield i(r)}}yield a(t.dirname(r)),yield po.rename(e,r)})},r.rmRF=i,r.mkdirP=a,r.which=function e(r,n){return o(this,void 0,void 0,function*(){if(!r)throw new Error("parameter 'tool' is required");if(n&&!(yield e(r,!1)))throw po.IS_WINDOWS?new Error(`Unable to locate executable file: ${r}. 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: ${r}. 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(po.IS_WINDOWS&&process.env.PATHEXT)for(const r of process.env.PATHEXT.split(t.delimiter))r&&e.push(r);if(po.isRooted(r))return(yield po.tryGetExecutablePath(r,e))||"";if(r.includes("/")||po.IS_WINDOWS&&r.includes("\\"))return"";const o=[];if(process.env.PATH)for(const e of process.env.PATH.split(t.delimiter))e&&o.push(e);for(const n of o){const o=yield po.tryGetExecutablePath(n+t.sep+r,e);if(o)return o}return""}catch(e){throw new Error("which failed with message "+e.message)}})}}),ho=b(function(e,r){var o=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},n=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(r,"__esModule",{value:!0});const s=n(a),i=n(p),c=n(h),u=n(t),l=n(fo),f=n(po),d="win32"===process.platform;r.ToolRunner=class extends i.EventEmitter{constructor(e,t,r){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),o=this._getSpawnArgs(e);let n=t?"":"[command]";if(d)if(this._isCmdFile()){n+=r;for(const e of o)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of o)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of o)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of o)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let o=t+e.toString(),n=o.indexOf(s.EOL);for(;n>-1;)r(o.substring(0,n)),o=o.substring(n+s.EOL.length),n=o.indexOf(s.EOL);t=o}catch(e){this._debug("error processing line. Failed with error "+e)}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const o of e)if(t.some(e=>e===o)){r=!0;break}if(!r)return e;let o='"',n=!0;for(let t=e.length;t>0;t--)o+=e[t-1],n&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(n=!0,o+='"'):n=!1;return o+='"',o.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let o=e.length;o>0;o--)t+=e[o-1],r&&"\\"===e[o-1]?t+="\\":'"'===e[o-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return o(this,void 0,void 0,function*(){return!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield l.which(this.toolPath,!0),new Promise((e,t)=>{this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);const o=new m(r,this.toolPath);o.on("debug",e=>{this._debug(e)});const n=this._getSpawnFileName(),i=c.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));if(i.stdout&&i.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})}),i.stderr&&i.stderr.on("data",e=>{o.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),i.on("error",e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()}),i.on("exit",e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()}),i.on("close",e=>{o.processExitCode=e,o.processExited=!0,o.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),o.CheckComplete()}),o.on("done",(r,o)=>{"".length>0&&this.emit("stdline",""),"".length>0&&this.emit("errline",""),i.removeAllListeners(),r?t(r):e(o)}),this.options.input){if(!i.stdin)throw new Error("child process missing stdin");i.stdin.end(this.options.input)}})})}},r.argStringToArray=function(e){const t=[];let r=!1,o=!1,n="";function s(e){o&&'"'!==e&&(n+="\\"),n+=e,o=!1}for(let i=0;i0&&(t.push(n),n=""):o?s(a):r=!r}return n.length>0&&t.push(n.trim()),t};class m extends i.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(m.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}}),mo=g(b(function(e,t){var r=y&&y.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},o=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=o(ho);t.exec=function(e,t,o){return r(this,void 0,void 0,function*(){const r=n.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=r[0];return t=r.slice(1).concat(t||[]),new n.ToolRunner(s,t,o).exec()})}})),yo=Object.prototype.toString,go=function(e){var t=yo.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===yo.call(e.callee)),r};if(!Object.keys){var bo=Object.prototype.hasOwnProperty,wo=Object.prototype.toString,vo=go,Eo=Object.prototype.propertyIsEnumerable,To=!Eo.call({toString:null},"toString"),So=Eo.call(function(){},"prototype"),_o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Oo=function(e){var t=e.constructor;return t&&t.prototype===e},ko={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Po=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!ko["$"+e]&&bo.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{Oo(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();ao=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===wo.call(e),o=vo(e),n=t&&"[object String]"===wo.call(e),s=[];if(!t&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var i=So&&r;if(n&&e.length>0&&!bo.call(e,0))for(var a=0;a0)for(var c=0;c2?arguments[2]:{},o=xo(t);Fo&&(o=Io.call(o,Object.getOwnPropertySymbols(t)));for(var n=0;n1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=nn(e),o=sn("%"+(r.length>0?r[0]:"")+"%",t),n=1;n=r.length){var s=Jo(o,r[n]);if(!t&&!(r[n]in o))throw new Vo("base intrinsic for "+e+" exists, but the property is not available.");o=s?s.get||s.value:o[r[n]]}else o=o[r[n]];return o},cn=an("%Function%"),un=cn.apply,ln=cn.call,pn=function(){return Wo.apply(ln,arguments)};pn.apply=function(){return Wo.apply(un,arguments)};var fn=pn(an("String.prototype.indexOf")),dn=function(e,t){var r=an(e,!!t);return"function"==typeof r&&fn(e,".prototype.")?pn(r):r},hn=an("%Object.defineProperty%",!0);if(hn)try{hn({},"a",{value:1})}catch(e){hn=null}var mn=dn("Object.prototype.propertyIsEnumerable"),yn=Wo.call(Function.call,Object.prototype.hasOwnProperty),gn=an("%TypeError%"),bn=an("%SyntaxError%"),wn={"Property Descriptor":function(e,t){if("Object"!==e(t))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var o in t)if(yn(t,o)&&!r[o])return!1;var n=yn(t,"[[Value]]"),s=yn(t,"[[Get]]")||yn(t,"[[Set]]");if(n&&s)throw new gn("Property Descriptors may not be both accessor and data descriptors");return!0}},vn=function(e,t,r,o){var n=wn[t];if("function"!=typeof n)throw new bn("unknown record type: "+t);if(!n(e,o))throw new gn(r+" must be a "+t)},En=function(e){return"symbol"==typeof e?"Symbol":function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}(e)},Tn=function(e){if(void 0===e)return e;vn(En,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t},Sn=an("%Object.getOwnPropertyDescriptor%");if(Sn)try{Sn([],"length")}catch(e){Sn=null}var _n=Sn,On=an("%Array%"),kn=!On.isArray&&dn("Object.prototype.toString"),Pn=On.isArray||function(e){return"[object Array]"===kn(e)},Cn=function(e){return"string"==typeof e||"symbol"==typeof e},An=RegExp.prototype.exec,Rn=Object.getOwnPropertyDescriptor,jn=Object.prototype.toString,xn="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Fn=function(e){return!!e},Gn=an("%Symbol.match%",!0),In=Function.prototype.toString,Dn=/^\s*class\b/,Nn=function(e){try{var t=In.call(e);return Dn.test(t)}catch(e){return!1}},Un=Object.prototype.toString,Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Mn=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(Ln)return function(e){try{return!Nn(e)&&(In.call(e),!0)}catch(e){return!1}}(e);if(Nn(e))return!1;var t=Un.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},Bn=an("%TypeError%"),qn=an("%TypeError%"),$n=dn("Object.prototype.propertyIsEnumerable"),Hn=function(e){return void 0!==e&&(vn(En,"Property Descriptor","Desc",e),!(!yn(e,"[[Value]]")&&!yn(e,"[[Writable]]")))},zn=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},Wn=an("%Object%"),Vn=Wn.isExtensible,Jn=Wn.preventExtensions?function(e){return!zn(e)&&Vn(e)}:function(e){return!zn(e)},Yn=Number.isNaN||function(e){return e!=e},Kn=function(e,t){return e===t?0!==e||1/e==1/t:Yn(e)&&Yn(t)},Qn=an("%TypeError%"),Zn=an("%TypeError%"),Xn=function(e,t){if(null==e)throw new Zn(t||"Cannot call method on "+e);return e},es=an("%Object%"),ts=Object.getOwnPropertyDescriptor,rs=Object.getOwnPropertyNames,os=Object.getOwnPropertySymbols,ns=dn("Array.prototype.concat"),ss=dn("Array.prototype.reduce"),is=os?function(e){return ns(rs(e),os(e))}:rs,as=Mn(ts)&&Mn(rs),cs=function(e){if(Xn(e),!as)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var t=function(e){return Xn(e),es(e)}(e);return ss(is(t),function(e,r){var o=ts(t,r);return void 0!==o&&function(e,t,r){if("Object"!==En(e))throw new Qn("Assertion failed: Type(O) is not Object");if(!Cn(t))throw new Qn("Assertion failed: IsPropertyKey(P) is not true");var o=function(e,t){if("Object"!==En(e))throw new qn("Assertion failed: O must be an Object");if(!Cn(t))throw new qn("Assertion failed: P must be a Property Key");if(yn(e,t)){if(!_n){var r=Pn(e)&&"length"===t,o=function(e){if(!e||"object"!=typeof e)return!1;if(Gn){var t=e[Gn];if(void 0!==t)return Fn(t)}return function(e){if(!e||"object"!=typeof e)return!1;if(!xn)return"[object RegExp]"===jn.call(e);var t=Rn(e,"lastIndex");return!(!t||!yn(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,An.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}(e)}(e)&&"lastIndex"===t;return{"[[Configurable]]":!(r||o),"[[Enumerable]]":$n(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return function(e){if("Object"!==En(e))throw new Bn("ToPropertyDescriptor requires an object");var t={};if(yn(e,"enumerable")&&(t["[[Enumerable]]"]=Fn(e.enumerable)),yn(e,"configurable")&&(t["[[Configurable]]"]=Fn(e.configurable)),yn(e,"value")&&(t["[[Value]]"]=e.value),yn(e,"writable")&&(t["[[Writable]]"]=Fn(e.writable)),yn(e,"get")){var r=e.get;if(void 0!==r&&!Mn(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(yn(e,"set")){var o=e.set;if(void 0!==o&&!Mn(o))throw new Bn("setter must be a function");t["[[Set]]"]=o}if((yn(t,"[[Get]]")||yn(t,"[[Set]]"))&&(yn(t,"[[Value]]")||yn(t,"[[Writable]]")))throw new Bn("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}(_n(e,t))}}(e,t),n=o||Jn(e);(!o||o.writable&&o.configurable)&&n&&function(e,t,r,o,n,s){if(!hn){if(!e(s))return!1;if(!s["[[Configurable]]"]||!s["[[Writable]]"])return!1;if(n in o&&mn(o,n)!==!!s["[[Enumerable]]"])return!1;var i=s["[[Value]]"];return o[n]=i,t(o[n],i)}hn(o,n,r(s))}(Hn,Kn,Tn,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}(e,r,o),e},{})},us=function(){return"function"==typeof Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:cs};Mo(cs,{getPolyfill:us,implementation:cs,shim:function(){var e=us();return Mo(Object,{getOwnPropertyDescriptors:e},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==e}}),e}});var ls=cs;if("function"!=typeof Object.defineProperty||"function"!=typeof Object.defineProperties||[].__proto__!==Array.prototype)throw new TypeError("util.promisify requires a true ES5 environment, that also supports `__proto__`");if("function"!=typeof Promise)throw new TypeError("`Promise` must be globally available for util.promisify to work.");var ps=dn("Array.prototype.slice"),fs=dn("Array.prototype.concat"),ds=dn("Array.prototype.forEach"),hs=qo(),ms=hs?Symbol("util.promisify.custom"):null,ys=hs?Symbol("customPromisifyArgs"):null,gs=function(e){if("function"!=typeof e){var t=new TypeError('The "original" argument must be of type function');throw t.name="TypeError [ERR_INVALID_ARG_TYPE]",t.code="ERR_INVALID_ARG_TYPE",t}if(hs&&e[ms]){var r=e[ms];if("function"!=typeof r)throw new TypeError("The [util.promisify.custom] property must be a function");return Object.defineProperty(r,ms,{configurable:!0,enumerable:!1,value:r,writable:!1}),r}var o=e[ys],n=function(){var t=ps(arguments),r=this;return new Promise(function(n,s){e.apply(r,fs(t,function(e){var t=arguments.length>1?ps(arguments,1):[];if(e)s(e);else if(void 0!==o&&t.length>1){var r={};ds(o,function(e,o){r[e]=t[o]}),n(r)}else n(t[0])}))})};return n.__proto__=e.__proto__,Object.defineProperty(n,ms,{configurable:!0,enumerable:!1,value:n,writable:!1}),Object.defineProperties(n,ls(e))},bs=ys;gs.custom=ms,gs.customPromisifyArgs=bs;var ws=function(){return"function"==typeof s.promisify?s.promisify:gs},vs=ws(),Es=function(e){return vs.apply(s,arguments)};Mo(Es,{custom:vs.custom,customPromisifyArgs:vs.customPromisifyArgs,getPolyfill:ws,implementation:gs,shim:function(){var e=ws();return e!==s.promisify&&Object.defineProperty(s,"promisify",{configurable:!0,enumerable:!0,value:e,writable:!0}),e}});var Ts=Es,Ss="win32"===process.platform,_s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(Ss)var Os=/(.*?)(?:[\/\\]+|$)/g;else Os=/(.*?)(?:[\/]+|$)/g;if(Ss)var ks=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else ks=/^[\/]*/;var Ps=Fs;Fs.realpath=Fs,Fs.sync=Gs,Fs.realpathSync=Gs,Fs.monkeypatch=function(){r.realpath=Fs,r.realpathSync=Gs},Fs.unmonkeypatch=function(){r.realpath=Cs,r.realpathSync=As};var Cs=r.realpath,As=r.realpathSync,Rs=process.version,js=/^v[0-5]\./.test(Rs);function xs(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function Fs(e,o,n){if(js)return Cs(e,o,n);"function"==typeof o&&(n=o,o=null),Cs(e,o,function(s,i){xs(s)?function(e,o,n){if("function"!=typeof n&&(n=function(e){return"function"==typeof e?e:function(){var e;if(_s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}(o),o=null),e=t.resolve(e),o&&Object.prototype.hasOwnProperty.call(o,e))return process.nextTick(n.bind(null,null,o[e]));var s,i,a,c,u=e,l={},p={};function f(){var t=ks.exec(e);s=t[0].length,i=t[0],a=t[0],c="",Ss&&!p[a]?r.lstat(a,function(e){if(e)return n(e);p[a]=!0,d()}):process.nextTick(d)}function d(){if(s>=e.length)return o&&(o[u]=e),n(null,e);Os.lastIndex=s;var t=Os.exec(e);return c=i,i+=t[0],s=Os.lastIndex,p[a=c+t[1]]||o&&o[a]===a?process.nextTick(d):o&&Object.prototype.hasOwnProperty.call(o,a)?y(o[a]):r.lstat(a,h)}function h(e,t){if(e)return n(e);if(!t.isSymbolicLink())return p[a]=!0,o&&(o[a]=a),process.nextTick(d);if(!Ss){var s=t.dev.toString(32)+":"+t.ino.toString(32);if(l.hasOwnProperty(s))return m(null,l[s],a)}r.stat(a,function(e){if(e)return n(e);r.readlink(a,function(e,t){Ss||(l[s]=t),m(e,t)})})}function m(e,r,s){if(e)return n(e);var i=t.resolve(c,r);o&&(o[s]=i),y(i)}function y(r){e=t.resolve(r,e.slice(s)),f()}f()}(e,o,n):n(s,i)})}function Gs(e,o){if(js)return As(e,o);try{return As(e,o)}catch(n){if(xs(n))return function(e,o){if(e=t.resolve(e),o&&Object.prototype.hasOwnProperty.call(o,e))return o[e];var n,s,i,a,c=e,u={},l={};function p(){var t=ks.exec(e);n=t[0].length,s=t[0],i=t[0],a="",Ss&&!l[i]&&(r.lstatSync(i),l[i]=!0)}for(p();n=0&&u>0){for(o=[],s=r.length;l>=0&&!a;)l==c?(o.push(l),c=r.indexOf(e,l+1)):1==o.length?a=[o.pop(),u]:((n=o.pop())=0?c:u;o.length&&(a=[s,i])}return a}Ns.range=Ls;var Ms="\0SLASH"+Math.random()+"\0",Bs="\0OPEN"+Math.random()+"\0",qs="\0CLOSE"+Math.random()+"\0",$s="\0COMMA"+Math.random()+"\0",Hs="\0PERIOD"+Math.random()+"\0";function zs(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Ws(e){return e.split(Ms).join("\\").split(Bs).join("{").split(qs).join("}").split($s).join(",").split(Hs).join(".")}function Vs(e){return"{"+e+"}"}function Js(e){return/^-?0\d/.test(e)}function Ys(e,t){return e<=t}function Ks(e,t){return e>=t}var Qs=ni;ni.Minimatch=si;var Zs={sep:"/"};try{Zs=t}catch(e){}var Xs=ni.GLOBSTAR=si.GLOBSTAR={},ei={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ti="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),ri=/\/+/;function oi(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function ni(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new si(t,r).match(e))}function si(e,t){if(!(this instanceof si))return new si(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Zs.sep&&(e=e.split(Zs.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 ii(e,t){if(t||(t=this instanceof si?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),function e(t,r){var o=[],n=Ds("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s,i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=i||a,u=n.body.indexOf(",")>=0;if(!c&&!u)return n.post.match(/,.*\}/)?e(t=n.pre+"{"+n.body+qs+n.post):[t];if(c)s=n.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var r=[],o=Ds("{","}",t);if(!o)return t.split(",");var n=o.body,s=o.post,i=o.pre.split(",");i[i.length-1]+="{"+n+"}";var a=e(s);return s.length&&(i[i.length-1]+=a.shift(),i.push.apply(i,a)),r.push.apply(r,i),r}(n.body)).length&&1===(s=e(s[0],!1).map(Vs)).length)return(f=n.post.length?e(n.post,!1):[""]).map(function(e){return n.pre+s[0]+e});var l,p=n.pre,f=n.post.length?e(n.post,!1):[""];if(c){var d=zs(s[0]),h=zs(s[1]),m=Math.max(s[0].length,s[1].length),y=3==s.length?Math.abs(zs(s[2])):1,g=Ys;h0){var T=new Array(E+1).join("0");v=w<0?"-"+T+v.slice(1):T+v}}l.push(v)}}else l=function(t,r){for(var o=[],n=0;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Xs;if(""===e)return"";var o,n="",s=!!r.nocase,i=!1,a=[],c=[],u=!1,l=-1,p=-1,f="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(o){switch(o){case"*":n+="[^/]*?",s=!0;break;case"?":n+="[^/]",s=!0;break;default:n+="\\"+o}d.debug("clearStateChar %j %j",o,n),o=!1}}for(var m,y=0,g=e.length;y-1;_--){var O=c[_],k=n.slice(0,O.reStart),P=n.slice(O.reStart,O.reEnd-8),C=n.slice(O.reEnd-8,O.reEnd),A=n.slice(O.reEnd);C+=A;var R=k.split("(").length-1,j=A;for(y=0;y=0&&!(o=e[n]);n--);for(n=0;n>> no match, partial?",e,p,t,f),p!==i))}if("string"==typeof u?(c=o.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(n===i&&s===a)return!0;if(n===i)return r;if(s===a)return n===i-1&&""===e[n];throw new Error("wtf?")};var ci=b(function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),ui=b(function(e){try{if("function"!=typeof s.inherits)throw"";e.exports=s.inherits}catch(t){e.exports=ci}});function li(e){return"/"===e.charAt(0)}function pi(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",o=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||o)}var fi="win32"===process.platform?pi:li,di=pi;function hi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}fi.posix=li,fi.win32=di;var mi=Qs.Minimatch;function yi(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function gi(e,t){return e.localeCompare(t)}function bi(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new mi(r,{dot:!0})}return{matcher:new mi(e,{dot:!0}),gmatcher:t}}function wi(e,r){var o=r;return o="/"===r.charAt(0)?t.join(e.root,r):fi(r)||""===r?r:e.changedCwd?t.resolve(e.cwd,r):t.resolve(r),"win32"===process.platform&&(o=o.replace(/\\/g,"/")),o}function vi(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Ei={alphasort:gi,alphasorti:yi,setopts:function(e,r,o){if(o||(o={}),o.matchBase&&-1===r.indexOf("/")){if(o.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.silent=!!o.silent,e.pattern=r,e.strict=!1!==o.strict,e.realpath=!!o.realpath,e.realpathCache=o.realpathCache||Object.create(null),e.follow=!!o.follow,e.dot=!!o.dot,e.mark=!!o.mark,e.nodir=!!o.nodir,e.nodir&&(e.mark=!0),e.sync=!!o.sync,e.nounique=!!o.nounique,e.nonull=!!o.nonull,e.nosort=!!o.nosort,e.nocase=!!o.nocase,e.stat=!!o.stat,e.noprocess=!!o.noprocess,e.absolute=!!o.absolute,e.maxLength=o.maxLength||Infinity,e.cache=o.cache||Object.create(null),e.statCache=o.statCache||Object.create(null),e.symlinks=o.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(bi))}(e,o),e.changedCwd=!1;var n=process.cwd();hi(o,"cwd")?(e.cwd=t.resolve(o.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=o.root||t.resolve(e.cwd,"/"),e.root=t.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=fi(e.cwd)?e.cwd:wi(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!o.nomount,o.nonegate=!0,o.nocomment=!0,e.minimatch=new mi(r,o),e.options=e.minimatch.options},ownProp:hi,makeAbs:wi,finish:function(e){for(var t=e.nounique,r=t?[]:Object.create(null),o=0,n=e.matches.length;othis.maxLength)return!1;if(!this.stat&&_i(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!o||"DIR"===n)return n;if(o&&"FILE"===n)return!1}var s=this.statCache[t];if(!s){var i;try{i=r.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(i&&i.isSymbolicLink())try{s=r.statSync(t)}catch(e){s=i}else s=i}return this.statCache[t]=s,n=!0,s&&(n=s.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!o||"FILE"!==n)&&n},Ci.prototype._mark=function(e){return Ei.mark(this,e)},Ci.prototype._makeAbs=function(e){return Ei.makeAbs(this,e)};var Ai=Object.create(null),Ri=Dr(function(e,t){return Ai[e]?(Ai[e].push(t),null):(Ai[e]=[t],function(e){return Nr(function t(){var r=Ai[e],o=r.length,n=ji(arguments);try{for(var s=0;so?(r.splice(0,o),process.nextTick(function(){t.apply(null,n)})):delete Ai[e]}})}(e))});function ji(e){for(var t=e.length,r=[],o=0;o1)return!0;for(var n=0;nthis.maxLength)return t();if(!this.stat&&Ii(this.cache,o)){var s=this.cache[o];if(Array.isArray(s)&&(s="DIR"),!n||"DIR"===s)return t(null,s);if(n&&"FILE"===s)return t()}var i=this.statCache[o];if(void 0!==i){if(!1===i)return t(null,i);var a=i.isDirectory()?"DIR":"FILE";return n&&"FILE"===a?t():t(null,a,i)}var c=this,u=Ri("stat\0"+o,function(n,s){if(s&&s.isSymbolicLink())return r.stat(o,function(r,n){r?c._stat2(e,o,null,s,t):c._stat2(e,o,r,n,t)});c._stat2(e,o,n,s,t)});u&&r.lstat(o,u)},Mi.prototype._stat2=function(e,t,r,o,n){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,n();var s="/"===e.slice(-1);if(this.statCache[t]=o,"/"===t.slice(-1)&&o&&!o.isDirectory())return n(null,!1,o);var i=!0;return o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||i,s&&"FILE"===i?n():n(null,i,o)};var Bi=["write","end","destroy"],qi=["resume","pause"],$i=["data","close"],Hi=Array.prototype.slice,zi=function(e,t){var r=new n,o=!1;return Wi(Bi,function(t){r[t]=function(){return e[t].apply(e,arguments)}}),Wi(qi,function(e){r[e]=function(){r.emit(e);var o=t[e];if(o)return o.apply(t,arguments);t.emit(e)}}),Wi($i,function(e){t.on(e,function(){var t=Hi.call(arguments);t.unshift(e),r.emit.apply(r,t)})}),t.on("end",function(){if(!o){o=!0;var e=Hi.call(arguments);e.unshift("end"),r.emit.apply(r,e)}}),e.on("drain",function(){r.emit("drain")}),e.on("error",s),t.on("error",s),r.writable=e.writable,r.readable=t.readable,r;function s(e){r.emit("error",e)}};function Wi(e,t){if(e.forEach)return e.forEach(t);for(var r=0;rfunction(...r){return new(0,t.promiseModule)((o,n)=>{r.push(t.multiArgs?(...e)=>{t.errorFirst?e[0]?n(e):(e.shift(),o(e)):o(e)}:t.errorFirst?(e,t)=>{e?n(e):o(t)}:o),e.apply(this,r)})};var Ji=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=typeof e;if(null===e||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);const o=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let n;n="function"===r?function(...r){return t.excludeMain?e(...r):Vi(e,t).apply(this,r)}:Object.create(Object.getPrototypeOf(e));for(const r in e){const s=e[r];n[r]="function"==typeof s&&o(r)?Vi(s,t):s}return n},Yi=b(function(e){const t=e=>Object.assign({level:9},e);e.exports=(e,r)=>e?Ji(d.gzip)(e,t(r)).then(e=>e.length).catch(e=>0):Promise.resolve(0),e.exports.sync=(e,r)=>d.gzipSync(e,t(r)).length,e.exports.stream=e=>{const r=new n.PassThrough,o=new n.PassThrough,s=zi(r,o);let i=0;const a=d.createGzip(t(e)).on("data",e=>{i+=e.length}).on("error",()=>{s.gzipSize=0}).on("end",()=>{s.gzipSize=i,s.emit("gzip-size",i),o.end()});return r.pipe(a),r.pipe(o,{end:!1}),s},e.exports.file=(t,o)=>new Promise((n,s)=>{const i=r.createReadStream(t);i.on("error",s);const a=i.pipe(e.exports.stream(o));a.on("error",s),a.on("gzip-size",n)}),e.exports.fileSync=(t,o)=>e.exports.sync(r.readFileSync(t),o)}),Ki=/[|\\{}()[\]^$+*?.]/g,Qi=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Ki,"\\$&")},Zi={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Xi=b(function(e){var t={};for(var r in Zi)Zi.hasOwnProperty(r)&&(t[Zi[r]]=r);var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var n in o)if(o.hasOwnProperty(n)){if(!("channels"in o[n]))throw new Error("missing channels property: "+n);if(!("labels"in o[n]))throw new Error("missing channel labels property: "+n);if(o[n].labels.length!==o[n].channels)throw new Error("channel and label counts mismatch: "+n);var s=o[n].channels,i=o[n].labels;delete o[n].channels,delete o[n].labels,Object.defineProperty(o[n],"channels",{value:s}),Object.defineProperty(o[n],"labels",{value:i})}o.rgb.hsl=function(e){var t,r,o=e[0]/255,n=e[1]/255,s=e[2]/255,i=Math.min(o,n,s),a=Math.max(o,n,s),c=a-i;return a===i?t=0:o===a?t=(n-s)/c:n===a?t=2+(s-o)/c:s===a&&(t=4+(o-n)/c),(t=Math.min(60*t,360))<0&&(t+=360),r=(i+a)/2,[t,100*(a===i?0:r<=.5?c/(a+i):c/(2-a-i)),100*r]},o.rgb.hsv=function(e){var t,r,o,n,s,i=e[0]/255,a=e[1]/255,c=e[2]/255,u=Math.max(i,a,c),l=u-Math.min(i,a,c),p=function(e){return(u-e)/6/l+.5};return 0===l?n=s=0:(s=l/u,t=p(i),r=p(a),o=p(c),i===u?n=o-r:a===u?n=1/3+t-o:c===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*s,100*u]},o.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[o.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},o.rgb.cmyk=function(e){var t,r=e[0]/255,o=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-o,1-n)))/(1-t)||0),100*((1-o-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var r=t[e];if(r)return r;var o,n,s,i=Infinity;for(var a in Zi)if(Zi.hasOwnProperty(a)){var c=(n=e,s=Zi[a],Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)+Math.pow(n[2]-s[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*t+.7152*r+.0722*o),100*(.0193*t+.1192*r+.9505*o)]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),r=t[0],n=t[1],s=t[2];return n/=100,s/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},o.hsl.rgb=function(e){var t,r,o,n,s,i=e[0]/360,a=e[1]/100,c=e[2]/100;if(0===a)return[s=255*c,s,s];t=2*c-(r=c<.5?c*(1+a):c+a-c*a),n=[0,0,0];for(var u=0;u<3;u++)(o=i+1/3*-(u-1))<0&&o++,o>1&&o--,n[u]=255*(s=6*o<1?t+6*(r-t)*o:2*o<1?r:3*o<2?t+(r-t)*(2/3-o)*6:t);return n},o.hsl.hsv=function(e){var t=e[0],r=e[1]/100,o=e[2]/100,n=r,s=Math.max(o,.01);return r*=(o*=2)<=1?o:2-o,n*=s<=1?s:2-s,[t,100*(0===o?2*n/(s+n):2*r/(o+r)),(o+r)/2*100]},o.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,o=e[2]/100,n=Math.floor(t)%6,s=t-Math.floor(t),i=255*o*(1-r),a=255*o*(1-r*s),c=255*o*(1-r*(1-s));switch(o*=255,n){case 0:return[o,c,i];case 1:return[a,o,i];case 2:return[i,o,c];case 3:return[i,a,o];case 4:return[c,i,o];case 5:return[o,i,a]}},o.hsv.hsl=function(e){var t,r,o,n=e[0],s=e[1]/100,i=e[2]/100,a=Math.max(i,.01);return o=(2-s)*i,r=s*a,[n,100*(r=(r/=(t=(2-s)*a)<=1?t:2-t)||0),100*(o/=2)]},o.hwb.rgb=function(e){var t,r,o,n,s,i,a,c=e[0]/360,u=e[1]/100,l=e[2]/100,p=u+l;switch(p>1&&(u/=p,l/=p),o=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(o=1-o),n=u+o*((r=1-l)-u),t){default:case 6:case 0:s=r,i=n,a=u;break;case 1:s=n,i=r,a=u;break;case 2:s=u,i=r,a=n;break;case 3:s=u,i=n,a=r;break;case 4:s=n,i=u,a=r;break;case 5:s=r,i=u,a=n}return[255*s,255*i,255*a]},o.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-o)+o)),255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},o.xyz.rgb=function(e){var t,r,o,n=e[0]/100,s=e[1]/100,i=e[2]/100;return r=-.9689*n+1.8758*s+.0415*i,o=.0557*n+-.204*s+1.057*i,t=(t=3.2406*n+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(o=Math.min(Math.max(0,o),1))]},o.xyz.lab=function(e){var t=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},o.lab.xyz=function(e){var t,r,o;t=e[1]/500+(r=(e[0]+16)/116),o=r-e[2]/200;var n=Math.pow(r,3),s=Math.pow(t,3),i=Math.pow(o,3);return r=n>.008856?n:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,[t*=95.047,r*=100,o*=108.883]},o.lab.lch=function(e){var t,r=e[0],o=e[1],n=e[2];return(t=360*Math.atan2(n,o)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(o*o+n*n),t]},o.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},o.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],s=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(s=Math.round(s/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],r=e[1],o=e[2];return t===r&&r===o?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(o/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},o.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map(function(e){return e+e}).join(""));var o=parseInt(r,16);return[o>>16&255,o>>8&255,255&o]},o.rgb.hcg=function(e){var t,r=e[0]/255,o=e[1]/255,n=e[2]/255,s=Math.max(Math.max(r,o),n),i=Math.min(Math.min(r,o),n),a=s-i;return t=a<=0?0:s===r?(o-n)/a%6:s===o?2+(n-r)/a:4+(r-o)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?i/(1-a):0)]},o.hsl.hcg=function(e){var t,r=e[1]/100,o=e[2]/100,n=0;return(t=o<.5?2*r*o:2*r*(1-o))<1&&(n=(o-.5*t)/(1-t)),[e[0],100*t,100*n]},o.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,o=0;return r<1&&(o=(t-r)/(1-r)),[e[0],100*r,100*o]},o.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var o,n=[0,0,0],s=e[0]/360%1*6,i=s%1,a=1-i;switch(Math.floor(s)){case 0:n[0]=1,n[1]=i,n[2]=0;break;case 1:n[0]=a,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=i;break;case 3:n[0]=0,n[1]=a,n[2]=1;break;case 4:n[0]=i,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=a}return[255*(t*n[0]+(o=(1-t)*r)),255*(t*n[1]+o),255*(t*n[2]+o)]},o.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),o=0;return r>0&&(o=t/r),[e[0],100*o,100*r]},o.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],100*o,100*r]},o.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,o=0;return r<1&&(o=(t-r)/(1-r)),[e[0],100*r,100*o]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});function ea(e,t){return function(r){return t(e(r))}}function ta(e,t){for(var r=[t[e].parent,e],o=Xi[t[e].parent][e],n=t[e].parent;t[n].parent;)r.unshift(t[n].parent),o=ea(Xi[t[n].parent][n],o),n=t[n].parent;return o.conversion=r,o}var ra={};Object.keys(Xi).forEach(function(e){ra[e]={},Object.defineProperty(ra[e],"channels",{value:Xi[e].channels}),Object.defineProperty(ra[e],"labels",{value:Xi[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(Xi),r=t.length,o=0;o1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var o=r.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(o)})});var oa=ra,na=b(function(e){const t=(e,t)=>function(){const r=e.apply(oa,arguments);return`[${r+t}m`},r=(e,t)=>function(){const r=e.apply(oa,arguments);return`[${38+t};5;${r}m`},o=(e,t)=>function(){const r=e.apply(oa,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const t of Object.keys(n)){const r=n[t];for(const t of Object.keys(r)){const o=r[t];n[t]={open:`[${o[0]}m`,close:`[${o[1]}m`},r[t]=n[t],e.set(o[0],o[1])}Object.defineProperty(n,t,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:e,enumerable:!1})}const s=e=>e,i=(e,t,r)=>[e,t,r];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:t(s,0)},n.color.ansi256={ansi256:r(s,0)},n.color.ansi16m={rgb:o(i,0)},n.bgColor.ansi={ansi:t(s,10)},n.bgColor.ansi256={ansi256:r(s,10)},n.bgColor.ansi16m={rgb:o(i,10)};for(let e of Object.keys(oa)){if("object"!=typeof oa[e])continue;const s=oa[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(n.color.ansi[e]=t(s.ansi16,0),n.bgColor.ansi[e]=t(s.ansi16,10)),"ansi256"in s&&(n.color.ansi256[e]=r(s.ansi256,0),n.bgColor.ansi256[e]=r(s.ansi256,10)),"rgb"in s&&(n.color.ansi16m[e]=o(s.rgb,0),n.bgColor.ansi16m[e]=o(s.rgb,10))}return n}})}),sa=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(r+e),n=t.indexOf("--");return-1!==o&&(-1===n||o=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ia)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in ia)||"codeship"===ia.CI_NAME?1:t;if("TEAMCITY_VERSION"in ia)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ia.TEAMCITY_VERSION)?1:0;if("truecolor"===ia.COLORTERM)return 3;if("TERM_PROGRAM"in ia){const e=parseInt((ia.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ia.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ia.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ia.TERM)||"COLORTERM"in ia?1:t}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}sa("no-color")||sa("no-colors")||sa("color=false")?aa=!1:(sa("color")||sa("colors")||sa("color=true")||sa("color=always"))&&(aa=!0),"FORCE_COLOR"in ia&&(aa=0===ia.FORCE_COLOR.length||0!==parseInt(ia.FORCE_COLOR,10));var ua={supportsColor:ca,stdout:ca(process.stdout),stderr:ca(process.stderr)};const la=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,pa=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,fa=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,da=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ha=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function ma(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):ha.get(e)||e}function ya(e,t){const r=[],o=t.trim().split(/\s*,\s*/g);let n;for(const t of o)if(isNaN(t)){if(!(n=t.match(fa)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(n[2].replace(da,(e,t,r)=>t?ma(t):r))}else r.push(Number(t));return r}function ga(e){pa.lastIndex=0;const t=[];let r;for(;null!==(r=pa.exec(e));){const e=r[1];if(r[2]){const o=ya(e,r[2]);t.push([e].concat(o))}else t.push([e])}return t}function ba(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let o=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in o))throw new Error("Unknown Chalk style: "+e);o=r[e].length>0?o[e].apply(o,r[e]):o[e]}return o}var wa=(e,t)=>{const r=[],o=[];let n=[];if(t.replace(la,(t,s,i,a,c,u)=>{if(s)n.push(ma(s));else if(a){const t=n.join("");n=[],o.push(0===r.length?t:ba(e,r)(t)),r.push({inverse:i,styles:ga(a)})}else if(c){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(ba(e,r)(n.join(""))),n=[],r.pop()}else n.push(u)}),o.push(n.join("")),r.length>0)throw new Error(`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`);return o.join("")},va=b(function(e){const t=ua.stdout,r="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],n=new Set(["gray"]),s=Object.create(null);function i(e,r){e.level=void 0===(r=r||{}).level?t?t.level:0:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return i(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}i(this,e)}r&&(na.blue.open="");for(const e of Object.keys(na))na[e].closeRe=new RegExp(Qi(na[e].close),"g"),s[e]={get(){const t=na[e];return u.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};s.visible={get(){return u.call(this,this._styles||[],!0,"visible")}},na.color.closeRe=new RegExp(Qi(na.color.close),"g");for(const e of Object.keys(na.color.ansi))n.has(e)||(s[e]={get(){const t=this.level;return function(){const r=na.color[o[t]][e].apply(null,arguments),n={open:r,close:na.color.close,closeRe:na.color.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});na.bgColor.closeRe=new RegExp(Qi(na.bgColor.close),"g");for(const e of Object.keys(na.bgColor.ansi))n.has(e)||(s["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=na.bgColor[o[t]][e].apply(null,arguments),n={open:r,close:na.bgColor.close,closeRe:na.bgColor.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const c=Object.defineProperties(()=>{},s);function u(e,t,r){const o=function(){return l.apply(o,arguments)};o._styles=e,o._empty=t;const n=this;return Object.defineProperty(o,"level",{enumerable:!0,get:()=>n.level,set(e){n.level=e}}),Object.defineProperty(o,"enabled",{enumerable:!0,get:()=>n.enabled,set(e){n.enabled=e}}),o.hasGrey=this.hasGrey||"gray"===r||"grey"===r,o.__proto__=c,o}function l(){const e=arguments,t=e.length;let o=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var ka=(e,t)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t=Object.assign({bits:!1,binary:!1},t)).bits?t.binary?_a:Sa:t.binary?Ta:Ea;if(t.signed&&0===e)return" 0 "+r[0];const o=e<0,n=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return n+Oa(e,t.locale)+" "+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e=Number((e/Math.pow(t.binary?1024:1e3,s)).toPrecision(3)),n+Oa(e,t.locale)+" "+r[s]},Pa=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=s.promisify(r.readFile),i=e=>"string"==typeof e?Buffer.from(e,"utf8"):e,a=(e,t)=>({params:{[d.constants.BROTLI_PARAM_MODE]:e&&"mode"in e&&e.mode||d.constants.BROTLI_DEFAULT_MODE,[d.constants.BROTLI_PARAM_QUALITY]:e&&"quality"in e&&e.quality||d.constants.BROTLI_MAX_QUALITY,[d.constants.BROTLI_PARAM_SIZE_HINT]:t?t.byteLength:0}});async function c(e,t){const r=i(e);return new Promise(function(e,o){d.brotliCompress(r,a(t,r),(t,r)=>{null!==t&&o(t),e(r.byteLength)})})}function u(e,t){const r=i(e);return d.brotliCompressSync(r,a(t,r)).byteLength}t.default=c,t.sync=u,t.stream=function(e){const t=new n.PassThrough,r=new n.PassThrough,o=zi(t,r);let s=0;const i=d.createBrotliCompress(a(e)).on("data",e=>{s+=e.length}).on("error",()=>{o.brotliSize=0}).on("end",()=>{o.brotliSize=s,o.emit("brotli-size",s),r.end()});return t.pipe(i),t.pipe(r,{end:!1}),o},t.file=async function(e,t){const r=await o(e);return await c(r,t)},t.fileSync=function(e,t){return u(r.readFileSync(e),t)}}),Ca=function(e,t){return function(){for(var r=new Array(arguments.length),o=0;o0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*Xa;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Za;case"minutes":case"minute":case"mins":case"min":case"m":return r*Qa;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ka;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return tc(e,Xa,"day")||tc(e,Za,"hour")||tc(e,Qa,"minute")||tc(e,Ka,"second")||e+" ms"}(e):function(e){return e>=Xa?Math.round(e/Xa)+"d":e>=Za?Math.round(e/Za)+"h":e>=Qa?Math.round(e/Qa)+"m":e>=Ka?Math.round(e/Ka)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function tc(e,t,r){if(!(e=31||"{}".userAgent&&"{}".userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}),nc=b(function(e,t){(t=e.exports=rc).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),o=0;o=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function r(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[r]=o,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)},t.enable(r())}),sc=b(function(e){e.exports="undefined"==typeof process||"renderer"===process.type?oc:nc}),ic=n.Writable,ac=sc("follow-redirects"),cc={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},uc=Object.create(null);function lc(e,t){ic.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(e.hostname||(e.hostname=e.host),delete e.host),t&&this.on("response",t);var r=this;if(this._onNativeResponse=function(e){r._processResponse(e)},!e.pathname&&e.path){var o=e.path.indexOf("?");o<0?e.pathname=e.path:(e.pathname=e.path.substring(0,o),e.search=e.path.substring(o))}this._performRequest()}function pc(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(o){var n=o+":",s=r[n]=e[o],a=t[o]=Object.create(s);a.request=function(e,o){return"string"==typeof e?(e=f.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:n,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=r,i.equal(e.protocol,n,"protocol mismatch"),ac("options",e),new lc(e,o)},a.get=function(e,t){var r=a.request(e,t);return r.end(),r}}),t}["abort","aborted","error","socket","timeout"].forEach(function(e){uc[e]=function(t){this._redirectable.emit(e,t)}}),(lc.prototype=Object.create(ic.prototype)).write=function(e,t,r){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):r&&r()},lc.prototype.end=function(e,t,r){"function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null);var o=this._currentRequest;this.write(e||"",t,function(){o.end(null,null,r)})},lc.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},lc.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){lc.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(lc.prototype,e,{get:function(){return this._currentRequest[e]}})}),lc.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var n in this._currentUrl=f.format(this._options),o._redirectable=this,uc)n&&o.on(n,uc[n]);if(this._isRedirect){var s=0,i=this._requestBodyBuffers;!function e(){if(s=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var r,o=this._options.headers;if(307!==e.statusCode&&!(this._options.method in cc))for(r in this._options.method="GET",this._requestBodyBuffers=[],o)/^content-/i.test(r)&&delete o[r];if(!this._isRedirect)for(r in o)/^host$/i.test(r)&&delete o[r];var n=f.resolve(this._currentUrl,t);ac("redirecting to",n),Object.assign(this._options,f.parse(n)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var fc=pc({http:c,https:u});fc.wrap=pc;var dc,hc="Promise based HTTP client for the browser and node.js",mc={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},yc={type:"git",url:"https://github.com/axios/axios.git"},gc=["xhr","http","ajax","promise","node"],bc={url:"https://github.com/axios/axios/issues"},wc="https://github.com/axios/axios",vc={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},Ec={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Tc={"follow-redirects":"1.5.10"},Sc=[{path:"./dist/axios.min.js",threshold:"5kB"}],_c=(dc={__proto__:null,name:"axios",version:"0.19.2",description:hc,main:"index.js",scripts:mc,repository:yc,keywords:gc,author:"Matt Zabriskie",license:"MIT",bugs:bc,homepage:wc,devDependencies:vc,browser:Ec,typings:"./index.d.ts",dependencies:Tc,bundlesize:Sc,default:{name:"axios",version:"0.19.2",description:hc,main:"index.js",scripts:mc,repository:yc,keywords:gc,author:"Matt Zabriskie",license:"MIT",bugs:bc,homepage:wc,devDependencies:vc,browser:Ec,typings:"./index.d.ts",dependencies:Tc,bundlesize:Sc}})&&dc.default||dc,Oc=fc.http,kc=fc.https,Pc=/https:?/,Cc={"Content-Type":"application/x-www-form-urlencoded"};function Ac(e,t){!Ia.isUndefined(e)&&Ia.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Rc,jc={adapter:("undefined"!=typeof XMLHttpRequest?Rc=function(e){return new Promise(function(t,r){var o=e.data,n=e.headers;Ia.isFormData(o)&&delete n["Content-Type"];var s=new XMLHttpRequest;e.auth&&(n.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password||"")));var i=Wa(e.baseURL,e.url);if(s.open(e.method.toUpperCase(),Na(i,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))){var o,n,i,a,c,u="getAllResponseHeaders"in s?(o=s.getAllResponseHeaders(),c={},o?(Ia.forEach(o.split("\n"),function(e){if(a=e.indexOf(":"),n=Ia.trim(e.substr(0,a)).toLowerCase(),i=Ia.trim(e.substr(a+1)),n){if(c[n]&&Va.indexOf(n)>=0)return;c[n]="set-cookie"===n?(c[n]?c[n]:[]).concat([i]):c[n]?c[n]+", "+i:i}}),c):c):null;za(t,r,{data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:u,config:e,request:s}),s=null}},s.onabort=function(){s&&(r(Ha("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(Ha("Network Error",e,null,s)),s=null},s.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Ha(t,e,"ECONNABORTED",s)),s=null},Ia.isStandardBrowserEnv()){var a=Ya,c=(e.withCredentials||Ja(i))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;c&&(n[e.xsrfHeaderName]=c)}if("setRequestHeader"in s&&Ia.forEach(n,function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete n[t]:s.setRequestHeader(t,e)}),Ia.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){s&&(s.abort(),r(e),s=null)}),void 0===o&&(o=null),s.send(o)})}:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(Rc=function(e){return new Promise(function(t,r){var o=function(e){t(e)},n=function(e){r(e)},s=e.data,i=e.headers;if(i["User-Agent"]||i["user-agent"]||(i["User-Agent"]="axios/"+_c.version),s&&!Ia.isStream(s)){if(Buffer.isBuffer(s));else if(Ia.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else{if(!Ia.isString(s))return n(Ha("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));s=Buffer.from(s,"utf-8")}i["Content-Length"]=s.length}var a=void 0;e.auth&&(a=(e.auth.username||"")+":"+(e.auth.password||""));var l=Wa(e.baseURL,e.url),p=f.parse(l),h=p.protocol||"http:";if(!a&&p.auth){var m=p.auth.split(":");a=(m[0]||"")+":"+(m[1]||"")}a&&delete i.Authorization;var y=Pc.test(h),g=y?e.httpsAgent:e.httpAgent,b={path:Na(p.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:i,agent:g,agents:{http:e.httpAgent,https:e.httpsAgent},auth:a};e.socketPath?b.socketPath=e.socketPath:(b.hostname=p.hostname,b.port=p.port);var w,v=e.proxy;if(!v&&!1!==v){var E=h.slice(0,-1)+"_proxy",T=process.env[E]||process.env[E.toUpperCase()];if(T){var S=f.parse(T),_=process.env.no_proxy||process.env.NO_PROXY,O=!0;if(_&&(O=!_.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||"."===e[0]&&p.hostname.substr(p.hostname.length-e.length)===e||p.hostname===e)})),O&&(v={host:S.hostname,port:S.port},S.auth)){var k=S.auth.split(":");v.auth={username:k[0],password:k[1]}}}}if(v&&(b.hostname=v.host,b.host=v.host,b.headers.host=p.hostname+(p.port?":"+p.port:""),b.port=v.port,b.path=h+"//"+p.hostname+(p.port?":"+p.port:"")+b.path,v.auth)){var P=Buffer.from(v.auth.username+":"+v.auth.password,"utf8").toString("base64");b.headers["Proxy-Authorization"]="Basic "+P}var C=y&&(!v||Pc.test(v.protocol));e.transport?w=e.transport:0===e.maxRedirects?w=C?u:c:(e.maxRedirects&&(b.maxRedirects=e.maxRedirects),w=C?kc:Oc),e.maxContentLength&&e.maxContentLength>-1&&(b.maxBodyLength=e.maxContentLength);var A=w.request(b,function(t){if(!A.aborted){var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=204===t.statusCode?r:r.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var s=t.req||A,i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:s};if("stream"===e.responseType)i.data=r,za(o,n,i);else{var a=[];r.on("data",function(t){a.push(t),e.maxContentLength>-1&&Buffer.concat(a).length>e.maxContentLength&&(r.destroy(),n(Ha("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,s)))}),r.on("error",function(t){A.aborted||n($a(t,e,null,s))}),r.on("end",function(){var t=Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding)),i.data=t,za(o,n,i)})}}});A.on("error",function(t){A.aborted||n($a(t,e,null,A))}),e.timeout&&A.setTimeout(e.timeout,function(){A.abort(),n(Ha("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",A))}),e.cancelToken&&e.cancelToken.promise.then(function(e){A.aborted||(A.abort(),n(e))}),Ia.isStream(s)?s.on("error",function(t){n($a(t,e,null,A))}).pipe(A):A.end(s)})}),Rc),transformRequest:[function(e,t){return qa(t,"Accept"),qa(t,"Content-Type"),Ia.isFormData(e)||Ia.isArrayBuffer(e)||Ia.isBuffer(e)||Ia.isStream(e)||Ia.isFile(e)||Ia.isBlob(e)?e:Ia.isArrayBufferView(e)?e.buffer:Ia.isURLSearchParams(e)?(Ac(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Ia.isObject(e)?(Ac(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ia.forEach(["delete","get","head"],function(e){jc.headers[e]={}}),Ia.forEach(["post","put","patch"],function(e){jc.headers[e]=Ia.merge(Cc)});var xc=jc;function Fc(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Gc=function(e){return Fc(e),e.headers=e.headers||{},e.data=Ma(e.data,e.headers,e.transformRequest),e.headers=Ia.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Ia.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||xc.adapter)(e).then(function(t){return Fc(e),t.data=Ma(t.data,t.headers,e.transformResponse),t},function(t){return Ba(t)||(Fc(e),t&&t.response&&(t.response.data=Ma(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},Ic=function(e,t){t=t||{};var r={},o=["url","method","params","data"],n=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];Ia.forEach(o,function(e){void 0!==t[e]&&(r[e]=t[e])}),Ia.forEach(n,function(o){Ia.isObject(t[o])?r[o]=Ia.deepMerge(e[o],t[o]):void 0!==t[o]?r[o]=t[o]:Ia.isObject(e[o])?r[o]=Ia.deepMerge(e[o]):void 0!==e[o]&&(r[o]=e[o])}),Ia.forEach(s,function(o){void 0!==t[o]?r[o]=t[o]:void 0!==e[o]&&(r[o]=e[o])});var i=o.concat(n).concat(s),a=Object.keys(t).filter(function(e){return-1===i.indexOf(e)});return Ia.forEach(a,function(o){void 0!==t[o]?r[o]=t[o]:void 0!==e[o]&&(r[o]=e[o])}),r};function Dc(e){this.defaults=e,this.interceptors={request:new La,response:new La}}Dc.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Ic(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=[Gc,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},Dc.prototype.getUri=function(e){return e=Ic(this.defaults,e),Na(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Ia.forEach(["delete","get","head","options"],function(e){Dc.prototype[e]=function(t,r){return this.request(Ia.merge(r||{},{method:e,url:t}))}}),Ia.forEach(["post","put","patch"],function(e){Dc.prototype[e]=function(t,r,o){return this.request(Ia.merge(o||{},{method:e,url:t,data:r}))}});var Nc=Dc;function Uc(e){this.message=e}Uc.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Uc.prototype.__CANCEL__=!0;var Lc=Uc;function Mc(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new Lc(e),t(r.reason))})}Mc.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Mc.source=function(){var e;return{token:new Mc(function(t){e=t}),cancel:e}};var Bc=Mc;function qc(e){var t=new Nc(e),r=Ca(Nc.prototype.request,t);return Ia.extend(r,Nc.prototype,t),Ia.extend(r,t),r}var $c=qc(xc);$c.Axios=Nc,$c.create=function(e){return qc(Ic($c.defaults,e))},$c.Cancel=Lc,$c.CancelToken=Bc,$c.isCancel=Ba,$c.all=function(e){return Promise.all(e)},$c.spread=function(e){return function(t){return e.apply(null,t)}};var Hc=$c;Hc.default=$c;var zc=Hc;let Wc,Vc,Jc,Yc,Kc,Qc,Zc,Xc,eu,tu="github";if(process.env.TRAVIS)Wc=process.env.TRAVIS_REPO_SLUG,Vc=process.env.TRAVIS_PULL_REQUEST_SHA||process.env.TRAVIS_COMMIT,Jc=process.env.TRAVIS_EVENT_TYPE,Yc=process.env.TRAVIS_COMMIT_MESSAGE,Kc=process.env.TRAVIS_PULL_REQUEST,Xc=`https://travis-ci.org/${Wc}/jobs/${process.env.TRAVIS_JOB_ID}`,eu=`https://travis-ci.org/${Wc}/builds/${process.env.TRAVIS_JOB_ID}`,Qc="push"===process.env.TRAVIS_EVENT_TYPE?process.env.TRAVIS_BRANCH:process.env.TRAVIS_PULL_REQUEST_BRANCH,Zc="travis";else if(process.env.CIRCLECI)Wc=process.env.CIRCLE_PROJECT_USERNAME+"/"+process.env.CIRCLE_PROJECT_REPONAME,Vc=process.env.CIRCLE_SHA1,Jc="push",Yc="",process.env.CI_PULL_REQUEST?(Kc=process.env.CI_PULL_REQUEST.split("/").pop(),Jc="pull_request"):Kc="",Qc=process.env.CIRCLE_BRANCH,Zc="circle";else if(process.env.WERCKER)Wc=process.env.WERCKER_GIT_OWNER+"/"+process.env.WERCKER_GIT_REPOSITORY,Vc=process.env.WERCKER_GIT_COMMIT,Jc="push",Yc="",Kc="",Qc=process.env.WERCKER_GIT_BRANCH,Zc="wercker";else if(process.env.DRONE)Wc=process.env.DRONE_REPO||process.env.CI_REPO||function(e){e||(e=process.env);let t=e.DRONE_REMOTE||e.CI_REMOTE;if(!t)return"";let r=t.split("/").slice(-2);return r[0]+"/"+r[1].replace(/\.git$/,"")}(process.env),Vc=process.env.DRONE_COMMIT||process.env.CI_COMMIT,Jc=process.env.DRONE_BUILD_EVENT||process.env.DRONE_EVENT||process.env.CI_EVENT||"push",Yc="",Kc=process.env.DRONE_PULL_REQUEST,Qc=process.env.DRONE_BRANCH||process.env.CI_BRANCH,Zc="drone";else if(process.env.GITLAB_CI)Wc=process.env.CI_PROJECT_PATH,Qc=process.env.CI_COMMIT_REF_NAME,Yc=process.env.CI_COMMIT_MESSAGE,Kc=process.env.CI_MERGE_REQUEST_ID||"",Vc=process.env.CI_COMMIT_SHA,Jc=process.env.CI_PIPELINE_SOURCE,Xc=process.env.CI_JOB_URL,tu="gitlab",Zc="gitlab";else if("codeship"===process.env.CI_NAME)Wc=process.env.CI_REPO_NAME,Qc=process.env.CI_BRANCH,Yc=process.env.CI_COMMIT_MESSAGE||process.env.CI_MESSAGE,Jc="push",Kc=process.env.CI_PR_NUMBER,Vc=process.env.CI_COMMIT_ID,eu=process.env.CI_BUILD_URL,Zc="codeship";else if(process.env.GITHUB_ACTION){const e=process.env.GITHUB_REF.split("/")[2];Wc=process.env.GITHUB_REPOSITORY,Vc=process.env.GITHUB_SHA,Jc=process.env.GITHUB_EVENT_NAME,Yc="",Kc="pull_request"===Jc?e:"",Qc="pull_request"===Jc?process.env.GITHUB_HEAD_REF:e,Zc="github_actions"}else process.env.NETLIFY?(Wc=process.env.REPOSITORY_URL.split("@github.com/").pop(),Jc=process.env.PULL_REQUEST?"pull_request":"push",Kc=process.env.PULL_REQUEST?process.env.REVIEW_ID:"",Vc=process.env.COMMIT_REF,Qc=process.env.HEAD,Zc="netlify"):process.env.NOW_GITHUB_ORG?(Wc=process.env.NOW_GITHUB_ORG+"/"+process.env.NOW_GITHUB_REPO,Jc="push",Kc="",Vc=process.env.NOW_GITHUB_COMMIT_SHA,Qc=process.env.NOW_GITHUB_COMMIT_REF,Zc="now"):process.env.CI&&(Wc=process.env.CI_REPO_OWNER+"/"+process.env.CI_REPO_NAME,Vc=process.env.CI_COMMIT_SHA,Jc=process.env.CI_EVENT||"push",Yc=process.env.CI_COMMIT_MESSAGE,Kc=process.env.CI_MERGE_REQUEST_ID,Qc=process.env.CI_BRANCH,Zc="custom");var ru={repo:Wc,sha:Vc,event:Jc,commit_message:Yc,branch:Qc,pull_request_number:Kc,ci:Zc,platform:tu,jobUrl:Xc,buildUrl:eu};const{repo:ou,sha:nu,ci:su}=ru,iu=process.env.SIZE_STORE_ENDPOINT||"https://size-store.now.sh";var au={publishDiff:async function(e,t){if("test"!==process.env.NODE_ENV&&su)try{const r={ci:su,repo:ou,sha:nu,filename:t,diff:e};await zc.post(iu+"/diff",r)}catch(e){console.error("error: while publishing diff",e)}},publishSizes:async function(e,t){if("test"!==process.env.NODE_ENV&&su)try{const r={ci:su,repo:ou,sha:nu,filename:t,size:e};await zc.post(iu+"/size",r)}catch(e){console.error("error: while publishing sizes",e)}}},cu=function(e){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((t,r)=>{arguments[arguments.length]=(e,o)=>{if(e)return r(e);t(o)},arguments.length++,e.apply(this,arguments)});e.apply(this,arguments)},"name",{value:e.name})},uu=b(function(e,t){const r=cu,o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof P[e]);Object.keys(P).forEach(e=>{"promises"!==e&&(t[e]=P[e])}),o.forEach(e=>{t[e]=r(P[e])}),t.exists=function(e,t){return"function"==typeof t?P.exists(e,t):new Promise(t=>P.exists(e,t))},t.read=function(e,t,r,o,n,s){return"function"==typeof s?P.read(e,t,r,o,n,s):new Promise((s,i)=>{P.read(e,t,r,o,n,(e,t,r)=>{if(e)return i(e);s({bytesRead:t,buffer:r})})})},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?P.write(e,t,...r):new Promise((o,n)=>{P.write(e,t,...r,(e,t,r)=>{if(e)return n(e);o({bytesWritten:t,buffer:r})})})},"function"==typeof P.realpath.native&&(t.realpath.native=r(P.realpath.native))});const lu=/[<>:"|?*]/;var pu=function(e){const r=function(e){return(e=t.normalize(t.resolve(e)).split(t.sep)).length>0?e[0]:null}(e);return e=e.replace(r,""),lu.test(e)};const fu=pu,du=parseInt("0777",8),hu=pu,mu=parseInt("0777",8);var yu=function e(r,o,n){o&&"object"==typeof o||(o={mode:o});let s=o.mode;const i=o.fs||P;if("win32"===process.platform&&hu(r)){const e=new Error(r+" contains invalid WIN32 path characters.");throw e.code="EINVAL",e}void 0===s&&(s=mu&~process.umask()),n||(n=null),r=t.resolve(r);try{i.mkdirSync(r,s),n=n||r}catch(s){if("ENOENT"===s.code){if(t.dirname(r)===r)throw s;n=e(t.dirname(r),o,n),e(r,o,n)}else{let e;try{e=i.statSync(r)}catch(e){throw s}if(!e.isDirectory())throw s}}return n};const gu=cu(function e(r,o,n,s){if("function"==typeof o?(n=o,o={}):o&&"object"==typeof o||(o={mode:o}),"win32"===process.platform&&fu(r)){const e=new Error(r+" contains invalid WIN32 path characters.");return e.code="EINVAL",n(e)}let i=o.mode;const a=o.fs||P;void 0===i&&(i=du&~process.umask()),s||(s=null),n=n||function(){},r=t.resolve(r),a.mkdir(r,i,i=>{if(!i)return n(null,s=s||r);switch(i.code){case"ENOENT":if(t.dirname(r)===r)return n(i);e(t.dirname(r),o,(t,s)=>{t?n(t,s):e(r,o,n,s)});break;default:a.stat(r,(e,t)=>{e||!t.isDirectory()?n(i,s):n(null,s)})}})});var bu={mkdirs:gu,mkdirsSync:yu,mkdirp:gu,mkdirpSync:yu,ensureDir:gu,ensureDirSync:yu};const wu=process.versions.node.split("."),vu=Number.parseInt(wu[0],10),Eu=Number.parseInt(wu[1],10),Tu=Number.parseInt(wu[2],10);function Su(){if(vu>10)return!0;if(10===vu){if(Eu>5)return!0;if(5===Eu&&Tu>=0)return!0}return!1}function _u(e,r){const o=t.resolve(e).split(t.sep).filter(e=>e),n=t.resolve(r).split(t.sep).filter(e=>e);return o.reduce((e,t,r)=>e&&n[r]===t,!0)}function Ou(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var ku={checkPaths:function(e,t,r,o){!function(e,t,r){Su()?P.stat(e,{bigint:!0},(e,o)=>{if(e)return r(e);P.stat(t,{bigint:!0},(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:o,destStat:null}):r(e):r(null,{srcStat:o,destStat:t}))}):P.stat(e,(e,o)=>{if(e)return r(e);P.stat(t,(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:o,destStat:null}):r(e):r(null,{srcStat:o,destStat:t}))})}(e,t,(n,s)=>{if(n)return o(n);const{srcStat:i,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===i.ino&&a.dev===i.dev?o(new Error("Source and destination must not be the same.")):i.isDirectory()&&_u(e,t)?o(new Error(Ou(e,t,r))):o(null,{srcStat:i,destStat:a})})},checkPathsSync:function(e,t,r){const{srcStat:o,destStat:n}=function(e,t){let r,o;r=Su()?P.statSync(e,{bigint:!0}):P.statSync(e);try{o=Su()?P.statSync(t,{bigint:!0}):P.statSync(t)}catch(e){if("ENOENT"===e.code)return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:o}}(e,t);if(n&&n.ino&&n.dev&&n.ino===o.ino&&n.dev===o.dev)throw new Error("Source and destination must not be the same.");if(o.isDirectory()&&_u(e,t))throw new Error(Ou(e,t,r));return{srcStat:o,destStat:n}},checkParentPaths:function e(r,o,n,s,i){const a=t.resolve(t.dirname(r)),c=t.resolve(t.dirname(n));if(c===a||c===t.parse(c).root)return i();Su()?P.stat(c,{bigint:!0},(t,a)=>t?"ENOENT"===t.code?i():i(t):a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?i(new Error(Ou(r,n,s))):e(r,o,c,s,i)):P.stat(c,(t,a)=>t?"ENOENT"===t.code?i():i(t):a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?i(new Error(Ou(r,n,s))):e(r,o,c,s,i))},checkParentPathsSync:function e(r,o,n,s){const i=t.resolve(t.dirname(r)),a=t.resolve(t.dirname(n));if(a===i||a===t.parse(a).root)return;let c;try{c=Su()?P.statSync(a,{bigint:!0}):P.statSync(a)}catch(e){if("ENOENT"===e.code)return;throw e}if(c.ino&&c.dev&&c.ino===o.ino&&c.dev===o.dev)throw new Error(Ou(r,n,s));return e(r,o,a,s)},isSrcSubdir:_u};const Pu=bu.mkdirsSync;function Cu(e,r,o,n){if(!n.filter||n.filter(r,o))return function(e,r,o,n){const s=(n.dereference?P.statSync:P.lstatSync)(r);return s.isDirectory()?function(e,t,r,o,n){if(!t)return function(e,t,r,o){return P.mkdirSync(r),Ru(t,r,o),P.chmodSync(r,e.mode)}(e,r,o,n);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${o}' with directory '${r}'.`);return Ru(r,o,n)}(s,e,r,o,n):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(e,t,r,o,n){return t?function(e,t,r,o){if(o.overwrite)return P.unlinkSync(r),Au(e,t,r,o);if(o.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,o,n):Au(e,r,o,n)}(s,e,r,o,n):s.isSymbolicLink()?function(e,r,o,n){let s=P.readlinkSync(r);if(n.dereference&&(s=t.resolve(process.cwd(),s)),e){let e;try{e=P.readlinkSync(o)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return P.symlinkSync(s,o);throw e}if(n.dereference&&(e=t.resolve(process.cwd(),e)),ku.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(P.statSync(o).isDirectory()&&ku.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return P.unlinkSync(t),P.symlinkSync(e,t)}(s,o)}return P.symlinkSync(s,o)}(e,r,o,n):void 0}(e,r,o,n)}function Au(e,t,r,o){return"function"==typeof P.copyFileSync?(P.copyFileSync(t,r),P.chmodSync(r,e.mode),o.preserveTimestamps?function(e,t,r){const o=P.openSync(e,"r+");return P.futimesSync(o,t,r),P.closeSync(o)}(r,e.atime,e.mtime):void 0):function(e,t,r,o){const n=function(e){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(65536)}catch(e){return new Buffer(65536)}return new Buffer(65536)}(),s=P.openSync(t,"r"),i=P.openSync(r,"w",e.mode);let a=0;for(;afunction(e,r,o,n){const s=t.join(r,e),i=t.join(o,e),{destStat:a}=ku.checkPathsSync(s,i,"copy");return Cu(a,s,i,n)}(n,e,r,o))}var ju,xu={copySync:function(e,r,o){"function"==typeof o&&(o={filter:o}),(o=o||{}).clobber=!("clobber"in o)||!!o.clobber,o.overwrite="overwrite"in o?!!o.overwrite:o.clobber,o.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:n,destStat:s}=ku.checkPathsSync(e,r,"copy");return ku.checkParentPathsSync(e,n,r,"copy"),function(e,r,o,n){if(n.filter&&!n.filter(r,o))return;const s=t.dirname(o);return P.existsSync(s)||Pu(s),Cu(e,r,o,n)}(s,e,r,o)}},Fu={pathExists:(ju=function(e){return uu.access(e).then(()=>!0).catch(()=>!1)},Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return ju.apply(this,arguments);ju.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:ju.name})),pathExistsSync:uu.existsSync};const Gu=bu.mkdirs,Iu=Fu.pathExists;function Du(e,r,o,n,s){const i=t.dirname(o);Iu(i,(t,a)=>t?s(t):a?Uu(e,r,o,n,s):void Gu(i,t=>t?s(t):Uu(e,r,o,n,s)))}function Nu(e,t,r,o,n,s){Promise.resolve(n.filter(r,o)).then(i=>i?e(t,r,o,n,s):s(),e=>s(e))}function Uu(e,t,r,o,n){return o.filter?Nu(Lu,e,t,r,o,n):Lu(e,t,r,o,n)}function Lu(e,r,o,n,s){(n.dereference?P.stat:P.lstat)(r,(i,a)=>i?s(i):a.isDirectory()?function(e,t,r,o,n,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${o}' with directory '${r}'.`)):qu(r,o,n,s):function(e,t,r,o,n){P.mkdir(r,s=>{if(s)return n(s);qu(t,r,o,t=>t?n(t):P.chmod(r,e.mode,n))})}(e,r,o,n,s)}(a,e,r,o,n,s):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(e,t,r,o,n,s){return t?function(e,t,r,o,n){if(!o.overwrite)return o.errorOnExist?n(new Error(`'${r}' already exists`)):n();P.unlink(r,s=>s?n(s):Mu(e,t,r,o,n))}(e,r,o,n,s):Mu(e,r,o,n,s)}(a,e,r,o,n,s):a.isSymbolicLink()?function(e,r,o,n,s){P.readlink(r,(r,i)=>r?s(r):(n.dereference&&(i=t.resolve(process.cwd(),i)),e?void P.readlink(o,(r,a)=>r?"EINVAL"===r.code||"UNKNOWN"===r.code?P.symlink(i,o,s):s(r):(n.dereference&&(a=t.resolve(process.cwd(),a)),ku.isSrcSubdir(i,a)?s(new Error(`Cannot copy '${i}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&ku.isSrcSubdir(a,i)?s(new Error(`Cannot overwrite '${a}' with '${i}'.`)):function(e,t,r){P.unlink(t,o=>o?r(o):P.symlink(e,t,r))}(i,o,s))):P.symlink(i,o,s)))}(e,r,o,n,s):void 0)}function Mu(e,t,r,o,n){return"function"==typeof P.copyFile?P.copyFile(t,r,t=>t?n(t):Bu(e,r,o,n)):function(e,t,r,o,n){const s=P.createReadStream(t);s.on("error",e=>n(e)).once("open",()=>{const t=P.createWriteStream(r,{mode:e.mode});t.on("error",e=>n(e)).on("open",()=>s.pipe(t)).once("close",()=>Bu(e,r,o,n))})}(e,t,r,o,n)}function Bu(e,t,r,o){P.chmod(t,e.mode,n=>n?o(n):r.preserveTimestamps?function(e,t,r,o){P.open(e,"r+",(e,n)=>{if(e)return o(e);P.futimes(n,t,r,e=>{P.close(n,t=>{o&&o(e||t)})})})}(t,e.atime,e.mtime,o):o())}function qu(e,r,o,n){P.readdir(e,(s,i)=>s?n(s):function e(r,o,n,s,i){const a=r.pop();return a?function(r,o,n,s,i,a){const c=t.join(n,o),u=t.join(s,o);ku.checkPaths(c,u,"copy",(t,o)=>{if(t)return a(t);const{destStat:l}=o;Uu(l,c,u,i,t=>t?a(t):e(r,n,s,i,a))})}(r,a,o,n,s,i):i()}(i,e,r,o,n))}var $u={copy:cu(function(e,t,r,o){"function"!=typeof r||o?"function"==typeof r&&(r={filter:r}):(o=r,r={}),o=o||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),ku.checkPaths(e,t,"copy",(n,s)=>{if(n)return o(n);const{srcStat:i,destStat:a}=s;ku.checkParentPaths(e,i,t,"copy",n=>n?o(n):r.filter?Nu(Du,a,e,t,r,o):Du(a,e,t,r,o))})})};const Hu="win32"===process.platform;function zu(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||P[t],e[t+="Sync"]=e[t]||P[t]}),e.maxBusyTries=e.maxBusyTries||3}function Wu(e,t,r){let o=0;"function"==typeof t&&(r=t,t={}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i.strictEqual(typeof r,"function","rimraf: callback function required"),i(t,"rimraf: invalid options argument provided"),i.strictEqual(typeof t,"object","rimraf: options should be object"),zu(t),Vu(e,t,function n(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&oVu(e,t,n),100*o);"ENOENT"===s.code&&(s=null)}r(s)})}function Vu(e,t,r){i(e),i(t),i("function"==typeof r),t.lstat(e,(o,n)=>o&&"ENOENT"===o.code?r(null):o&&"EPERM"===o.code&&Hu?Ju(e,t,o,r):n&&n.isDirectory()?Ku(e,t,o,r):void t.unlink(e,o=>{if(o){if("ENOENT"===o.code)return r(null);if("EPERM"===o.code)return Hu?Ju(e,t,o,r):Ku(e,t,o,r);if("EISDIR"===o.code)return Ku(e,t,o,r)}return r(o)}))}function Ju(e,t,r,o){i(e),i(t),i("function"==typeof o),r&&i(r instanceof Error),t.chmod(e,438,n=>{n?o("ENOENT"===n.code?null:r):t.stat(e,(n,s)=>{n?o("ENOENT"===n.code?null:r):s.isDirectory()?Ku(e,t,r,o):t.unlink(e,o)})})}function Yu(e,t,r){let o;i(e),i(t),r&&i(r instanceof Error);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{o=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}o.isDirectory()?Zu(e,t,r):t.unlinkSync(e)}function Ku(e,r,o,n){i(e),i(r),o&&i(o instanceof Error),i("function"==typeof n),r.rmdir(e,s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?n(s&&"ENOTDIR"===s.code?o:s):function(e,r,o){i(e),i(r),i("function"==typeof o),r.readdir(e,(n,s)=>{if(n)return o(n);let i,a=s.length;if(0===a)return r.rmdir(e,o);s.forEach(n=>{Wu(t.join(e,n),r,t=>{if(!i)return t?o(i=t):void(0==--a&&r.rmdir(e,o))})})})}(e,r,n)})}function Qu(e,t){let r;zu(t=t||{}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i(t,"rimraf: missing options"),i.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&Hu&&Yu(e,t,r)}try{r&&r.isDirectory()?Zu(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return Hu?Yu(e,t,r):Zu(e,t,r);if("EISDIR"!==r.code)throw r;Zu(e,t,r)}}function Zu(e,r,o){i(e),i(r),o&&i(o instanceof Error);try{r.rmdirSync(e)}catch(n){if("ENOTDIR"===n.code)throw o;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(e,r){if(i(e),i(r),r.readdirSync(e).forEach(o=>Qu(t.join(e,o),r)),!Hu)return r.rmdirSync(e,r);{const t=Date.now();do{try{return r.rmdirSync(e,r)}catch(e){}}while(Date.now()-t<500)}}(e,r);else if("ENOENT"!==n.code)throw n}}var Xu=Wu;Wu.sync=Qu;var el={remove:cu(Xu),removeSync:Xu.sync};const tl=cu(function(e,r){r=r||function(){},P.readdir(e,(o,n)=>{if(o)return bu.mkdirs(e,r);n=n.map(r=>t.join(e,r)),function e(){const t=n.pop();if(!t)return r();el.remove(t,t=>{if(t)return r(t);e()})}()})});function rl(e){let r;try{r=P.readdirSync(e)}catch(t){return bu.mkdirsSync(e)}r.forEach(r=>{r=t.join(e,r),el.removeSync(r)})}var ol={emptyDirSync:rl,emptydirSync:rl,emptyDir:tl,emptydir:tl};const nl=Fu.pathExists;var sl={createFile:cu(function(e,r){function o(){P.writeFile(e,"",e=>{if(e)return r(e);r()})}P.stat(e,(n,s)=>{if(!n&&s.isFile())return r();const i=t.dirname(e);nl(i,(e,t)=>e?r(e):t?o():void bu.mkdirs(i,e=>{if(e)return r(e);o()}))})}),createFileSync:function(e){let r;try{r=P.statSync(e)}catch(e){}if(r&&r.isFile())return;const o=t.dirname(e);P.existsSync(o)||bu.mkdirsSync(o),P.writeFileSync(e,"")}};const il=Fu.pathExists;var al={createLink:cu(function(e,r,o){function n(e,t){P.link(e,t,e=>{if(e)return o(e);o(null)})}il(r,(s,i)=>s?o(s):i?o(null):void P.lstat(e,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),o(s);const i=t.dirname(r);il(i,(t,s)=>t?o(t):s?n(e,r):void bu.mkdirs(i,t=>{if(t)return o(t);n(e,r)}))}))}),createLinkSync:function(e,r){if(P.existsSync(r))return;try{P.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const o=t.dirname(r);return P.existsSync(o)||bu.mkdirsSync(o),P.linkSync(e,r)}};const cl=Fu.pathExists,ul=bu.mkdirs,ll=bu.mkdirsSync,pl=Fu.pathExists;var fl,dl={createSymlink:cu(function(e,r,o,n){n="function"==typeof o?o:n,o="function"!=typeof o&&o,pl(r,(s,i)=>s?n(s):i?n(null):void function(e,r,o){if(t.isAbsolute(e))return P.lstat(e,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),o(t)):o(null,{toCwd:e,toDst:e}));{const n=t.dirname(r),s=t.join(n,e);cl(s,(r,i)=>r?o(r):i?o(null,{toCwd:s,toDst:e}):P.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),o(r)):o(null,{toCwd:e,toDst:t.relative(n,e)})))}}(e,r,(s,i)=>{if(s)return n(s);e=i.toDst,function(e,t,r){if(r="function"==typeof t?t:r,t="function"!=typeof t&&t)return r(null,t);P.lstat(e,(e,o)=>{if(e)return r(null,"file");t=o&&o.isDirectory()?"dir":"file",r(null,t)})}(i.toCwd,o,(o,s)=>{if(o)return n(o);const i=t.dirname(r);pl(i,(t,o)=>t?n(t):o?P.symlink(e,r,s,n):void ul(i,t=>{if(t)return n(t);P.symlink(e,r,s,n)}))})}))}),createSymlinkSync:function(e,r,o){if(P.existsSync(r))return;const n=function(e,r){let o;if(t.isAbsolute(e)){if(o=P.existsSync(e),!o)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const n=t.dirname(r),s=t.join(n,e);if(o=P.existsSync(s),o)return{toCwd:s,toDst:e};if(o=P.existsSync(e),!o)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:t.relative(n,e)}}}(e,r);e=n.toDst,o=function(e,t){let r;if(t)return t;try{r=P.lstatSync(e)}catch(e){return"file"}return r&&r.isDirectory()?"dir":"file"}(n.toCwd,o);const s=t.dirname(r);return P.existsSync(s)||ll(s),P.symlinkSync(e,r,o)}},hl={createFile:sl.createFile,createFileSync:sl.createFileSync,ensureFile:sl.createFile,ensureFileSync:sl.createFileSync,createLink:al.createLink,createLinkSync:al.createLinkSync,ensureLink:al.createLink,ensureLinkSync:al.createLinkSync,createSymlink:dl.createSymlink,createSymlinkSync:dl.createSymlinkSync,ensureSymlink:dl.createSymlink,ensureSymlinkSync:dl.createSymlinkSync};try{fl=P}catch(e){fl=r}function ml(e,t){var r,o="\n";return"object"==typeof t&&null!==t&&(t.spaces&&(r=t.spaces),t.EOL&&(o=t.EOL)),JSON.stringify(e,t?t.replacer:null,r).replace(/\n/g,o)+o}function yl(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var gl={readFile:function(e,t,r){null==r&&(r=t,t={}),"string"==typeof t&&(t={encoding:t});var o=!0;"throws"in(t=t||{})&&(o=t.throws),(t.fs||fl).readFile(e,t,function(n,s){if(n)return r(n);var i;s=yl(s);try{i=JSON.parse(s,t?t.reviver:null)}catch(t){return o?(t.message=e+": "+t.message,r(t)):r(null,null)}r(null,i)})},readFileSync:function(e,t){"string"==typeof(t=t||{})&&(t={encoding:t});var r=t.fs||fl,o=!0;"throws"in t&&(o=t.throws);try{var n=r.readFileSync(e,t);return n=yl(n),JSON.parse(n,t.reviver)}catch(t){if(o)throw t.message=e+": "+t.message,t;return null}},writeFile:function(e,t,r,o){null==o&&(o=r,r={});var n=(r=r||{}).fs||fl,s="";try{s=ml(t,r)}catch(e){return void(o&&o(e,null))}n.writeFile(e,s,r,o)},writeFileSync:function(e,t,r){var o=(r=r||{}).fs||fl,n=ml(t,r);return o.writeFileSync(e,n,r)}};const bl=cu;var wl={readJson:bl(gl.readFile),readJsonSync:gl.readFileSync,writeJson:bl(gl.writeFile),writeJsonSync:gl.writeFileSync};const vl=Fu.pathExists;wl.outputJson=cu(function(e,r,o,n){"function"==typeof o&&(n=o,o={});const s=t.dirname(e);vl(s,(t,i)=>t?n(t):i?wl.writeJson(e,r,o,n):void bu.mkdirs(s,t=>{if(t)return n(t);wl.writeJson(e,r,o,n)}))}),wl.outputJsonSync=function(e,r,o){const n=t.dirname(e);P.existsSync(n)||bu.mkdirsSync(n),wl.writeJsonSync(e,r,o)},wl.outputJSON=wl.outputJson,wl.outputJSONSync=wl.outputJsonSync,wl.writeJSON=wl.writeJson,wl.writeJSONSync=wl.writeJsonSync,wl.readJSON=wl.readJson,wl.readJSONSync=wl.readJsonSync;var El=wl;const Tl=xu.copySync,Sl=el.removeSync,_l=bu.mkdirpSync;function Ol(e,t,r){try{P.renameSync(e,t)}catch(o){if("EXDEV"!==o.code)throw o;return function(e,t,r){return Tl(e,t,{overwrite:r,errorOnExist:!0}),Sl(e)}(e,t,r)}}var kl={moveSync:function(e,r,o){const n=(o=o||{}).overwrite||o.clobber||!1,{srcStat:s}=ku.checkPathsSync(e,r,"move");return ku.checkParentPathsSync(e,s,r,"move"),_l(t.dirname(r)),function(e,t,r){if(r)return Sl(t),Ol(e,t,r);if(P.existsSync(t))throw new Error("dest already exists.");return Ol(e,t,r)}(e,r,n)}};const Pl=$u.copy,Cl=el.remove,Al=bu.mkdirp,Rl=Fu.pathExists;function jl(e,t,r,o){P.rename(e,t,n=>n?"EXDEV"!==n.code?o(n):function(e,t,r,o){Pl(e,t,{overwrite:r,errorOnExist:!0},t=>t?o(t):Cl(e,o))}(e,t,r,o):o())}var xl={move:cu(function(e,r,o,n){"function"==typeof o&&(n=o,o={});const s=o.overwrite||o.clobber||!1;ku.checkPaths(e,r,"move",(o,i)=>{if(o)return n(o);const{srcStat:a}=i;ku.checkParentPaths(e,a,r,"move",o=>{if(o)return n(o);Al(t.dirname(r),t=>t?n(t):function(e,t,r,o){if(r)return Cl(t,n=>n?o(n):jl(e,t,r,o));Rl(t,(n,s)=>n?o(n):s?o(new Error("dest already exists.")):jl(e,t,r,o))}(e,r,s,n))})})})};const Fl=Fu.pathExists;var Gl={outputFile:cu(function(e,r,o,n){"function"==typeof o&&(n=o,o="utf8");const s=t.dirname(e);Fl(s,(t,i)=>t?n(t):i?P.writeFile(e,r,o,n):void bu.mkdirs(s,t=>{if(t)return n(t);P.writeFile(e,r,o,n)}))}),outputFileSync:function(e,...r){const o=t.dirname(e);if(P.existsSync(o))return P.writeFileSync(e,...r);bu.mkdirsSync(o),P.writeFileSync(e,...r)}},Il=b(function(e){e.exports=Object.assign({},uu,xu,$u,ol,hl,El,bu,kl,xl,Gl,Fu,el),Object.getOwnPropertyDescriptor(r,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>r.promises})});const{publishSizes:Dl,publishDiff:Nl}=au,{noop:Ul,toFileMap:Ll,toMap:Ml,dedupe:Bl}={noop:function(e){return e},toMap:function(e,t){return e.reduce((e,r,o)=>(e[r]=t[o],e),{})},dedupe:function(e,t,r){return r.indexOf(e)===t},toFileMap:function(e){return e.reduce((e,t)=>(t.size&&(e[t.filename]=t.size),e),{})}},ql=Ts(xi),$l=Pa.sync;$l.file=(e,t)=>new Promise((r,o)=>{const n=Il.createReadStream(e);n.on("error",o);const s=n.pipe(Pa.stream(t));s.on("error",o),s.on("brotli-size",r)});const Hl=e=>Buffer.byteLength(e);Hl.file=async e=>(await Il.stat(e)).size;const zl={brotli:$l,gzip:Yi,none:Hl};async function Wl(e){try{return(await Il.readJSON(e)).sort((e,t)=>t.timestamp-e.timestamp)}catch(e){return[]}}async function Vl(e){try{return await r.promises.access(e,r.constants.F_OK),!0}catch(e){}return!1}function Jl(e){if(e)return console.log(`Stripping hash from build chunks using '${e}' pattern.`),function(t){return t.replace(new RegExp(e),(e,...t)=>{if((t=t.slice(0,-2).filter(e=>null!=e)).length){for(let r=0;r0?"+":"")+ka(e);if(0===Math.abs(e));else if(0===t)r+=" (new file)";else if(t===-e)r+=" (removed)";else{const o=Math.round(e/t*100);r+=` (${o>0?"+":""}${o}%)`}return r}function Kl(e,t){if(0===t)return"🆕";const r=Math.round(e/t*100);return r>=50?"🆘":r>=20?"🚨":r>=10?"⚠ī¸":r>=5?"🔍":r<=-50?"🏆":r<=-20?"🎉":r<=-10?"👏":r<=-5?"✅":""}function Ql(e){if(0==e.length)return"";for(;e.every(e=>!e[e.length-1]);)for(const t of e)t.pop();const[t]=e;let r=t.length;if(3===r&&e.every(e=>"0 B"===e[2])){r-=1;for(const t of e)t.pop()}return 0===r?"":[["Filename","Size","Change",""].slice(0,r),[":---",":---:",":---:",":---:"].slice(0,r),...e].map(e=>`| ${e.join(" | ")} |`).join("\n")}function Zl(e){return/^(1|true|yes)$/.test(e)}(async()=>{try{const e=lt.getInput("repo-token"),o=lo.getOctokit(e);await async function(e,o,n,s){const{number:i}=o.issue;try{lt.debug("pr"+JSON.stringify(o.payload,null,2))}catch(e){}let a,c;if("push"==o.eventName)a=o.payload.before,c=o.payload.ref,console.log(`Pushed new commit on top of ${c} (${a})`);else{if("pull_request"!=o.eventName&&"pull_request_target"!=o.eventName)throw new Error(`Unsupported eventName in github.context: ${o.eventName}. Only "pull_request", "pull_request_target", and "push" triggered workflows are currently supported.`);{const e=o.payload.pull_request;a=e.base.sha,c=e.base.ref,console.log(`PR #${i} is targeted at ${c} (${c})`)}}const u=new class{constructor(e){const r=e||{};r.pattern=r.pattern||"**/*.{mjs,js,jsx,css,html}",r.filename=r.filename||"size-plugin.json",r.writeFile=!1!==r.writeFile,r.stripHash=r.stripHash||Ul,r.filepath=t.join(process.cwd(),r.filename),r.mode=r.mode||process.env.NODE_ENV,r.compression=r.compression||"gzip",this.compressionSize=zl[r.compression],this.options=r}filterFiles(e){const t=Qs.filter(this.options.pattern),r=this.options.exclude?Qs.filter(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))}async readFromDisk(e){const r=await ql(this.options.pattern,{cwd:e,ignore:this.options.exclude}),o=await Promise.all(this.filterFiles(r).map(r=>this.compressionSize.file(t.join(e,r)).catch(()=>null)));return Ml(r.map(e=>this.options.stripHash(e)),o)}async getPreviousSizes(e){const t=await Wl(this.options.filepath);if(t.length){const[{files:e}]=t;return Ll(e)}return this.readFromDisk(e)}async getSizes(e){const t=this.filterFiles(Object.keys(e)),r=await Promise.all(t.map(t=>this.compressionSize(e[t].source)));return Ml(t.map(e=>this.options.stripHash(e)),r)}async getDiff(e,t){const r=[...Object.keys(e),...Object.keys(t)].filter(Bl),o=[];for(const n of r){const r=t[n]||0;o.push({filename:n,size:r,delta:r-(e[n]||0)})}return o}async printSizes(e){const t=Math.max(...e.map(e=>e.filename.length),this.options.columnWidth||0);let r="";const o=[];for(const n of e){const e=n.filename,s=n.size,i=n.delta,a=new Array(t-e.length+2).join(" ")+e+" ⏤ ",c=s>102400?"red":s>40960?"yellow":s>20480?"cyan":"green";let u=va[c](ka(s)),l="";i&&Math.abs(i)>1&&(l=(i>0?"+":"")+ka(i),i>1024?(u=va.bold(u),l=va.red(l)):i<-10&&(l=va.green(l)),u+=` (${l})`);let p=a+u+"\n";const f={name:e,size:s,sizeText:u,delta:i,deltaText:l,msg:a,color:c};o.push(f),this.options.decorateItem&&(p=this.options.decorateItem(p,f)||p),r+=p}if(this.options.decorateAfter){const t=this.options.decorateAfter({sizes:o,raw:e,output:r});t&&(r+="\n"+t.replace(/^\n/g,""))}return r}async uploadSizes(e){const t={timestamp:Date.now(),files:e};if(this.options.save&&await this.options.save(t),this.options.publish&&await Nl(t,this.options.filename),"production"===this.options.mode&&t.files.some(e=>0!==e.delta)){const e=await Wl(this.options.filepath);e.unshift(t),this.options.writeFile&&(await Il.ensureFile(this.options.filename),await Il.writeJSON(this.options.filename,e)),this.options.publish&&await Dl(e,this.options.filename)}}async execute(e,t){const r=await(this.options.getPreviousSizes||this.getPreviousSizes).call(this,t),o=await(this.options.getSizes||this.getSizes).call(this,e),n=await(this.options.getDiff||this.getDiff).call(this,r,o),s=await(this.options.printSizes||this.printSizes).call(this,n);return await(this.options.uploadSizes||this.uploadSizes).call(this,n),s}}({compression:lt.getInput("compression"),pattern:lt.getInput("pattern")||"**/dist/**/*.{js,mjs,cjs}",exclude:lt.getInput("exclude")||"{**/*.map,**/node_modules/**}",stripHash:Jl(lt.getInput("strip-hash"))}),l=lt.getInput("build-script")||"build";console.log("current dir "+process.cwd());let p=await Vl(t.resolve(process.cwd(),"yarn.lock")),f=await Vl(t.resolve(process.cwd(),"package-lock.json")),d="npm",h="npm install";mo.exec(`git config --global --add url."https://${n}:x-oauth-basic@github.com/manabie-com".insteadOf "https://github.com/manabie-com"`),p?h=d="yarn --frozen-lockfile":f&&(h="npm ci"),console.log("get new sizes");const m=await u.readFromDisk(process.cwd());console.log("new size:"),console.log(m);const y=process.cwd(),g=lt.getInput("cwd");process.chdir("../"),r.existsSync(g)?(it.copySync(y,process.cwd()+g.replace(".",""),{overwrite:!0,filter:e=>e.indexOf(g.replace("./",""))>-1}),process.chdir(g),console.log("change dir to "+g)):(r.mkdirSync(g),it.copySync(y,process.cwd()+g.replace(".",""),{overwrite:!0,filter:e=>e.indexOf(g.replace("./",""))>-1}),process.chdir(g),console.log("change dir to "+g)),console.log("current dir "+process.cwd()),lt.startGroup("[base] Checkout target branch");try{if(!c)throw Error("missing context.payload.pull_request.base.ref");await mo.exec("git fetch -n origin "+c),console.log("successfully fetched base.ref")}catch(e){console.log("fetching base.ref failed",e.message);try{await mo.exec("git fetch -n origin "+a),console.log("successfully fetched base.sha")}catch(e){console.log("fetching base.sha failed",e.message);try{await mo.exec("git fetch -n")}catch(e){console.log("fetch failed",e.message)}}}console.log("checking out and building base commit");try{if(!c)throw Error("missing context.payload.base.ref");await mo.exec("git reset --hard "+c)}catch(e){await mo.exec("git reset --hard "+a)}lt.endGroup();const b=lt.getInput("clean-script");b&&(lt.startGroup(`[base] Cleanup via ${d} run ${b}`),await mo.exec(`${d} run ${b}`),lt.endGroup()),lt.startGroup("[base] Install Dependencies"),p=await Vl(t.resolve(process.cwd(),"yarn.lock")),f=await Vl(t.resolve(process.cwd(),"package-lock.json")),mo.exec(`git config --global --add url."https://${n}:x-oauth-basic@github.com/manabie-com".insteadOf "https://github.com/manabie-com"`),p?h=d="yarn --frozen-lockfile":f&&(h="npm ci"),console.log("Installing using "+h),await mo.exec(h),lt.endGroup(),lt.startGroup("[base] Build using "+d),await mo.exec(`${d} run ${l}`),lt.endGroup(),await mo.exec("git reset --hard"),console.log("get old sizes");const w=await u.readFromDisk(process.cwd());console.log("old sizes:"),console.log(w);const v=await u.getDiff(w,m);lt.startGroup("Size Differences:");const E=await u.printSizes(v);console.log(E),lt.endGroup();const T=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:o,minimumChangeThreshold:n}){let s=[],i=[],a=0,c=0;for(const t of e){const{filename:e,size:u,delta:l}=t;a+=u,c+=l;const p=u-l,f=Math.abs(l)ℹī¸ View Unchanged\n\n${Ql(i)}\n\n\n\n`),t){const e=a-c;let t=Yl(c,e),r=Kl(c,e);u=`**Total Size:** ${ka(a)}\n\n${u}`,u=`**Size Change:** ${t} ${r}\n\n${u}`}return u}(v,{collapseUnchanged:Zl(lt.getInput("collapse-unchanged")),omitUnchanged:Zl(lt.getInput("omit-unchanged")),showTotal:Zl(lt.getInput("show-total")),minimumChangeThreshold:parseInt(lt.getInput("minimum-change-threshold"),10)});let S=!1;const _={...o.repo,issue_number:i},O={..._,body:T+'\n\ncompressed-size-action'};if("pull_request"!==o.eventName&&"pull_request_target"!==o.eventName)console.log("No PR associated with this action run. Not posting a check or comment."),S=!1;else if(Zl(lt.getInput("use-check")))if(n){const t=await async function(e,t){const r=await e.checks.create({...t.repo,name:"Compressed Size",head_sha:t.payload.pull_request.head.sha,status:"in_progress"});return async o=>{await e.checks.update({...t.repo,check_run_id:r.data.id,completed_at:(new Date).toISOString(),status:"completed",...o})}}(e,o);await t({conclusion:"success",output:{title:"Compressed Size Action",summary:T}})}else S=!0;else{let t;lt.startGroup("Updating stats PR comment");try{const r=(await e.issues.listComments(_)).data;for(let e=r.length;e--;){const o=r[e];if("Bot"===o.user.type&&/[\s\n]*(compressed|gzip)-size-action/.test(o.body)){t=o.id;break}}}catch(e){console.log("Error checking for previous comments: "+e.message)}if(t){console.log("Updating previous comment #"+t);try{await e.issues.updateComment({...o.repo,comment_id:t,body:O.body})}catch(e){console.log("Error editing previous comment: "+e.message),t=null}}if(!t){console.log("Creating new comment");try{await e.issues.createComment(O)}catch(t){console.log("Error creating comment: "+t.message),console.log("Submitting a PR review comment instead...");try{const t=o.issue;await e.pulls.createReview({owner:t.owner,repo:t.repo,pull_number:t.number,event:"COMMENT",body:O.body})}catch(e){console.log("Error creating PR review."),S=!0}}}lt.endGroup()}S&&console.log(`\n\t\t\tError: compressed-size-action was unable to comment on your PR.\n\t\t\tThis can happen for PR's originating from a fork without write permissions.\n\t\t\tYou can copy the size table directly into a comment using the markdown below:\n\t\t\t\n\n${O.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}(o,lo.context,e)}catch(e){lt.setFailed(e.message)}})(); diff --git a/src/index.js b/src/index.js index c567d70..e35bede 100644 --- a/src/index.js +++ b/src/index.js @@ -67,17 +67,19 @@ async function run(octokit, context, token, privateConfig) { console.log("new size:") console.log(newSizes) + const originDir = process.cwd() const workDir = getInput('cwd') + process.chdir("../") if (!fs.existsSync(workDir)){ fs.mkdirSync(workDir); - fse.copySync(process.cwd(), process.cwd() + workDir.replace(".", ""), { + fse.copySync(originDir, process.cwd() + workDir.replace(".", ""), { overwrite: true, filter: path => path.indexOf(workDir.replace("./", "")) > -1 }) process.chdir(workDir) console.log(`change dir to ${workDir}`) } else { - fse.copySync(process.cwd(), process.cwd() + workDir.replace(".", ""), { + fse.copySync(originDir, process.cwd() + workDir.replace(".", ""), { overwrite: true, filter: path => path.indexOf(workDir.replace("./", "")) > -1 })