From 72f04796c6e563858c3c8b6100a1be2e1ded5120 Mon Sep 17 00:00:00 2001 From: Hajime-san <41257923+Hajime-san@users.noreply.github.com> Date: Mon, 6 Apr 2026 22:16:48 +0900 Subject: [PATCH 1/5] work --- README.md | 2 +- src/utils.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5604bb8..4042f11 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A GitHub action that reports changes in compressed file sizes on your PRs. -- Automatically uses `yarn`, `pnpm`, `bun`, or `npm ci` when lockfiles are present +- Automatically uses `yarn`, `pnpm`, `bun`, `deno`, or `npm ci` when lockfiles are present - Builds your PR, then builds the target and compares between the two - Doesn't upload anything or rely on centralized storage - Supports [custom build scripts](#customizing-the-build) and [file patterns](#customizing-the-list-of-files) diff --git a/src/utils.js b/src/utils.js index 15f289a..a5f9c99 100644 --- a/src/utils.js +++ b/src/utils.js @@ -7,12 +7,13 @@ import prettyBytes from 'pretty-bytes'; * @returns {Promise<{ packageManager: string, installScript: string }>} */ export async function getPackageManagerAndInstallScript(cwd) { - const [yarnLockExists, pnpmLockExists, bunLockBinaryExists, bunLockExists, packageLockExists] = await Promise.all([ + const [yarnLockExists, pnpmLockExists, bunLockBinaryExists, bunLockExists, packageLockExists, denoLockExists] = await Promise.all([ fileExists(path.resolve(cwd, 'yarn.lock')), fileExists(path.resolve(cwd, 'pnpm-lock.yaml')), fileExists(path.resolve(cwd, 'bun.lockb')), fileExists(path.resolve(cwd, 'bun.lock')), fileExists(path.resolve(cwd, 'package-lock.json')), + fileExists(path.resolve(cwd, 'deno.lock')), ]); let packageManager = 'npm'; @@ -28,6 +29,8 @@ export async function getPackageManagerAndInstallScript(cwd) { packageManager = 'bun'; } else if (packageLockExists) { installScript = 'npm ci'; + } else if (denoLockExists) { + installScript = 'deno install --frozen' } return { packageManager, installScript }; From 4bd9512c84369e96895b92a7c44295ca8f1c55e4 Mon Sep 17 00:00:00 2001 From: Hajime-san <41257923+Hajime-san@users.noreply.github.com> Date: Mon, 6 Apr 2026 22:16:58 +0900 Subject: [PATCH 2/5] build --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5a8a4d1..edf82c4 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -var e=require("os"),t=require("fs"),r=require("path"),o=require("http"),s=require("https");require("net");var n=require("tls"),i=require("events"),a=require("assert"),c=require("util"),u=require("stream"),l=require("url"),p=require("zlib"),d=require("child_process"),m=require("node:path"),h=require("node:fs");require("node:stream");var g=require("node:zlib"),f=require("node:util");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var T=/*#__PURE__*/b(e),E=/*#__PURE__*/b(t),w=/*#__PURE__*/b(r),y=/*#__PURE__*/b(o),_=/*#__PURE__*/b(s),v=/*#__PURE__*/b(n),A=/*#__PURE__*/b(i),S=/*#__PURE__*/b(a),O=/*#__PURE__*/b(c),R=/*#__PURE__*/b(u),k=/*#__PURE__*/b(l),P=/*#__PURE__*/b(p),C=/*#__PURE__*/b(d),G=/*#__PURE__*/b(m),x=/*#__PURE__*/b(g),$="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){var t={exports:{}};return e(t,t.exports),t.exports}var U=/*#__PURE__*/Object.defineProperty({toCommandValue:function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}},"__esModule",{value:!0});const D=($&&$.__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})(T.default);function F(e,t,r){const o=new j(e,t,r);process.stdout.write(o.toString()+D.EOL)}var H=F;class j{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)}`)}}var t;return e+=`::${t=this.message,U.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}`,e}}function I(e){return U.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var B=/*#__PURE__*/Object.defineProperty({issueCommand:H,issue:function(e,t=""){F(e,{},t)}},"__esModule",{value:!0}),q=$&&$.__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};const N=q(E.default),M=q(T.default);var z=/*#__PURE__*/Object.defineProperty({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,`${U.toCommandValue(t)}${M.EOL}`,{encoding:"utf8"})}},"__esModule",{value:!0}),W=L(function(e,t){var r=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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=$&&$.__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 s=o(T.default),n=o(w.default);var i;function a(e){B.issue("error",e instanceof Error?e.toString():e)}function c(e){B.issue("group",e)}function u(){B.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(i=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){const r=U.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";z.issueCommand("ENV",`${e}<<${t}${s.EOL}${r}${s.EOL}${t}`)}else B.issueCommand("set-env",{name:e},r)},t.setSecret=function(e){B.issueCommand("add-mask",{},e)},t.addPath=function(e){process.env.GITHUB_PATH?z.issueCommand("PATH",e):B.issueCommand("add-path",{},e),process.env.PATH=`${e}${n.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw new Error(`Input required and not supplied: ${e}`);return r.trim()},t.setOutput=function(e,t){B.issueCommand("set-output",{name:e},t)},t.setCommandEcho=function(e){B.issue("echo",e?"on":"off")},t.setFailed=function(e){process.exitCode=i.Failure,a(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){B.issueCommand("debug",{},e)},t.error=a,t.warning=function(e){B.issue("warning",e instanceof Error?e.toString():e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=c,t.endGroup=u,t.group=function(e,t){return r(this,void 0,void 0,function*(){let r;c(e);try{r=yield t()}finally{u()}return r})},t.saveState=function(e,t){B.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}}),K=L(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(E.default.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(E.default.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${T.default.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'")}}});function V(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}var J,X=/*#__PURE__*/Object.defineProperty({getProxyUrl:function(e){let t,r,o="https:"===e.protocol;return V(e)||(r=o?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,r&&(t=new URL(r))),t},checkBypass:V},"__esModule",{value:!0});function Y(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||y.default.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,o,s){for(var n=Z(r,o,s),i=0,a=t.requests.length;i=this.maxSockets?s.requests.push(n):s.createSocket(n,function(t){function r(){s.emit("free",t,n)}function o(e){s.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)})},Y.prototype.createSocket=function(e,t){var r=this,o={};r.sockets.push(o);var s=ee({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),J("making CONNECT request");var n=r.request(s);function i(s,i,a){var c;return n.removeAllListeners(),i.removeAllListeners(),200!==s.statusCode?(J("tunneling socket could not be established, statusCode=%d",s.statusCode),i.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+s.statusCode)).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):a.length>0?(J("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)):(J("tunneling connection has established"),r.sockets[r.sockets.indexOf(o)]=i,t(i))}n.useChunkedEncodingByDefault=!1,n.once("response",function(e){e.upgrade=!0}),n.once("upgrade",function(e,t,r){process.nextTick(function(){i(e,t,r)})}),n.once("connect",i),n.once("error",function(t){n.removeAllListeners(),J("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, cause="+t.message);s.code="ECONNRESET",e.request.emit("error",s),r.removeSocket(o)}),n.end()},Y.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 te={httpOverHttp:function(e){var t=new Y(e);return t.request=y.default.request,t},httpsOverHttp:function(e){var t=new Y(e);return t.request=y.default.request,t.createSocket=Q,t.defaultPort=443,t},httpOverHttps:function(e){var t=new Y(e);return t.request=_.default.request,t},httpsOverHttps:function(e){var t=new Y(e);return t.request=_.default.request,t.createSocket=Q,t.defaultPort=443,t},debug:J=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(){}},re=L(function(e,t){let r;var o,s,n;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"}(s=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(n=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=X.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],c=["OPTIONS","GET","DELETE","HEAD"];class u extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,u.prototype)}}t.HttpClientError=u;class l{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=l,t.isHttps=function(e){return"https:"===new URL(e).protocol};class p{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[s.Accept]=this._getExistingOrDefaultHeader(t,s.Accept,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.ApplicationJson);let i=await this.patch(e,o,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,s){if(this._disposed)throw new Error("Client has already been disposed.");let n,u=new URL(t),l=this._prepareRequest(e,u,s),p=this._allowRetries&&-1!=c.indexOf(e)?this._maxRetries+1:1,d=0;for(;d0;){const o=n.message.headers.location;if(!o)break;let i=new URL(o);if("https:"==u.protocol&&u.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 n.readBody(),i.hostname!==u.hostname)for(let e in s)"authorization"===e.toLowerCase()&&delete s[e];l=this._prepareRequest(e,i,s),n=await this.requestRaw(l,r),t--}if(-1==a.indexOf(n.message.statusCode))return n;d+=1,d{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 s=!1,n=(e,t)=>{s||(s=!0,r(e,t))},i=e.httpModule.request(e.options,e=>{let t=new l(e);n(null,t)});i.on("socket",e=>{o=e}),i.setTimeout(this._socketTimeout||18e4,()=>{o&&o.end(),n(new Error("Request timeout: "+e.options.path),null)}),i.on("error",function(e){n(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 s="https:"===o.parsedUrl.protocol;o.httpModule=s?_.default:y.default;const n=s?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):n,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 s;return this.requestOptions&&this.requestOptions.headers&&(o=(s=this.requestOptions.headers,Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}))[t]),e[t]||o||r}_getAgent(e){let t,o=X.getProxyUrl(e),s=o&&o.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const n="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||y.default.globalAgent.maxSockets),s){let e;r||(r=te);const s="https:"===o.protocol;e=n?s?r.httpsOverHttps:r.httpsOverHttp:s?r.httpOverHttps:r.httpOverHttp,t=e({maxSockets:i,keepAlive:this._keepAlive,proxy:{proxyAuth:`${o.username}:${o.password}`,host:o.hostname,port:o.port}}),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=n?new _.default.Agent(e):new y.default.Agent(e),this._agent=t}return t||(t=n?_.default.globalAgent:y.default.globalAgent),n&&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,s)=>{const n=e.message.statusCode,i={statusCode:n,result:null,headers:{}};let a,c;n==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,p.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(n>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+n+")";let t=new u(e,n);t.result=i.result,s(t)}else r(i)})}}t.HttpClient=p}),oe=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const n=s(re);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 n.HttpClient).getAgent(e)},t.getApiBaseUrl=function(){return process.env.GITHUB_API_URL||"https://api.github.com"}});function se(){return"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var ne=function e(t,r,o,s){if("function"!=typeof o)throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(r)?r.reverse().reduce(function(r,o){return e.bind(null,t,o,r,s)},o)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,s)},o)():o(s)})},ie=function(e,t,r,o){var s=o;e.registry[r]||(e.registry[r]=[]),"before"===t&&(o=function(e,t){return Promise.resolve().then(s.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 s(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 s(e,t)})}),e.registry[r].push({hook:o,orig:s})},ae=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)}},ce=Function.bind,ue=ce.bind(ce);function le(e,t,r){var o=ue(ae,null).apply(null,r?[t,r]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(function(o){var s=r?[t,o,r]:[t,o];e[o]=e.api[o]=ue(ie,null).apply(null,s)})}function pe(){var e={registry:{}},t=ne.bind(null,e);return le(t,e),t}var de=!1;function me(){return de||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),de=!0),pe()}me.Singular=function(){var e={registry:{}},t=ne.bind(null,e,"h");return le(t,e,"h"),t}.bind(),me.Collection=pe.bind();var he=me,ge=me.Singular,fe=me.Collection;function be(e){return"[object Object]"===Object.prototype.toString.call(e)}function Te(e){var t,r;return!1!==be(e)&&(void 0===(t=e.constructor)||!1!==be(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function Ee(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(o=>{Te(t[o])?o in e?r[o]=Ee(e[o],t[o]):Object.assign(r,{[o]:t[o]}):Object.assign(r,{[o]:t[o]})}),r}function we(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function ye(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),{}):{},we(r),we(r.headers);const s=Ee(e||{},r);return e&&e.mediaType.previews.length&&(s.mediaType.previews=e.mediaType.previews.filter(e=>!s.mediaType.previews.includes(e)).concat(s.mediaType.previews)),s.mediaType.previews=s.mediaType.previews.map(e=>e.replace(/-preview/,"")),s}he.Hook=me,he.Singular=ge,he.Collection=fe;const _e=/\{[^}]+\}/g;function ve(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Ae(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function Se(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 Oe(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Re(e,t,r){return t="+"===e||"#"===e?Se(t):Oe(t),r?Oe(r)+"="+t:t}function ke(e){return null!=e}function Pe(e){return";"===e||"&"===e||"?"===e}function Ce(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,o,s){if(o){let e="";const s=[];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);s.push(function(e,t,r,o){var s=e[r],n=[];if(ke(s)&&""!==s)if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)s=s.toString(),o&&"*"!==o&&(s=s.substring(0,parseInt(o,10))),n.push(Re(t,s,Pe(t)?r:""));else if("*"===o)Array.isArray(s)?s.filter(ke).forEach(function(e){n.push(Re(t,e,Pe(t)?r:""))}):Object.keys(s).forEach(function(e){ke(s[e])&&n.push(Re(t,s[e],e))});else{const e=[];Array.isArray(s)?s.filter(ke).forEach(function(r){e.push(Re(t,r))}):Object.keys(s).forEach(function(r){ke(s[r])&&(e.push(Oe(r)),e.push(Re(t,s[r].toString())))}),Pe(t)?n.push(Oe(r)+"="+e.join(",")):0!==e.length&&n.push(e.join(","))}else";"===t?ke(s)&&n.push(Oe(r)):""!==s||"&"!==t&&"?"!==t?""===s&&n.push(""):n.push(Oe(r)+"=");return n}(t,e,o[1],o[2]||o[3]))}),e&&"+"!==e){var n=",";return"?"===e?n="&":"#"!==e&&(n=e),(0!==s.length?e:"")+s.join(n)}return s.join(",")}return Se(s)})}function Ge(e){let t,r=e.method.toUpperCase(),o=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},e.headers),n=Ae(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(_e);return t?t.map(ve).reduce((e,t)=>e.concat(t),[]):[]}(o);var a;o=(a=o,{expand:Ce.bind(null,a)}).expand(n),/^http/.test(o)||(o=e.baseUrl+o);const c=Ae(n,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(s.accept)&&(e.mediaType.format&&(s.accept=s.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=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.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:s["content-length"]=0,s["content-type"]||void 0===t||(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:o,headers:s},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function xe(e,t,r){return Ge(ye(e,t,r))}const $e=function e(t,r){const o=ye(t,r),s=xe.bind(null,o);return Object.assign(s,{DEFAULTS:o,defaults:e.bind(null,o),merge:ye.bind(null,o),parse:Ge})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/6.0.10 ${se()}`},mediaType:{format:"",previews:[]}}),Le=R.default.Readable,Ue=Symbol("buffer"),De=Symbol("type");class Fe{constructor(){this[De]="";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 n=r.timeout;let i=void 0===n?0:n;null==e?e=null:Me(e)?e=Buffer.from(e.toString()):ze(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 R.default||(e=Buffer.from(String(e)))),this[Ie]={body:e,disturbed:!1,error:null},this.size=s,this.timeout=i,e instanceof R.default&&e.on("error",function(e){const r="AbortError"===e.name?e:new He(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[Ie].error=r})}function Ne(){var e=this;if(this[Ie].disturbed)return qe.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Ie].disturbed=!0,this[Ie].error)return qe.Promise.reject(this[Ie].error);let t=this.body;if(null===t)return qe.Promise.resolve(Buffer.alloc(0));if(ze(t)&&(t=t.stream()),Buffer.isBuffer(t))return qe.Promise.resolve(t);if(!(t instanceof R.default))return qe.Promise.resolve(Buffer.alloc(0));let r=[],o=0,s=!1;return new qe.Promise(function(n,i){let a;e.timeout&&(a=setTimeout(function(){s=!0,i(new He(`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 He(`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 He(`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 He(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function Me(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 ze(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 We(e){let t,r,o=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof R.default&&"function"!=typeof o.getBoundary&&(t=new Be,r=new Be,o.pipe(t),o.pipe(r),e[Ie].body=t,o=r),o}function Ke(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Me(e)?"application/x-www-form-urlencoded;charset=UTF-8":ze(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 R.default?null:"text/plain;charset=UTF-8"}function Ve(e){const t=e.body;return null===t?0:ze(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}qe.prototype={get body(){return this[Ie].body},get bodyUsed(){return this[Ie].disturbed},arrayBuffer(){return Ne.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 Ne.call(this).then(function(t){return Object.assign(new Fe([],{type:e.toLowerCase()}),{[Ue]:t})})},json(){var e=this;return Ne.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return qe.Promise.reject(new He(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return Ne.call(this).then(function(e){return e.toString()})},buffer(){return Ne.call(this)},textConverted(){var e=this;return Ne.call(this).then(function(t){return function(e,t){if("function"!=typeof je)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let o,s,n="utf-8";return r&&(o=/charset=([^;]*)/i.exec(r)),s=e.slice(0,1024).toString(),!o&&s&&(o=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[et]=Object.create(null),e instanceof tt){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r);return}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){Ye(e=`${e}`);const t=Ze(this[et],e);return void 0===t?null:this[et][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=rt(this),o=0;for(;o1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[et]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[et][t].join(", ")}:function(t){return[t.toLowerCase(),e[et][t].join(", ")]})}tt.prototype.entries=tt.prototype[Symbol.iterator],Object.defineProperty(tt.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(tt.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 ot=Symbol("internal");function st(e,t){const r=Object.create(nt);return r[ot]={target:e,kind:t,index:0},r}const nt=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==nt)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[ot];const t=e.index,r=rt(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[ot].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function it(e){const t=Object.assign({__proto__:null},e[et]),r=Ze(e[et],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(nt,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const at=Symbol("Response internals"),ct=y.default.STATUS_CODES;class ut{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qe.call(this,e,t);const r=t.status||200,o=new tt(t.headers);if(null!=e&&!o.has("Content-Type")){const t=Ke(e);t&&o.append("Content-Type",t)}this[at]={url:t.url,status:r,statusText:t.statusText||ct[r],headers:o,counter:t.counter}}get url(){return this[at].url||""}get status(){return this[at].status}get ok(){return this[at].status>=200&&this[at].status<300}get redirected(){return this[at].counter>0}get statusText(){return this[at].statusText}get headers(){return this[at].headers}clone(){return new ut(We(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}qe.mixIn(ut.prototype),Object.defineProperties(ut.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(ut.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const lt=Symbol("Request internals"),pt=k.default.parse,dt=k.default.format,mt="destroy"in R.default.Readable.prototype;function ht(e){return"object"==typeof e&&"object"==typeof e[lt]}class gt{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht(e)?t=pt(e.url):(t=pt(e&&e.href?e.href:`${e}`),e={});let o=r.method||e.method||"GET";if(o=o.toUpperCase(),(null!=r.body||ht(e)&&null!==e.body)&&("GET"===o||"HEAD"===o))throw new TypeError("Request with GET/HEAD method cannot have body");let s=null!=r.body?r.body:ht(e)&&null!==e.body?We(e):null;qe.call(this,s,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const n=new tt(r.headers||e.headers||{});if(null!=s&&!n.has("Content-Type")){const e=Ke(s);e&&n.append("Content-Type",e)}let i=ht(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[lt]={method:o,redirect:r.redirect||e.redirect||"follow",headers:n,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[lt].method}get url(){return dt(this[lt].parsedURL)}get headers(){return this[lt].headers}get redirect(){return this[lt].redirect}get signal(){return this[lt].signal}clone(){return new gt(this)}}function ft(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}qe.mixIn(gt.prototype),Object.defineProperty(gt.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(gt.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(ft.prototype=Object.create(Error.prototype)).constructor=ft,ft.prototype.name="AbortError";const bt=R.default.PassThrough,Tt=k.default.resolve;function Et(e,t){if(!Et.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return qe.Promise=Et.Promise,new Et.Promise(function(r,o){const s=new gt(e,t),n=function(e){const t=e[lt].parsedURL,r=new tt(e[lt].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 R.default.Readable&&!mt)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=Ve(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:it(r),agent:s})}(s),i=("https:"===n.protocol?_.default:y.default).request,a=s.signal;let c=null;const u=function(){let e=new ft("The user aborted a request.");o(e),s.body&&s.body instanceof R.default.Readable&&s.body.destroy(e),c&&c.body&&c.body.emit("error",e)};if(a&&a.aborted)return void u();const l=function(){u(),m()},p=i(n);let d;function m(){p.abort(),a&&a.removeEventListener("abort",l),clearTimeout(d)}a&&a.addEventListener("abort",l),s.timeout&&p.once("socket",function(e){d=setTimeout(function(){o(new He(`network timeout at: ${s.url}`,"request-timeout")),m()},s.timeout)}),p.on("error",function(e){o(new He(`request to ${s.url} failed, reason: ${e.message}`,"system",e)),m()}),p.on("response",function(e){clearTimeout(d);const t=function(e){const t=new tt;for(const r of Object.keys(e))if(!Je.test(r))if(Array.isArray(e[r]))for(const o of e[r])Xe.test(o)||(void 0===t[et][r]?t[et][r]=[o]:t[et][r].push(o));else Xe.test(e[r])||(t[et][r]=[e[r]]);return t}(e.headers);if(Et.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:Tt(s.url,n);switch(s.redirect){case"error":return o(new He(`uri requested responds with a redirect, redirect mode is set to error: ${s.url}`,"no-redirect")),void m();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 He(`maximum redirect reached at: ${s.url}`,"max-redirect")),void m();const n={headers:new tt(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===Ve(s)?(o(new He("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void m()):(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(Et(new gt(i,n))),void m())}}e.once("end",function(){a&&a.removeEventListener("abort",l)});let n=e.pipe(new bt);const i={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:s.size,timeout:s.timeout,counter:s.counter},u=t.get("Content-Encoding");return s.compress&&"HEAD"!==s.method&&null!==u&&204!==e.statusCode&&304!==e.statusCode?"gzip"==u||"x-gzip"==u?(n=n.pipe(P.default.createGunzip({flush:P.default.Z_SYNC_FLUSH,finishFlush:P.default.Z_SYNC_FLUSH})),c=new ut(n,i),void r(c)):"deflate"!=u&&"x-deflate"!=u?"br"==u&&"function"==typeof P.default.createBrotliDecompress?(n=n.pipe(P.default.createBrotliDecompress()),c=new ut(n,i),void r(c)):(c=new ut(n,i),void r(c)):void e.pipe(new bt).once("data",function(e){n=n.pipe(8==(15&e[0])?P.default.createInflate():P.default.createInflateRaw()),c=new ut(n,i),r(c)}):(c=new ut(n,i),void r(c))}),function(e,t){const r=t.body;null===r?e.end():ze(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(p,s)})}Et.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Et.Promise=global.Promise;class wt extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var yt=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 Rt 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:()=>(Ot(new wt("[@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 kt(e){(Te(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||Et)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(s=>{r=s.url,t=s.status;for(const e of s.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new Rt(s.statusText,t,{headers:o,request:e})}if(304===t)throw new Rt("Not modified",t,{headers:o,request:e});if(t>=400)return s.text().then(r=>{const s=new Rt(r,t,{headers:o,request:e});try{let e=JSON.parse(s.message);Object.assign(s,e),s.message=s.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw s});const n=s.headers.get("content-type");return/application\/json/.test(n)?s.json():!n||/^text\/|charset=utf-8$/.test(n)?s.text():function(e){return e.arrayBuffer()}(s)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof Rt)throw t;throw new Rt(t.message,500,{headers:o,request:e})})}const Pt=function e(t,r){const o=t.defaults(r);return Object.assign(function(t,r){const s=o.merge(t,r);if(!s.request||!s.request.hook)return kt(o.parse(s));const n=(e,t)=>kt(o.parse(o.merge(e,t)));return Object.assign(n,{endpoint:o,defaults:e.bind(null,o)}),s.request.hook(n,s)},{endpoint:o,defaults:e.bind(null,o)})}($e,{headers:{"user-agent":`octokit-request.js/5.4.12 ${se()}`}});class Ct 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 Gt=["method","baseUrl","url","headers","request","query","mediaType"],xt=/\/api\/v3\/?$/;function $t(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,s=Object.keys(o).reduce((e,t)=>Gt.includes(t)?(e[t]=o[t],e):(e.variables||(e.variables={}),e.variables[t]=o[t],e),{}),n=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return xt.test(n)&&(s.url=n.replace(xt,"/api/graphql")),e(s).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new Ct(s,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:$t.bind(null,r),endpoint:Pt.endpoint})}async function Lt(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Ut(e,t,r,o){const s=t.endpoint.merge(r,o);return s.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),t(s)}$t(Pt,{headers:{"user-agent":`octokit-graphql.js/4.5.8 ${se()}`},method:"POST",url:"/graphql"});const Dt=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(Lt.bind(null,e),{hook:Ut.bind(null,e)})},Ft="3.2.4";class Ht{constructor(e={}){const t=new fe,r={baseUrl:Pt.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/${Ft} ${se()}`].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=Pt.defaults(r),this.graphql=(o=this.request,$t(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,s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",s.hook),this.auth=s}else if(e.auth){const r=Dt(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}}Ht.VERSION=Ft,Ht.plugins=[];var jt={__proto__:null,Octokit:Ht};const It={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 Bt(e,t,r,o,s){const n=e.request.defaults(o);return Object.assign(function(...o){let i=n.endpoint.merge(...o);if(s.mapToData)return i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0}),n(i);if(s.renamed){const[o,n]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${o}.${n}()`)}if(s.deprecated&&e.log.warn(s.deprecated),s.renamedParameters){const i=n.endpoint.merge(...o);for(const[o,n]of Object.entries(s.renamedParameters))o in i&&(e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${r}()". Use "${n}" instead`),n in i||(i[n]=i[o]),delete i[o]);return n(i)}return n(...o)},n)}function qt(e){return function(e,t){const r={};for(const[o,s]of Object.entries(t))for(const[t,n]of Object.entries(s)){const[s,i,a]=n,[c,u]=s.split(/ /),l=Object.assign({method:c,url:u},i);r[o]||(r[o]={}),r[o][t]=a?Bt(e,o,t,l,a):e.request.defaults(l)}return r}(e,It)}qt.VERSION="4.4.1";var Nt=qt;function Mt(e,t,r){const o="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),s="function"==typeof t?t:e.request,n=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 s=Object.keys(e.data)[0];return e.data=e.data[s],void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=o,e}(await s({method:n,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}})}}function zt(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),Wt(e,[],Mt(e,t,r)[Symbol.asyncIterator](),o)}function Wt(e,t,r,o){return r.next().then(s=>{if(s.done)return t;let n=!1;return t=t.concat(o?o(s.value,function(){n=!0}):s.value.data),n?t:Wt(e,t,r,o)})}function Kt(e){return{paginate:Object.assign(zt.bind(null,e),{iterator:Mt.bind(null,e)})}}Object.assign(zt,{iterator:Mt}),Kt.VERSION="2.6.2";var Vt=Kt,Jt=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokitOptions=t.GitHub=t.context=void 0;const n=s(K),i=s(oe);t.context=new n.Context;const a=i.getApiBaseUrl(),c={baseUrl:a,request:{agent:i.getProxyAgent(a)}};t.GitHub=jt.Octokit.plugin(Nt,Vt).defaults(c),t.getOctokitOptions=function(e,t){const r=Object.assign({},t||{}),o=i.getAuthString(e,r);return o&&(r.auth=o),r}}),Xt=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokit=t.context=void 0;const n=s(K);t.context=new n.Context,t.getOctokit=function(e,t){return new Jt.GitHub(Jt.getOctokitOptions(e,t))}}),Yt=L(function(e,t){var r,o=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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 s(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(t,"__esModule",{value:!0}),t.chmod=(r=E.default.promises).chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return o(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},t.isDirectory=function(e,r=!1){return o(this,void 0,void 0,function*(){return(r?yield t.stat(e):yield t.lstat(e)).isDirectory()})},t.isRooted=function(e){if(!(e=function(e){return e=e||"",t.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return t.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},t.mkdirP=function e(r,s=1e3,n=1){return o(this,void 0,void 0,function*(){if(S.default.ok(r,"a path argument must be provided"),r=w.default.resolve(r),n>=s)return t.mkdir(r);try{return void(yield t.mkdir(r))}catch(o){if("ENOENT"===o.code)return yield e(w.default.dirname(r),s,n+1),void(yield t.mkdir(r));{let e;try{e=yield t.stat(r)}catch(e){throw o}if(!e.isDirectory())throw o}}})},t.tryGetExecutablePath=function(e,r){return o(this,void 0,void 0,function*(){let o;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile())if(t.IS_WINDOWS){const t=w.default.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t))return e}else if(s(o))return e;const n=e;for(const i of r){e=n+i,o=void 0;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const r=w.default.dirname(e),o=w.default.basename(e).toUpperCase();for(const s of yield t.readdir(r))if(o===s.toUpperCase()){e=w.default.join(r,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(s(o))return e}}return""})}}),Qt=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})};const Zt=O.default.promisify(C.default.exec);function er(e){return Qt(this,void 0,void 0,function*(){if(Yt.IS_WINDOWS){try{(yield Yt.isDirectory(e,!0))?yield Zt(`rd /s /q "${e}"`):yield Zt(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield Yt.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield Yt.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield Zt(`rm -rf "${e}"`):yield Yt.unlink(e)}})}function tr(e){return Qt(this,void 0,void 0,function*(){yield Yt.mkdirP(e)})}function rr(e,t,r,o){return Qt(this,void 0,void 0,function*(){if(r>=255)return;r++,yield tr(t);const s=yield Yt.readdir(e);for(const n of s){const s=`${e}/${n}`,i=`${t}/${n}`;(yield Yt.lstat(s)).isDirectory()?yield rr(s,i,r,o):yield or(s,i,o)}yield Yt.chmod(t,(yield Yt.stat(e)).mode)})}function or(e,t,r){return Qt(this,void 0,void 0,function*(){if((yield Yt.lstat(e)).isSymbolicLink()){try{yield Yt.lstat(t),yield Yt.unlink(t)}catch(e){"EPERM"===e.code&&(yield Yt.chmod(t,"0666"),yield Yt.unlink(t))}const r=yield Yt.readlink(e);yield Yt.symlink(r,t,Yt.IS_WINDOWS?"junction":null)}else(yield Yt.exists(t))&&!r||(yield Yt.copyFile(e,t))})}var sr=/*#__PURE__*/Object.defineProperty({cp:function(e,t,r={}){return Qt(this,void 0,void 0,function*(){const{force:o,recursive:s}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(r),n=(yield Yt.exists(t))?yield Yt.stat(t):null;if(n&&n.isFile()&&!o)return;const i=n&&n.isDirectory()?w.default.join(t,w.default.basename(e)):t;if(!(yield Yt.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield Yt.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield rr(e,i,0,o)}else{if(""===w.default.relative(e,i))throw new Error(`'${i}' and '${e}' are the same file`);yield or(e,i,o)}})},mv:function(e,t,r={}){return Qt(this,void 0,void 0,function*(){if(yield Yt.exists(t)){let o=!0;if((yield Yt.isDirectory(t))&&(t=w.default.join(t,w.default.basename(e)),o=yield Yt.exists(t)),o){if(null!=r.force&&!r.force)throw new Error("Destination already exists");yield er(t)}}yield tr(w.default.dirname(t)),yield Yt.rename(e,t)})},rmRF:er,mkdirP:tr,which:function e(t,r){return Qt(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(r&&!(yield e(t,!1)))throw Yt.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if(Yt.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(w.default.delimiter))t&&e.push(t);if(Yt.isRooted(t))return(yield Yt.tryGetExecutablePath(t,e))||"";if(t.includes("/")||Yt.IS_WINDOWS&&t.includes("\\"))return"";const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(w.default.delimiter))e&&r.push(e);for(const o of r){const r=yield Yt.tryGetExecutablePath(o+w.default.sep+t,e);if(r)return r}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}},"__esModule",{value:!0}),nr=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})},ir=$&&$.__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};const ar=ir(T.default),cr=ir(A.default),ur=ir(C.default),lr=ir(w.default),pr=ir(sr),dr=ir(Yt),mr="win32"===process.platform;class hr extends cr.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(hr.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())}}var gr=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})};const fr=($&&$.__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})(/*#__PURE__*/Object.defineProperty({ToolRunner:class extends cr.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 s=t?"":"[command]";if(mr)if(this._isCmdFile()){s+=r;for(const e of o)s+=` ${e}`}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of o)s+=` ${e}`}else{s+=this._windowsQuoteCmdArg(r);for(const e of o)s+=` ${this._windowsQuoteCmdArg(e)}`}else{s+=r;for(const e of o)s+=` ${e}`}return s}_processLineBuffer(e,t,r){try{let o=t+e.toString(),s=o.indexOf(ar.EOL);for(;s>-1;)r(o.substring(0,s)),o=o.substring(s+ar.EOL.length),s=o.indexOf(ar.EOL);t=o}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){return mr&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(mr&&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='"',s=!0;for(let t=e.length;t>0;t--)o+=e[t-1],s&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(s=!0,o+='"'):s=!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 nr(this,void 0,void 0,function*(){return!dr.isRooted(this.toolPath)&&(this.toolPath.includes("/")||mr&&this.toolPath.includes("\\"))&&(this.toolPath=lr.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield pr.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)+ar.EOL);const o=new hr(r,this.toolPath);o.on("debug",e=>{this._debug(e)});const s=this._getSpawnFileName(),n=ur.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));if(n.stdout&&n.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)})}),n.stderr&&n.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)})}),n.on("error",e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()}),n.on("exit",e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()}),n.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)=>{n.removeAllListeners(),r?t(r):e(o)}),this.options.input){if(!n.stdin)throw new Error("child process missing stdin");n.stdin.end(this.options.input)}})})}},argStringToArray:function(e){const t=[];let r=!1,o=!1,s="";function n(e){o&&'"'!==e&&(s+="\\"),s+=e,o=!1}for(let i=0;i0&&(t.push(s),s=""):o?n(a):r=!r}return s.length>0&&t.push(s.trim()),t}},"__esModule",{value:!0}));var br=function(e,t,r){return gr(this,void 0,void 0,function*(){const o=fr.argStringToArray(e);if(0===o.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=o[0];return t=o.slice(1).concat(t||[]),new fr.ToolRunner(s,t,r).exec()})};const Tr="\\\\/",Er=`[^${Tr}]`,wr="\\.",yr="\\/",_r="[^/]",vr=`(?:${yr}|$)`,Ar=`(?:^|${yr})`,Sr=`${wr}{1,2}${vr}`,Or={DOT_LITERAL:wr,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:yr,ONE_CHAR:"(?=.)",QMARK:_r,END_ANCHOR:vr,DOTS_SLASH:Sr,NO_DOT:`(?!${wr})`,NO_DOTS:`(?!${Ar}${Sr})`,NO_DOT_SLASH:`(?!${wr}{0,1}${vr})`,NO_DOTS_SLASH:`(?!${Sr})`,QMARK_NO_DOT:`[^.${yr}]`,STAR:`${_r}*?`,START_ANCHOR:Ar,SEP:"/"},Rr={...Or,SLASH_LITERAL:`[${Tr}]`,QMARK:Er,STAR:`${Er}*?`,DOTS_SLASH:`${wr}{1,2}(?:[${Tr}]|$)`,NO_DOT:`(?!${wr})`,NO_DOTS:`(?!(?:^|[${Tr}])${wr}{1,2}(?:[${Tr}]|$))`,NO_DOT_SLASH:`(?!${wr}{0,1}(?:[${Tr}]|$))`,NO_DOTS_SLASH:`(?!${wr}{1,2}(?:[${Tr}]|$))`,QMARK_NO_DOT:`[^.${Tr}]`,START_ANCHOR:`(?:^|[${Tr}])`,END_ANCHOR:`(?:[${Tr}]|$)`,SEP:"\\"};var kr={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?Rr:Or},Pr=L(function(e,t){const{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:n}=kr;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(n,"\\$1"),t.toPosixSlashes=e=>e.replace(r,"/"),t.isWindows=()=>{if("{}".platform){const e="{}".platform.toLowerCase();return"win32"===e||"windows"===e}return!("undefined"==typeof process||!process.platform)&&"win32"===process.platform},t.removeBackslashes=e=>e.replace(o,e=>"\\"===e?"":e),t.escapeLast=(e,r,o)=>{const s=e.lastIndexOf(r,o);return-1===s?e:"\\"===e[s-1]?t.escapeLast(e,r,s-1):`${e.slice(0,s)}\\${e.slice(s)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let o=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(o=`(?:^(?!${o}).*$)`),o},t.basename=(e,{windows:t}={})=>{const r=e.split(t?/[\\/]/:"/"),o=r[r.length-1];return""===o?r[r.length-2]:o}}),Cr=Pr;const{CHAR_ASTERISK:Gr,CHAR_AT:xr,CHAR_BACKWARD_SLASH:$r,CHAR_COMMA:Lr,CHAR_DOT:Ur,CHAR_EXCLAMATION_MARK:Dr,CHAR_FORWARD_SLASH:Fr,CHAR_LEFT_CURLY_BRACE:Hr,CHAR_LEFT_PARENTHESES:jr,CHAR_LEFT_SQUARE_BRACKET:Ir,CHAR_PLUS:Br,CHAR_QUESTION_MARK:qr,CHAR_RIGHT_CURLY_BRACE:Nr,CHAR_RIGHT_PARENTHESES:Mr,CHAR_RIGHT_SQUARE_BRACKET:zr}=kr,Wr=e=>e===Fr||e===$r,Kr=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?Infinity:1)},{MAX_LENGTH:Vr,POSIX_REGEX_SOURCE:Jr,REGEX_NON_SPECIAL_CHARS:Xr,REGEX_SPECIAL_CHARS_BACKREF:Yr,REPLACEMENTS:Qr}=kr,Zr=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>Cr.escapeRegex(e)).join("..")}return r},eo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,to=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Qr[e]||e;const r={...t},o="number"==typeof r.maxLength?Math.min(Vr,r.maxLength):Vr;let s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);const n={type:"bos",value:"",output:r.prepend||""},i=[n],a=r.capture?"":"?:",c=kr.globChars(r.windows),u=kr.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:h,NO_DOT:g,NO_DOT_SLASH:f,NO_DOTS_SLASH:b,QMARK:T,QMARK_NO_DOT:E,STAR:w,START_ANCHOR:y}=c,_=e=>`(${a}(?:(?!${y}${e.dot?h:l}).)*?)`,v=r.dot?"":g,A=r.dot?T:E;let S=!0===r.bash?_(r):w;r.capture&&(S=`(${S})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const O={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Cr.removePrefix(e,O),s=e.length;const R=[],k=[],P=[];let C,G=n;const x=()=>O.index===s-1,$=O.peek=(t=1)=>e[O.index+t],L=O.advance=()=>e[++O.index]||"",U=()=>e.slice(O.index+1),D=(e="",t=0)=>{O.consumed+=e,O.index+=t},F=e=>{O.output+=null!=e.output?e.output:e.value,D(e.value)},H=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)L(),O.start++,e++;return e%2!=0&&(O.negated=!0,O.start++,!0)},j=e=>{O[e]++,P.push(e)},I=e=>{O[e]--,P.pop()},B=e=>{if("globstar"===G.type&&("slash"===e.type||"paren"===e.type||O.braces>0&&("comma"===e.type||"brace"===e.type)||!0===e.extglob||R.length&&("pipe"===e.type||"paren"===e.type)||(O.output=O.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=S,O.output+=G.output)),R.length&&"paren"!==e.type&&(R[R.length-1].inner+=e.value),(e.value||e.output)&&F(e),G&&"text"===G.type&&"text"===e.type)return G.output=(G.output||G.value)+e.value,void(G.value+=e.value);e.prev=G,i.push(e),G=e},q=(e,t)=>{const o={...u[t],conditions:1,inner:""};o.prev=G,o.parens=O.parens,o.output=O.output;const s=(r.capture?"(":"")+o.open;j("parens"),B({type:e,value:t,output:O.output?"":m}),B({type:"paren",extglob:!0,value:L(),output:s}),R.push(o)},N=e=>{let o,s=e.close+(r.capture?")":"");if("negate"===e.type){let n=S;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(n=_(r)),(n!==S||x()||/^\)+$/.test(U()))&&(s=e.close=`)$))${n}`),e.inner.includes("*")&&(o=U())&&/^\.[^\\/.]+$/.test(o)){const r=to(o,{...t,fastpaths:!1}).output;s=e.close=`)${r})${n})`}"bos"===e.prev.type&&(O.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:C,output:s}),I("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let o=!1,s=e.replace(Yr,(e,t,r,s,n,i)=>"\\"===s?(o=!0,e):"?"===s?t?t+s+(n?T.repeat(n.length):""):0===i?A+(n?T.repeat(n.length):""):T.repeat(r.length):"."===s?l.repeat(r.length):"*"===s?t?t+s+(n?S:""):S:t?e:`\\${e}`);return!0===o&&(s=!0===r.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===e&&!0===r.contains?(O.output=e,O):(O.output=Cr.wrapOutput(s,O,t),O)}for(;!x();){if(C=L(),"\0"===C)continue;if("\\"===C){const e=$();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){C+="\\",B({type:"text",value:C});continue}const t=/^\\+/.exec(U());let o=0;if(t&&t[0].length>2&&(o=t[0].length,O.index+=o,o%2!=0&&(C+="\\")),!0===r.unescape?C=L():C+=L(),0===O.brackets){B({type:"text",value:C});continue}}if(O.brackets>0&&("]"!==C||"["===G.value||"[^"===G.value)){if(!1!==r.posix&&":"===C){const e=G.value.slice(1);if(e.includes("[")&&(G.posix=!0,e.includes(":"))){const e=G.value.lastIndexOf("["),t=G.value.slice(0,e),r=G.value.slice(e+2),o=Jr[r];if(o){G.value=t+o,O.backtrack=!0,L(),n.output||1!==i.indexOf(G)||(n.output=m);continue}}}("["===C&&":"!==$()||"-"===C&&"]"===$())&&(C=`\\${C}`),"]"!==C||"["!==G.value&&"[^"!==G.value||(C=`\\${C}`),!0===r.posix&&"!"===C&&"["===G.value&&(C="^"),G.value+=C,F({value:C});continue}if(1===O.quotes&&'"'!==C){C=Cr.escapeRegex(C),G.value+=C,F({value:C});continue}if('"'===C){O.quotes=1===O.quotes?0:1,!0===r.keepQuotes&&B({type:"text",value:C});continue}if("("===C){j("parens"),B({type:"paren",value:C});continue}if(")"===C){if(0===O.parens&&!0===r.strictBrackets)throw new SyntaxError(eo("opening","("));const e=R[R.length-1];if(e&&O.parens===e.parens+1){N(R.pop());continue}B({type:"paren",value:C,output:O.parens?")":"\\)"}),I("parens");continue}if("["===C){if(!0!==r.nobracket&&U().includes("]"))j("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(eo("closing","]"));C=`\\${C}`}B({type:"bracket",value:C});continue}if("]"===C){if(!0===r.nobracket||G&&"bracket"===G.type&&1===G.value.length){B({type:"text",value:C,output:`\\${C}`});continue}if(0===O.brackets){if(!0===r.strictBrackets)throw new SyntaxError(eo("opening","["));B({type:"text",value:C,output:`\\${C}`});continue}I("brackets");const e=G.value.slice(1);if(!0===G.posix||"^"!==e[0]||e.includes("/")||(C=`/${C}`),G.value+=C,F({value:C}),!1===r.literalBrackets||Cr.hasRegexChars(e))continue;const t=Cr.escapeRegex(G.value);if(O.output=O.output.slice(0,-G.value.length),!0===r.literalBrackets){O.output+=t,G.value=t;continue}G.value=`(${a}${t}|${G.value})`,O.output+=G.value;continue}if("{"===C&&!0!==r.nobrace){j("braces");const e={type:"brace",value:C,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};k.push(e),B(e);continue}if("}"===C){const e=k[k.length-1];if(!0===r.nobrace||!e){B({type:"text",value:C,output:C});continue}let t=")";if(!0===e.dots){const e=i.slice(),o=[];for(let t=e.length-1;t>=0&&(i.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&o.unshift(e[t].value);t=Zr(o,r),O.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=O.output.slice(0,e.outputIndex),o=O.tokens.slice(e.tokensIndex);e.value=e.output="\\{",C=t="\\}",O.output=r;for(const e of o)O.output+=e.output||e.value}B({type:"brace",value:C,output:t}),I("braces"),k.pop();continue}if("|"===C){R.length>0&&R[R.length-1].conditions++,B({type:"text",value:C});continue}if(","===C){let e=C;const t=k[k.length-1];t&&"braces"===P[P.length-1]&&(t.comma=!0,e="|"),B({type:"comma",value:C,output:e});continue}if("/"===C){if("dot"===G.type&&O.index===O.start+1){O.start=O.index+1,O.consumed="",O.output="",i.pop(),G=n;continue}B({type:"slash",value:C,output:d});continue}if("."===C){if(O.braces>0&&"dot"===G.type){"."===G.value&&(G.output=l);const e=k[k.length-1];G.type="dots",G.output+=C,G.value+=C,e.dots=!0;continue}if(O.braces+O.parens===0&&"bos"!==G.type&&"slash"!==G.type){B({type:"text",value:C,output:l});continue}B({type:"dot",value:C,output:l});continue}if("?"===C){if((!G||"("!==G.value)&&!0!==r.noextglob&&"("===$()&&"?"!==$(2)){q("qmark",C);continue}if(G&&"paren"===G.type){const e=$();let t=C;("("===G.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(U()))&&(t=`\\${C}`),B({type:"text",value:C,output:t});continue}if(!0!==r.dot&&("slash"===G.type||"bos"===G.type)){B({type:"qmark",value:C,output:E});continue}B({type:"qmark",value:C,output:T});continue}if("!"===C){if(!0!==r.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){q("negate",C);continue}if(!0!==r.nonegate&&0===O.index){H();continue}}if("+"===C){if(!0!==r.noextglob&&"("===$()&&"?"!==$(2)){q("plus",C);continue}if(G&&"("===G.value||!1===r.regex){B({type:"plus",value:C,output:p});continue}if(G&&("bracket"===G.type||"paren"===G.type||"brace"===G.type)||O.parens>0){B({type:"plus",value:C});continue}B({type:"plus",value:p});continue}if("@"===C){if(!0!==r.noextglob&&"("===$()&&"?"!==$(2)){B({type:"at",extglob:!0,value:C,output:""});continue}B({type:"text",value:C});continue}if("*"!==C){"$"!==C&&"^"!==C||(C=`\\${C}`);const e=Xr.exec(U());e&&(C+=e[0],O.index+=e[0].length),B({type:"text",value:C});continue}if(G&&("globstar"===G.type||!0===G.star)){G.type="star",G.star=!0,G.value+=C,G.output=S,O.backtrack=!0,O.globstar=!0,D(C);continue}let t=U();if(!0!==r.noextglob&&/^\([^?]/.test(t)){q("star",C);continue}if("star"===G.type){if(!0===r.noglobstar){D(C);continue}const o=G.prev,s=o.prev,n="slash"===o.type||"bos"===o.type,i=s&&("star"===s.type||"globstar"===s.type);if(!0===r.bash&&(!n||t[0]&&"/"!==t[0])){B({type:"star",value:C,output:""});continue}if(!(n||"paren"===o.type||O.braces>0&&("comma"===o.type||"brace"===o.type)||R.length&&("pipe"===o.type||"paren"===o.type))){B({type:"star",value:C,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[O.index+4];if(r&&"/"!==r)break;t=t.slice(3),D("/**",3)}if("bos"===o.type&&x()){G.type="globstar",G.value+=C,G.output=_(r),O.output=G.output,O.globstar=!0,D(C);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!i&&x()){O.output=O.output.slice(0,-(o.output+G.output).length),o.output=`(?:${o.output}`,G.type="globstar",G.output=_(r)+(r.strictSlashes?")":"|$)"),G.value+=C,O.globstar=!0,O.output+=o.output+G.output,D(C);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";O.output=O.output.slice(0,-(o.output+G.output).length),o.output=`(?:${o.output}`,G.type="globstar",G.output=`${_(r)}${d}|${d}${e})`,G.value+=C,O.output+=o.output+G.output,O.globstar=!0,D(C+L()),B({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===t[0]){G.type="globstar",G.value+=C,G.output=`(?:^|${d}|${_(r)}${d})`,O.output=G.output,O.globstar=!0,D(C+L()),B({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-G.output.length),G.type="globstar",G.output=_(r),G.value+=C,O.output+=G.output,O.globstar=!0,D(C);continue}const o={type:"star",value:C,output:S};!0!==r.bash?!G||"bracket"!==G.type&&"paren"!==G.type||!0!==r.regex?(O.index!==O.start&&"slash"!==G.type&&"dot"!==G.type||("dot"===G.type?(O.output+=f,G.output+=f):!0===r.dot?(O.output+=b,G.output+=b):(O.output+=v,G.output+=v),"*"!==$()&&(O.output+=m,G.output+=m)),B(o)):(o.output=C,B(o)):(o.output=".*?","bos"!==G.type&&"slash"!==G.type||(o.output=v+o.output),B(o))}for(;O.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing","]"));O.output=Cr.escapeLast(O.output,"["),I("brackets")}for(;O.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing",")"));O.output=Cr.escapeLast(O.output,"("),I("parens")}for(;O.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing","}"));O.output=Cr.escapeLast(O.output,"{"),I("braces")}if(!0===r.strictSlashes||"star"!==G.type&&"bracket"!==G.type||B({type:"maybe_slash",value:"",output:`${d}?`}),!0===O.backtrack){O.output="";for(const e of O.tokens)O.output+=null!=e.output?e.output:e.value,e.suffix&&(O.output+=e.suffix)}return O};to.fastpaths=(e,t)=>{const r={...t},o="number"==typeof r.maxLength?Math.min(Vr,r.maxLength):Vr,s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=Qr[e]||e;const{DOT_LITERAL:n,SLASH_LITERAL:i,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:l,NO_DOTS_SLASH:p,STAR:d,START_ANCHOR:m}=kr.globChars(r.windows),h=r.dot?l:u,g=r.dot?p:u,f=r.capture?"":"?:";let b=!0===r.bash?".*?":d;r.capture&&(b=`(${b})`);const T=e=>!0===e.noglobstar?b:`(${f}(?:(?!${m}${e.dot?c:n}).)*?)`,E=e=>{switch(e){case"*":return`${h}${a}${b}`;case".*":return`${n}${a}${b}`;case"*.*":return`${h}${b}${n}${a}${b}`;case"*/*":return`${h}${b}${i}${a}${g}${b}`;case"**":return h+T(r);case"**/*":return`(?:${h}${T(r)}${i})?${g}${a}${b}`;case"**/*.*":return`(?:${h}${T(r)}${i})?${g}${b}${n}${a}${b}`;case"**/.*":return`(?:${h}${T(r)}${i})?${n}${a}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=E(t[1]);if(!r)return;return r+n+t[2]}}},w=Cr.removePrefix(e,{negated:!1,prefix:""});let y=E(w);return y&&!0!==r.strictSlashes&&(y+=`${i}?`),y};var ro=to;const oo=(e,t,r=!1)=>{if(Array.isArray(e)){const o=e.map(e=>oo(e,t,r)),s=e=>{for(const t of o){const r=t(e);if(r)return r}return!1};return s}const o=(s=e)&&"object"==typeof s&&!Array.isArray(s)&&e.tokens&&e.input;var s;if(""===e||"string"!=typeof e&&!o)throw new TypeError("Expected pattern to be a non-empty string");const n=t||{},i=n.windows,a=o?oo.compileRe(e,t):oo.makeRe(e,t,!1,!0),c=a.state;delete a.state;let u=()=>!1;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=oo(n.ignore,e,r)}const l=(r,o=!1)=>{const{isMatch:s,match:l,output:p}=oo.test(r,a,t,{glob:e,posix:i}),d={glob:e,state:c,regex:a,posix:i,input:r,output:p,match:l,isMatch:s};return"function"==typeof n.onResult&&n.onResult(d),!1===s?(d.isMatch=!1,!!o&&d):u(r)?("function"==typeof n.onIgnore&&n.onIgnore(d),d.isMatch=!1,!!o&&d):("function"==typeof n.onMatch&&n.onMatch(d),!o||d)};return r&&(l.state=c),l};oo.test=(e,t,r,{glob:o,posix:s}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const n=r||{},i=n.format||(s?Cr.toPosixSlashes:null);let a=e===o,c=a&&i?i(e):e;return!1===a&&(c=i?i(e):e,a=c===o),!1!==a&&!0!==n.capture||(a=!0===n.matchBase||!0===n.basename?oo.matchBase(e,t,r,s):t.exec(c)),{isMatch:Boolean(a),match:a,output:c}},oo.matchBase=(e,t,r)=>(t instanceof RegExp?t:oo.makeRe(t,r)).test(Cr.basename(e)),oo.isMatch=(e,t,r)=>oo(t,r)(e),oo.parse=(e,t)=>Array.isArray(e)?e.map(e=>oo.parse(e,t)):ro(e,{...t,fastpaths:!1}),oo.scan=(e,t)=>((e,t)=>{const r=t||{},o=e.length-1,s=!0===r.parts||!0===r.scanToEnd,n=[],i=[],a=[];let c,u,l=e,p=-1,d=0,m=0,h=!1,g=!1,f=!1,b=!1,T=!1,E=!1,w=!1,y=!1,_=!1,v=!1,A=0,S={value:"",depth:0,isGlob:!1};const O=()=>p>=o,R=()=>l.charCodeAt(p+1),k=()=>(c=u,l.charCodeAt(++p));for(;p0&&(C=l.slice(0,d),l=l.slice(d),m-=d),P&&!0===f&&m>0?(P=l.slice(0,m),G=l.slice(m)):!0===f?(P="",G=l):P=l,P&&""!==P&&"/"!==P&&P!==l&&Wr(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),!0===r.unescape&&(G&&(G=Cr.removeBackslashes(G)),P&&!0===w&&(P=Cr.removeBackslashes(P)));const x={prefix:C,input:e,start:d,base:P,glob:G,isBrace:h,isBracket:g,isGlob:f,isExtglob:b,isGlobstar:T,negated:y,negatedExtglob:_};if(!0===r.tokens&&(x.maxDepth=0,Wr(u)||i.push(S),x.tokens=i),!0===r.parts||!0===r.tokens){let t;for(let o=0;o{if(!0===r)return e.output;const s=t||{};let n=`${s.contains?"":"^"}(?:${e.output})${s.contains?"":"$"}`;e&&!0===e.negated&&(n=`^(?!${n}).*$`);const i=oo.toRegex(n,t);return!0===o&&(i.state=e),i},oo.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(s.output=ro.fastpaths(e,t)),s.output||(s=ro(e,t)),oo.compileRe(s,t,r,o)},oo.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},oo.constants=kr;var so=oo;function no(e,t,r=!1){return t&&null==t.windows&&(t={...t,windows:Cr.isWindows()}),so(e,t,r)}Object.assign(no,so);var io=no;const ao=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],co=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],uo=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],lo=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],po=(e,t,r)=>{let o=e;return"string"==typeof t||Array.isArray(t)?o=e.toLocaleString(t,r):!0!==t&&void 0===r||(o=e.toLocaleString(void 0,r)),o},mo=e=>{if("number"==typeof e)return Math.log10(e);const t=e.toString(10);return t.length+Math.log10(`0.${t.slice(0,15)}`)},ho=(e,t)=>{if(void 0===t)return e;if("number"!=typeof t||!Number.isSafeInteger(t)||t<0)throw new TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof t}: ${t}`);return 0===t?e:e.length{const{minimumFractionDigits:t,maximumFractionDigits:r}=e;if(void 0!==t||void 0!==r)return{...void 0!==t&&{minimumFractionDigits:t},...void 0!==r&&{maximumFractionDigits:r},roundingMode:"trunc"}})(t);let a;if(e<1)a=n+po(e,t.locale,i)+o+r[0];else{const s=Math.min(Math.floor(t.binary?("number"==typeof(c=e)?Math.log(c):mo(c)*Math.log(10))/Math.log(1024):mo(e)/3),r.length-1);if(e=((e,t)=>{if("number"==typeof e)return e/t;const r=e/BigInt(t),o=e%BigInt(t);return Number(r)+Number(o)/t})(e,(t.binary?1024:1e3)**s),!i){const t=Math.max(3,Math.floor(e).toString().length);e=e.toPrecision(t)}a=n+po(Number(e),t.locale,i)+o+r[s]}var c;return ho(a,t.fixedWidth)}const fo=f.promisify(x.default.gzip);O.default.promisify(E.default.readFile);const bo=e=>e,To={brotli:function(e,t){const r=(e=>"string"==typeof e?Buffer.from(e,"utf8"):e)(e);return P.default.brotliCompressSync(r,(o=t,s=r,{params:{[P.default.constants.BROTLI_PARAM_MODE]:o&&"mode"in o&&o.mode||P.default.constants.BROTLI_DEFAULT_MODE,[P.default.constants.BROTLI_PARAM_QUALITY]:o&&"quality"in o&&o.quality||P.default.constants.BROTLI_MAX_QUALITY,[P.default.constants.BROTLI_PARAM_SIZE_HINT]:s?s.byteLength:0}})).byteLength;var o,s},gzip:async function(e,t){return e?(await fo(e,(e=>({level:9,...e}))(t))).length:0},none:e=>Buffer.byteLength(e)};async function Eo(e,t){return await To[e](t)}class wo{constructor(e){e.compression??="gzip",e.pattern??="**/*.{js,mjs,cjs,jsx,css,html}",e.exclude??=null,e.stripHash??=bo,this.options=e}filterFiles=e=>{const t=io(this.options.pattern),r=this.options.exclude?io(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))};readFromDisk=async e=>{const t=h.globSync(this.options.pattern,{cwd:e,exclude:this.options.exclude?[this.options.exclude]:void 0}),r={};return await Promise.all(t.map(async t=>{try{const o=await h.promises.readFile(G.default.join(e,t),"utf-8"),s=await Eo(this.options.compression,o);r[this.options.stripHash(t)]=s}catch{}})),r};getSizes=async e=>{const t=this.filterFiles(Object.keys(e)),r={};return await Promise.all(t.map(async t=>{try{const o=await Eo(this.options.compression,e[t]);r[this.options.stripHash(t)]=o}catch{}})),r};getDiff=(e,t)=>{const r=new Set([...Object.keys(e),...Object.keys(t)]),o=[];for(const s of r){const r=t[s]||0;o.push({filename:s,size:r,delta:r-(e[s]||0)})}return o};printSizes=e=>{const t=Math.max(...e.map(e=>e.filename.length),0);let r="";for(const o of e){const{filename:e,size:s,delta:n}=o,i=" ".repeat(t-e.length+1)+e+" ⏤ ";let a=go(s),c="";n&&Math.abs(n)>1&&(c=(n>0?"+":"")+go(n),a+=` (${c})`),r+=i+a+"\n"}return r}}const yo=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_o=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],vo=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ao=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],So=(e,t)=>{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var Oo=(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?Ao:vo:t.binary?_o:yo;if(t.signed&&0===e)return" 0 "+r[0];const o=e<0,s=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return s+So(e,t.locale)+" "+r[0];const n=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,n)).toPrecision(3)),s+So(e,t.locale)+" "+r[n]};async function Ro(e){const[t,r,o,s,n]=await Promise.all([ko(w.default.resolve(e,"yarn.lock")),ko(w.default.resolve(e,"pnpm-lock.yaml")),ko(w.default.resolve(e,"bun.lockb")),ko(w.default.resolve(e,"bun.lock")),ko(w.default.resolve(e,"package-lock.json"))]);let i="npm",a="npm install";return t?(a="yarn --frozen-lockfile",i="yarn"):r?(a="pnpm install --frozen-lockfile",i="pnpm"):o||s?(a="bun install --frozen-lockfile",i="bun"):n&&(a="npm ci"),{packageManager:i,installScript:a}}async function ko(e){try{return await E.default.promises.access(e,E.default.constants.F_OK),!0}catch(e){}return!1}function Po(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?"+":"")+Oo(e);if(0===Math.abs(e));else if(0===t)r+=" (new file)";else if(t===-e)r+=" (removed)";else{const o=Number((e/t*100).toFixed(2));r+=` (${o>0?"+":""}${o}%)`}return r}function Go(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 xo(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 $o(e){return/^(1|true|yes)$/.test(e)}function Lo(e){const[t,r]=e.split(":");return["Filename","Size","Change"].includes(t)&&["asc","desc"].includes(r)?e:(console.warn(`Invalid 'order-by' value '${e}', defaulting to 'Filename:asc'`),"Filename:asc")}(async()=>{try{const e=W.getInput("repo-token"),t=Xt.getOctokit(e);await async function(e,t,r){const{number:o}=t.issue;try{W.debug("pr"+JSON.stringify(t.payload,null,2))}catch(e){}let s,n;if("push"==t.eventName)s=t.payload.before,n=t.payload.ref,console.log(`Pushed new commit on top of ${n} (${s})`);else{if("pull_request"!=t.eventName&&"pull_request_target"!=t.eventName)throw new Error(`Unsupported eventName in github.context: ${t.eventName}. Only "pull_request", "pull_request_target", and "push" triggered workflows are currently supported.`);{const e=t.payload.pull_request;s=e.base.sha,n=e.base.ref,console.log(`PR #${o} is targeted at ${n} (${n})`)}}W.getInput("cwd")&&process.chdir(W.getInput("cwd"));const i=new wo({compression:W.getInput("compression"),pattern:W.getInput("pattern")||"**/dist/**/*.{js,mjs,cjs}",exclude:W.getInput("exclude")||"{**/*.map,**/node_modules/**}",stripHash:Po(W.getInput("strip-hash"))}),a=W.getInput("build-script")||"build",c=process.cwd();let{packageManager:u,installScript:l}=await Ro(c);W.getInput("install-script")&&(l=W.getInput("install-script")),W.startGroup("[current] Install Dependencies"),console.log(`Installing using ${l}`),await br(l),W.endGroup(),W.startGroup(`[current] Build using ${u}`),console.log(`Building using ${u} run ${a}`),await br(`${u} run ${a}`),W.endGroup();const p=await i.readFromDisk(c);await br("git reset --hard"),W.startGroup("[base] Checkout target branch");try{if(!n)throw Error("missing context.payload.pull_request.base.ref");await br(`git fetch -n origin ${n}:${n}`),console.log("successfully fetched base.ref")}catch(e){console.log("fetching base.ref failed",e.message);try{await br(`git fetch -n origin ${s}`),console.log("successfully fetched base.sha")}catch(e){console.log("fetching base.sha failed",e.message);try{await br("git fetch -n")}catch(e){console.log("fetch failed",e.message)}}}const d=W.getInput("clean-script");d&&(W.startGroup(`[target] Cleanup via ${u} run ${d}`),await br(`${u} run ${d}`),W.endGroup()),console.log("checking out and building base commit");try{if(!n)throw Error("missing context.payload.base.ref");await br(`git reset --hard ${n}`)}catch(e){await br(`git reset --hard ${s}`)}W.endGroup(),W.startGroup("[base] Install Dependencies"),({packageManager:u,installScript:l}=await Ro(c)),W.getInput("install-script")&&(l=W.getInput("install-script")),console.log(`Installing using ${l}`),await br(l),W.endGroup(),W.startGroup(`[base] Build using ${u}`),await br(`${u} run ${a}`),W.endGroup(),await br("git reset --hard");const m=await i.readFromDisk(c),h=await i.getDiff(m,p);W.startGroup("Size Differences:");const g=await i.printSizes(h);console.log(g),W.endGroup();const f=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:o,minimumChangeThreshold:s,sortBy:n}){const i=[],a=[],[c,u]=n.split(":"),l={Filename:"filename",Size:"size",Change:"delta"};e.sort((e,t)=>{const r=l[c];return"asc"===u?e[r].toString().localeCompare(t[r].toString(),void 0,{numeric:!0}):t[r].toString().localeCompare(e[r].toString(),void 0,{numeric:!0})});let p=0,d=0;for(const t of e){const{filename:e,size:n,delta:c}=t;p+=n;const u=n-c,l=Math.abs(c)đŸ“Ļ View Changed\n\n${xo(i)}\n\n`),0!==a.length&&(m+=`\n\n
â„šī¸ View Unchanged\n\n${xo(a)}\n\n
\n\n`),t){const e=p-d;let t=Co(d,e),r=Go(d,e);m=`**Total Size:** ${Oo(p)}\n\n${m}`,m=`**Size Change:** ${t} ${r}\n\n${m}`}return m}(h,{collapseUnchanged:$o(W.getInput("collapse-unchanged")),omitUnchanged:$o(W.getInput("omit-unchanged")),showTotal:$o(W.getInput("show-total")),minimumChangeThreshold:parseInt(W.getInput("minimum-change-threshold"),10),sortBy:Lo(W.getInput("sort-by"))});let b=!1;const T={...t.repo,issue_number:o},E=W.getInput("comment-key"),w={...T,body:f+`\n\ncompressed-size-action${E?`::${E}`:""}`};if("pull_request"!==t.eventName&&"pull_request_target"!==t.eventName)console.log("No PR associated with this action run. Not posting a check or comment."),b=!1;else if($o(W.getInput("use-check")))if(r){const r=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,t);await r({conclusion:"success",output:{title:"Compressed Size Action",summary:f}})}else b=!0;else{let r;W.startGroup("Updating stats PR comment");try{const t=(await e.issues.listComments(T)).data,o=new RegExp(`[s\n]*(compressed|gzip)-size-action${E?`::${E}`:""}`);for(let e=t.length;e--;){const s=t[e];if(o.test(s.body)){r=s.id;break}}}catch(e){console.log("Error checking for previous comments: "+e.message)}if(r){console.log(`Updating previous comment #${r}`);try{await e.issues.updateComment({...t.repo,comment_id:r,body:w.body})}catch(e){console.log("Error editing previous comment: "+e.message),r=null}}if(!r){console.log("Creating new comment");try{await e.issues.createComment(w)}catch(r){console.log(`Error creating comment: ${r.message}`),console.log("Submitting a PR review comment instead...");try{const r=t.issue;await e.pulls.createReview({owner:r.owner,repo:r.repo,pull_number:r.number,event:"COMMENT",body:w.body})}catch(e){console.log("Error creating PR review."),b=!0}}}W.endGroup()}b&&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${w.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}(t,Xt.context,e)}catch(e){W.setFailed(e.message)}})(); +var e=require("os"),t=require("fs"),r=require("path"),o=require("http"),s=require("https");require("net");var n=require("tls"),i=require("events"),a=require("assert"),c=require("util"),u=require("stream"),l=require("url"),p=require("zlib"),d=require("child_process"),m=require("node:path"),h=require("node:fs");require("node:stream");var g=require("node:zlib"),f=require("node:util");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var T=/*#__PURE__*/b(e),E=/*#__PURE__*/b(t),w=/*#__PURE__*/b(r),y=/*#__PURE__*/b(o),_=/*#__PURE__*/b(s),v=/*#__PURE__*/b(n),A=/*#__PURE__*/b(i),S=/*#__PURE__*/b(a),O=/*#__PURE__*/b(c),R=/*#__PURE__*/b(u),k=/*#__PURE__*/b(l),P=/*#__PURE__*/b(p),C=/*#__PURE__*/b(d),G=/*#__PURE__*/b(m),x=/*#__PURE__*/b(g),$="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){var t={exports:{}};return e(t,t.exports),t.exports}var U=/*#__PURE__*/Object.defineProperty({toCommandValue:function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}},"__esModule",{value:!0});const D=($&&$.__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})(T.default);function F(e,t,r){const o=new j(e,t,r);process.stdout.write(o.toString()+D.EOL)}var H=F;class j{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)}`)}}var t;return e+=`::${t=this.message,U.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}`,e}}function I(e){return U.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var B=/*#__PURE__*/Object.defineProperty({issueCommand:H,issue:function(e,t=""){F(e,{},t)}},"__esModule",{value:!0}),q=$&&$.__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};const N=q(E.default),M=q(T.default);var z=/*#__PURE__*/Object.defineProperty({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,`${U.toCommandValue(t)}${M.EOL}`,{encoding:"utf8"})}},"__esModule",{value:!0}),W=L(function(e,t){var r=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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=$&&$.__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 s=o(T.default),n=o(w.default);var i;function a(e){B.issue("error",e instanceof Error?e.toString():e)}function c(e){B.issue("group",e)}function u(){B.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(i=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){const r=U.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";z.issueCommand("ENV",`${e}<<${t}${s.EOL}${r}${s.EOL}${t}`)}else B.issueCommand("set-env",{name:e},r)},t.setSecret=function(e){B.issueCommand("add-mask",{},e)},t.addPath=function(e){process.env.GITHUB_PATH?z.issueCommand("PATH",e):B.issueCommand("add-path",{},e),process.env.PATH=`${e}${n.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw new Error(`Input required and not supplied: ${e}`);return r.trim()},t.setOutput=function(e,t){B.issueCommand("set-output",{name:e},t)},t.setCommandEcho=function(e){B.issue("echo",e?"on":"off")},t.setFailed=function(e){process.exitCode=i.Failure,a(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){B.issueCommand("debug",{},e)},t.error=a,t.warning=function(e){B.issue("warning",e instanceof Error?e.toString():e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=c,t.endGroup=u,t.group=function(e,t){return r(this,void 0,void 0,function*(){let r;c(e);try{r=yield t()}finally{u()}return r})},t.saveState=function(e,t){B.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}}),K=L(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(E.default.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(E.default.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${T.default.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'")}}});function V(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}var J,X=/*#__PURE__*/Object.defineProperty({getProxyUrl:function(e){let t,r,o="https:"===e.protocol;return V(e)||(r=o?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,r&&(t=new URL(r))),t},checkBypass:V},"__esModule",{value:!0});function Y(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||y.default.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,o,s){for(var n=Z(r,o,s),i=0,a=t.requests.length;i=this.maxSockets?s.requests.push(n):s.createSocket(n,function(t){function r(){s.emit("free",t,n)}function o(e){s.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)})},Y.prototype.createSocket=function(e,t){var r=this,o={};r.sockets.push(o);var s=ee({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),J("making CONNECT request");var n=r.request(s);function i(s,i,a){var c;return n.removeAllListeners(),i.removeAllListeners(),200!==s.statusCode?(J("tunneling socket could not be established, statusCode=%d",s.statusCode),i.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+s.statusCode)).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):a.length>0?(J("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)):(J("tunneling connection has established"),r.sockets[r.sockets.indexOf(o)]=i,t(i))}n.useChunkedEncodingByDefault=!1,n.once("response",function(e){e.upgrade=!0}),n.once("upgrade",function(e,t,r){process.nextTick(function(){i(e,t,r)})}),n.once("connect",i),n.once("error",function(t){n.removeAllListeners(),J("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, cause="+t.message);s.code="ECONNRESET",e.request.emit("error",s),r.removeSocket(o)}),n.end()},Y.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 te={httpOverHttp:function(e){var t=new Y(e);return t.request=y.default.request,t},httpsOverHttp:function(e){var t=new Y(e);return t.request=y.default.request,t.createSocket=Q,t.defaultPort=443,t},httpOverHttps:function(e){var t=new Y(e);return t.request=_.default.request,t},httpsOverHttps:function(e){var t=new Y(e);return t.request=_.default.request,t.createSocket=Q,t.defaultPort=443,t},debug:J=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(){}},re=L(function(e,t){let r;var o,s,n;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"}(s=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(n=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=X.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],c=["OPTIONS","GET","DELETE","HEAD"];class u extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,u.prototype)}}t.HttpClientError=u;class l{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=l,t.isHttps=function(e){return"https:"===new URL(e).protocol};class p{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[s.Accept]=this._getExistingOrDefaultHeader(t,s.Accept,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.ApplicationJson);let i=await this.patch(e,o,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,s){if(this._disposed)throw new Error("Client has already been disposed.");let n,u=new URL(t),l=this._prepareRequest(e,u,s),p=this._allowRetries&&-1!=c.indexOf(e)?this._maxRetries+1:1,d=0;for(;d0;){const o=n.message.headers.location;if(!o)break;let i=new URL(o);if("https:"==u.protocol&&u.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 n.readBody(),i.hostname!==u.hostname)for(let e in s)"authorization"===e.toLowerCase()&&delete s[e];l=this._prepareRequest(e,i,s),n=await this.requestRaw(l,r),t--}if(-1==a.indexOf(n.message.statusCode))return n;d+=1,d{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 s=!1,n=(e,t)=>{s||(s=!0,r(e,t))},i=e.httpModule.request(e.options,e=>{let t=new l(e);n(null,t)});i.on("socket",e=>{o=e}),i.setTimeout(this._socketTimeout||18e4,()=>{o&&o.end(),n(new Error("Request timeout: "+e.options.path),null)}),i.on("error",function(e){n(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 s="https:"===o.parsedUrl.protocol;o.httpModule=s?_.default:y.default;const n=s?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):n,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 s;return this.requestOptions&&this.requestOptions.headers&&(o=(s=this.requestOptions.headers,Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}))[t]),e[t]||o||r}_getAgent(e){let t,o=X.getProxyUrl(e),s=o&&o.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const n="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||y.default.globalAgent.maxSockets),s){let e;r||(r=te);const s="https:"===o.protocol;e=n?s?r.httpsOverHttps:r.httpsOverHttp:s?r.httpOverHttps:r.httpOverHttp,t=e({maxSockets:i,keepAlive:this._keepAlive,proxy:{proxyAuth:`${o.username}:${o.password}`,host:o.hostname,port:o.port}}),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=n?new _.default.Agent(e):new y.default.Agent(e),this._agent=t}return t||(t=n?_.default.globalAgent:y.default.globalAgent),n&&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,s)=>{const n=e.message.statusCode,i={statusCode:n,result:null,headers:{}};let a,c;n==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,p.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(n>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+n+")";let t=new u(e,n);t.result=i.result,s(t)}else r(i)})}}t.HttpClient=p}),oe=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const n=s(re);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 n.HttpClient).getAgent(e)},t.getApiBaseUrl=function(){return process.env.GITHUB_API_URL||"https://api.github.com"}});function se(){return"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var ne=function e(t,r,o,s){if("function"!=typeof o)throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(r)?r.reverse().reduce(function(r,o){return e.bind(null,t,o,r,s)},o)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,s)},o)():o(s)})},ie=function(e,t,r,o){var s=o;e.registry[r]||(e.registry[r]=[]),"before"===t&&(o=function(e,t){return Promise.resolve().then(s.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 s(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 s(e,t)})}),e.registry[r].push({hook:o,orig:s})},ae=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)}},ce=Function.bind,ue=ce.bind(ce);function le(e,t,r){var o=ue(ae,null).apply(null,r?[t,r]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(function(o){var s=r?[t,o,r]:[t,o];e[o]=e.api[o]=ue(ie,null).apply(null,s)})}function pe(){var e={registry:{}},t=ne.bind(null,e);return le(t,e),t}var de=!1;function me(){return de||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),de=!0),pe()}me.Singular=function(){var e={registry:{}},t=ne.bind(null,e,"h");return le(t,e,"h"),t}.bind(),me.Collection=pe.bind();var he=me,ge=me.Singular,fe=me.Collection;function be(e){return"[object Object]"===Object.prototype.toString.call(e)}function Te(e){var t,r;return!1!==be(e)&&(void 0===(t=e.constructor)||!1!==be(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function Ee(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(o=>{Te(t[o])?o in e?r[o]=Ee(e[o],t[o]):Object.assign(r,{[o]:t[o]}):Object.assign(r,{[o]:t[o]})}),r}function we(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function ye(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),{}):{},we(r),we(r.headers);const s=Ee(e||{},r);return e&&e.mediaType.previews.length&&(s.mediaType.previews=e.mediaType.previews.filter(e=>!s.mediaType.previews.includes(e)).concat(s.mediaType.previews)),s.mediaType.previews=s.mediaType.previews.map(e=>e.replace(/-preview/,"")),s}he.Hook=me,he.Singular=ge,he.Collection=fe;const _e=/\{[^}]+\}/g;function ve(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Ae(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function Se(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 Oe(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Re(e,t,r){return t="+"===e||"#"===e?Se(t):Oe(t),r?Oe(r)+"="+t:t}function ke(e){return null!=e}function Pe(e){return";"===e||"&"===e||"?"===e}function Ce(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,o,s){if(o){let e="";const s=[];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);s.push(function(e,t,r,o){var s=e[r],n=[];if(ke(s)&&""!==s)if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)s=s.toString(),o&&"*"!==o&&(s=s.substring(0,parseInt(o,10))),n.push(Re(t,s,Pe(t)?r:""));else if("*"===o)Array.isArray(s)?s.filter(ke).forEach(function(e){n.push(Re(t,e,Pe(t)?r:""))}):Object.keys(s).forEach(function(e){ke(s[e])&&n.push(Re(t,s[e],e))});else{const e=[];Array.isArray(s)?s.filter(ke).forEach(function(r){e.push(Re(t,r))}):Object.keys(s).forEach(function(r){ke(s[r])&&(e.push(Oe(r)),e.push(Re(t,s[r].toString())))}),Pe(t)?n.push(Oe(r)+"="+e.join(",")):0!==e.length&&n.push(e.join(","))}else";"===t?ke(s)&&n.push(Oe(r)):""!==s||"&"!==t&&"?"!==t?""===s&&n.push(""):n.push(Oe(r)+"=");return n}(t,e,o[1],o[2]||o[3]))}),e&&"+"!==e){var n=",";return"?"===e?n="&":"#"!==e&&(n=e),(0!==s.length?e:"")+s.join(n)}return s.join(",")}return Se(s)})}function Ge(e){let t,r=e.method.toUpperCase(),o=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},e.headers),n=Ae(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(_e);return t?t.map(ve).reduce((e,t)=>e.concat(t),[]):[]}(o);var a;o=(a=o,{expand:Ce.bind(null,a)}).expand(n),/^http/.test(o)||(o=e.baseUrl+o);const c=Ae(n,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(s.accept)&&(e.mediaType.format&&(s.accept=s.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=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.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:s["content-length"]=0,s["content-type"]||void 0===t||(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:o,headers:s},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function xe(e,t,r){return Ge(ye(e,t,r))}const $e=function e(t,r){const o=ye(t,r),s=xe.bind(null,o);return Object.assign(s,{DEFAULTS:o,defaults:e.bind(null,o),merge:ye.bind(null,o),parse:Ge})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/6.0.10 ${se()}`},mediaType:{format:"",previews:[]}}),Le=R.default.Readable,Ue=Symbol("buffer"),De=Symbol("type");class Fe{constructor(){this[De]="";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 n=r.timeout;let i=void 0===n?0:n;null==e?e=null:Me(e)?e=Buffer.from(e.toString()):ze(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 R.default||(e=Buffer.from(String(e)))),this[Ie]={body:e,disturbed:!1,error:null},this.size=s,this.timeout=i,e instanceof R.default&&e.on("error",function(e){const r="AbortError"===e.name?e:new He(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[Ie].error=r})}function Ne(){var e=this;if(this[Ie].disturbed)return qe.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Ie].disturbed=!0,this[Ie].error)return qe.Promise.reject(this[Ie].error);let t=this.body;if(null===t)return qe.Promise.resolve(Buffer.alloc(0));if(ze(t)&&(t=t.stream()),Buffer.isBuffer(t))return qe.Promise.resolve(t);if(!(t instanceof R.default))return qe.Promise.resolve(Buffer.alloc(0));let r=[],o=0,s=!1;return new qe.Promise(function(n,i){let a;e.timeout&&(a=setTimeout(function(){s=!0,i(new He(`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 He(`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 He(`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 He(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function Me(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 ze(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 We(e){let t,r,o=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof R.default&&"function"!=typeof o.getBoundary&&(t=new Be,r=new Be,o.pipe(t),o.pipe(r),e[Ie].body=t,o=r),o}function Ke(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Me(e)?"application/x-www-form-urlencoded;charset=UTF-8":ze(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 R.default?null:"text/plain;charset=UTF-8"}function Ve(e){const t=e.body;return null===t?0:ze(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}qe.prototype={get body(){return this[Ie].body},get bodyUsed(){return this[Ie].disturbed},arrayBuffer(){return Ne.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 Ne.call(this).then(function(t){return Object.assign(new Fe([],{type:e.toLowerCase()}),{[Ue]:t})})},json(){var e=this;return Ne.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return qe.Promise.reject(new He(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return Ne.call(this).then(function(e){return e.toString()})},buffer(){return Ne.call(this)},textConverted(){var e=this;return Ne.call(this).then(function(t){return function(e,t){if("function"!=typeof je)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let o,s,n="utf-8";return r&&(o=/charset=([^;]*)/i.exec(r)),s=e.slice(0,1024).toString(),!o&&s&&(o=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[et]=Object.create(null),e instanceof tt){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r);return}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){Ye(e=`${e}`);const t=Ze(this[et],e);return void 0===t?null:this[et][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=rt(this),o=0;for(;o1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[et]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[et][t].join(", ")}:function(t){return[t.toLowerCase(),e[et][t].join(", ")]})}tt.prototype.entries=tt.prototype[Symbol.iterator],Object.defineProperty(tt.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(tt.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 ot=Symbol("internal");function st(e,t){const r=Object.create(nt);return r[ot]={target:e,kind:t,index:0},r}const nt=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==nt)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[ot];const t=e.index,r=rt(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[ot].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function it(e){const t=Object.assign({__proto__:null},e[et]),r=Ze(e[et],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(nt,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const at=Symbol("Response internals"),ct=y.default.STATUS_CODES;class ut{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qe.call(this,e,t);const r=t.status||200,o=new tt(t.headers);if(null!=e&&!o.has("Content-Type")){const t=Ke(e);t&&o.append("Content-Type",t)}this[at]={url:t.url,status:r,statusText:t.statusText||ct[r],headers:o,counter:t.counter}}get url(){return this[at].url||""}get status(){return this[at].status}get ok(){return this[at].status>=200&&this[at].status<300}get redirected(){return this[at].counter>0}get statusText(){return this[at].statusText}get headers(){return this[at].headers}clone(){return new ut(We(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}qe.mixIn(ut.prototype),Object.defineProperties(ut.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(ut.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const lt=Symbol("Request internals"),pt=k.default.parse,dt=k.default.format,mt="destroy"in R.default.Readable.prototype;function ht(e){return"object"==typeof e&&"object"==typeof e[lt]}class gt{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht(e)?t=pt(e.url):(t=pt(e&&e.href?e.href:`${e}`),e={});let o=r.method||e.method||"GET";if(o=o.toUpperCase(),(null!=r.body||ht(e)&&null!==e.body)&&("GET"===o||"HEAD"===o))throw new TypeError("Request with GET/HEAD method cannot have body");let s=null!=r.body?r.body:ht(e)&&null!==e.body?We(e):null;qe.call(this,s,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const n=new tt(r.headers||e.headers||{});if(null!=s&&!n.has("Content-Type")){const e=Ke(s);e&&n.append("Content-Type",e)}let i=ht(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[lt]={method:o,redirect:r.redirect||e.redirect||"follow",headers:n,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[lt].method}get url(){return dt(this[lt].parsedURL)}get headers(){return this[lt].headers}get redirect(){return this[lt].redirect}get signal(){return this[lt].signal}clone(){return new gt(this)}}function ft(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}qe.mixIn(gt.prototype),Object.defineProperty(gt.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(gt.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(ft.prototype=Object.create(Error.prototype)).constructor=ft,ft.prototype.name="AbortError";const bt=R.default.PassThrough,Tt=k.default.resolve;function Et(e,t){if(!Et.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return qe.Promise=Et.Promise,new Et.Promise(function(r,o){const s=new gt(e,t),n=function(e){const t=e[lt].parsedURL,r=new tt(e[lt].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 R.default.Readable&&!mt)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=Ve(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:it(r),agent:s})}(s),i=("https:"===n.protocol?_.default:y.default).request,a=s.signal;let c=null;const u=function(){let e=new ft("The user aborted a request.");o(e),s.body&&s.body instanceof R.default.Readable&&s.body.destroy(e),c&&c.body&&c.body.emit("error",e)};if(a&&a.aborted)return void u();const l=function(){u(),m()},p=i(n);let d;function m(){p.abort(),a&&a.removeEventListener("abort",l),clearTimeout(d)}a&&a.addEventListener("abort",l),s.timeout&&p.once("socket",function(e){d=setTimeout(function(){o(new He(`network timeout at: ${s.url}`,"request-timeout")),m()},s.timeout)}),p.on("error",function(e){o(new He(`request to ${s.url} failed, reason: ${e.message}`,"system",e)),m()}),p.on("response",function(e){clearTimeout(d);const t=function(e){const t=new tt;for(const r of Object.keys(e))if(!Je.test(r))if(Array.isArray(e[r]))for(const o of e[r])Xe.test(o)||(void 0===t[et][r]?t[et][r]=[o]:t[et][r].push(o));else Xe.test(e[r])||(t[et][r]=[e[r]]);return t}(e.headers);if(Et.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:Tt(s.url,n);switch(s.redirect){case"error":return o(new He(`uri requested responds with a redirect, redirect mode is set to error: ${s.url}`,"no-redirect")),void m();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 He(`maximum redirect reached at: ${s.url}`,"max-redirect")),void m();const n={headers:new tt(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===Ve(s)?(o(new He("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void m()):(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(Et(new gt(i,n))),void m())}}e.once("end",function(){a&&a.removeEventListener("abort",l)});let n=e.pipe(new bt);const i={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:s.size,timeout:s.timeout,counter:s.counter},u=t.get("Content-Encoding");return s.compress&&"HEAD"!==s.method&&null!==u&&204!==e.statusCode&&304!==e.statusCode?"gzip"==u||"x-gzip"==u?(n=n.pipe(P.default.createGunzip({flush:P.default.Z_SYNC_FLUSH,finishFlush:P.default.Z_SYNC_FLUSH})),c=new ut(n,i),void r(c)):"deflate"!=u&&"x-deflate"!=u?"br"==u&&"function"==typeof P.default.createBrotliDecompress?(n=n.pipe(P.default.createBrotliDecompress()),c=new ut(n,i),void r(c)):(c=new ut(n,i),void r(c)):void e.pipe(new bt).once("data",function(e){n=n.pipe(8==(15&e[0])?P.default.createInflate():P.default.createInflateRaw()),c=new ut(n,i),r(c)}):(c=new ut(n,i),void r(c))}),function(e,t){const r=t.body;null===r?e.end():ze(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(p,s)})}Et.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Et.Promise=global.Promise;class wt extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var yt=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 Rt 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:()=>(Ot(new wt("[@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 kt(e){(Te(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||Et)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(s=>{r=s.url,t=s.status;for(const e of s.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new Rt(s.statusText,t,{headers:o,request:e})}if(304===t)throw new Rt("Not modified",t,{headers:o,request:e});if(t>=400)return s.text().then(r=>{const s=new Rt(r,t,{headers:o,request:e});try{let e=JSON.parse(s.message);Object.assign(s,e),s.message=s.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw s});const n=s.headers.get("content-type");return/application\/json/.test(n)?s.json():!n||/^text\/|charset=utf-8$/.test(n)?s.text():function(e){return e.arrayBuffer()}(s)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof Rt)throw t;throw new Rt(t.message,500,{headers:o,request:e})})}const Pt=function e(t,r){const o=t.defaults(r);return Object.assign(function(t,r){const s=o.merge(t,r);if(!s.request||!s.request.hook)return kt(o.parse(s));const n=(e,t)=>kt(o.parse(o.merge(e,t)));return Object.assign(n,{endpoint:o,defaults:e.bind(null,o)}),s.request.hook(n,s)},{endpoint:o,defaults:e.bind(null,o)})}($e,{headers:{"user-agent":`octokit-request.js/5.4.12 ${se()}`}});class Ct 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 Gt=["method","baseUrl","url","headers","request","query","mediaType"],xt=/\/api\/v3\/?$/;function $t(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,s=Object.keys(o).reduce((e,t)=>Gt.includes(t)?(e[t]=o[t],e):(e.variables||(e.variables={}),e.variables[t]=o[t],e),{}),n=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return xt.test(n)&&(s.url=n.replace(xt,"/api/graphql")),e(s).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new Ct(s,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:$t.bind(null,r),endpoint:Pt.endpoint})}async function Lt(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Ut(e,t,r,o){const s=t.endpoint.merge(r,o);return s.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),t(s)}$t(Pt,{headers:{"user-agent":`octokit-graphql.js/4.5.8 ${se()}`},method:"POST",url:"/graphql"});const Dt=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(Lt.bind(null,e),{hook:Ut.bind(null,e)})},Ft="3.2.4";class Ht{constructor(e={}){const t=new fe,r={baseUrl:Pt.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/${Ft} ${se()}`].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=Pt.defaults(r),this.graphql=(o=this.request,$t(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,s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",s.hook),this.auth=s}else if(e.auth){const r=Dt(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}}Ht.VERSION=Ft,Ht.plugins=[];var jt={__proto__:null,Octokit:Ht};const It={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 Bt(e,t,r,o,s){const n=e.request.defaults(o);return Object.assign(function(...o){let i=n.endpoint.merge(...o);if(s.mapToData)return i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0}),n(i);if(s.renamed){const[o,n]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${o}.${n}()`)}if(s.deprecated&&e.log.warn(s.deprecated),s.renamedParameters){const i=n.endpoint.merge(...o);for(const[o,n]of Object.entries(s.renamedParameters))o in i&&(e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${r}()". Use "${n}" instead`),n in i||(i[n]=i[o]),delete i[o]);return n(i)}return n(...o)},n)}function qt(e){return function(e,t){const r={};for(const[o,s]of Object.entries(t))for(const[t,n]of Object.entries(s)){const[s,i,a]=n,[c,u]=s.split(/ /),l=Object.assign({method:c,url:u},i);r[o]||(r[o]={}),r[o][t]=a?Bt(e,o,t,l,a):e.request.defaults(l)}return r}(e,It)}qt.VERSION="4.4.1";var Nt=qt;function Mt(e,t,r){const o="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),s="function"==typeof t?t:e.request,n=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 s=Object.keys(e.data)[0];return e.data=e.data[s],void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=o,e}(await s({method:n,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}})}}function zt(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),Wt(e,[],Mt(e,t,r)[Symbol.asyncIterator](),o)}function Wt(e,t,r,o){return r.next().then(s=>{if(s.done)return t;let n=!1;return t=t.concat(o?o(s.value,function(){n=!0}):s.value.data),n?t:Wt(e,t,r,o)})}function Kt(e){return{paginate:Object.assign(zt.bind(null,e),{iterator:Mt.bind(null,e)})}}Object.assign(zt,{iterator:Mt}),Kt.VERSION="2.6.2";var Vt=Kt,Jt=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokitOptions=t.GitHub=t.context=void 0;const n=s(K),i=s(oe);t.context=new n.Context;const a=i.getApiBaseUrl(),c={baseUrl:a,request:{agent:i.getProxyAgent(a)}};t.GitHub=jt.Octokit.plugin(Nt,Vt).defaults(c),t.getOctokitOptions=function(e,t){const r=Object.assign({},t||{}),o=i.getAuthString(e,r);return o&&(r.auth=o),r}}),Xt=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokit=t.context=void 0;const n=s(K);t.context=new n.Context,t.getOctokit=function(e,t){return new Jt.GitHub(Jt.getOctokitOptions(e,t))}}),Yt=L(function(e,t){var r,o=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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 s(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(t,"__esModule",{value:!0}),t.chmod=(r=E.default.promises).chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return o(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},t.isDirectory=function(e,r=!1){return o(this,void 0,void 0,function*(){return(r?yield t.stat(e):yield t.lstat(e)).isDirectory()})},t.isRooted=function(e){if(!(e=function(e){return e=e||"",t.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return t.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},t.mkdirP=function e(r,s=1e3,n=1){return o(this,void 0,void 0,function*(){if(S.default.ok(r,"a path argument must be provided"),r=w.default.resolve(r),n>=s)return t.mkdir(r);try{return void(yield t.mkdir(r))}catch(o){if("ENOENT"===o.code)return yield e(w.default.dirname(r),s,n+1),void(yield t.mkdir(r));{let e;try{e=yield t.stat(r)}catch(e){throw o}if(!e.isDirectory())throw o}}})},t.tryGetExecutablePath=function(e,r){return o(this,void 0,void 0,function*(){let o;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile())if(t.IS_WINDOWS){const t=w.default.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t))return e}else if(s(o))return e;const n=e;for(const i of r){e=n+i,o=void 0;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const r=w.default.dirname(e),o=w.default.basename(e).toUpperCase();for(const s of yield t.readdir(r))if(o===s.toUpperCase()){e=w.default.join(r,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(s(o))return e}}return""})}}),Qt=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})};const Zt=O.default.promisify(C.default.exec);function er(e){return Qt(this,void 0,void 0,function*(){if(Yt.IS_WINDOWS){try{(yield Yt.isDirectory(e,!0))?yield Zt(`rd /s /q "${e}"`):yield Zt(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield Yt.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield Yt.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield Zt(`rm -rf "${e}"`):yield Yt.unlink(e)}})}function tr(e){return Qt(this,void 0,void 0,function*(){yield Yt.mkdirP(e)})}function rr(e,t,r,o){return Qt(this,void 0,void 0,function*(){if(r>=255)return;r++,yield tr(t);const s=yield Yt.readdir(e);for(const n of s){const s=`${e}/${n}`,i=`${t}/${n}`;(yield Yt.lstat(s)).isDirectory()?yield rr(s,i,r,o):yield or(s,i,o)}yield Yt.chmod(t,(yield Yt.stat(e)).mode)})}function or(e,t,r){return Qt(this,void 0,void 0,function*(){if((yield Yt.lstat(e)).isSymbolicLink()){try{yield Yt.lstat(t),yield Yt.unlink(t)}catch(e){"EPERM"===e.code&&(yield Yt.chmod(t,"0666"),yield Yt.unlink(t))}const r=yield Yt.readlink(e);yield Yt.symlink(r,t,Yt.IS_WINDOWS?"junction":null)}else(yield Yt.exists(t))&&!r||(yield Yt.copyFile(e,t))})}var sr=/*#__PURE__*/Object.defineProperty({cp:function(e,t,r={}){return Qt(this,void 0,void 0,function*(){const{force:o,recursive:s}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(r),n=(yield Yt.exists(t))?yield Yt.stat(t):null;if(n&&n.isFile()&&!o)return;const i=n&&n.isDirectory()?w.default.join(t,w.default.basename(e)):t;if(!(yield Yt.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield Yt.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield rr(e,i,0,o)}else{if(""===w.default.relative(e,i))throw new Error(`'${i}' and '${e}' are the same file`);yield or(e,i,o)}})},mv:function(e,t,r={}){return Qt(this,void 0,void 0,function*(){if(yield Yt.exists(t)){let o=!0;if((yield Yt.isDirectory(t))&&(t=w.default.join(t,w.default.basename(e)),o=yield Yt.exists(t)),o){if(null!=r.force&&!r.force)throw new Error("Destination already exists");yield er(t)}}yield tr(w.default.dirname(t)),yield Yt.rename(e,t)})},rmRF:er,mkdirP:tr,which:function e(t,r){return Qt(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(r&&!(yield e(t,!1)))throw Yt.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if(Yt.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(w.default.delimiter))t&&e.push(t);if(Yt.isRooted(t))return(yield Yt.tryGetExecutablePath(t,e))||"";if(t.includes("/")||Yt.IS_WINDOWS&&t.includes("\\"))return"";const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(w.default.delimiter))e&&r.push(e);for(const o of r){const r=yield Yt.tryGetExecutablePath(o+w.default.sep+t,e);if(r)return r}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}},"__esModule",{value:!0}),nr=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})},ir=$&&$.__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};const ar=ir(T.default),cr=ir(A.default),ur=ir(C.default),lr=ir(w.default),pr=ir(sr),dr=ir(Yt),mr="win32"===process.platform;class hr extends cr.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(hr.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())}}var gr=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})};const fr=($&&$.__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})(/*#__PURE__*/Object.defineProperty({ToolRunner:class extends cr.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 s=t?"":"[command]";if(mr)if(this._isCmdFile()){s+=r;for(const e of o)s+=` ${e}`}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of o)s+=` ${e}`}else{s+=this._windowsQuoteCmdArg(r);for(const e of o)s+=` ${this._windowsQuoteCmdArg(e)}`}else{s+=r;for(const e of o)s+=` ${e}`}return s}_processLineBuffer(e,t,r){try{let o=t+e.toString(),s=o.indexOf(ar.EOL);for(;s>-1;)r(o.substring(0,s)),o=o.substring(s+ar.EOL.length),s=o.indexOf(ar.EOL);t=o}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){return mr&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(mr&&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='"',s=!0;for(let t=e.length;t>0;t--)o+=e[t-1],s&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(s=!0,o+='"'):s=!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 nr(this,void 0,void 0,function*(){return!dr.isRooted(this.toolPath)&&(this.toolPath.includes("/")||mr&&this.toolPath.includes("\\"))&&(this.toolPath=lr.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield pr.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)+ar.EOL);const o=new hr(r,this.toolPath);o.on("debug",e=>{this._debug(e)});const s=this._getSpawnFileName(),n=ur.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));if(n.stdout&&n.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)})}),n.stderr&&n.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)})}),n.on("error",e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()}),n.on("exit",e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()}),n.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)=>{n.removeAllListeners(),r?t(r):e(o)}),this.options.input){if(!n.stdin)throw new Error("child process missing stdin");n.stdin.end(this.options.input)}})})}},argStringToArray:function(e){const t=[];let r=!1,o=!1,s="";function n(e){o&&'"'!==e&&(s+="\\"),s+=e,o=!1}for(let i=0;i0&&(t.push(s),s=""):o?n(a):r=!r}return s.length>0&&t.push(s.trim()),t}},"__esModule",{value:!0}));var br=function(e,t,r){return gr(this,void 0,void 0,function*(){const o=fr.argStringToArray(e);if(0===o.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=o[0];return t=o.slice(1).concat(t||[]),new fr.ToolRunner(s,t,r).exec()})};const Tr="\\\\/",Er=`[^${Tr}]`,wr="\\.",yr="\\/",_r="[^/]",vr=`(?:${yr}|$)`,Ar=`(?:^|${yr})`,Sr=`${wr}{1,2}${vr}`,Or={DOT_LITERAL:wr,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:yr,ONE_CHAR:"(?=.)",QMARK:_r,END_ANCHOR:vr,DOTS_SLASH:Sr,NO_DOT:`(?!${wr})`,NO_DOTS:`(?!${Ar}${Sr})`,NO_DOT_SLASH:`(?!${wr}{0,1}${vr})`,NO_DOTS_SLASH:`(?!${Sr})`,QMARK_NO_DOT:`[^.${yr}]`,STAR:`${_r}*?`,START_ANCHOR:Ar,SEP:"/"},Rr={...Or,SLASH_LITERAL:`[${Tr}]`,QMARK:Er,STAR:`${Er}*?`,DOTS_SLASH:`${wr}{1,2}(?:[${Tr}]|$)`,NO_DOT:`(?!${wr})`,NO_DOTS:`(?!(?:^|[${Tr}])${wr}{1,2}(?:[${Tr}]|$))`,NO_DOT_SLASH:`(?!${wr}{0,1}(?:[${Tr}]|$))`,NO_DOTS_SLASH:`(?!${wr}{1,2}(?:[${Tr}]|$))`,QMARK_NO_DOT:`[^.${Tr}]`,START_ANCHOR:`(?:^|[${Tr}])`,END_ANCHOR:`(?:[${Tr}]|$)`,SEP:"\\"};var kr={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?Rr:Or},Pr=L(function(e,t){const{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:n}=kr;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(n,"\\$1"),t.toPosixSlashes=e=>e.replace(r,"/"),t.isWindows=()=>{if("{}".platform){const e="{}".platform.toLowerCase();return"win32"===e||"windows"===e}return!("undefined"==typeof process||!process.platform)&&"win32"===process.platform},t.removeBackslashes=e=>e.replace(o,e=>"\\"===e?"":e),t.escapeLast=(e,r,o)=>{const s=e.lastIndexOf(r,o);return-1===s?e:"\\"===e[s-1]?t.escapeLast(e,r,s-1):`${e.slice(0,s)}\\${e.slice(s)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let o=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(o=`(?:^(?!${o}).*$)`),o},t.basename=(e,{windows:t}={})=>{const r=e.split(t?/[\\/]/:"/"),o=r[r.length-1];return""===o?r[r.length-2]:o}}),Cr=Pr;const{CHAR_ASTERISK:Gr,CHAR_AT:xr,CHAR_BACKWARD_SLASH:$r,CHAR_COMMA:Lr,CHAR_DOT:Ur,CHAR_EXCLAMATION_MARK:Dr,CHAR_FORWARD_SLASH:Fr,CHAR_LEFT_CURLY_BRACE:Hr,CHAR_LEFT_PARENTHESES:jr,CHAR_LEFT_SQUARE_BRACKET:Ir,CHAR_PLUS:Br,CHAR_QUESTION_MARK:qr,CHAR_RIGHT_CURLY_BRACE:Nr,CHAR_RIGHT_PARENTHESES:Mr,CHAR_RIGHT_SQUARE_BRACKET:zr}=kr,Wr=e=>e===Fr||e===$r,Kr=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?Infinity:1)},{MAX_LENGTH:Vr,POSIX_REGEX_SOURCE:Jr,REGEX_NON_SPECIAL_CHARS:Xr,REGEX_SPECIAL_CHARS_BACKREF:Yr,REPLACEMENTS:Qr}=kr,Zr=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>Cr.escapeRegex(e)).join("..")}return r},eo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,to=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Qr[e]||e;const r={...t},o="number"==typeof r.maxLength?Math.min(Vr,r.maxLength):Vr;let s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);const n={type:"bos",value:"",output:r.prepend||""},i=[n],a=r.capture?"":"?:",c=kr.globChars(r.windows),u=kr.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:h,NO_DOT:g,NO_DOT_SLASH:f,NO_DOTS_SLASH:b,QMARK:T,QMARK_NO_DOT:E,STAR:w,START_ANCHOR:y}=c,_=e=>`(${a}(?:(?!${y}${e.dot?h:l}).)*?)`,v=r.dot?"":g,A=r.dot?T:E;let S=!0===r.bash?_(r):w;r.capture&&(S=`(${S})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const O={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Cr.removePrefix(e,O),s=e.length;const R=[],k=[],P=[];let C,G=n;const x=()=>O.index===s-1,$=O.peek=(t=1)=>e[O.index+t],L=O.advance=()=>e[++O.index]||"",U=()=>e.slice(O.index+1),D=(e="",t=0)=>{O.consumed+=e,O.index+=t},F=e=>{O.output+=null!=e.output?e.output:e.value,D(e.value)},H=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)L(),O.start++,e++;return e%2!=0&&(O.negated=!0,O.start++,!0)},j=e=>{O[e]++,P.push(e)},I=e=>{O[e]--,P.pop()},B=e=>{if("globstar"===G.type&&("slash"===e.type||"paren"===e.type||O.braces>0&&("comma"===e.type||"brace"===e.type)||!0===e.extglob||R.length&&("pipe"===e.type||"paren"===e.type)||(O.output=O.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=S,O.output+=G.output)),R.length&&"paren"!==e.type&&(R[R.length-1].inner+=e.value),(e.value||e.output)&&F(e),G&&"text"===G.type&&"text"===e.type)return G.output=(G.output||G.value)+e.value,void(G.value+=e.value);e.prev=G,i.push(e),G=e},q=(e,t)=>{const o={...u[t],conditions:1,inner:""};o.prev=G,o.parens=O.parens,o.output=O.output;const s=(r.capture?"(":"")+o.open;j("parens"),B({type:e,value:t,output:O.output?"":m}),B({type:"paren",extglob:!0,value:L(),output:s}),R.push(o)},N=e=>{let o,s=e.close+(r.capture?")":"");if("negate"===e.type){let n=S;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(n=_(r)),(n!==S||x()||/^\)+$/.test(U()))&&(s=e.close=`)$))${n}`),e.inner.includes("*")&&(o=U())&&/^\.[^\\/.]+$/.test(o)){const r=to(o,{...t,fastpaths:!1}).output;s=e.close=`)${r})${n})`}"bos"===e.prev.type&&(O.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:C,output:s}),I("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let o=!1,s=e.replace(Yr,(e,t,r,s,n,i)=>"\\"===s?(o=!0,e):"?"===s?t?t+s+(n?T.repeat(n.length):""):0===i?A+(n?T.repeat(n.length):""):T.repeat(r.length):"."===s?l.repeat(r.length):"*"===s?t?t+s+(n?S:""):S:t?e:`\\${e}`);return!0===o&&(s=!0===r.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===e&&!0===r.contains?(O.output=e,O):(O.output=Cr.wrapOutput(s,O,t),O)}for(;!x();){if(C=L(),"\0"===C)continue;if("\\"===C){const e=$();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){C+="\\",B({type:"text",value:C});continue}const t=/^\\+/.exec(U());let o=0;if(t&&t[0].length>2&&(o=t[0].length,O.index+=o,o%2!=0&&(C+="\\")),!0===r.unescape?C=L():C+=L(),0===O.brackets){B({type:"text",value:C});continue}}if(O.brackets>0&&("]"!==C||"["===G.value||"[^"===G.value)){if(!1!==r.posix&&":"===C){const e=G.value.slice(1);if(e.includes("[")&&(G.posix=!0,e.includes(":"))){const e=G.value.lastIndexOf("["),t=G.value.slice(0,e),r=G.value.slice(e+2),o=Jr[r];if(o){G.value=t+o,O.backtrack=!0,L(),n.output||1!==i.indexOf(G)||(n.output=m);continue}}}("["===C&&":"!==$()||"-"===C&&"]"===$())&&(C=`\\${C}`),"]"!==C||"["!==G.value&&"[^"!==G.value||(C=`\\${C}`),!0===r.posix&&"!"===C&&"["===G.value&&(C="^"),G.value+=C,F({value:C});continue}if(1===O.quotes&&'"'!==C){C=Cr.escapeRegex(C),G.value+=C,F({value:C});continue}if('"'===C){O.quotes=1===O.quotes?0:1,!0===r.keepQuotes&&B({type:"text",value:C});continue}if("("===C){j("parens"),B({type:"paren",value:C});continue}if(")"===C){if(0===O.parens&&!0===r.strictBrackets)throw new SyntaxError(eo("opening","("));const e=R[R.length-1];if(e&&O.parens===e.parens+1){N(R.pop());continue}B({type:"paren",value:C,output:O.parens?")":"\\)"}),I("parens");continue}if("["===C){if(!0!==r.nobracket&&U().includes("]"))j("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(eo("closing","]"));C=`\\${C}`}B({type:"bracket",value:C});continue}if("]"===C){if(!0===r.nobracket||G&&"bracket"===G.type&&1===G.value.length){B({type:"text",value:C,output:`\\${C}`});continue}if(0===O.brackets){if(!0===r.strictBrackets)throw new SyntaxError(eo("opening","["));B({type:"text",value:C,output:`\\${C}`});continue}I("brackets");const e=G.value.slice(1);if(!0===G.posix||"^"!==e[0]||e.includes("/")||(C=`/${C}`),G.value+=C,F({value:C}),!1===r.literalBrackets||Cr.hasRegexChars(e))continue;const t=Cr.escapeRegex(G.value);if(O.output=O.output.slice(0,-G.value.length),!0===r.literalBrackets){O.output+=t,G.value=t;continue}G.value=`(${a}${t}|${G.value})`,O.output+=G.value;continue}if("{"===C&&!0!==r.nobrace){j("braces");const e={type:"brace",value:C,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};k.push(e),B(e);continue}if("}"===C){const e=k[k.length-1];if(!0===r.nobrace||!e){B({type:"text",value:C,output:C});continue}let t=")";if(!0===e.dots){const e=i.slice(),o=[];for(let t=e.length-1;t>=0&&(i.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&o.unshift(e[t].value);t=Zr(o,r),O.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=O.output.slice(0,e.outputIndex),o=O.tokens.slice(e.tokensIndex);e.value=e.output="\\{",C=t="\\}",O.output=r;for(const e of o)O.output+=e.output||e.value}B({type:"brace",value:C,output:t}),I("braces"),k.pop();continue}if("|"===C){R.length>0&&R[R.length-1].conditions++,B({type:"text",value:C});continue}if(","===C){let e=C;const t=k[k.length-1];t&&"braces"===P[P.length-1]&&(t.comma=!0,e="|"),B({type:"comma",value:C,output:e});continue}if("/"===C){if("dot"===G.type&&O.index===O.start+1){O.start=O.index+1,O.consumed="",O.output="",i.pop(),G=n;continue}B({type:"slash",value:C,output:d});continue}if("."===C){if(O.braces>0&&"dot"===G.type){"."===G.value&&(G.output=l);const e=k[k.length-1];G.type="dots",G.output+=C,G.value+=C,e.dots=!0;continue}if(O.braces+O.parens===0&&"bos"!==G.type&&"slash"!==G.type){B({type:"text",value:C,output:l});continue}B({type:"dot",value:C,output:l});continue}if("?"===C){if((!G||"("!==G.value)&&!0!==r.noextglob&&"("===$()&&"?"!==$(2)){q("qmark",C);continue}if(G&&"paren"===G.type){const e=$();let t=C;("("===G.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(U()))&&(t=`\\${C}`),B({type:"text",value:C,output:t});continue}if(!0!==r.dot&&("slash"===G.type||"bos"===G.type)){B({type:"qmark",value:C,output:E});continue}B({type:"qmark",value:C,output:T});continue}if("!"===C){if(!0!==r.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){q("negate",C);continue}if(!0!==r.nonegate&&0===O.index){H();continue}}if("+"===C){if(!0!==r.noextglob&&"("===$()&&"?"!==$(2)){q("plus",C);continue}if(G&&"("===G.value||!1===r.regex){B({type:"plus",value:C,output:p});continue}if(G&&("bracket"===G.type||"paren"===G.type||"brace"===G.type)||O.parens>0){B({type:"plus",value:C});continue}B({type:"plus",value:p});continue}if("@"===C){if(!0!==r.noextglob&&"("===$()&&"?"!==$(2)){B({type:"at",extglob:!0,value:C,output:""});continue}B({type:"text",value:C});continue}if("*"!==C){"$"!==C&&"^"!==C||(C=`\\${C}`);const e=Xr.exec(U());e&&(C+=e[0],O.index+=e[0].length),B({type:"text",value:C});continue}if(G&&("globstar"===G.type||!0===G.star)){G.type="star",G.star=!0,G.value+=C,G.output=S,O.backtrack=!0,O.globstar=!0,D(C);continue}let t=U();if(!0!==r.noextglob&&/^\([^?]/.test(t)){q("star",C);continue}if("star"===G.type){if(!0===r.noglobstar){D(C);continue}const o=G.prev,s=o.prev,n="slash"===o.type||"bos"===o.type,i=s&&("star"===s.type||"globstar"===s.type);if(!0===r.bash&&(!n||t[0]&&"/"!==t[0])){B({type:"star",value:C,output:""});continue}if(!(n||"paren"===o.type||O.braces>0&&("comma"===o.type||"brace"===o.type)||R.length&&("pipe"===o.type||"paren"===o.type))){B({type:"star",value:C,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[O.index+4];if(r&&"/"!==r)break;t=t.slice(3),D("/**",3)}if("bos"===o.type&&x()){G.type="globstar",G.value+=C,G.output=_(r),O.output=G.output,O.globstar=!0,D(C);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!i&&x()){O.output=O.output.slice(0,-(o.output+G.output).length),o.output=`(?:${o.output}`,G.type="globstar",G.output=_(r)+(r.strictSlashes?")":"|$)"),G.value+=C,O.globstar=!0,O.output+=o.output+G.output,D(C);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";O.output=O.output.slice(0,-(o.output+G.output).length),o.output=`(?:${o.output}`,G.type="globstar",G.output=`${_(r)}${d}|${d}${e})`,G.value+=C,O.output+=o.output+G.output,O.globstar=!0,D(C+L()),B({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===t[0]){G.type="globstar",G.value+=C,G.output=`(?:^|${d}|${_(r)}${d})`,O.output=G.output,O.globstar=!0,D(C+L()),B({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-G.output.length),G.type="globstar",G.output=_(r),G.value+=C,O.output+=G.output,O.globstar=!0,D(C);continue}const o={type:"star",value:C,output:S};!0!==r.bash?!G||"bracket"!==G.type&&"paren"!==G.type||!0!==r.regex?(O.index!==O.start&&"slash"!==G.type&&"dot"!==G.type||("dot"===G.type?(O.output+=f,G.output+=f):!0===r.dot?(O.output+=b,G.output+=b):(O.output+=v,G.output+=v),"*"!==$()&&(O.output+=m,G.output+=m)),B(o)):(o.output=C,B(o)):(o.output=".*?","bos"!==G.type&&"slash"!==G.type||(o.output=v+o.output),B(o))}for(;O.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing","]"));O.output=Cr.escapeLast(O.output,"["),I("brackets")}for(;O.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing",")"));O.output=Cr.escapeLast(O.output,"("),I("parens")}for(;O.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing","}"));O.output=Cr.escapeLast(O.output,"{"),I("braces")}if(!0===r.strictSlashes||"star"!==G.type&&"bracket"!==G.type||B({type:"maybe_slash",value:"",output:`${d}?`}),!0===O.backtrack){O.output="";for(const e of O.tokens)O.output+=null!=e.output?e.output:e.value,e.suffix&&(O.output+=e.suffix)}return O};to.fastpaths=(e,t)=>{const r={...t},o="number"==typeof r.maxLength?Math.min(Vr,r.maxLength):Vr,s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=Qr[e]||e;const{DOT_LITERAL:n,SLASH_LITERAL:i,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:l,NO_DOTS_SLASH:p,STAR:d,START_ANCHOR:m}=kr.globChars(r.windows),h=r.dot?l:u,g=r.dot?p:u,f=r.capture?"":"?:";let b=!0===r.bash?".*?":d;r.capture&&(b=`(${b})`);const T=e=>!0===e.noglobstar?b:`(${f}(?:(?!${m}${e.dot?c:n}).)*?)`,E=e=>{switch(e){case"*":return`${h}${a}${b}`;case".*":return`${n}${a}${b}`;case"*.*":return`${h}${b}${n}${a}${b}`;case"*/*":return`${h}${b}${i}${a}${g}${b}`;case"**":return h+T(r);case"**/*":return`(?:${h}${T(r)}${i})?${g}${a}${b}`;case"**/*.*":return`(?:${h}${T(r)}${i})?${g}${b}${n}${a}${b}`;case"**/.*":return`(?:${h}${T(r)}${i})?${n}${a}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=E(t[1]);if(!r)return;return r+n+t[2]}}},w=Cr.removePrefix(e,{negated:!1,prefix:""});let y=E(w);return y&&!0!==r.strictSlashes&&(y+=`${i}?`),y};var ro=to;const oo=(e,t,r=!1)=>{if(Array.isArray(e)){const o=e.map(e=>oo(e,t,r)),s=e=>{for(const t of o){const r=t(e);if(r)return r}return!1};return s}const o=(s=e)&&"object"==typeof s&&!Array.isArray(s)&&e.tokens&&e.input;var s;if(""===e||"string"!=typeof e&&!o)throw new TypeError("Expected pattern to be a non-empty string");const n=t||{},i=n.windows,a=o?oo.compileRe(e,t):oo.makeRe(e,t,!1,!0),c=a.state;delete a.state;let u=()=>!1;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=oo(n.ignore,e,r)}const l=(r,o=!1)=>{const{isMatch:s,match:l,output:p}=oo.test(r,a,t,{glob:e,posix:i}),d={glob:e,state:c,regex:a,posix:i,input:r,output:p,match:l,isMatch:s};return"function"==typeof n.onResult&&n.onResult(d),!1===s?(d.isMatch=!1,!!o&&d):u(r)?("function"==typeof n.onIgnore&&n.onIgnore(d),d.isMatch=!1,!!o&&d):("function"==typeof n.onMatch&&n.onMatch(d),!o||d)};return r&&(l.state=c),l};oo.test=(e,t,r,{glob:o,posix:s}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const n=r||{},i=n.format||(s?Cr.toPosixSlashes:null);let a=e===o,c=a&&i?i(e):e;return!1===a&&(c=i?i(e):e,a=c===o),!1!==a&&!0!==n.capture||(a=!0===n.matchBase||!0===n.basename?oo.matchBase(e,t,r,s):t.exec(c)),{isMatch:Boolean(a),match:a,output:c}},oo.matchBase=(e,t,r)=>(t instanceof RegExp?t:oo.makeRe(t,r)).test(Cr.basename(e)),oo.isMatch=(e,t,r)=>oo(t,r)(e),oo.parse=(e,t)=>Array.isArray(e)?e.map(e=>oo.parse(e,t)):ro(e,{...t,fastpaths:!1}),oo.scan=(e,t)=>((e,t)=>{const r=t||{},o=e.length-1,s=!0===r.parts||!0===r.scanToEnd,n=[],i=[],a=[];let c,u,l=e,p=-1,d=0,m=0,h=!1,g=!1,f=!1,b=!1,T=!1,E=!1,w=!1,y=!1,_=!1,v=!1,A=0,S={value:"",depth:0,isGlob:!1};const O=()=>p>=o,R=()=>l.charCodeAt(p+1),k=()=>(c=u,l.charCodeAt(++p));for(;p0&&(C=l.slice(0,d),l=l.slice(d),m-=d),P&&!0===f&&m>0?(P=l.slice(0,m),G=l.slice(m)):!0===f?(P="",G=l):P=l,P&&""!==P&&"/"!==P&&P!==l&&Wr(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),!0===r.unescape&&(G&&(G=Cr.removeBackslashes(G)),P&&!0===w&&(P=Cr.removeBackslashes(P)));const x={prefix:C,input:e,start:d,base:P,glob:G,isBrace:h,isBracket:g,isGlob:f,isExtglob:b,isGlobstar:T,negated:y,negatedExtglob:_};if(!0===r.tokens&&(x.maxDepth=0,Wr(u)||i.push(S),x.tokens=i),!0===r.parts||!0===r.tokens){let t;for(let o=0;o{if(!0===r)return e.output;const s=t||{};let n=`${s.contains?"":"^"}(?:${e.output})${s.contains?"":"$"}`;e&&!0===e.negated&&(n=`^(?!${n}).*$`);const i=oo.toRegex(n,t);return!0===o&&(i.state=e),i},oo.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(s.output=ro.fastpaths(e,t)),s.output||(s=ro(e,t)),oo.compileRe(s,t,r,o)},oo.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},oo.constants=kr;var so=oo;function no(e,t,r=!1){return t&&null==t.windows&&(t={...t,windows:Cr.isWindows()}),so(e,t,r)}Object.assign(no,so);var io=no;const ao=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],co=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],uo=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],lo=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],po=(e,t,r)=>{let o=e;return"string"==typeof t||Array.isArray(t)?o=e.toLocaleString(t,r):!0!==t&&void 0===r||(o=e.toLocaleString(void 0,r)),o},mo=e=>{if("number"==typeof e)return Math.log10(e);const t=e.toString(10);return t.length+Math.log10(`0.${t.slice(0,15)}`)},ho=(e,t)=>{if(void 0===t)return e;if("number"!=typeof t||!Number.isSafeInteger(t)||t<0)throw new TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof t}: ${t}`);return 0===t?e:e.length{const{minimumFractionDigits:t,maximumFractionDigits:r}=e;if(void 0!==t||void 0!==r)return{...void 0!==t&&{minimumFractionDigits:t},...void 0!==r&&{maximumFractionDigits:r},roundingMode:"trunc"}})(t);let a;if(e<1)a=n+po(e,t.locale,i)+o+r[0];else{const s=Math.min(Math.floor(t.binary?("number"==typeof(c=e)?Math.log(c):mo(c)*Math.log(10))/Math.log(1024):mo(e)/3),r.length-1);if(e=((e,t)=>{if("number"==typeof e)return e/t;const r=e/BigInt(t),o=e%BigInt(t);return Number(r)+Number(o)/t})(e,(t.binary?1024:1e3)**s),!i){const t=Math.max(3,Math.floor(e).toString().length);e=e.toPrecision(t)}a=n+po(Number(e),t.locale,i)+o+r[s]}var c;return ho(a,t.fixedWidth)}const fo=f.promisify(x.default.gzip);O.default.promisify(E.default.readFile);const bo=e=>e,To={brotli:function(e,t){const r=(e=>"string"==typeof e?Buffer.from(e,"utf8"):e)(e);return P.default.brotliCompressSync(r,(o=t,s=r,{params:{[P.default.constants.BROTLI_PARAM_MODE]:o&&"mode"in o&&o.mode||P.default.constants.BROTLI_DEFAULT_MODE,[P.default.constants.BROTLI_PARAM_QUALITY]:o&&"quality"in o&&o.quality||P.default.constants.BROTLI_MAX_QUALITY,[P.default.constants.BROTLI_PARAM_SIZE_HINT]:s?s.byteLength:0}})).byteLength;var o,s},gzip:async function(e,t){return e?(await fo(e,(e=>({level:9,...e}))(t))).length:0},none:e=>Buffer.byteLength(e)};async function Eo(e,t){return await To[e](t)}class wo{constructor(e){e.compression??="gzip",e.pattern??="**/*.{js,mjs,cjs,jsx,css,html}",e.exclude??=null,e.stripHash??=bo,this.options=e}filterFiles=e=>{const t=io(this.options.pattern),r=this.options.exclude?io(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))};readFromDisk=async e=>{const t=h.globSync(this.options.pattern,{cwd:e,exclude:this.options.exclude?[this.options.exclude]:void 0}),r={};return await Promise.all(t.map(async t=>{try{const o=await h.promises.readFile(G.default.join(e,t),"utf-8"),s=await Eo(this.options.compression,o);r[this.options.stripHash(t)]=s}catch{}})),r};getSizes=async e=>{const t=this.filterFiles(Object.keys(e)),r={};return await Promise.all(t.map(async t=>{try{const o=await Eo(this.options.compression,e[t]);r[this.options.stripHash(t)]=o}catch{}})),r};getDiff=(e,t)=>{const r=new Set([...Object.keys(e),...Object.keys(t)]),o=[];for(const s of r){const r=t[s]||0;o.push({filename:s,size:r,delta:r-(e[s]||0)})}return o};printSizes=e=>{const t=Math.max(...e.map(e=>e.filename.length),0);let r="";for(const o of e){const{filename:e,size:s,delta:n}=o,i=" ".repeat(t-e.length+1)+e+" ⏤ ";let a=go(s),c="";n&&Math.abs(n)>1&&(c=(n>0?"+":"")+go(n),a+=` (${c})`),r+=i+a+"\n"}return r}}const yo=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_o=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],vo=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ao=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],So=(e,t)=>{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var Oo=(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?Ao:vo:t.binary?_o:yo;if(t.signed&&0===e)return" 0 "+r[0];const o=e<0,s=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return s+So(e,t.locale)+" "+r[0];const n=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,n)).toPrecision(3)),s+So(e,t.locale)+" "+r[n]};async function Ro(e){const[t,r,o,s,n,i]=await Promise.all([ko(w.default.resolve(e,"yarn.lock")),ko(w.default.resolve(e,"pnpm-lock.yaml")),ko(w.default.resolve(e,"bun.lockb")),ko(w.default.resolve(e,"bun.lock")),ko(w.default.resolve(e,"package-lock.json")),ko(w.default.resolve(e,"deno.lock"))]);let a="npm",c="npm install";return t?(c="yarn --frozen-lockfile",a="yarn"):r?(c="pnpm install --frozen-lockfile",a="pnpm"):o||s?(c="bun install --frozen-lockfile",a="bun"):n?c="npm ci":i&&(c="deno install --frozen"),{packageManager:a,installScript:c}}async function ko(e){try{return await E.default.promises.access(e,E.default.constants.F_OK),!0}catch(e){}return!1}function Po(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?"+":"")+Oo(e);if(0===Math.abs(e));else if(0===t)r+=" (new file)";else if(t===-e)r+=" (removed)";else{const o=Number((e/t*100).toFixed(2));r+=` (${o>0?"+":""}${o}%)`}return r}function Go(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 xo(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 $o(e){return/^(1|true|yes)$/.test(e)}function Lo(e){const[t,r]=e.split(":");return["Filename","Size","Change"].includes(t)&&["asc","desc"].includes(r)?e:(console.warn(`Invalid 'order-by' value '${e}', defaulting to 'Filename:asc'`),"Filename:asc")}(async()=>{try{const e=W.getInput("repo-token"),t=Xt.getOctokit(e);await async function(e,t,r){const{number:o}=t.issue;try{W.debug("pr"+JSON.stringify(t.payload,null,2))}catch(e){}let s,n;if("push"==t.eventName)s=t.payload.before,n=t.payload.ref,console.log(`Pushed new commit on top of ${n} (${s})`);else{if("pull_request"!=t.eventName&&"pull_request_target"!=t.eventName)throw new Error(`Unsupported eventName in github.context: ${t.eventName}. Only "pull_request", "pull_request_target", and "push" triggered workflows are currently supported.`);{const e=t.payload.pull_request;s=e.base.sha,n=e.base.ref,console.log(`PR #${o} is targeted at ${n} (${n})`)}}W.getInput("cwd")&&process.chdir(W.getInput("cwd"));const i=new wo({compression:W.getInput("compression"),pattern:W.getInput("pattern")||"**/dist/**/*.{js,mjs,cjs}",exclude:W.getInput("exclude")||"{**/*.map,**/node_modules/**}",stripHash:Po(W.getInput("strip-hash"))}),a=W.getInput("build-script")||"build",c=process.cwd();let{packageManager:u,installScript:l}=await Ro(c);W.getInput("install-script")&&(l=W.getInput("install-script")),W.startGroup("[current] Install Dependencies"),console.log(`Installing using ${l}`),await br(l),W.endGroup(),W.startGroup(`[current] Build using ${u}`),console.log(`Building using ${u} run ${a}`),await br(`${u} run ${a}`),W.endGroup();const p=await i.readFromDisk(c);await br("git reset --hard"),W.startGroup("[base] Checkout target branch");try{if(!n)throw Error("missing context.payload.pull_request.base.ref");await br(`git fetch -n origin ${n}:${n}`),console.log("successfully fetched base.ref")}catch(e){console.log("fetching base.ref failed",e.message);try{await br(`git fetch -n origin ${s}`),console.log("successfully fetched base.sha")}catch(e){console.log("fetching base.sha failed",e.message);try{await br("git fetch -n")}catch(e){console.log("fetch failed",e.message)}}}const d=W.getInput("clean-script");d&&(W.startGroup(`[target] Cleanup via ${u} run ${d}`),await br(`${u} run ${d}`),W.endGroup()),console.log("checking out and building base commit");try{if(!n)throw Error("missing context.payload.base.ref");await br(`git reset --hard ${n}`)}catch(e){await br(`git reset --hard ${s}`)}W.endGroup(),W.startGroup("[base] Install Dependencies"),({packageManager:u,installScript:l}=await Ro(c)),W.getInput("install-script")&&(l=W.getInput("install-script")),console.log(`Installing using ${l}`),await br(l),W.endGroup(),W.startGroup(`[base] Build using ${u}`),await br(`${u} run ${a}`),W.endGroup(),await br("git reset --hard");const m=await i.readFromDisk(c),h=await i.getDiff(m,p);W.startGroup("Size Differences:");const g=await i.printSizes(h);console.log(g),W.endGroup();const f=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:o,minimumChangeThreshold:s,sortBy:n}){const i=[],a=[],[c,u]=n.split(":"),l={Filename:"filename",Size:"size",Change:"delta"};e.sort((e,t)=>{const r=l[c];return"asc"===u?e[r].toString().localeCompare(t[r].toString(),void 0,{numeric:!0}):t[r].toString().localeCompare(e[r].toString(),void 0,{numeric:!0})});let p=0,d=0;for(const t of e){const{filename:e,size:n,delta:c}=t;p+=n;const u=n-c,l=Math.abs(c)đŸ“Ļ View Changed\n\n${xo(i)}\n\n`),0!==a.length&&(m+=`\n\n
â„šī¸ View Unchanged\n\n${xo(a)}\n\n
\n\n`),t){const e=p-d;let t=Co(d,e),r=Go(d,e);m=`**Total Size:** ${Oo(p)}\n\n${m}`,m=`**Size Change:** ${t} ${r}\n\n${m}`}return m}(h,{collapseUnchanged:$o(W.getInput("collapse-unchanged")),omitUnchanged:$o(W.getInput("omit-unchanged")),showTotal:$o(W.getInput("show-total")),minimumChangeThreshold:parseInt(W.getInput("minimum-change-threshold"),10),sortBy:Lo(W.getInput("sort-by"))});let b=!1;const T={...t.repo,issue_number:o},E=W.getInput("comment-key"),w={...T,body:f+`\n\ncompressed-size-action${E?`::${E}`:""}`};if("pull_request"!==t.eventName&&"pull_request_target"!==t.eventName)console.log("No PR associated with this action run. Not posting a check or comment."),b=!1;else if($o(W.getInput("use-check")))if(r){const r=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,t);await r({conclusion:"success",output:{title:"Compressed Size Action",summary:f}})}else b=!0;else{let r;W.startGroup("Updating stats PR comment");try{const t=(await e.issues.listComments(T)).data,o=new RegExp(`[s\n]*(compressed|gzip)-size-action${E?`::${E}`:""}`);for(let e=t.length;e--;){const s=t[e];if(o.test(s.body)){r=s.id;break}}}catch(e){console.log("Error checking for previous comments: "+e.message)}if(r){console.log(`Updating previous comment #${r}`);try{await e.issues.updateComment({...t.repo,comment_id:r,body:w.body})}catch(e){console.log("Error editing previous comment: "+e.message),r=null}}if(!r){console.log("Creating new comment");try{await e.issues.createComment(w)}catch(r){console.log(`Error creating comment: ${r.message}`),console.log("Submitting a PR review comment instead...");try{const r=t.issue;await e.pulls.createReview({owner:r.owner,repo:r.repo,pull_number:r.number,event:"COMMENT",body:w.body})}catch(e){console.log("Error creating PR review."),b=!0}}}W.endGroup()}b&&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${w.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}(t,Xt.context,e)}catch(e){W.setFailed(e.message)}})(); From 502353aa15df290641a63640057ff7bd4f375ca3 Mon Sep 17 00:00:00 2001 From: Hajime-san <41257923+Hajime-san@users.noreply.github.com> Date: Tue, 7 Apr 2026 08:36:28 +0900 Subject: [PATCH 3/5] Revert "build" This reverts commit 4bd9512c84369e96895b92a7c44295ca8f1c55e4. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index edf82c4..5a8a4d1 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -var e=require("os"),t=require("fs"),r=require("path"),o=require("http"),s=require("https");require("net");var n=require("tls"),i=require("events"),a=require("assert"),c=require("util"),u=require("stream"),l=require("url"),p=require("zlib"),d=require("child_process"),m=require("node:path"),h=require("node:fs");require("node:stream");var g=require("node:zlib"),f=require("node:util");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var T=/*#__PURE__*/b(e),E=/*#__PURE__*/b(t),w=/*#__PURE__*/b(r),y=/*#__PURE__*/b(o),_=/*#__PURE__*/b(s),v=/*#__PURE__*/b(n),A=/*#__PURE__*/b(i),S=/*#__PURE__*/b(a),O=/*#__PURE__*/b(c),R=/*#__PURE__*/b(u),k=/*#__PURE__*/b(l),P=/*#__PURE__*/b(p),C=/*#__PURE__*/b(d),G=/*#__PURE__*/b(m),x=/*#__PURE__*/b(g),$="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){var t={exports:{}};return e(t,t.exports),t.exports}var U=/*#__PURE__*/Object.defineProperty({toCommandValue:function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}},"__esModule",{value:!0});const D=($&&$.__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})(T.default);function F(e,t,r){const o=new j(e,t,r);process.stdout.write(o.toString()+D.EOL)}var H=F;class j{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)}`)}}var t;return e+=`::${t=this.message,U.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}`,e}}function I(e){return U.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var B=/*#__PURE__*/Object.defineProperty({issueCommand:H,issue:function(e,t=""){F(e,{},t)}},"__esModule",{value:!0}),q=$&&$.__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};const N=q(E.default),M=q(T.default);var z=/*#__PURE__*/Object.defineProperty({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,`${U.toCommandValue(t)}${M.EOL}`,{encoding:"utf8"})}},"__esModule",{value:!0}),W=L(function(e,t){var r=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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=$&&$.__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 s=o(T.default),n=o(w.default);var i;function a(e){B.issue("error",e instanceof Error?e.toString():e)}function c(e){B.issue("group",e)}function u(){B.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(i=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){const r=U.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";z.issueCommand("ENV",`${e}<<${t}${s.EOL}${r}${s.EOL}${t}`)}else B.issueCommand("set-env",{name:e},r)},t.setSecret=function(e){B.issueCommand("add-mask",{},e)},t.addPath=function(e){process.env.GITHUB_PATH?z.issueCommand("PATH",e):B.issueCommand("add-path",{},e),process.env.PATH=`${e}${n.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw new Error(`Input required and not supplied: ${e}`);return r.trim()},t.setOutput=function(e,t){B.issueCommand("set-output",{name:e},t)},t.setCommandEcho=function(e){B.issue("echo",e?"on":"off")},t.setFailed=function(e){process.exitCode=i.Failure,a(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){B.issueCommand("debug",{},e)},t.error=a,t.warning=function(e){B.issue("warning",e instanceof Error?e.toString():e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=c,t.endGroup=u,t.group=function(e,t){return r(this,void 0,void 0,function*(){let r;c(e);try{r=yield t()}finally{u()}return r})},t.saveState=function(e,t){B.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}}),K=L(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(E.default.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(E.default.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${T.default.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'")}}});function V(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}var J,X=/*#__PURE__*/Object.defineProperty({getProxyUrl:function(e){let t,r,o="https:"===e.protocol;return V(e)||(r=o?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,r&&(t=new URL(r))),t},checkBypass:V},"__esModule",{value:!0});function Y(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||y.default.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,o,s){for(var n=Z(r,o,s),i=0,a=t.requests.length;i=this.maxSockets?s.requests.push(n):s.createSocket(n,function(t){function r(){s.emit("free",t,n)}function o(e){s.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)})},Y.prototype.createSocket=function(e,t){var r=this,o={};r.sockets.push(o);var s=ee({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),J("making CONNECT request");var n=r.request(s);function i(s,i,a){var c;return n.removeAllListeners(),i.removeAllListeners(),200!==s.statusCode?(J("tunneling socket could not be established, statusCode=%d",s.statusCode),i.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+s.statusCode)).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):a.length>0?(J("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)):(J("tunneling connection has established"),r.sockets[r.sockets.indexOf(o)]=i,t(i))}n.useChunkedEncodingByDefault=!1,n.once("response",function(e){e.upgrade=!0}),n.once("upgrade",function(e,t,r){process.nextTick(function(){i(e,t,r)})}),n.once("connect",i),n.once("error",function(t){n.removeAllListeners(),J("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, cause="+t.message);s.code="ECONNRESET",e.request.emit("error",s),r.removeSocket(o)}),n.end()},Y.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 te={httpOverHttp:function(e){var t=new Y(e);return t.request=y.default.request,t},httpsOverHttp:function(e){var t=new Y(e);return t.request=y.default.request,t.createSocket=Q,t.defaultPort=443,t},httpOverHttps:function(e){var t=new Y(e);return t.request=_.default.request,t},httpsOverHttps:function(e){var t=new Y(e);return t.request=_.default.request,t.createSocket=Q,t.defaultPort=443,t},debug:J=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(){}},re=L(function(e,t){let r;var o,s,n;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"}(s=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(n=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=X.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],c=["OPTIONS","GET","DELETE","HEAD"];class u extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,u.prototype)}}t.HttpClientError=u;class l{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=l,t.isHttps=function(e){return"https:"===new URL(e).protocol};class p{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[s.Accept]=this._getExistingOrDefaultHeader(t,s.Accept,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.ApplicationJson);let i=await this.patch(e,o,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,s){if(this._disposed)throw new Error("Client has already been disposed.");let n,u=new URL(t),l=this._prepareRequest(e,u,s),p=this._allowRetries&&-1!=c.indexOf(e)?this._maxRetries+1:1,d=0;for(;d0;){const o=n.message.headers.location;if(!o)break;let i=new URL(o);if("https:"==u.protocol&&u.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 n.readBody(),i.hostname!==u.hostname)for(let e in s)"authorization"===e.toLowerCase()&&delete s[e];l=this._prepareRequest(e,i,s),n=await this.requestRaw(l,r),t--}if(-1==a.indexOf(n.message.statusCode))return n;d+=1,d{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 s=!1,n=(e,t)=>{s||(s=!0,r(e,t))},i=e.httpModule.request(e.options,e=>{let t=new l(e);n(null,t)});i.on("socket",e=>{o=e}),i.setTimeout(this._socketTimeout||18e4,()=>{o&&o.end(),n(new Error("Request timeout: "+e.options.path),null)}),i.on("error",function(e){n(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 s="https:"===o.parsedUrl.protocol;o.httpModule=s?_.default:y.default;const n=s?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):n,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 s;return this.requestOptions&&this.requestOptions.headers&&(o=(s=this.requestOptions.headers,Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}))[t]),e[t]||o||r}_getAgent(e){let t,o=X.getProxyUrl(e),s=o&&o.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const n="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||y.default.globalAgent.maxSockets),s){let e;r||(r=te);const s="https:"===o.protocol;e=n?s?r.httpsOverHttps:r.httpsOverHttp:s?r.httpOverHttps:r.httpOverHttp,t=e({maxSockets:i,keepAlive:this._keepAlive,proxy:{proxyAuth:`${o.username}:${o.password}`,host:o.hostname,port:o.port}}),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=n?new _.default.Agent(e):new y.default.Agent(e),this._agent=t}return t||(t=n?_.default.globalAgent:y.default.globalAgent),n&&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,s)=>{const n=e.message.statusCode,i={statusCode:n,result:null,headers:{}};let a,c;n==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,p.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(n>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+n+")";let t=new u(e,n);t.result=i.result,s(t)}else r(i)})}}t.HttpClient=p}),oe=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const n=s(re);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 n.HttpClient).getAgent(e)},t.getApiBaseUrl=function(){return process.env.GITHUB_API_URL||"https://api.github.com"}});function se(){return"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var ne=function e(t,r,o,s){if("function"!=typeof o)throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(r)?r.reverse().reduce(function(r,o){return e.bind(null,t,o,r,s)},o)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,s)},o)():o(s)})},ie=function(e,t,r,o){var s=o;e.registry[r]||(e.registry[r]=[]),"before"===t&&(o=function(e,t){return Promise.resolve().then(s.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 s(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 s(e,t)})}),e.registry[r].push({hook:o,orig:s})},ae=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)}},ce=Function.bind,ue=ce.bind(ce);function le(e,t,r){var o=ue(ae,null).apply(null,r?[t,r]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(function(o){var s=r?[t,o,r]:[t,o];e[o]=e.api[o]=ue(ie,null).apply(null,s)})}function pe(){var e={registry:{}},t=ne.bind(null,e);return le(t,e),t}var de=!1;function me(){return de||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),de=!0),pe()}me.Singular=function(){var e={registry:{}},t=ne.bind(null,e,"h");return le(t,e,"h"),t}.bind(),me.Collection=pe.bind();var he=me,ge=me.Singular,fe=me.Collection;function be(e){return"[object Object]"===Object.prototype.toString.call(e)}function Te(e){var t,r;return!1!==be(e)&&(void 0===(t=e.constructor)||!1!==be(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function Ee(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(o=>{Te(t[o])?o in e?r[o]=Ee(e[o],t[o]):Object.assign(r,{[o]:t[o]}):Object.assign(r,{[o]:t[o]})}),r}function we(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function ye(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),{}):{},we(r),we(r.headers);const s=Ee(e||{},r);return e&&e.mediaType.previews.length&&(s.mediaType.previews=e.mediaType.previews.filter(e=>!s.mediaType.previews.includes(e)).concat(s.mediaType.previews)),s.mediaType.previews=s.mediaType.previews.map(e=>e.replace(/-preview/,"")),s}he.Hook=me,he.Singular=ge,he.Collection=fe;const _e=/\{[^}]+\}/g;function ve(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Ae(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function Se(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 Oe(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Re(e,t,r){return t="+"===e||"#"===e?Se(t):Oe(t),r?Oe(r)+"="+t:t}function ke(e){return null!=e}function Pe(e){return";"===e||"&"===e||"?"===e}function Ce(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,o,s){if(o){let e="";const s=[];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);s.push(function(e,t,r,o){var s=e[r],n=[];if(ke(s)&&""!==s)if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)s=s.toString(),o&&"*"!==o&&(s=s.substring(0,parseInt(o,10))),n.push(Re(t,s,Pe(t)?r:""));else if("*"===o)Array.isArray(s)?s.filter(ke).forEach(function(e){n.push(Re(t,e,Pe(t)?r:""))}):Object.keys(s).forEach(function(e){ke(s[e])&&n.push(Re(t,s[e],e))});else{const e=[];Array.isArray(s)?s.filter(ke).forEach(function(r){e.push(Re(t,r))}):Object.keys(s).forEach(function(r){ke(s[r])&&(e.push(Oe(r)),e.push(Re(t,s[r].toString())))}),Pe(t)?n.push(Oe(r)+"="+e.join(",")):0!==e.length&&n.push(e.join(","))}else";"===t?ke(s)&&n.push(Oe(r)):""!==s||"&"!==t&&"?"!==t?""===s&&n.push(""):n.push(Oe(r)+"=");return n}(t,e,o[1],o[2]||o[3]))}),e&&"+"!==e){var n=",";return"?"===e?n="&":"#"!==e&&(n=e),(0!==s.length?e:"")+s.join(n)}return s.join(",")}return Se(s)})}function Ge(e){let t,r=e.method.toUpperCase(),o=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},e.headers),n=Ae(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(_e);return t?t.map(ve).reduce((e,t)=>e.concat(t),[]):[]}(o);var a;o=(a=o,{expand:Ce.bind(null,a)}).expand(n),/^http/.test(o)||(o=e.baseUrl+o);const c=Ae(n,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(s.accept)&&(e.mediaType.format&&(s.accept=s.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=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.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:s["content-length"]=0,s["content-type"]||void 0===t||(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:o,headers:s},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function xe(e,t,r){return Ge(ye(e,t,r))}const $e=function e(t,r){const o=ye(t,r),s=xe.bind(null,o);return Object.assign(s,{DEFAULTS:o,defaults:e.bind(null,o),merge:ye.bind(null,o),parse:Ge})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/6.0.10 ${se()}`},mediaType:{format:"",previews:[]}}),Le=R.default.Readable,Ue=Symbol("buffer"),De=Symbol("type");class Fe{constructor(){this[De]="";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 n=r.timeout;let i=void 0===n?0:n;null==e?e=null:Me(e)?e=Buffer.from(e.toString()):ze(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 R.default||(e=Buffer.from(String(e)))),this[Ie]={body:e,disturbed:!1,error:null},this.size=s,this.timeout=i,e instanceof R.default&&e.on("error",function(e){const r="AbortError"===e.name?e:new He(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[Ie].error=r})}function Ne(){var e=this;if(this[Ie].disturbed)return qe.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Ie].disturbed=!0,this[Ie].error)return qe.Promise.reject(this[Ie].error);let t=this.body;if(null===t)return qe.Promise.resolve(Buffer.alloc(0));if(ze(t)&&(t=t.stream()),Buffer.isBuffer(t))return qe.Promise.resolve(t);if(!(t instanceof R.default))return qe.Promise.resolve(Buffer.alloc(0));let r=[],o=0,s=!1;return new qe.Promise(function(n,i){let a;e.timeout&&(a=setTimeout(function(){s=!0,i(new He(`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 He(`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 He(`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 He(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function Me(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 ze(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 We(e){let t,r,o=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof R.default&&"function"!=typeof o.getBoundary&&(t=new Be,r=new Be,o.pipe(t),o.pipe(r),e[Ie].body=t,o=r),o}function Ke(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Me(e)?"application/x-www-form-urlencoded;charset=UTF-8":ze(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 R.default?null:"text/plain;charset=UTF-8"}function Ve(e){const t=e.body;return null===t?0:ze(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}qe.prototype={get body(){return this[Ie].body},get bodyUsed(){return this[Ie].disturbed},arrayBuffer(){return Ne.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 Ne.call(this).then(function(t){return Object.assign(new Fe([],{type:e.toLowerCase()}),{[Ue]:t})})},json(){var e=this;return Ne.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return qe.Promise.reject(new He(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return Ne.call(this).then(function(e){return e.toString()})},buffer(){return Ne.call(this)},textConverted(){var e=this;return Ne.call(this).then(function(t){return function(e,t){if("function"!=typeof je)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let o,s,n="utf-8";return r&&(o=/charset=([^;]*)/i.exec(r)),s=e.slice(0,1024).toString(),!o&&s&&(o=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[et]=Object.create(null),e instanceof tt){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r);return}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){Ye(e=`${e}`);const t=Ze(this[et],e);return void 0===t?null:this[et][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=rt(this),o=0;for(;o1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[et]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[et][t].join(", ")}:function(t){return[t.toLowerCase(),e[et][t].join(", ")]})}tt.prototype.entries=tt.prototype[Symbol.iterator],Object.defineProperty(tt.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(tt.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 ot=Symbol("internal");function st(e,t){const r=Object.create(nt);return r[ot]={target:e,kind:t,index:0},r}const nt=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==nt)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[ot];const t=e.index,r=rt(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[ot].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function it(e){const t=Object.assign({__proto__:null},e[et]),r=Ze(e[et],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(nt,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const at=Symbol("Response internals"),ct=y.default.STATUS_CODES;class ut{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qe.call(this,e,t);const r=t.status||200,o=new tt(t.headers);if(null!=e&&!o.has("Content-Type")){const t=Ke(e);t&&o.append("Content-Type",t)}this[at]={url:t.url,status:r,statusText:t.statusText||ct[r],headers:o,counter:t.counter}}get url(){return this[at].url||""}get status(){return this[at].status}get ok(){return this[at].status>=200&&this[at].status<300}get redirected(){return this[at].counter>0}get statusText(){return this[at].statusText}get headers(){return this[at].headers}clone(){return new ut(We(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}qe.mixIn(ut.prototype),Object.defineProperties(ut.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(ut.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const lt=Symbol("Request internals"),pt=k.default.parse,dt=k.default.format,mt="destroy"in R.default.Readable.prototype;function ht(e){return"object"==typeof e&&"object"==typeof e[lt]}class gt{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht(e)?t=pt(e.url):(t=pt(e&&e.href?e.href:`${e}`),e={});let o=r.method||e.method||"GET";if(o=o.toUpperCase(),(null!=r.body||ht(e)&&null!==e.body)&&("GET"===o||"HEAD"===o))throw new TypeError("Request with GET/HEAD method cannot have body");let s=null!=r.body?r.body:ht(e)&&null!==e.body?We(e):null;qe.call(this,s,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const n=new tt(r.headers||e.headers||{});if(null!=s&&!n.has("Content-Type")){const e=Ke(s);e&&n.append("Content-Type",e)}let i=ht(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[lt]={method:o,redirect:r.redirect||e.redirect||"follow",headers:n,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[lt].method}get url(){return dt(this[lt].parsedURL)}get headers(){return this[lt].headers}get redirect(){return this[lt].redirect}get signal(){return this[lt].signal}clone(){return new gt(this)}}function ft(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}qe.mixIn(gt.prototype),Object.defineProperty(gt.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(gt.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(ft.prototype=Object.create(Error.prototype)).constructor=ft,ft.prototype.name="AbortError";const bt=R.default.PassThrough,Tt=k.default.resolve;function Et(e,t){if(!Et.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return qe.Promise=Et.Promise,new Et.Promise(function(r,o){const s=new gt(e,t),n=function(e){const t=e[lt].parsedURL,r=new tt(e[lt].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 R.default.Readable&&!mt)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=Ve(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:it(r),agent:s})}(s),i=("https:"===n.protocol?_.default:y.default).request,a=s.signal;let c=null;const u=function(){let e=new ft("The user aborted a request.");o(e),s.body&&s.body instanceof R.default.Readable&&s.body.destroy(e),c&&c.body&&c.body.emit("error",e)};if(a&&a.aborted)return void u();const l=function(){u(),m()},p=i(n);let d;function m(){p.abort(),a&&a.removeEventListener("abort",l),clearTimeout(d)}a&&a.addEventListener("abort",l),s.timeout&&p.once("socket",function(e){d=setTimeout(function(){o(new He(`network timeout at: ${s.url}`,"request-timeout")),m()},s.timeout)}),p.on("error",function(e){o(new He(`request to ${s.url} failed, reason: ${e.message}`,"system",e)),m()}),p.on("response",function(e){clearTimeout(d);const t=function(e){const t=new tt;for(const r of Object.keys(e))if(!Je.test(r))if(Array.isArray(e[r]))for(const o of e[r])Xe.test(o)||(void 0===t[et][r]?t[et][r]=[o]:t[et][r].push(o));else Xe.test(e[r])||(t[et][r]=[e[r]]);return t}(e.headers);if(Et.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:Tt(s.url,n);switch(s.redirect){case"error":return o(new He(`uri requested responds with a redirect, redirect mode is set to error: ${s.url}`,"no-redirect")),void m();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 He(`maximum redirect reached at: ${s.url}`,"max-redirect")),void m();const n={headers:new tt(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===Ve(s)?(o(new He("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void m()):(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(Et(new gt(i,n))),void m())}}e.once("end",function(){a&&a.removeEventListener("abort",l)});let n=e.pipe(new bt);const i={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:s.size,timeout:s.timeout,counter:s.counter},u=t.get("Content-Encoding");return s.compress&&"HEAD"!==s.method&&null!==u&&204!==e.statusCode&&304!==e.statusCode?"gzip"==u||"x-gzip"==u?(n=n.pipe(P.default.createGunzip({flush:P.default.Z_SYNC_FLUSH,finishFlush:P.default.Z_SYNC_FLUSH})),c=new ut(n,i),void r(c)):"deflate"!=u&&"x-deflate"!=u?"br"==u&&"function"==typeof P.default.createBrotliDecompress?(n=n.pipe(P.default.createBrotliDecompress()),c=new ut(n,i),void r(c)):(c=new ut(n,i),void r(c)):void e.pipe(new bt).once("data",function(e){n=n.pipe(8==(15&e[0])?P.default.createInflate():P.default.createInflateRaw()),c=new ut(n,i),r(c)}):(c=new ut(n,i),void r(c))}),function(e,t){const r=t.body;null===r?e.end():ze(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(p,s)})}Et.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Et.Promise=global.Promise;class wt extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var yt=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 Rt 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:()=>(Ot(new wt("[@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 kt(e){(Te(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||Et)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(s=>{r=s.url,t=s.status;for(const e of s.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new Rt(s.statusText,t,{headers:o,request:e})}if(304===t)throw new Rt("Not modified",t,{headers:o,request:e});if(t>=400)return s.text().then(r=>{const s=new Rt(r,t,{headers:o,request:e});try{let e=JSON.parse(s.message);Object.assign(s,e),s.message=s.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw s});const n=s.headers.get("content-type");return/application\/json/.test(n)?s.json():!n||/^text\/|charset=utf-8$/.test(n)?s.text():function(e){return e.arrayBuffer()}(s)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof Rt)throw t;throw new Rt(t.message,500,{headers:o,request:e})})}const Pt=function e(t,r){const o=t.defaults(r);return Object.assign(function(t,r){const s=o.merge(t,r);if(!s.request||!s.request.hook)return kt(o.parse(s));const n=(e,t)=>kt(o.parse(o.merge(e,t)));return Object.assign(n,{endpoint:o,defaults:e.bind(null,o)}),s.request.hook(n,s)},{endpoint:o,defaults:e.bind(null,o)})}($e,{headers:{"user-agent":`octokit-request.js/5.4.12 ${se()}`}});class Ct 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 Gt=["method","baseUrl","url","headers","request","query","mediaType"],xt=/\/api\/v3\/?$/;function $t(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,s=Object.keys(o).reduce((e,t)=>Gt.includes(t)?(e[t]=o[t],e):(e.variables||(e.variables={}),e.variables[t]=o[t],e),{}),n=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return xt.test(n)&&(s.url=n.replace(xt,"/api/graphql")),e(s).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new Ct(s,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:$t.bind(null,r),endpoint:Pt.endpoint})}async function Lt(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Ut(e,t,r,o){const s=t.endpoint.merge(r,o);return s.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),t(s)}$t(Pt,{headers:{"user-agent":`octokit-graphql.js/4.5.8 ${se()}`},method:"POST",url:"/graphql"});const Dt=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(Lt.bind(null,e),{hook:Ut.bind(null,e)})},Ft="3.2.4";class Ht{constructor(e={}){const t=new fe,r={baseUrl:Pt.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/${Ft} ${se()}`].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=Pt.defaults(r),this.graphql=(o=this.request,$t(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,s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",s.hook),this.auth=s}else if(e.auth){const r=Dt(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}}Ht.VERSION=Ft,Ht.plugins=[];var jt={__proto__:null,Octokit:Ht};const It={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 Bt(e,t,r,o,s){const n=e.request.defaults(o);return Object.assign(function(...o){let i=n.endpoint.merge(...o);if(s.mapToData)return i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0}),n(i);if(s.renamed){const[o,n]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${o}.${n}()`)}if(s.deprecated&&e.log.warn(s.deprecated),s.renamedParameters){const i=n.endpoint.merge(...o);for(const[o,n]of Object.entries(s.renamedParameters))o in i&&(e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${r}()". Use "${n}" instead`),n in i||(i[n]=i[o]),delete i[o]);return n(i)}return n(...o)},n)}function qt(e){return function(e,t){const r={};for(const[o,s]of Object.entries(t))for(const[t,n]of Object.entries(s)){const[s,i,a]=n,[c,u]=s.split(/ /),l=Object.assign({method:c,url:u},i);r[o]||(r[o]={}),r[o][t]=a?Bt(e,o,t,l,a):e.request.defaults(l)}return r}(e,It)}qt.VERSION="4.4.1";var Nt=qt;function Mt(e,t,r){const o="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),s="function"==typeof t?t:e.request,n=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 s=Object.keys(e.data)[0];return e.data=e.data[s],void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=o,e}(await s({method:n,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}})}}function zt(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),Wt(e,[],Mt(e,t,r)[Symbol.asyncIterator](),o)}function Wt(e,t,r,o){return r.next().then(s=>{if(s.done)return t;let n=!1;return t=t.concat(o?o(s.value,function(){n=!0}):s.value.data),n?t:Wt(e,t,r,o)})}function Kt(e){return{paginate:Object.assign(zt.bind(null,e),{iterator:Mt.bind(null,e)})}}Object.assign(zt,{iterator:Mt}),Kt.VERSION="2.6.2";var Vt=Kt,Jt=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokitOptions=t.GitHub=t.context=void 0;const n=s(K),i=s(oe);t.context=new n.Context;const a=i.getApiBaseUrl(),c={baseUrl:a,request:{agent:i.getProxyAgent(a)}};t.GitHub=jt.Octokit.plugin(Nt,Vt).defaults(c),t.getOctokitOptions=function(e,t){const r=Object.assign({},t||{}),o=i.getAuthString(e,r);return o&&(r.auth=o),r}}),Xt=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokit=t.context=void 0;const n=s(K);t.context=new n.Context,t.getOctokit=function(e,t){return new Jt.GitHub(Jt.getOctokitOptions(e,t))}}),Yt=L(function(e,t){var r,o=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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 s(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(t,"__esModule",{value:!0}),t.chmod=(r=E.default.promises).chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return o(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},t.isDirectory=function(e,r=!1){return o(this,void 0,void 0,function*(){return(r?yield t.stat(e):yield t.lstat(e)).isDirectory()})},t.isRooted=function(e){if(!(e=function(e){return e=e||"",t.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return t.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},t.mkdirP=function e(r,s=1e3,n=1){return o(this,void 0,void 0,function*(){if(S.default.ok(r,"a path argument must be provided"),r=w.default.resolve(r),n>=s)return t.mkdir(r);try{return void(yield t.mkdir(r))}catch(o){if("ENOENT"===o.code)return yield e(w.default.dirname(r),s,n+1),void(yield t.mkdir(r));{let e;try{e=yield t.stat(r)}catch(e){throw o}if(!e.isDirectory())throw o}}})},t.tryGetExecutablePath=function(e,r){return o(this,void 0,void 0,function*(){let o;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile())if(t.IS_WINDOWS){const t=w.default.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t))return e}else if(s(o))return e;const n=e;for(const i of r){e=n+i,o=void 0;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const r=w.default.dirname(e),o=w.default.basename(e).toUpperCase();for(const s of yield t.readdir(r))if(o===s.toUpperCase()){e=w.default.join(r,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(s(o))return e}}return""})}}),Qt=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})};const Zt=O.default.promisify(C.default.exec);function er(e){return Qt(this,void 0,void 0,function*(){if(Yt.IS_WINDOWS){try{(yield Yt.isDirectory(e,!0))?yield Zt(`rd /s /q "${e}"`):yield Zt(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield Yt.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield Yt.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield Zt(`rm -rf "${e}"`):yield Yt.unlink(e)}})}function tr(e){return Qt(this,void 0,void 0,function*(){yield Yt.mkdirP(e)})}function rr(e,t,r,o){return Qt(this,void 0,void 0,function*(){if(r>=255)return;r++,yield tr(t);const s=yield Yt.readdir(e);for(const n of s){const s=`${e}/${n}`,i=`${t}/${n}`;(yield Yt.lstat(s)).isDirectory()?yield rr(s,i,r,o):yield or(s,i,o)}yield Yt.chmod(t,(yield Yt.stat(e)).mode)})}function or(e,t,r){return Qt(this,void 0,void 0,function*(){if((yield Yt.lstat(e)).isSymbolicLink()){try{yield Yt.lstat(t),yield Yt.unlink(t)}catch(e){"EPERM"===e.code&&(yield Yt.chmod(t,"0666"),yield Yt.unlink(t))}const r=yield Yt.readlink(e);yield Yt.symlink(r,t,Yt.IS_WINDOWS?"junction":null)}else(yield Yt.exists(t))&&!r||(yield Yt.copyFile(e,t))})}var sr=/*#__PURE__*/Object.defineProperty({cp:function(e,t,r={}){return Qt(this,void 0,void 0,function*(){const{force:o,recursive:s}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(r),n=(yield Yt.exists(t))?yield Yt.stat(t):null;if(n&&n.isFile()&&!o)return;const i=n&&n.isDirectory()?w.default.join(t,w.default.basename(e)):t;if(!(yield Yt.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield Yt.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield rr(e,i,0,o)}else{if(""===w.default.relative(e,i))throw new Error(`'${i}' and '${e}' are the same file`);yield or(e,i,o)}})},mv:function(e,t,r={}){return Qt(this,void 0,void 0,function*(){if(yield Yt.exists(t)){let o=!0;if((yield Yt.isDirectory(t))&&(t=w.default.join(t,w.default.basename(e)),o=yield Yt.exists(t)),o){if(null!=r.force&&!r.force)throw new Error("Destination already exists");yield er(t)}}yield tr(w.default.dirname(t)),yield Yt.rename(e,t)})},rmRF:er,mkdirP:tr,which:function e(t,r){return Qt(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(r&&!(yield e(t,!1)))throw Yt.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if(Yt.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(w.default.delimiter))t&&e.push(t);if(Yt.isRooted(t))return(yield Yt.tryGetExecutablePath(t,e))||"";if(t.includes("/")||Yt.IS_WINDOWS&&t.includes("\\"))return"";const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(w.default.delimiter))e&&r.push(e);for(const o of r){const r=yield Yt.tryGetExecutablePath(o+w.default.sep+t,e);if(r)return r}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}},"__esModule",{value:!0}),nr=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})},ir=$&&$.__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};const ar=ir(T.default),cr=ir(A.default),ur=ir(C.default),lr=ir(w.default),pr=ir(sr),dr=ir(Yt),mr="win32"===process.platform;class hr extends cr.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(hr.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())}}var gr=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})};const fr=($&&$.__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})(/*#__PURE__*/Object.defineProperty({ToolRunner:class extends cr.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 s=t?"":"[command]";if(mr)if(this._isCmdFile()){s+=r;for(const e of o)s+=` ${e}`}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of o)s+=` ${e}`}else{s+=this._windowsQuoteCmdArg(r);for(const e of o)s+=` ${this._windowsQuoteCmdArg(e)}`}else{s+=r;for(const e of o)s+=` ${e}`}return s}_processLineBuffer(e,t,r){try{let o=t+e.toString(),s=o.indexOf(ar.EOL);for(;s>-1;)r(o.substring(0,s)),o=o.substring(s+ar.EOL.length),s=o.indexOf(ar.EOL);t=o}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){return mr&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(mr&&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='"',s=!0;for(let t=e.length;t>0;t--)o+=e[t-1],s&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(s=!0,o+='"'):s=!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 nr(this,void 0,void 0,function*(){return!dr.isRooted(this.toolPath)&&(this.toolPath.includes("/")||mr&&this.toolPath.includes("\\"))&&(this.toolPath=lr.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield pr.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)+ar.EOL);const o=new hr(r,this.toolPath);o.on("debug",e=>{this._debug(e)});const s=this._getSpawnFileName(),n=ur.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));if(n.stdout&&n.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)})}),n.stderr&&n.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)})}),n.on("error",e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()}),n.on("exit",e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()}),n.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)=>{n.removeAllListeners(),r?t(r):e(o)}),this.options.input){if(!n.stdin)throw new Error("child process missing stdin");n.stdin.end(this.options.input)}})})}},argStringToArray:function(e){const t=[];let r=!1,o=!1,s="";function n(e){o&&'"'!==e&&(s+="\\"),s+=e,o=!1}for(let i=0;i0&&(t.push(s),s=""):o?n(a):r=!r}return s.length>0&&t.push(s.trim()),t}},"__esModule",{value:!0}));var br=function(e,t,r){return gr(this,void 0,void 0,function*(){const o=fr.argStringToArray(e);if(0===o.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=o[0];return t=o.slice(1).concat(t||[]),new fr.ToolRunner(s,t,r).exec()})};const Tr="\\\\/",Er=`[^${Tr}]`,wr="\\.",yr="\\/",_r="[^/]",vr=`(?:${yr}|$)`,Ar=`(?:^|${yr})`,Sr=`${wr}{1,2}${vr}`,Or={DOT_LITERAL:wr,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:yr,ONE_CHAR:"(?=.)",QMARK:_r,END_ANCHOR:vr,DOTS_SLASH:Sr,NO_DOT:`(?!${wr})`,NO_DOTS:`(?!${Ar}${Sr})`,NO_DOT_SLASH:`(?!${wr}{0,1}${vr})`,NO_DOTS_SLASH:`(?!${Sr})`,QMARK_NO_DOT:`[^.${yr}]`,STAR:`${_r}*?`,START_ANCHOR:Ar,SEP:"/"},Rr={...Or,SLASH_LITERAL:`[${Tr}]`,QMARK:Er,STAR:`${Er}*?`,DOTS_SLASH:`${wr}{1,2}(?:[${Tr}]|$)`,NO_DOT:`(?!${wr})`,NO_DOTS:`(?!(?:^|[${Tr}])${wr}{1,2}(?:[${Tr}]|$))`,NO_DOT_SLASH:`(?!${wr}{0,1}(?:[${Tr}]|$))`,NO_DOTS_SLASH:`(?!${wr}{1,2}(?:[${Tr}]|$))`,QMARK_NO_DOT:`[^.${Tr}]`,START_ANCHOR:`(?:^|[${Tr}])`,END_ANCHOR:`(?:[${Tr}]|$)`,SEP:"\\"};var kr={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?Rr:Or},Pr=L(function(e,t){const{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:n}=kr;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(n,"\\$1"),t.toPosixSlashes=e=>e.replace(r,"/"),t.isWindows=()=>{if("{}".platform){const e="{}".platform.toLowerCase();return"win32"===e||"windows"===e}return!("undefined"==typeof process||!process.platform)&&"win32"===process.platform},t.removeBackslashes=e=>e.replace(o,e=>"\\"===e?"":e),t.escapeLast=(e,r,o)=>{const s=e.lastIndexOf(r,o);return-1===s?e:"\\"===e[s-1]?t.escapeLast(e,r,s-1):`${e.slice(0,s)}\\${e.slice(s)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let o=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(o=`(?:^(?!${o}).*$)`),o},t.basename=(e,{windows:t}={})=>{const r=e.split(t?/[\\/]/:"/"),o=r[r.length-1];return""===o?r[r.length-2]:o}}),Cr=Pr;const{CHAR_ASTERISK:Gr,CHAR_AT:xr,CHAR_BACKWARD_SLASH:$r,CHAR_COMMA:Lr,CHAR_DOT:Ur,CHAR_EXCLAMATION_MARK:Dr,CHAR_FORWARD_SLASH:Fr,CHAR_LEFT_CURLY_BRACE:Hr,CHAR_LEFT_PARENTHESES:jr,CHAR_LEFT_SQUARE_BRACKET:Ir,CHAR_PLUS:Br,CHAR_QUESTION_MARK:qr,CHAR_RIGHT_CURLY_BRACE:Nr,CHAR_RIGHT_PARENTHESES:Mr,CHAR_RIGHT_SQUARE_BRACKET:zr}=kr,Wr=e=>e===Fr||e===$r,Kr=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?Infinity:1)},{MAX_LENGTH:Vr,POSIX_REGEX_SOURCE:Jr,REGEX_NON_SPECIAL_CHARS:Xr,REGEX_SPECIAL_CHARS_BACKREF:Yr,REPLACEMENTS:Qr}=kr,Zr=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>Cr.escapeRegex(e)).join("..")}return r},eo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,to=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Qr[e]||e;const r={...t},o="number"==typeof r.maxLength?Math.min(Vr,r.maxLength):Vr;let s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);const n={type:"bos",value:"",output:r.prepend||""},i=[n],a=r.capture?"":"?:",c=kr.globChars(r.windows),u=kr.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:h,NO_DOT:g,NO_DOT_SLASH:f,NO_DOTS_SLASH:b,QMARK:T,QMARK_NO_DOT:E,STAR:w,START_ANCHOR:y}=c,_=e=>`(${a}(?:(?!${y}${e.dot?h:l}).)*?)`,v=r.dot?"":g,A=r.dot?T:E;let S=!0===r.bash?_(r):w;r.capture&&(S=`(${S})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const O={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Cr.removePrefix(e,O),s=e.length;const R=[],k=[],P=[];let C,G=n;const x=()=>O.index===s-1,$=O.peek=(t=1)=>e[O.index+t],L=O.advance=()=>e[++O.index]||"",U=()=>e.slice(O.index+1),D=(e="",t=0)=>{O.consumed+=e,O.index+=t},F=e=>{O.output+=null!=e.output?e.output:e.value,D(e.value)},H=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)L(),O.start++,e++;return e%2!=0&&(O.negated=!0,O.start++,!0)},j=e=>{O[e]++,P.push(e)},I=e=>{O[e]--,P.pop()},B=e=>{if("globstar"===G.type&&("slash"===e.type||"paren"===e.type||O.braces>0&&("comma"===e.type||"brace"===e.type)||!0===e.extglob||R.length&&("pipe"===e.type||"paren"===e.type)||(O.output=O.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=S,O.output+=G.output)),R.length&&"paren"!==e.type&&(R[R.length-1].inner+=e.value),(e.value||e.output)&&F(e),G&&"text"===G.type&&"text"===e.type)return G.output=(G.output||G.value)+e.value,void(G.value+=e.value);e.prev=G,i.push(e),G=e},q=(e,t)=>{const o={...u[t],conditions:1,inner:""};o.prev=G,o.parens=O.parens,o.output=O.output;const s=(r.capture?"(":"")+o.open;j("parens"),B({type:e,value:t,output:O.output?"":m}),B({type:"paren",extglob:!0,value:L(),output:s}),R.push(o)},N=e=>{let o,s=e.close+(r.capture?")":"");if("negate"===e.type){let n=S;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(n=_(r)),(n!==S||x()||/^\)+$/.test(U()))&&(s=e.close=`)$))${n}`),e.inner.includes("*")&&(o=U())&&/^\.[^\\/.]+$/.test(o)){const r=to(o,{...t,fastpaths:!1}).output;s=e.close=`)${r})${n})`}"bos"===e.prev.type&&(O.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:C,output:s}),I("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let o=!1,s=e.replace(Yr,(e,t,r,s,n,i)=>"\\"===s?(o=!0,e):"?"===s?t?t+s+(n?T.repeat(n.length):""):0===i?A+(n?T.repeat(n.length):""):T.repeat(r.length):"."===s?l.repeat(r.length):"*"===s?t?t+s+(n?S:""):S:t?e:`\\${e}`);return!0===o&&(s=!0===r.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===e&&!0===r.contains?(O.output=e,O):(O.output=Cr.wrapOutput(s,O,t),O)}for(;!x();){if(C=L(),"\0"===C)continue;if("\\"===C){const e=$();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){C+="\\",B({type:"text",value:C});continue}const t=/^\\+/.exec(U());let o=0;if(t&&t[0].length>2&&(o=t[0].length,O.index+=o,o%2!=0&&(C+="\\")),!0===r.unescape?C=L():C+=L(),0===O.brackets){B({type:"text",value:C});continue}}if(O.brackets>0&&("]"!==C||"["===G.value||"[^"===G.value)){if(!1!==r.posix&&":"===C){const e=G.value.slice(1);if(e.includes("[")&&(G.posix=!0,e.includes(":"))){const e=G.value.lastIndexOf("["),t=G.value.slice(0,e),r=G.value.slice(e+2),o=Jr[r];if(o){G.value=t+o,O.backtrack=!0,L(),n.output||1!==i.indexOf(G)||(n.output=m);continue}}}("["===C&&":"!==$()||"-"===C&&"]"===$())&&(C=`\\${C}`),"]"!==C||"["!==G.value&&"[^"!==G.value||(C=`\\${C}`),!0===r.posix&&"!"===C&&"["===G.value&&(C="^"),G.value+=C,F({value:C});continue}if(1===O.quotes&&'"'!==C){C=Cr.escapeRegex(C),G.value+=C,F({value:C});continue}if('"'===C){O.quotes=1===O.quotes?0:1,!0===r.keepQuotes&&B({type:"text",value:C});continue}if("("===C){j("parens"),B({type:"paren",value:C});continue}if(")"===C){if(0===O.parens&&!0===r.strictBrackets)throw new SyntaxError(eo("opening","("));const e=R[R.length-1];if(e&&O.parens===e.parens+1){N(R.pop());continue}B({type:"paren",value:C,output:O.parens?")":"\\)"}),I("parens");continue}if("["===C){if(!0!==r.nobracket&&U().includes("]"))j("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(eo("closing","]"));C=`\\${C}`}B({type:"bracket",value:C});continue}if("]"===C){if(!0===r.nobracket||G&&"bracket"===G.type&&1===G.value.length){B({type:"text",value:C,output:`\\${C}`});continue}if(0===O.brackets){if(!0===r.strictBrackets)throw new SyntaxError(eo("opening","["));B({type:"text",value:C,output:`\\${C}`});continue}I("brackets");const e=G.value.slice(1);if(!0===G.posix||"^"!==e[0]||e.includes("/")||(C=`/${C}`),G.value+=C,F({value:C}),!1===r.literalBrackets||Cr.hasRegexChars(e))continue;const t=Cr.escapeRegex(G.value);if(O.output=O.output.slice(0,-G.value.length),!0===r.literalBrackets){O.output+=t,G.value=t;continue}G.value=`(${a}${t}|${G.value})`,O.output+=G.value;continue}if("{"===C&&!0!==r.nobrace){j("braces");const e={type:"brace",value:C,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};k.push(e),B(e);continue}if("}"===C){const e=k[k.length-1];if(!0===r.nobrace||!e){B({type:"text",value:C,output:C});continue}let t=")";if(!0===e.dots){const e=i.slice(),o=[];for(let t=e.length-1;t>=0&&(i.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&o.unshift(e[t].value);t=Zr(o,r),O.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=O.output.slice(0,e.outputIndex),o=O.tokens.slice(e.tokensIndex);e.value=e.output="\\{",C=t="\\}",O.output=r;for(const e of o)O.output+=e.output||e.value}B({type:"brace",value:C,output:t}),I("braces"),k.pop();continue}if("|"===C){R.length>0&&R[R.length-1].conditions++,B({type:"text",value:C});continue}if(","===C){let e=C;const t=k[k.length-1];t&&"braces"===P[P.length-1]&&(t.comma=!0,e="|"),B({type:"comma",value:C,output:e});continue}if("/"===C){if("dot"===G.type&&O.index===O.start+1){O.start=O.index+1,O.consumed="",O.output="",i.pop(),G=n;continue}B({type:"slash",value:C,output:d});continue}if("."===C){if(O.braces>0&&"dot"===G.type){"."===G.value&&(G.output=l);const e=k[k.length-1];G.type="dots",G.output+=C,G.value+=C,e.dots=!0;continue}if(O.braces+O.parens===0&&"bos"!==G.type&&"slash"!==G.type){B({type:"text",value:C,output:l});continue}B({type:"dot",value:C,output:l});continue}if("?"===C){if((!G||"("!==G.value)&&!0!==r.noextglob&&"("===$()&&"?"!==$(2)){q("qmark",C);continue}if(G&&"paren"===G.type){const e=$();let t=C;("("===G.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(U()))&&(t=`\\${C}`),B({type:"text",value:C,output:t});continue}if(!0!==r.dot&&("slash"===G.type||"bos"===G.type)){B({type:"qmark",value:C,output:E});continue}B({type:"qmark",value:C,output:T});continue}if("!"===C){if(!0!==r.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){q("negate",C);continue}if(!0!==r.nonegate&&0===O.index){H();continue}}if("+"===C){if(!0!==r.noextglob&&"("===$()&&"?"!==$(2)){q("plus",C);continue}if(G&&"("===G.value||!1===r.regex){B({type:"plus",value:C,output:p});continue}if(G&&("bracket"===G.type||"paren"===G.type||"brace"===G.type)||O.parens>0){B({type:"plus",value:C});continue}B({type:"plus",value:p});continue}if("@"===C){if(!0!==r.noextglob&&"("===$()&&"?"!==$(2)){B({type:"at",extglob:!0,value:C,output:""});continue}B({type:"text",value:C});continue}if("*"!==C){"$"!==C&&"^"!==C||(C=`\\${C}`);const e=Xr.exec(U());e&&(C+=e[0],O.index+=e[0].length),B({type:"text",value:C});continue}if(G&&("globstar"===G.type||!0===G.star)){G.type="star",G.star=!0,G.value+=C,G.output=S,O.backtrack=!0,O.globstar=!0,D(C);continue}let t=U();if(!0!==r.noextglob&&/^\([^?]/.test(t)){q("star",C);continue}if("star"===G.type){if(!0===r.noglobstar){D(C);continue}const o=G.prev,s=o.prev,n="slash"===o.type||"bos"===o.type,i=s&&("star"===s.type||"globstar"===s.type);if(!0===r.bash&&(!n||t[0]&&"/"!==t[0])){B({type:"star",value:C,output:""});continue}if(!(n||"paren"===o.type||O.braces>0&&("comma"===o.type||"brace"===o.type)||R.length&&("pipe"===o.type||"paren"===o.type))){B({type:"star",value:C,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[O.index+4];if(r&&"/"!==r)break;t=t.slice(3),D("/**",3)}if("bos"===o.type&&x()){G.type="globstar",G.value+=C,G.output=_(r),O.output=G.output,O.globstar=!0,D(C);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!i&&x()){O.output=O.output.slice(0,-(o.output+G.output).length),o.output=`(?:${o.output}`,G.type="globstar",G.output=_(r)+(r.strictSlashes?")":"|$)"),G.value+=C,O.globstar=!0,O.output+=o.output+G.output,D(C);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";O.output=O.output.slice(0,-(o.output+G.output).length),o.output=`(?:${o.output}`,G.type="globstar",G.output=`${_(r)}${d}|${d}${e})`,G.value+=C,O.output+=o.output+G.output,O.globstar=!0,D(C+L()),B({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===t[0]){G.type="globstar",G.value+=C,G.output=`(?:^|${d}|${_(r)}${d})`,O.output=G.output,O.globstar=!0,D(C+L()),B({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-G.output.length),G.type="globstar",G.output=_(r),G.value+=C,O.output+=G.output,O.globstar=!0,D(C);continue}const o={type:"star",value:C,output:S};!0!==r.bash?!G||"bracket"!==G.type&&"paren"!==G.type||!0!==r.regex?(O.index!==O.start&&"slash"!==G.type&&"dot"!==G.type||("dot"===G.type?(O.output+=f,G.output+=f):!0===r.dot?(O.output+=b,G.output+=b):(O.output+=v,G.output+=v),"*"!==$()&&(O.output+=m,G.output+=m)),B(o)):(o.output=C,B(o)):(o.output=".*?","bos"!==G.type&&"slash"!==G.type||(o.output=v+o.output),B(o))}for(;O.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing","]"));O.output=Cr.escapeLast(O.output,"["),I("brackets")}for(;O.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing",")"));O.output=Cr.escapeLast(O.output,"("),I("parens")}for(;O.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing","}"));O.output=Cr.escapeLast(O.output,"{"),I("braces")}if(!0===r.strictSlashes||"star"!==G.type&&"bracket"!==G.type||B({type:"maybe_slash",value:"",output:`${d}?`}),!0===O.backtrack){O.output="";for(const e of O.tokens)O.output+=null!=e.output?e.output:e.value,e.suffix&&(O.output+=e.suffix)}return O};to.fastpaths=(e,t)=>{const r={...t},o="number"==typeof r.maxLength?Math.min(Vr,r.maxLength):Vr,s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=Qr[e]||e;const{DOT_LITERAL:n,SLASH_LITERAL:i,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:l,NO_DOTS_SLASH:p,STAR:d,START_ANCHOR:m}=kr.globChars(r.windows),h=r.dot?l:u,g=r.dot?p:u,f=r.capture?"":"?:";let b=!0===r.bash?".*?":d;r.capture&&(b=`(${b})`);const T=e=>!0===e.noglobstar?b:`(${f}(?:(?!${m}${e.dot?c:n}).)*?)`,E=e=>{switch(e){case"*":return`${h}${a}${b}`;case".*":return`${n}${a}${b}`;case"*.*":return`${h}${b}${n}${a}${b}`;case"*/*":return`${h}${b}${i}${a}${g}${b}`;case"**":return h+T(r);case"**/*":return`(?:${h}${T(r)}${i})?${g}${a}${b}`;case"**/*.*":return`(?:${h}${T(r)}${i})?${g}${b}${n}${a}${b}`;case"**/.*":return`(?:${h}${T(r)}${i})?${n}${a}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=E(t[1]);if(!r)return;return r+n+t[2]}}},w=Cr.removePrefix(e,{negated:!1,prefix:""});let y=E(w);return y&&!0!==r.strictSlashes&&(y+=`${i}?`),y};var ro=to;const oo=(e,t,r=!1)=>{if(Array.isArray(e)){const o=e.map(e=>oo(e,t,r)),s=e=>{for(const t of o){const r=t(e);if(r)return r}return!1};return s}const o=(s=e)&&"object"==typeof s&&!Array.isArray(s)&&e.tokens&&e.input;var s;if(""===e||"string"!=typeof e&&!o)throw new TypeError("Expected pattern to be a non-empty string");const n=t||{},i=n.windows,a=o?oo.compileRe(e,t):oo.makeRe(e,t,!1,!0),c=a.state;delete a.state;let u=()=>!1;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=oo(n.ignore,e,r)}const l=(r,o=!1)=>{const{isMatch:s,match:l,output:p}=oo.test(r,a,t,{glob:e,posix:i}),d={glob:e,state:c,regex:a,posix:i,input:r,output:p,match:l,isMatch:s};return"function"==typeof n.onResult&&n.onResult(d),!1===s?(d.isMatch=!1,!!o&&d):u(r)?("function"==typeof n.onIgnore&&n.onIgnore(d),d.isMatch=!1,!!o&&d):("function"==typeof n.onMatch&&n.onMatch(d),!o||d)};return r&&(l.state=c),l};oo.test=(e,t,r,{glob:o,posix:s}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const n=r||{},i=n.format||(s?Cr.toPosixSlashes:null);let a=e===o,c=a&&i?i(e):e;return!1===a&&(c=i?i(e):e,a=c===o),!1!==a&&!0!==n.capture||(a=!0===n.matchBase||!0===n.basename?oo.matchBase(e,t,r,s):t.exec(c)),{isMatch:Boolean(a),match:a,output:c}},oo.matchBase=(e,t,r)=>(t instanceof RegExp?t:oo.makeRe(t,r)).test(Cr.basename(e)),oo.isMatch=(e,t,r)=>oo(t,r)(e),oo.parse=(e,t)=>Array.isArray(e)?e.map(e=>oo.parse(e,t)):ro(e,{...t,fastpaths:!1}),oo.scan=(e,t)=>((e,t)=>{const r=t||{},o=e.length-1,s=!0===r.parts||!0===r.scanToEnd,n=[],i=[],a=[];let c,u,l=e,p=-1,d=0,m=0,h=!1,g=!1,f=!1,b=!1,T=!1,E=!1,w=!1,y=!1,_=!1,v=!1,A=0,S={value:"",depth:0,isGlob:!1};const O=()=>p>=o,R=()=>l.charCodeAt(p+1),k=()=>(c=u,l.charCodeAt(++p));for(;p0&&(C=l.slice(0,d),l=l.slice(d),m-=d),P&&!0===f&&m>0?(P=l.slice(0,m),G=l.slice(m)):!0===f?(P="",G=l):P=l,P&&""!==P&&"/"!==P&&P!==l&&Wr(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),!0===r.unescape&&(G&&(G=Cr.removeBackslashes(G)),P&&!0===w&&(P=Cr.removeBackslashes(P)));const x={prefix:C,input:e,start:d,base:P,glob:G,isBrace:h,isBracket:g,isGlob:f,isExtglob:b,isGlobstar:T,negated:y,negatedExtglob:_};if(!0===r.tokens&&(x.maxDepth=0,Wr(u)||i.push(S),x.tokens=i),!0===r.parts||!0===r.tokens){let t;for(let o=0;o{if(!0===r)return e.output;const s=t||{};let n=`${s.contains?"":"^"}(?:${e.output})${s.contains?"":"$"}`;e&&!0===e.negated&&(n=`^(?!${n}).*$`);const i=oo.toRegex(n,t);return!0===o&&(i.state=e),i},oo.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(s.output=ro.fastpaths(e,t)),s.output||(s=ro(e,t)),oo.compileRe(s,t,r,o)},oo.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},oo.constants=kr;var so=oo;function no(e,t,r=!1){return t&&null==t.windows&&(t={...t,windows:Cr.isWindows()}),so(e,t,r)}Object.assign(no,so);var io=no;const ao=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],co=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],uo=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],lo=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],po=(e,t,r)=>{let o=e;return"string"==typeof t||Array.isArray(t)?o=e.toLocaleString(t,r):!0!==t&&void 0===r||(o=e.toLocaleString(void 0,r)),o},mo=e=>{if("number"==typeof e)return Math.log10(e);const t=e.toString(10);return t.length+Math.log10(`0.${t.slice(0,15)}`)},ho=(e,t)=>{if(void 0===t)return e;if("number"!=typeof t||!Number.isSafeInteger(t)||t<0)throw new TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof t}: ${t}`);return 0===t?e:e.length{const{minimumFractionDigits:t,maximumFractionDigits:r}=e;if(void 0!==t||void 0!==r)return{...void 0!==t&&{minimumFractionDigits:t},...void 0!==r&&{maximumFractionDigits:r},roundingMode:"trunc"}})(t);let a;if(e<1)a=n+po(e,t.locale,i)+o+r[0];else{const s=Math.min(Math.floor(t.binary?("number"==typeof(c=e)?Math.log(c):mo(c)*Math.log(10))/Math.log(1024):mo(e)/3),r.length-1);if(e=((e,t)=>{if("number"==typeof e)return e/t;const r=e/BigInt(t),o=e%BigInt(t);return Number(r)+Number(o)/t})(e,(t.binary?1024:1e3)**s),!i){const t=Math.max(3,Math.floor(e).toString().length);e=e.toPrecision(t)}a=n+po(Number(e),t.locale,i)+o+r[s]}var c;return ho(a,t.fixedWidth)}const fo=f.promisify(x.default.gzip);O.default.promisify(E.default.readFile);const bo=e=>e,To={brotli:function(e,t){const r=(e=>"string"==typeof e?Buffer.from(e,"utf8"):e)(e);return P.default.brotliCompressSync(r,(o=t,s=r,{params:{[P.default.constants.BROTLI_PARAM_MODE]:o&&"mode"in o&&o.mode||P.default.constants.BROTLI_DEFAULT_MODE,[P.default.constants.BROTLI_PARAM_QUALITY]:o&&"quality"in o&&o.quality||P.default.constants.BROTLI_MAX_QUALITY,[P.default.constants.BROTLI_PARAM_SIZE_HINT]:s?s.byteLength:0}})).byteLength;var o,s},gzip:async function(e,t){return e?(await fo(e,(e=>({level:9,...e}))(t))).length:0},none:e=>Buffer.byteLength(e)};async function Eo(e,t){return await To[e](t)}class wo{constructor(e){e.compression??="gzip",e.pattern??="**/*.{js,mjs,cjs,jsx,css,html}",e.exclude??=null,e.stripHash??=bo,this.options=e}filterFiles=e=>{const t=io(this.options.pattern),r=this.options.exclude?io(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))};readFromDisk=async e=>{const t=h.globSync(this.options.pattern,{cwd:e,exclude:this.options.exclude?[this.options.exclude]:void 0}),r={};return await Promise.all(t.map(async t=>{try{const o=await h.promises.readFile(G.default.join(e,t),"utf-8"),s=await Eo(this.options.compression,o);r[this.options.stripHash(t)]=s}catch{}})),r};getSizes=async e=>{const t=this.filterFiles(Object.keys(e)),r={};return await Promise.all(t.map(async t=>{try{const o=await Eo(this.options.compression,e[t]);r[this.options.stripHash(t)]=o}catch{}})),r};getDiff=(e,t)=>{const r=new Set([...Object.keys(e),...Object.keys(t)]),o=[];for(const s of r){const r=t[s]||0;o.push({filename:s,size:r,delta:r-(e[s]||0)})}return o};printSizes=e=>{const t=Math.max(...e.map(e=>e.filename.length),0);let r="";for(const o of e){const{filename:e,size:s,delta:n}=o,i=" ".repeat(t-e.length+1)+e+" ⏤ ";let a=go(s),c="";n&&Math.abs(n)>1&&(c=(n>0?"+":"")+go(n),a+=` (${c})`),r+=i+a+"\n"}return r}}const yo=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_o=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],vo=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ao=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],So=(e,t)=>{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var Oo=(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?Ao:vo:t.binary?_o:yo;if(t.signed&&0===e)return" 0 "+r[0];const o=e<0,s=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return s+So(e,t.locale)+" "+r[0];const n=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,n)).toPrecision(3)),s+So(e,t.locale)+" "+r[n]};async function Ro(e){const[t,r,o,s,n,i]=await Promise.all([ko(w.default.resolve(e,"yarn.lock")),ko(w.default.resolve(e,"pnpm-lock.yaml")),ko(w.default.resolve(e,"bun.lockb")),ko(w.default.resolve(e,"bun.lock")),ko(w.default.resolve(e,"package-lock.json")),ko(w.default.resolve(e,"deno.lock"))]);let a="npm",c="npm install";return t?(c="yarn --frozen-lockfile",a="yarn"):r?(c="pnpm install --frozen-lockfile",a="pnpm"):o||s?(c="bun install --frozen-lockfile",a="bun"):n?c="npm ci":i&&(c="deno install --frozen"),{packageManager:a,installScript:c}}async function ko(e){try{return await E.default.promises.access(e,E.default.constants.F_OK),!0}catch(e){}return!1}function Po(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?"+":"")+Oo(e);if(0===Math.abs(e));else if(0===t)r+=" (new file)";else if(t===-e)r+=" (removed)";else{const o=Number((e/t*100).toFixed(2));r+=` (${o>0?"+":""}${o}%)`}return r}function Go(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 xo(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 $o(e){return/^(1|true|yes)$/.test(e)}function Lo(e){const[t,r]=e.split(":");return["Filename","Size","Change"].includes(t)&&["asc","desc"].includes(r)?e:(console.warn(`Invalid 'order-by' value '${e}', defaulting to 'Filename:asc'`),"Filename:asc")}(async()=>{try{const e=W.getInput("repo-token"),t=Xt.getOctokit(e);await async function(e,t,r){const{number:o}=t.issue;try{W.debug("pr"+JSON.stringify(t.payload,null,2))}catch(e){}let s,n;if("push"==t.eventName)s=t.payload.before,n=t.payload.ref,console.log(`Pushed new commit on top of ${n} (${s})`);else{if("pull_request"!=t.eventName&&"pull_request_target"!=t.eventName)throw new Error(`Unsupported eventName in github.context: ${t.eventName}. Only "pull_request", "pull_request_target", and "push" triggered workflows are currently supported.`);{const e=t.payload.pull_request;s=e.base.sha,n=e.base.ref,console.log(`PR #${o} is targeted at ${n} (${n})`)}}W.getInput("cwd")&&process.chdir(W.getInput("cwd"));const i=new wo({compression:W.getInput("compression"),pattern:W.getInput("pattern")||"**/dist/**/*.{js,mjs,cjs}",exclude:W.getInput("exclude")||"{**/*.map,**/node_modules/**}",stripHash:Po(W.getInput("strip-hash"))}),a=W.getInput("build-script")||"build",c=process.cwd();let{packageManager:u,installScript:l}=await Ro(c);W.getInput("install-script")&&(l=W.getInput("install-script")),W.startGroup("[current] Install Dependencies"),console.log(`Installing using ${l}`),await br(l),W.endGroup(),W.startGroup(`[current] Build using ${u}`),console.log(`Building using ${u} run ${a}`),await br(`${u} run ${a}`),W.endGroup();const p=await i.readFromDisk(c);await br("git reset --hard"),W.startGroup("[base] Checkout target branch");try{if(!n)throw Error("missing context.payload.pull_request.base.ref");await br(`git fetch -n origin ${n}:${n}`),console.log("successfully fetched base.ref")}catch(e){console.log("fetching base.ref failed",e.message);try{await br(`git fetch -n origin ${s}`),console.log("successfully fetched base.sha")}catch(e){console.log("fetching base.sha failed",e.message);try{await br("git fetch -n")}catch(e){console.log("fetch failed",e.message)}}}const d=W.getInput("clean-script");d&&(W.startGroup(`[target] Cleanup via ${u} run ${d}`),await br(`${u} run ${d}`),W.endGroup()),console.log("checking out and building base commit");try{if(!n)throw Error("missing context.payload.base.ref");await br(`git reset --hard ${n}`)}catch(e){await br(`git reset --hard ${s}`)}W.endGroup(),W.startGroup("[base] Install Dependencies"),({packageManager:u,installScript:l}=await Ro(c)),W.getInput("install-script")&&(l=W.getInput("install-script")),console.log(`Installing using ${l}`),await br(l),W.endGroup(),W.startGroup(`[base] Build using ${u}`),await br(`${u} run ${a}`),W.endGroup(),await br("git reset --hard");const m=await i.readFromDisk(c),h=await i.getDiff(m,p);W.startGroup("Size Differences:");const g=await i.printSizes(h);console.log(g),W.endGroup();const f=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:o,minimumChangeThreshold:s,sortBy:n}){const i=[],a=[],[c,u]=n.split(":"),l={Filename:"filename",Size:"size",Change:"delta"};e.sort((e,t)=>{const r=l[c];return"asc"===u?e[r].toString().localeCompare(t[r].toString(),void 0,{numeric:!0}):t[r].toString().localeCompare(e[r].toString(),void 0,{numeric:!0})});let p=0,d=0;for(const t of e){const{filename:e,size:n,delta:c}=t;p+=n;const u=n-c,l=Math.abs(c)đŸ“Ļ View Changed\n\n${xo(i)}\n\n`),0!==a.length&&(m+=`\n\n
â„šī¸ View Unchanged\n\n${xo(a)}\n\n
\n\n`),t){const e=p-d;let t=Co(d,e),r=Go(d,e);m=`**Total Size:** ${Oo(p)}\n\n${m}`,m=`**Size Change:** ${t} ${r}\n\n${m}`}return m}(h,{collapseUnchanged:$o(W.getInput("collapse-unchanged")),omitUnchanged:$o(W.getInput("omit-unchanged")),showTotal:$o(W.getInput("show-total")),minimumChangeThreshold:parseInt(W.getInput("minimum-change-threshold"),10),sortBy:Lo(W.getInput("sort-by"))});let b=!1;const T={...t.repo,issue_number:o},E=W.getInput("comment-key"),w={...T,body:f+`\n\ncompressed-size-action${E?`::${E}`:""}`};if("pull_request"!==t.eventName&&"pull_request_target"!==t.eventName)console.log("No PR associated with this action run. Not posting a check or comment."),b=!1;else if($o(W.getInput("use-check")))if(r){const r=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,t);await r({conclusion:"success",output:{title:"Compressed Size Action",summary:f}})}else b=!0;else{let r;W.startGroup("Updating stats PR comment");try{const t=(await e.issues.listComments(T)).data,o=new RegExp(`[s\n]*(compressed|gzip)-size-action${E?`::${E}`:""}`);for(let e=t.length;e--;){const s=t[e];if(o.test(s.body)){r=s.id;break}}}catch(e){console.log("Error checking for previous comments: "+e.message)}if(r){console.log(`Updating previous comment #${r}`);try{await e.issues.updateComment({...t.repo,comment_id:r,body:w.body})}catch(e){console.log("Error editing previous comment: "+e.message),r=null}}if(!r){console.log("Creating new comment");try{await e.issues.createComment(w)}catch(r){console.log(`Error creating comment: ${r.message}`),console.log("Submitting a PR review comment instead...");try{const r=t.issue;await e.pulls.createReview({owner:r.owner,repo:r.repo,pull_number:r.number,event:"COMMENT",body:w.body})}catch(e){console.log("Error creating PR review."),b=!0}}}W.endGroup()}b&&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${w.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}(t,Xt.context,e)}catch(e){W.setFailed(e.message)}})(); +var e=require("os"),t=require("fs"),r=require("path"),o=require("http"),s=require("https");require("net");var n=require("tls"),i=require("events"),a=require("assert"),c=require("util"),u=require("stream"),l=require("url"),p=require("zlib"),d=require("child_process"),m=require("node:path"),h=require("node:fs");require("node:stream");var g=require("node:zlib"),f=require("node:util");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var T=/*#__PURE__*/b(e),E=/*#__PURE__*/b(t),w=/*#__PURE__*/b(r),y=/*#__PURE__*/b(o),_=/*#__PURE__*/b(s),v=/*#__PURE__*/b(n),A=/*#__PURE__*/b(i),S=/*#__PURE__*/b(a),O=/*#__PURE__*/b(c),R=/*#__PURE__*/b(u),k=/*#__PURE__*/b(l),P=/*#__PURE__*/b(p),C=/*#__PURE__*/b(d),G=/*#__PURE__*/b(m),x=/*#__PURE__*/b(g),$="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){var t={exports:{}};return e(t,t.exports),t.exports}var U=/*#__PURE__*/Object.defineProperty({toCommandValue:function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}},"__esModule",{value:!0});const D=($&&$.__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})(T.default);function F(e,t,r){const o=new j(e,t,r);process.stdout.write(o.toString()+D.EOL)}var H=F;class j{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)}`)}}var t;return e+=`::${t=this.message,U.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}`,e}}function I(e){return U.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var B=/*#__PURE__*/Object.defineProperty({issueCommand:H,issue:function(e,t=""){F(e,{},t)}},"__esModule",{value:!0}),q=$&&$.__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};const N=q(E.default),M=q(T.default);var z=/*#__PURE__*/Object.defineProperty({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,`${U.toCommandValue(t)}${M.EOL}`,{encoding:"utf8"})}},"__esModule",{value:!0}),W=L(function(e,t){var r=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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=$&&$.__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 s=o(T.default),n=o(w.default);var i;function a(e){B.issue("error",e instanceof Error?e.toString():e)}function c(e){B.issue("group",e)}function u(){B.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(i=t.ExitCode||(t.ExitCode={})),t.exportVariable=function(e,t){const r=U.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";z.issueCommand("ENV",`${e}<<${t}${s.EOL}${r}${s.EOL}${t}`)}else B.issueCommand("set-env",{name:e},r)},t.setSecret=function(e){B.issueCommand("add-mask",{},e)},t.addPath=function(e){process.env.GITHUB_PATH?z.issueCommand("PATH",e):B.issueCommand("add-path",{},e),process.env.PATH=`${e}${n.delimiter}${process.env.PATH}`},t.getInput=function(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw new Error(`Input required and not supplied: ${e}`);return r.trim()},t.setOutput=function(e,t){B.issueCommand("set-output",{name:e},t)},t.setCommandEcho=function(e){B.issue("echo",e?"on":"off")},t.setFailed=function(e){process.exitCode=i.Failure,a(e)},t.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},t.debug=function(e){B.issueCommand("debug",{},e)},t.error=a,t.warning=function(e){B.issue("warning",e instanceof Error?e.toString():e)},t.info=function(e){process.stdout.write(e+s.EOL)},t.startGroup=c,t.endGroup=u,t.group=function(e,t){return r(this,void 0,void 0,function*(){let r;c(e);try{r=yield t()}finally{u()}return r})},t.saveState=function(e,t){B.issueCommand("save-state",{name:e},t)},t.getState=function(e){return process.env[`STATE_${e}`]||""}}),K=L(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(E.default.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(E.default.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${T.default.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'")}}});function V(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}var J,X=/*#__PURE__*/Object.defineProperty({getProxyUrl:function(e){let t,r,o="https:"===e.protocol;return V(e)||(r=o?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,r&&(t=new URL(r))),t},checkBypass:V},"__esModule",{value:!0});function Y(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||y.default.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,o,s){for(var n=Z(r,o,s),i=0,a=t.requests.length;i=this.maxSockets?s.requests.push(n):s.createSocket(n,function(t){function r(){s.emit("free",t,n)}function o(e){s.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)})},Y.prototype.createSocket=function(e,t){var r=this,o={};r.sockets.push(o);var s=ee({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),J("making CONNECT request");var n=r.request(s);function i(s,i,a){var c;return n.removeAllListeners(),i.removeAllListeners(),200!==s.statusCode?(J("tunneling socket could not be established, statusCode=%d",s.statusCode),i.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+s.statusCode)).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):a.length>0?(J("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)):(J("tunneling connection has established"),r.sockets[r.sockets.indexOf(o)]=i,t(i))}n.useChunkedEncodingByDefault=!1,n.once("response",function(e){e.upgrade=!0}),n.once("upgrade",function(e,t,r){process.nextTick(function(){i(e,t,r)})}),n.once("connect",i),n.once("error",function(t){n.removeAllListeners(),J("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, cause="+t.message);s.code="ECONNRESET",e.request.emit("error",s),r.removeSocket(o)}),n.end()},Y.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 te={httpOverHttp:function(e){var t=new Y(e);return t.request=y.default.request,t},httpsOverHttp:function(e){var t=new Y(e);return t.request=y.default.request,t.createSocket=Q,t.defaultPort=443,t},httpOverHttps:function(e){var t=new Y(e);return t.request=_.default.request,t},httpsOverHttps:function(e){var t=new Y(e);return t.request=_.default.request,t.createSocket=Q,t.defaultPort=443,t},debug:J=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(){}},re=L(function(e,t){let r;var o,s,n;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"}(s=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(n=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=X.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],c=["OPTIONS","GET","DELETE","HEAD"];class u extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,u.prototype)}}t.HttpClientError=u;class l{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=l,t.isHttps=function(e){return"https:"===new URL(e).protocol};class p{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[s.Accept]=this._getExistingOrDefaultHeader(t,s.Accept,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.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[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,n.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,n.ApplicationJson);let i=await this.patch(e,o,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,s){if(this._disposed)throw new Error("Client has already been disposed.");let n,u=new URL(t),l=this._prepareRequest(e,u,s),p=this._allowRetries&&-1!=c.indexOf(e)?this._maxRetries+1:1,d=0;for(;d0;){const o=n.message.headers.location;if(!o)break;let i=new URL(o);if("https:"==u.protocol&&u.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 n.readBody(),i.hostname!==u.hostname)for(let e in s)"authorization"===e.toLowerCase()&&delete s[e];l=this._prepareRequest(e,i,s),n=await this.requestRaw(l,r),t--}if(-1==a.indexOf(n.message.statusCode))return n;d+=1,d{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 s=!1,n=(e,t)=>{s||(s=!0,r(e,t))},i=e.httpModule.request(e.options,e=>{let t=new l(e);n(null,t)});i.on("socket",e=>{o=e}),i.setTimeout(this._socketTimeout||18e4,()=>{o&&o.end(),n(new Error("Request timeout: "+e.options.path),null)}),i.on("error",function(e){n(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 s="https:"===o.parsedUrl.protocol;o.httpModule=s?_.default:y.default;const n=s?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):n,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 s;return this.requestOptions&&this.requestOptions.headers&&(o=(s=this.requestOptions.headers,Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}))[t]),e[t]||o||r}_getAgent(e){let t,o=X.getProxyUrl(e),s=o&&o.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const n="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||y.default.globalAgent.maxSockets),s){let e;r||(r=te);const s="https:"===o.protocol;e=n?s?r.httpsOverHttps:r.httpsOverHttp:s?r.httpOverHttps:r.httpOverHttp,t=e({maxSockets:i,keepAlive:this._keepAlive,proxy:{proxyAuth:`${o.username}:${o.password}`,host:o.hostname,port:o.port}}),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=n?new _.default.Agent(e):new y.default.Agent(e),this._agent=t}return t||(t=n?_.default.globalAgent:y.default.globalAgent),n&&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,s)=>{const n=e.message.statusCode,i={statusCode:n,result:null,headers:{}};let a,c;n==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,p.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(n>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+n+")";let t=new u(e,n);t.result=i.result,s(t)}else r(i)})}}t.HttpClient=p}),oe=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const n=s(re);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 n.HttpClient).getAgent(e)},t.getApiBaseUrl=function(){return process.env.GITHUB_API_URL||"https://api.github.com"}});function se(){return"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var ne=function e(t,r,o,s){if("function"!=typeof o)throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(r)?r.reverse().reduce(function(r,o){return e.bind(null,t,o,r,s)},o)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,s)},o)():o(s)})},ie=function(e,t,r,o){var s=o;e.registry[r]||(e.registry[r]=[]),"before"===t&&(o=function(e,t){return Promise.resolve().then(s.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 s(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 s(e,t)})}),e.registry[r].push({hook:o,orig:s})},ae=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)}},ce=Function.bind,ue=ce.bind(ce);function le(e,t,r){var o=ue(ae,null).apply(null,r?[t,r]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(function(o){var s=r?[t,o,r]:[t,o];e[o]=e.api[o]=ue(ie,null).apply(null,s)})}function pe(){var e={registry:{}},t=ne.bind(null,e);return le(t,e),t}var de=!1;function me(){return de||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),de=!0),pe()}me.Singular=function(){var e={registry:{}},t=ne.bind(null,e,"h");return le(t,e,"h"),t}.bind(),me.Collection=pe.bind();var he=me,ge=me.Singular,fe=me.Collection;function be(e){return"[object Object]"===Object.prototype.toString.call(e)}function Te(e){var t,r;return!1!==be(e)&&(void 0===(t=e.constructor)||!1!==be(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function Ee(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(o=>{Te(t[o])?o in e?r[o]=Ee(e[o],t[o]):Object.assign(r,{[o]:t[o]}):Object.assign(r,{[o]:t[o]})}),r}function we(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function ye(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),{}):{},we(r),we(r.headers);const s=Ee(e||{},r);return e&&e.mediaType.previews.length&&(s.mediaType.previews=e.mediaType.previews.filter(e=>!s.mediaType.previews.includes(e)).concat(s.mediaType.previews)),s.mediaType.previews=s.mediaType.previews.map(e=>e.replace(/-preview/,"")),s}he.Hook=me,he.Singular=ge,he.Collection=fe;const _e=/\{[^}]+\}/g;function ve(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Ae(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function Se(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 Oe(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Re(e,t,r){return t="+"===e||"#"===e?Se(t):Oe(t),r?Oe(r)+"="+t:t}function ke(e){return null!=e}function Pe(e){return";"===e||"&"===e||"?"===e}function Ce(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,o,s){if(o){let e="";const s=[];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);s.push(function(e,t,r,o){var s=e[r],n=[];if(ke(s)&&""!==s)if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)s=s.toString(),o&&"*"!==o&&(s=s.substring(0,parseInt(o,10))),n.push(Re(t,s,Pe(t)?r:""));else if("*"===o)Array.isArray(s)?s.filter(ke).forEach(function(e){n.push(Re(t,e,Pe(t)?r:""))}):Object.keys(s).forEach(function(e){ke(s[e])&&n.push(Re(t,s[e],e))});else{const e=[];Array.isArray(s)?s.filter(ke).forEach(function(r){e.push(Re(t,r))}):Object.keys(s).forEach(function(r){ke(s[r])&&(e.push(Oe(r)),e.push(Re(t,s[r].toString())))}),Pe(t)?n.push(Oe(r)+"="+e.join(",")):0!==e.length&&n.push(e.join(","))}else";"===t?ke(s)&&n.push(Oe(r)):""!==s||"&"!==t&&"?"!==t?""===s&&n.push(""):n.push(Oe(r)+"=");return n}(t,e,o[1],o[2]||o[3]))}),e&&"+"!==e){var n=",";return"?"===e?n="&":"#"!==e&&(n=e),(0!==s.length?e:"")+s.join(n)}return s.join(",")}return Se(s)})}function Ge(e){let t,r=e.method.toUpperCase(),o=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},e.headers),n=Ae(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(_e);return t?t.map(ve).reduce((e,t)=>e.concat(t),[]):[]}(o);var a;o=(a=o,{expand:Ce.bind(null,a)}).expand(n),/^http/.test(o)||(o=e.baseUrl+o);const c=Ae(n,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(s.accept)&&(e.mediaType.format&&(s.accept=s.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=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.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:s["content-length"]=0,s["content-type"]||void 0===t||(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:o,headers:s},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function xe(e,t,r){return Ge(ye(e,t,r))}const $e=function e(t,r){const o=ye(t,r),s=xe.bind(null,o);return Object.assign(s,{DEFAULTS:o,defaults:e.bind(null,o),merge:ye.bind(null,o),parse:Ge})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/6.0.10 ${se()}`},mediaType:{format:"",previews:[]}}),Le=R.default.Readable,Ue=Symbol("buffer"),De=Symbol("type");class Fe{constructor(){this[De]="";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 n=r.timeout;let i=void 0===n?0:n;null==e?e=null:Me(e)?e=Buffer.from(e.toString()):ze(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 R.default||(e=Buffer.from(String(e)))),this[Ie]={body:e,disturbed:!1,error:null},this.size=s,this.timeout=i,e instanceof R.default&&e.on("error",function(e){const r="AbortError"===e.name?e:new He(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[Ie].error=r})}function Ne(){var e=this;if(this[Ie].disturbed)return qe.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Ie].disturbed=!0,this[Ie].error)return qe.Promise.reject(this[Ie].error);let t=this.body;if(null===t)return qe.Promise.resolve(Buffer.alloc(0));if(ze(t)&&(t=t.stream()),Buffer.isBuffer(t))return qe.Promise.resolve(t);if(!(t instanceof R.default))return qe.Promise.resolve(Buffer.alloc(0));let r=[],o=0,s=!1;return new qe.Promise(function(n,i){let a;e.timeout&&(a=setTimeout(function(){s=!0,i(new He(`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 He(`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 He(`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 He(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function Me(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 ze(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 We(e){let t,r,o=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof R.default&&"function"!=typeof o.getBoundary&&(t=new Be,r=new Be,o.pipe(t),o.pipe(r),e[Ie].body=t,o=r),o}function Ke(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Me(e)?"application/x-www-form-urlencoded;charset=UTF-8":ze(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 R.default?null:"text/plain;charset=UTF-8"}function Ve(e){const t=e.body;return null===t?0:ze(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}qe.prototype={get body(){return this[Ie].body},get bodyUsed(){return this[Ie].disturbed},arrayBuffer(){return Ne.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 Ne.call(this).then(function(t){return Object.assign(new Fe([],{type:e.toLowerCase()}),{[Ue]:t})})},json(){var e=this;return Ne.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return qe.Promise.reject(new He(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return Ne.call(this).then(function(e){return e.toString()})},buffer(){return Ne.call(this)},textConverted(){var e=this;return Ne.call(this).then(function(t){return function(e,t){if("function"!=typeof je)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let o,s,n="utf-8";return r&&(o=/charset=([^;]*)/i.exec(r)),s=e.slice(0,1024).toString(),!o&&s&&(o=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[et]=Object.create(null),e instanceof tt){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r);return}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){Ye(e=`${e}`);const t=Ze(this[et],e);return void 0===t?null:this[et][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=rt(this),o=0;for(;o1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[et]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[et][t].join(", ")}:function(t){return[t.toLowerCase(),e[et][t].join(", ")]})}tt.prototype.entries=tt.prototype[Symbol.iterator],Object.defineProperty(tt.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(tt.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 ot=Symbol("internal");function st(e,t){const r=Object.create(nt);return r[ot]={target:e,kind:t,index:0},r}const nt=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==nt)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[ot];const t=e.index,r=rt(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[ot].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function it(e){const t=Object.assign({__proto__:null},e[et]),r=Ze(e[et],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(nt,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const at=Symbol("Response internals"),ct=y.default.STATUS_CODES;class ut{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qe.call(this,e,t);const r=t.status||200,o=new tt(t.headers);if(null!=e&&!o.has("Content-Type")){const t=Ke(e);t&&o.append("Content-Type",t)}this[at]={url:t.url,status:r,statusText:t.statusText||ct[r],headers:o,counter:t.counter}}get url(){return this[at].url||""}get status(){return this[at].status}get ok(){return this[at].status>=200&&this[at].status<300}get redirected(){return this[at].counter>0}get statusText(){return this[at].statusText}get headers(){return this[at].headers}clone(){return new ut(We(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}qe.mixIn(ut.prototype),Object.defineProperties(ut.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(ut.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const lt=Symbol("Request internals"),pt=k.default.parse,dt=k.default.format,mt="destroy"in R.default.Readable.prototype;function ht(e){return"object"==typeof e&&"object"==typeof e[lt]}class gt{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht(e)?t=pt(e.url):(t=pt(e&&e.href?e.href:`${e}`),e={});let o=r.method||e.method||"GET";if(o=o.toUpperCase(),(null!=r.body||ht(e)&&null!==e.body)&&("GET"===o||"HEAD"===o))throw new TypeError("Request with GET/HEAD method cannot have body");let s=null!=r.body?r.body:ht(e)&&null!==e.body?We(e):null;qe.call(this,s,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const n=new tt(r.headers||e.headers||{});if(null!=s&&!n.has("Content-Type")){const e=Ke(s);e&&n.append("Content-Type",e)}let i=ht(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[lt]={method:o,redirect:r.redirect||e.redirect||"follow",headers:n,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[lt].method}get url(){return dt(this[lt].parsedURL)}get headers(){return this[lt].headers}get redirect(){return this[lt].redirect}get signal(){return this[lt].signal}clone(){return new gt(this)}}function ft(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}qe.mixIn(gt.prototype),Object.defineProperty(gt.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(gt.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(ft.prototype=Object.create(Error.prototype)).constructor=ft,ft.prototype.name="AbortError";const bt=R.default.PassThrough,Tt=k.default.resolve;function Et(e,t){if(!Et.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return qe.Promise=Et.Promise,new Et.Promise(function(r,o){const s=new gt(e,t),n=function(e){const t=e[lt].parsedURL,r=new tt(e[lt].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 R.default.Readable&&!mt)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=Ve(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:it(r),agent:s})}(s),i=("https:"===n.protocol?_.default:y.default).request,a=s.signal;let c=null;const u=function(){let e=new ft("The user aborted a request.");o(e),s.body&&s.body instanceof R.default.Readable&&s.body.destroy(e),c&&c.body&&c.body.emit("error",e)};if(a&&a.aborted)return void u();const l=function(){u(),m()},p=i(n);let d;function m(){p.abort(),a&&a.removeEventListener("abort",l),clearTimeout(d)}a&&a.addEventListener("abort",l),s.timeout&&p.once("socket",function(e){d=setTimeout(function(){o(new He(`network timeout at: ${s.url}`,"request-timeout")),m()},s.timeout)}),p.on("error",function(e){o(new He(`request to ${s.url} failed, reason: ${e.message}`,"system",e)),m()}),p.on("response",function(e){clearTimeout(d);const t=function(e){const t=new tt;for(const r of Object.keys(e))if(!Je.test(r))if(Array.isArray(e[r]))for(const o of e[r])Xe.test(o)||(void 0===t[et][r]?t[et][r]=[o]:t[et][r].push(o));else Xe.test(e[r])||(t[et][r]=[e[r]]);return t}(e.headers);if(Et.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:Tt(s.url,n);switch(s.redirect){case"error":return o(new He(`uri requested responds with a redirect, redirect mode is set to error: ${s.url}`,"no-redirect")),void m();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 He(`maximum redirect reached at: ${s.url}`,"max-redirect")),void m();const n={headers:new tt(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===Ve(s)?(o(new He("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void m()):(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(Et(new gt(i,n))),void m())}}e.once("end",function(){a&&a.removeEventListener("abort",l)});let n=e.pipe(new bt);const i={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:s.size,timeout:s.timeout,counter:s.counter},u=t.get("Content-Encoding");return s.compress&&"HEAD"!==s.method&&null!==u&&204!==e.statusCode&&304!==e.statusCode?"gzip"==u||"x-gzip"==u?(n=n.pipe(P.default.createGunzip({flush:P.default.Z_SYNC_FLUSH,finishFlush:P.default.Z_SYNC_FLUSH})),c=new ut(n,i),void r(c)):"deflate"!=u&&"x-deflate"!=u?"br"==u&&"function"==typeof P.default.createBrotliDecompress?(n=n.pipe(P.default.createBrotliDecompress()),c=new ut(n,i),void r(c)):(c=new ut(n,i),void r(c)):void e.pipe(new bt).once("data",function(e){n=n.pipe(8==(15&e[0])?P.default.createInflate():P.default.createInflateRaw()),c=new ut(n,i),r(c)}):(c=new ut(n,i),void r(c))}),function(e,t){const r=t.body;null===r?e.end():ze(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(p,s)})}Et.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Et.Promise=global.Promise;class wt extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var yt=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 Rt 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:()=>(Ot(new wt("[@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 kt(e){(Te(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||Et)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(s=>{r=s.url,t=s.status;for(const e of s.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new Rt(s.statusText,t,{headers:o,request:e})}if(304===t)throw new Rt("Not modified",t,{headers:o,request:e});if(t>=400)return s.text().then(r=>{const s=new Rt(r,t,{headers:o,request:e});try{let e=JSON.parse(s.message);Object.assign(s,e),s.message=s.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw s});const n=s.headers.get("content-type");return/application\/json/.test(n)?s.json():!n||/^text\/|charset=utf-8$/.test(n)?s.text():function(e){return e.arrayBuffer()}(s)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof Rt)throw t;throw new Rt(t.message,500,{headers:o,request:e})})}const Pt=function e(t,r){const o=t.defaults(r);return Object.assign(function(t,r){const s=o.merge(t,r);if(!s.request||!s.request.hook)return kt(o.parse(s));const n=(e,t)=>kt(o.parse(o.merge(e,t)));return Object.assign(n,{endpoint:o,defaults:e.bind(null,o)}),s.request.hook(n,s)},{endpoint:o,defaults:e.bind(null,o)})}($e,{headers:{"user-agent":`octokit-request.js/5.4.12 ${se()}`}});class Ct 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 Gt=["method","baseUrl","url","headers","request","query","mediaType"],xt=/\/api\/v3\/?$/;function $t(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,s=Object.keys(o).reduce((e,t)=>Gt.includes(t)?(e[t]=o[t],e):(e.variables||(e.variables={}),e.variables[t]=o[t],e),{}),n=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return xt.test(n)&&(s.url=n.replace(xt,"/api/graphql")),e(s).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new Ct(s,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:$t.bind(null,r),endpoint:Pt.endpoint})}async function Lt(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function Ut(e,t,r,o){const s=t.endpoint.merge(r,o);return s.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),t(s)}$t(Pt,{headers:{"user-agent":`octokit-graphql.js/4.5.8 ${se()}`},method:"POST",url:"/graphql"});const Dt=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(Lt.bind(null,e),{hook:Ut.bind(null,e)})},Ft="3.2.4";class Ht{constructor(e={}){const t=new fe,r={baseUrl:Pt.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/${Ft} ${se()}`].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=Pt.defaults(r),this.graphql=(o=this.request,$t(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,s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",s.hook),this.auth=s}else if(e.auth){const r=Dt(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}}Ht.VERSION=Ft,Ht.plugins=[];var jt={__proto__:null,Octokit:Ht};const It={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 Bt(e,t,r,o,s){const n=e.request.defaults(o);return Object.assign(function(...o){let i=n.endpoint.merge(...o);if(s.mapToData)return i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0}),n(i);if(s.renamed){const[o,n]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${o}.${n}()`)}if(s.deprecated&&e.log.warn(s.deprecated),s.renamedParameters){const i=n.endpoint.merge(...o);for(const[o,n]of Object.entries(s.renamedParameters))o in i&&(e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${r}()". Use "${n}" instead`),n in i||(i[n]=i[o]),delete i[o]);return n(i)}return n(...o)},n)}function qt(e){return function(e,t){const r={};for(const[o,s]of Object.entries(t))for(const[t,n]of Object.entries(s)){const[s,i,a]=n,[c,u]=s.split(/ /),l=Object.assign({method:c,url:u},i);r[o]||(r[o]={}),r[o][t]=a?Bt(e,o,t,l,a):e.request.defaults(l)}return r}(e,It)}qt.VERSION="4.4.1";var Nt=qt;function Mt(e,t,r){const o="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),s="function"==typeof t?t:e.request,n=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 s=Object.keys(e.data)[0];return e.data=e.data[s],void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=o,e}(await s({method:n,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}})}}function zt(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),Wt(e,[],Mt(e,t,r)[Symbol.asyncIterator](),o)}function Wt(e,t,r,o){return r.next().then(s=>{if(s.done)return t;let n=!1;return t=t.concat(o?o(s.value,function(){n=!0}):s.value.data),n?t:Wt(e,t,r,o)})}function Kt(e){return{paginate:Object.assign(zt.bind(null,e),{iterator:Mt.bind(null,e)})}}Object.assign(zt,{iterator:Mt}),Kt.VERSION="2.6.2";var Vt=Kt,Jt=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokitOptions=t.GitHub=t.context=void 0;const n=s(K),i=s(oe);t.context=new n.Context;const a=i.getApiBaseUrl(),c={baseUrl:a,request:{agent:i.getProxyAgent(a)}};t.GitHub=jt.Octokit.plugin(Nt,Vt).defaults(c),t.getOctokitOptions=function(e,t){const r=Object.assign({},t||{}),o=i.getAuthString(e,r);return o&&(r.auth=o),r}}),Xt=L(function(e,t){var r=$&&$.__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=$&&$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=$&&$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokit=t.context=void 0;const n=s(K);t.context=new n.Context,t.getOctokit=function(e,t){return new Jt.GitHub(Jt.getOctokitOptions(e,t))}}),Yt=L(function(e,t){var r,o=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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 s(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(t,"__esModule",{value:!0}),t.chmod=(r=E.default.promises).chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return o(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},t.isDirectory=function(e,r=!1){return o(this,void 0,void 0,function*(){return(r?yield t.stat(e):yield t.lstat(e)).isDirectory()})},t.isRooted=function(e){if(!(e=function(e){return e=e||"",t.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return t.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},t.mkdirP=function e(r,s=1e3,n=1){return o(this,void 0,void 0,function*(){if(S.default.ok(r,"a path argument must be provided"),r=w.default.resolve(r),n>=s)return t.mkdir(r);try{return void(yield t.mkdir(r))}catch(o){if("ENOENT"===o.code)return yield e(w.default.dirname(r),s,n+1),void(yield t.mkdir(r));{let e;try{e=yield t.stat(r)}catch(e){throw o}if(!e.isDirectory())throw o}}})},t.tryGetExecutablePath=function(e,r){return o(this,void 0,void 0,function*(){let o;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile())if(t.IS_WINDOWS){const t=w.default.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t))return e}else if(s(o))return e;const n=e;for(const i of r){e=n+i,o=void 0;try{o=yield t.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const r=w.default.dirname(e),o=w.default.basename(e).toUpperCase();for(const s of yield t.readdir(r))if(o===s.toUpperCase()){e=w.default.join(r,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(s(o))return e}}return""})}}),Qt=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})};const Zt=O.default.promisify(C.default.exec);function er(e){return Qt(this,void 0,void 0,function*(){if(Yt.IS_WINDOWS){try{(yield Yt.isDirectory(e,!0))?yield Zt(`rd /s /q "${e}"`):yield Zt(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield Yt.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield Yt.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield Zt(`rm -rf "${e}"`):yield Yt.unlink(e)}})}function tr(e){return Qt(this,void 0,void 0,function*(){yield Yt.mkdirP(e)})}function rr(e,t,r,o){return Qt(this,void 0,void 0,function*(){if(r>=255)return;r++,yield tr(t);const s=yield Yt.readdir(e);for(const n of s){const s=`${e}/${n}`,i=`${t}/${n}`;(yield Yt.lstat(s)).isDirectory()?yield rr(s,i,r,o):yield or(s,i,o)}yield Yt.chmod(t,(yield Yt.stat(e)).mode)})}function or(e,t,r){return Qt(this,void 0,void 0,function*(){if((yield Yt.lstat(e)).isSymbolicLink()){try{yield Yt.lstat(t),yield Yt.unlink(t)}catch(e){"EPERM"===e.code&&(yield Yt.chmod(t,"0666"),yield Yt.unlink(t))}const r=yield Yt.readlink(e);yield Yt.symlink(r,t,Yt.IS_WINDOWS?"junction":null)}else(yield Yt.exists(t))&&!r||(yield Yt.copyFile(e,t))})}var sr=/*#__PURE__*/Object.defineProperty({cp:function(e,t,r={}){return Qt(this,void 0,void 0,function*(){const{force:o,recursive:s}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(r),n=(yield Yt.exists(t))?yield Yt.stat(t):null;if(n&&n.isFile()&&!o)return;const i=n&&n.isDirectory()?w.default.join(t,w.default.basename(e)):t;if(!(yield Yt.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield Yt.stat(e)).isDirectory()){if(!s)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield rr(e,i,0,o)}else{if(""===w.default.relative(e,i))throw new Error(`'${i}' and '${e}' are the same file`);yield or(e,i,o)}})},mv:function(e,t,r={}){return Qt(this,void 0,void 0,function*(){if(yield Yt.exists(t)){let o=!0;if((yield Yt.isDirectory(t))&&(t=w.default.join(t,w.default.basename(e)),o=yield Yt.exists(t)),o){if(null!=r.force&&!r.force)throw new Error("Destination already exists");yield er(t)}}yield tr(w.default.dirname(t)),yield Yt.rename(e,t)})},rmRF:er,mkdirP:tr,which:function e(t,r){return Qt(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(r&&!(yield e(t,!1)))throw Yt.IS_WINDOWS?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if(Yt.IS_WINDOWS&&process.env.PATHEXT)for(const t of process.env.PATHEXT.split(w.default.delimiter))t&&e.push(t);if(Yt.isRooted(t))return(yield Yt.tryGetExecutablePath(t,e))||"";if(t.includes("/")||Yt.IS_WINDOWS&&t.includes("\\"))return"";const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(w.default.delimiter))e&&r.push(e);for(const o of r){const r=yield Yt.tryGetExecutablePath(o+w.default.sep+t,e);if(r)return r}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}},"__esModule",{value:!0}),nr=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})},ir=$&&$.__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};const ar=ir(T.default),cr=ir(A.default),ur=ir(C.default),lr=ir(w.default),pr=ir(sr),dr=ir(Yt),mr="win32"===process.platform;class hr extends cr.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(hr.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())}}var gr=$&&$.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(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())})};const fr=($&&$.__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})(/*#__PURE__*/Object.defineProperty({ToolRunner:class extends cr.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 s=t?"":"[command]";if(mr)if(this._isCmdFile()){s+=r;for(const e of o)s+=` ${e}`}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of o)s+=` ${e}`}else{s+=this._windowsQuoteCmdArg(r);for(const e of o)s+=` ${this._windowsQuoteCmdArg(e)}`}else{s+=r;for(const e of o)s+=` ${e}`}return s}_processLineBuffer(e,t,r){try{let o=t+e.toString(),s=o.indexOf(ar.EOL);for(;s>-1;)r(o.substring(0,s)),o=o.substring(s+ar.EOL.length),s=o.indexOf(ar.EOL);t=o}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){return mr&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(mr&&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='"',s=!0;for(let t=e.length;t>0;t--)o+=e[t-1],s&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(s=!0,o+='"'):s=!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 nr(this,void 0,void 0,function*(){return!dr.isRooted(this.toolPath)&&(this.toolPath.includes("/")||mr&&this.toolPath.includes("\\"))&&(this.toolPath=lr.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield pr.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)+ar.EOL);const o=new hr(r,this.toolPath);o.on("debug",e=>{this._debug(e)});const s=this._getSpawnFileName(),n=ur.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));if(n.stdout&&n.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)})}),n.stderr&&n.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)})}),n.on("error",e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()}),n.on("exit",e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()}),n.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)=>{n.removeAllListeners(),r?t(r):e(o)}),this.options.input){if(!n.stdin)throw new Error("child process missing stdin");n.stdin.end(this.options.input)}})})}},argStringToArray:function(e){const t=[];let r=!1,o=!1,s="";function n(e){o&&'"'!==e&&(s+="\\"),s+=e,o=!1}for(let i=0;i0&&(t.push(s),s=""):o?n(a):r=!r}return s.length>0&&t.push(s.trim()),t}},"__esModule",{value:!0}));var br=function(e,t,r){return gr(this,void 0,void 0,function*(){const o=fr.argStringToArray(e);if(0===o.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=o[0];return t=o.slice(1).concat(t||[]),new fr.ToolRunner(s,t,r).exec()})};const Tr="\\\\/",Er=`[^${Tr}]`,wr="\\.",yr="\\/",_r="[^/]",vr=`(?:${yr}|$)`,Ar=`(?:^|${yr})`,Sr=`${wr}{1,2}${vr}`,Or={DOT_LITERAL:wr,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:yr,ONE_CHAR:"(?=.)",QMARK:_r,END_ANCHOR:vr,DOTS_SLASH:Sr,NO_DOT:`(?!${wr})`,NO_DOTS:`(?!${Ar}${Sr})`,NO_DOT_SLASH:`(?!${wr}{0,1}${vr})`,NO_DOTS_SLASH:`(?!${Sr})`,QMARK_NO_DOT:`[^.${yr}]`,STAR:`${_r}*?`,START_ANCHOR:Ar,SEP:"/"},Rr={...Or,SLASH_LITERAL:`[${Tr}]`,QMARK:Er,STAR:`${Er}*?`,DOTS_SLASH:`${wr}{1,2}(?:[${Tr}]|$)`,NO_DOT:`(?!${wr})`,NO_DOTS:`(?!(?:^|[${Tr}])${wr}{1,2}(?:[${Tr}]|$))`,NO_DOT_SLASH:`(?!${wr}{0,1}(?:[${Tr}]|$))`,NO_DOTS_SLASH:`(?!${wr}{1,2}(?:[${Tr}]|$))`,QMARK_NO_DOT:`[^.${Tr}]`,START_ANCHOR:`(?:^|[${Tr}])`,END_ANCHOR:`(?:[${Tr}]|$)`,SEP:"\\"};var kr={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?Rr:Or},Pr=L(function(e,t){const{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:n}=kr;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(n,"\\$1"),t.toPosixSlashes=e=>e.replace(r,"/"),t.isWindows=()=>{if("{}".platform){const e="{}".platform.toLowerCase();return"win32"===e||"windows"===e}return!("undefined"==typeof process||!process.platform)&&"win32"===process.platform},t.removeBackslashes=e=>e.replace(o,e=>"\\"===e?"":e),t.escapeLast=(e,r,o)=>{const s=e.lastIndexOf(r,o);return-1===s?e:"\\"===e[s-1]?t.escapeLast(e,r,s-1):`${e.slice(0,s)}\\${e.slice(s)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let o=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(o=`(?:^(?!${o}).*$)`),o},t.basename=(e,{windows:t}={})=>{const r=e.split(t?/[\\/]/:"/"),o=r[r.length-1];return""===o?r[r.length-2]:o}}),Cr=Pr;const{CHAR_ASTERISK:Gr,CHAR_AT:xr,CHAR_BACKWARD_SLASH:$r,CHAR_COMMA:Lr,CHAR_DOT:Ur,CHAR_EXCLAMATION_MARK:Dr,CHAR_FORWARD_SLASH:Fr,CHAR_LEFT_CURLY_BRACE:Hr,CHAR_LEFT_PARENTHESES:jr,CHAR_LEFT_SQUARE_BRACKET:Ir,CHAR_PLUS:Br,CHAR_QUESTION_MARK:qr,CHAR_RIGHT_CURLY_BRACE:Nr,CHAR_RIGHT_PARENTHESES:Mr,CHAR_RIGHT_SQUARE_BRACKET:zr}=kr,Wr=e=>e===Fr||e===$r,Kr=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?Infinity:1)},{MAX_LENGTH:Vr,POSIX_REGEX_SOURCE:Jr,REGEX_NON_SPECIAL_CHARS:Xr,REGEX_SPECIAL_CHARS_BACKREF:Yr,REPLACEMENTS:Qr}=kr,Zr=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>Cr.escapeRegex(e)).join("..")}return r},eo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,to=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Qr[e]||e;const r={...t},o="number"==typeof r.maxLength?Math.min(Vr,r.maxLength):Vr;let s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);const n={type:"bos",value:"",output:r.prepend||""},i=[n],a=r.capture?"":"?:",c=kr.globChars(r.windows),u=kr.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:p,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:h,NO_DOT:g,NO_DOT_SLASH:f,NO_DOTS_SLASH:b,QMARK:T,QMARK_NO_DOT:E,STAR:w,START_ANCHOR:y}=c,_=e=>`(${a}(?:(?!${y}${e.dot?h:l}).)*?)`,v=r.dot?"":g,A=r.dot?T:E;let S=!0===r.bash?_(r):w;r.capture&&(S=`(${S})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const O={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Cr.removePrefix(e,O),s=e.length;const R=[],k=[],P=[];let C,G=n;const x=()=>O.index===s-1,$=O.peek=(t=1)=>e[O.index+t],L=O.advance=()=>e[++O.index]||"",U=()=>e.slice(O.index+1),D=(e="",t=0)=>{O.consumed+=e,O.index+=t},F=e=>{O.output+=null!=e.output?e.output:e.value,D(e.value)},H=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)L(),O.start++,e++;return e%2!=0&&(O.negated=!0,O.start++,!0)},j=e=>{O[e]++,P.push(e)},I=e=>{O[e]--,P.pop()},B=e=>{if("globstar"===G.type&&("slash"===e.type||"paren"===e.type||O.braces>0&&("comma"===e.type||"brace"===e.type)||!0===e.extglob||R.length&&("pipe"===e.type||"paren"===e.type)||(O.output=O.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=S,O.output+=G.output)),R.length&&"paren"!==e.type&&(R[R.length-1].inner+=e.value),(e.value||e.output)&&F(e),G&&"text"===G.type&&"text"===e.type)return G.output=(G.output||G.value)+e.value,void(G.value+=e.value);e.prev=G,i.push(e),G=e},q=(e,t)=>{const o={...u[t],conditions:1,inner:""};o.prev=G,o.parens=O.parens,o.output=O.output;const s=(r.capture?"(":"")+o.open;j("parens"),B({type:e,value:t,output:O.output?"":m}),B({type:"paren",extglob:!0,value:L(),output:s}),R.push(o)},N=e=>{let o,s=e.close+(r.capture?")":"");if("negate"===e.type){let n=S;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(n=_(r)),(n!==S||x()||/^\)+$/.test(U()))&&(s=e.close=`)$))${n}`),e.inner.includes("*")&&(o=U())&&/^\.[^\\/.]+$/.test(o)){const r=to(o,{...t,fastpaths:!1}).output;s=e.close=`)${r})${n})`}"bos"===e.prev.type&&(O.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:C,output:s}),I("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let o=!1,s=e.replace(Yr,(e,t,r,s,n,i)=>"\\"===s?(o=!0,e):"?"===s?t?t+s+(n?T.repeat(n.length):""):0===i?A+(n?T.repeat(n.length):""):T.repeat(r.length):"."===s?l.repeat(r.length):"*"===s?t?t+s+(n?S:""):S:t?e:`\\${e}`);return!0===o&&(s=!0===r.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===e&&!0===r.contains?(O.output=e,O):(O.output=Cr.wrapOutput(s,O,t),O)}for(;!x();){if(C=L(),"\0"===C)continue;if("\\"===C){const e=$();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){C+="\\",B({type:"text",value:C});continue}const t=/^\\+/.exec(U());let o=0;if(t&&t[0].length>2&&(o=t[0].length,O.index+=o,o%2!=0&&(C+="\\")),!0===r.unescape?C=L():C+=L(),0===O.brackets){B({type:"text",value:C});continue}}if(O.brackets>0&&("]"!==C||"["===G.value||"[^"===G.value)){if(!1!==r.posix&&":"===C){const e=G.value.slice(1);if(e.includes("[")&&(G.posix=!0,e.includes(":"))){const e=G.value.lastIndexOf("["),t=G.value.slice(0,e),r=G.value.slice(e+2),o=Jr[r];if(o){G.value=t+o,O.backtrack=!0,L(),n.output||1!==i.indexOf(G)||(n.output=m);continue}}}("["===C&&":"!==$()||"-"===C&&"]"===$())&&(C=`\\${C}`),"]"!==C||"["!==G.value&&"[^"!==G.value||(C=`\\${C}`),!0===r.posix&&"!"===C&&"["===G.value&&(C="^"),G.value+=C,F({value:C});continue}if(1===O.quotes&&'"'!==C){C=Cr.escapeRegex(C),G.value+=C,F({value:C});continue}if('"'===C){O.quotes=1===O.quotes?0:1,!0===r.keepQuotes&&B({type:"text",value:C});continue}if("("===C){j("parens"),B({type:"paren",value:C});continue}if(")"===C){if(0===O.parens&&!0===r.strictBrackets)throw new SyntaxError(eo("opening","("));const e=R[R.length-1];if(e&&O.parens===e.parens+1){N(R.pop());continue}B({type:"paren",value:C,output:O.parens?")":"\\)"}),I("parens");continue}if("["===C){if(!0!==r.nobracket&&U().includes("]"))j("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(eo("closing","]"));C=`\\${C}`}B({type:"bracket",value:C});continue}if("]"===C){if(!0===r.nobracket||G&&"bracket"===G.type&&1===G.value.length){B({type:"text",value:C,output:`\\${C}`});continue}if(0===O.brackets){if(!0===r.strictBrackets)throw new SyntaxError(eo("opening","["));B({type:"text",value:C,output:`\\${C}`});continue}I("brackets");const e=G.value.slice(1);if(!0===G.posix||"^"!==e[0]||e.includes("/")||(C=`/${C}`),G.value+=C,F({value:C}),!1===r.literalBrackets||Cr.hasRegexChars(e))continue;const t=Cr.escapeRegex(G.value);if(O.output=O.output.slice(0,-G.value.length),!0===r.literalBrackets){O.output+=t,G.value=t;continue}G.value=`(${a}${t}|${G.value})`,O.output+=G.value;continue}if("{"===C&&!0!==r.nobrace){j("braces");const e={type:"brace",value:C,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};k.push(e),B(e);continue}if("}"===C){const e=k[k.length-1];if(!0===r.nobrace||!e){B({type:"text",value:C,output:C});continue}let t=")";if(!0===e.dots){const e=i.slice(),o=[];for(let t=e.length-1;t>=0&&(i.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&o.unshift(e[t].value);t=Zr(o,r),O.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=O.output.slice(0,e.outputIndex),o=O.tokens.slice(e.tokensIndex);e.value=e.output="\\{",C=t="\\}",O.output=r;for(const e of o)O.output+=e.output||e.value}B({type:"brace",value:C,output:t}),I("braces"),k.pop();continue}if("|"===C){R.length>0&&R[R.length-1].conditions++,B({type:"text",value:C});continue}if(","===C){let e=C;const t=k[k.length-1];t&&"braces"===P[P.length-1]&&(t.comma=!0,e="|"),B({type:"comma",value:C,output:e});continue}if("/"===C){if("dot"===G.type&&O.index===O.start+1){O.start=O.index+1,O.consumed="",O.output="",i.pop(),G=n;continue}B({type:"slash",value:C,output:d});continue}if("."===C){if(O.braces>0&&"dot"===G.type){"."===G.value&&(G.output=l);const e=k[k.length-1];G.type="dots",G.output+=C,G.value+=C,e.dots=!0;continue}if(O.braces+O.parens===0&&"bos"!==G.type&&"slash"!==G.type){B({type:"text",value:C,output:l});continue}B({type:"dot",value:C,output:l});continue}if("?"===C){if((!G||"("!==G.value)&&!0!==r.noextglob&&"("===$()&&"?"!==$(2)){q("qmark",C);continue}if(G&&"paren"===G.type){const e=$();let t=C;("("===G.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(U()))&&(t=`\\${C}`),B({type:"text",value:C,output:t});continue}if(!0!==r.dot&&("slash"===G.type||"bos"===G.type)){B({type:"qmark",value:C,output:E});continue}B({type:"qmark",value:C,output:T});continue}if("!"===C){if(!0!==r.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){q("negate",C);continue}if(!0!==r.nonegate&&0===O.index){H();continue}}if("+"===C){if(!0!==r.noextglob&&"("===$()&&"?"!==$(2)){q("plus",C);continue}if(G&&"("===G.value||!1===r.regex){B({type:"plus",value:C,output:p});continue}if(G&&("bracket"===G.type||"paren"===G.type||"brace"===G.type)||O.parens>0){B({type:"plus",value:C});continue}B({type:"plus",value:p});continue}if("@"===C){if(!0!==r.noextglob&&"("===$()&&"?"!==$(2)){B({type:"at",extglob:!0,value:C,output:""});continue}B({type:"text",value:C});continue}if("*"!==C){"$"!==C&&"^"!==C||(C=`\\${C}`);const e=Xr.exec(U());e&&(C+=e[0],O.index+=e[0].length),B({type:"text",value:C});continue}if(G&&("globstar"===G.type||!0===G.star)){G.type="star",G.star=!0,G.value+=C,G.output=S,O.backtrack=!0,O.globstar=!0,D(C);continue}let t=U();if(!0!==r.noextglob&&/^\([^?]/.test(t)){q("star",C);continue}if("star"===G.type){if(!0===r.noglobstar){D(C);continue}const o=G.prev,s=o.prev,n="slash"===o.type||"bos"===o.type,i=s&&("star"===s.type||"globstar"===s.type);if(!0===r.bash&&(!n||t[0]&&"/"!==t[0])){B({type:"star",value:C,output:""});continue}if(!(n||"paren"===o.type||O.braces>0&&("comma"===o.type||"brace"===o.type)||R.length&&("pipe"===o.type||"paren"===o.type))){B({type:"star",value:C,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[O.index+4];if(r&&"/"!==r)break;t=t.slice(3),D("/**",3)}if("bos"===o.type&&x()){G.type="globstar",G.value+=C,G.output=_(r),O.output=G.output,O.globstar=!0,D(C);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!i&&x()){O.output=O.output.slice(0,-(o.output+G.output).length),o.output=`(?:${o.output}`,G.type="globstar",G.output=_(r)+(r.strictSlashes?")":"|$)"),G.value+=C,O.globstar=!0,O.output+=o.output+G.output,D(C);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";O.output=O.output.slice(0,-(o.output+G.output).length),o.output=`(?:${o.output}`,G.type="globstar",G.output=`${_(r)}${d}|${d}${e})`,G.value+=C,O.output+=o.output+G.output,O.globstar=!0,D(C+L()),B({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===t[0]){G.type="globstar",G.value+=C,G.output=`(?:^|${d}|${_(r)}${d})`,O.output=G.output,O.globstar=!0,D(C+L()),B({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-G.output.length),G.type="globstar",G.output=_(r),G.value+=C,O.output+=G.output,O.globstar=!0,D(C);continue}const o={type:"star",value:C,output:S};!0!==r.bash?!G||"bracket"!==G.type&&"paren"!==G.type||!0!==r.regex?(O.index!==O.start&&"slash"!==G.type&&"dot"!==G.type||("dot"===G.type?(O.output+=f,G.output+=f):!0===r.dot?(O.output+=b,G.output+=b):(O.output+=v,G.output+=v),"*"!==$()&&(O.output+=m,G.output+=m)),B(o)):(o.output=C,B(o)):(o.output=".*?","bos"!==G.type&&"slash"!==G.type||(o.output=v+o.output),B(o))}for(;O.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing","]"));O.output=Cr.escapeLast(O.output,"["),I("brackets")}for(;O.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing",")"));O.output=Cr.escapeLast(O.output,"("),I("parens")}for(;O.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(eo("closing","}"));O.output=Cr.escapeLast(O.output,"{"),I("braces")}if(!0===r.strictSlashes||"star"!==G.type&&"bracket"!==G.type||B({type:"maybe_slash",value:"",output:`${d}?`}),!0===O.backtrack){O.output="";for(const e of O.tokens)O.output+=null!=e.output?e.output:e.value,e.suffix&&(O.output+=e.suffix)}return O};to.fastpaths=(e,t)=>{const r={...t},o="number"==typeof r.maxLength?Math.min(Vr,r.maxLength):Vr,s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=Qr[e]||e;const{DOT_LITERAL:n,SLASH_LITERAL:i,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:l,NO_DOTS_SLASH:p,STAR:d,START_ANCHOR:m}=kr.globChars(r.windows),h=r.dot?l:u,g=r.dot?p:u,f=r.capture?"":"?:";let b=!0===r.bash?".*?":d;r.capture&&(b=`(${b})`);const T=e=>!0===e.noglobstar?b:`(${f}(?:(?!${m}${e.dot?c:n}).)*?)`,E=e=>{switch(e){case"*":return`${h}${a}${b}`;case".*":return`${n}${a}${b}`;case"*.*":return`${h}${b}${n}${a}${b}`;case"*/*":return`${h}${b}${i}${a}${g}${b}`;case"**":return h+T(r);case"**/*":return`(?:${h}${T(r)}${i})?${g}${a}${b}`;case"**/*.*":return`(?:${h}${T(r)}${i})?${g}${b}${n}${a}${b}`;case"**/.*":return`(?:${h}${T(r)}${i})?${n}${a}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=E(t[1]);if(!r)return;return r+n+t[2]}}},w=Cr.removePrefix(e,{negated:!1,prefix:""});let y=E(w);return y&&!0!==r.strictSlashes&&(y+=`${i}?`),y};var ro=to;const oo=(e,t,r=!1)=>{if(Array.isArray(e)){const o=e.map(e=>oo(e,t,r)),s=e=>{for(const t of o){const r=t(e);if(r)return r}return!1};return s}const o=(s=e)&&"object"==typeof s&&!Array.isArray(s)&&e.tokens&&e.input;var s;if(""===e||"string"!=typeof e&&!o)throw new TypeError("Expected pattern to be a non-empty string");const n=t||{},i=n.windows,a=o?oo.compileRe(e,t):oo.makeRe(e,t,!1,!0),c=a.state;delete a.state;let u=()=>!1;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=oo(n.ignore,e,r)}const l=(r,o=!1)=>{const{isMatch:s,match:l,output:p}=oo.test(r,a,t,{glob:e,posix:i}),d={glob:e,state:c,regex:a,posix:i,input:r,output:p,match:l,isMatch:s};return"function"==typeof n.onResult&&n.onResult(d),!1===s?(d.isMatch=!1,!!o&&d):u(r)?("function"==typeof n.onIgnore&&n.onIgnore(d),d.isMatch=!1,!!o&&d):("function"==typeof n.onMatch&&n.onMatch(d),!o||d)};return r&&(l.state=c),l};oo.test=(e,t,r,{glob:o,posix:s}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const n=r||{},i=n.format||(s?Cr.toPosixSlashes:null);let a=e===o,c=a&&i?i(e):e;return!1===a&&(c=i?i(e):e,a=c===o),!1!==a&&!0!==n.capture||(a=!0===n.matchBase||!0===n.basename?oo.matchBase(e,t,r,s):t.exec(c)),{isMatch:Boolean(a),match:a,output:c}},oo.matchBase=(e,t,r)=>(t instanceof RegExp?t:oo.makeRe(t,r)).test(Cr.basename(e)),oo.isMatch=(e,t,r)=>oo(t,r)(e),oo.parse=(e,t)=>Array.isArray(e)?e.map(e=>oo.parse(e,t)):ro(e,{...t,fastpaths:!1}),oo.scan=(e,t)=>((e,t)=>{const r=t||{},o=e.length-1,s=!0===r.parts||!0===r.scanToEnd,n=[],i=[],a=[];let c,u,l=e,p=-1,d=0,m=0,h=!1,g=!1,f=!1,b=!1,T=!1,E=!1,w=!1,y=!1,_=!1,v=!1,A=0,S={value:"",depth:0,isGlob:!1};const O=()=>p>=o,R=()=>l.charCodeAt(p+1),k=()=>(c=u,l.charCodeAt(++p));for(;p0&&(C=l.slice(0,d),l=l.slice(d),m-=d),P&&!0===f&&m>0?(P=l.slice(0,m),G=l.slice(m)):!0===f?(P="",G=l):P=l,P&&""!==P&&"/"!==P&&P!==l&&Wr(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),!0===r.unescape&&(G&&(G=Cr.removeBackslashes(G)),P&&!0===w&&(P=Cr.removeBackslashes(P)));const x={prefix:C,input:e,start:d,base:P,glob:G,isBrace:h,isBracket:g,isGlob:f,isExtglob:b,isGlobstar:T,negated:y,negatedExtglob:_};if(!0===r.tokens&&(x.maxDepth=0,Wr(u)||i.push(S),x.tokens=i),!0===r.parts||!0===r.tokens){let t;for(let o=0;o{if(!0===r)return e.output;const s=t||{};let n=`${s.contains?"":"^"}(?:${e.output})${s.contains?"":"$"}`;e&&!0===e.negated&&(n=`^(?!${n}).*$`);const i=oo.toRegex(n,t);return!0===o&&(i.state=e),i},oo.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(s.output=ro.fastpaths(e,t)),s.output||(s=ro(e,t)),oo.compileRe(s,t,r,o)},oo.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},oo.constants=kr;var so=oo;function no(e,t,r=!1){return t&&null==t.windows&&(t={...t,windows:Cr.isWindows()}),so(e,t,r)}Object.assign(no,so);var io=no;const ao=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],co=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],uo=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],lo=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],po=(e,t,r)=>{let o=e;return"string"==typeof t||Array.isArray(t)?o=e.toLocaleString(t,r):!0!==t&&void 0===r||(o=e.toLocaleString(void 0,r)),o},mo=e=>{if("number"==typeof e)return Math.log10(e);const t=e.toString(10);return t.length+Math.log10(`0.${t.slice(0,15)}`)},ho=(e,t)=>{if(void 0===t)return e;if("number"!=typeof t||!Number.isSafeInteger(t)||t<0)throw new TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof t}: ${t}`);return 0===t?e:e.length{const{minimumFractionDigits:t,maximumFractionDigits:r}=e;if(void 0!==t||void 0!==r)return{...void 0!==t&&{minimumFractionDigits:t},...void 0!==r&&{maximumFractionDigits:r},roundingMode:"trunc"}})(t);let a;if(e<1)a=n+po(e,t.locale,i)+o+r[0];else{const s=Math.min(Math.floor(t.binary?("number"==typeof(c=e)?Math.log(c):mo(c)*Math.log(10))/Math.log(1024):mo(e)/3),r.length-1);if(e=((e,t)=>{if("number"==typeof e)return e/t;const r=e/BigInt(t),o=e%BigInt(t);return Number(r)+Number(o)/t})(e,(t.binary?1024:1e3)**s),!i){const t=Math.max(3,Math.floor(e).toString().length);e=e.toPrecision(t)}a=n+po(Number(e),t.locale,i)+o+r[s]}var c;return ho(a,t.fixedWidth)}const fo=f.promisify(x.default.gzip);O.default.promisify(E.default.readFile);const bo=e=>e,To={brotli:function(e,t){const r=(e=>"string"==typeof e?Buffer.from(e,"utf8"):e)(e);return P.default.brotliCompressSync(r,(o=t,s=r,{params:{[P.default.constants.BROTLI_PARAM_MODE]:o&&"mode"in o&&o.mode||P.default.constants.BROTLI_DEFAULT_MODE,[P.default.constants.BROTLI_PARAM_QUALITY]:o&&"quality"in o&&o.quality||P.default.constants.BROTLI_MAX_QUALITY,[P.default.constants.BROTLI_PARAM_SIZE_HINT]:s?s.byteLength:0}})).byteLength;var o,s},gzip:async function(e,t){return e?(await fo(e,(e=>({level:9,...e}))(t))).length:0},none:e=>Buffer.byteLength(e)};async function Eo(e,t){return await To[e](t)}class wo{constructor(e){e.compression??="gzip",e.pattern??="**/*.{js,mjs,cjs,jsx,css,html}",e.exclude??=null,e.stripHash??=bo,this.options=e}filterFiles=e=>{const t=io(this.options.pattern),r=this.options.exclude?io(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))};readFromDisk=async e=>{const t=h.globSync(this.options.pattern,{cwd:e,exclude:this.options.exclude?[this.options.exclude]:void 0}),r={};return await Promise.all(t.map(async t=>{try{const o=await h.promises.readFile(G.default.join(e,t),"utf-8"),s=await Eo(this.options.compression,o);r[this.options.stripHash(t)]=s}catch{}})),r};getSizes=async e=>{const t=this.filterFiles(Object.keys(e)),r={};return await Promise.all(t.map(async t=>{try{const o=await Eo(this.options.compression,e[t]);r[this.options.stripHash(t)]=o}catch{}})),r};getDiff=(e,t)=>{const r=new Set([...Object.keys(e),...Object.keys(t)]),o=[];for(const s of r){const r=t[s]||0;o.push({filename:s,size:r,delta:r-(e[s]||0)})}return o};printSizes=e=>{const t=Math.max(...e.map(e=>e.filename.length),0);let r="";for(const o of e){const{filename:e,size:s,delta:n}=o,i=" ".repeat(t-e.length+1)+e+" ⏤ ";let a=go(s),c="";n&&Math.abs(n)>1&&(c=(n>0?"+":"")+go(n),a+=` (${c})`),r+=i+a+"\n"}return r}}const yo=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_o=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],vo=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ao=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],So=(e,t)=>{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var Oo=(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?Ao:vo:t.binary?_o:yo;if(t.signed&&0===e)return" 0 "+r[0];const o=e<0,s=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return s+So(e,t.locale)+" "+r[0];const n=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,n)).toPrecision(3)),s+So(e,t.locale)+" "+r[n]};async function Ro(e){const[t,r,o,s,n]=await Promise.all([ko(w.default.resolve(e,"yarn.lock")),ko(w.default.resolve(e,"pnpm-lock.yaml")),ko(w.default.resolve(e,"bun.lockb")),ko(w.default.resolve(e,"bun.lock")),ko(w.default.resolve(e,"package-lock.json"))]);let i="npm",a="npm install";return t?(a="yarn --frozen-lockfile",i="yarn"):r?(a="pnpm install --frozen-lockfile",i="pnpm"):o||s?(a="bun install --frozen-lockfile",i="bun"):n&&(a="npm ci"),{packageManager:i,installScript:a}}async function ko(e){try{return await E.default.promises.access(e,E.default.constants.F_OK),!0}catch(e){}return!1}function Po(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?"+":"")+Oo(e);if(0===Math.abs(e));else if(0===t)r+=" (new file)";else if(t===-e)r+=" (removed)";else{const o=Number((e/t*100).toFixed(2));r+=` (${o>0?"+":""}${o}%)`}return r}function Go(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 xo(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 $o(e){return/^(1|true|yes)$/.test(e)}function Lo(e){const[t,r]=e.split(":");return["Filename","Size","Change"].includes(t)&&["asc","desc"].includes(r)?e:(console.warn(`Invalid 'order-by' value '${e}', defaulting to 'Filename:asc'`),"Filename:asc")}(async()=>{try{const e=W.getInput("repo-token"),t=Xt.getOctokit(e);await async function(e,t,r){const{number:o}=t.issue;try{W.debug("pr"+JSON.stringify(t.payload,null,2))}catch(e){}let s,n;if("push"==t.eventName)s=t.payload.before,n=t.payload.ref,console.log(`Pushed new commit on top of ${n} (${s})`);else{if("pull_request"!=t.eventName&&"pull_request_target"!=t.eventName)throw new Error(`Unsupported eventName in github.context: ${t.eventName}. Only "pull_request", "pull_request_target", and "push" triggered workflows are currently supported.`);{const e=t.payload.pull_request;s=e.base.sha,n=e.base.ref,console.log(`PR #${o} is targeted at ${n} (${n})`)}}W.getInput("cwd")&&process.chdir(W.getInput("cwd"));const i=new wo({compression:W.getInput("compression"),pattern:W.getInput("pattern")||"**/dist/**/*.{js,mjs,cjs}",exclude:W.getInput("exclude")||"{**/*.map,**/node_modules/**}",stripHash:Po(W.getInput("strip-hash"))}),a=W.getInput("build-script")||"build",c=process.cwd();let{packageManager:u,installScript:l}=await Ro(c);W.getInput("install-script")&&(l=W.getInput("install-script")),W.startGroup("[current] Install Dependencies"),console.log(`Installing using ${l}`),await br(l),W.endGroup(),W.startGroup(`[current] Build using ${u}`),console.log(`Building using ${u} run ${a}`),await br(`${u} run ${a}`),W.endGroup();const p=await i.readFromDisk(c);await br("git reset --hard"),W.startGroup("[base] Checkout target branch");try{if(!n)throw Error("missing context.payload.pull_request.base.ref");await br(`git fetch -n origin ${n}:${n}`),console.log("successfully fetched base.ref")}catch(e){console.log("fetching base.ref failed",e.message);try{await br(`git fetch -n origin ${s}`),console.log("successfully fetched base.sha")}catch(e){console.log("fetching base.sha failed",e.message);try{await br("git fetch -n")}catch(e){console.log("fetch failed",e.message)}}}const d=W.getInput("clean-script");d&&(W.startGroup(`[target] Cleanup via ${u} run ${d}`),await br(`${u} run ${d}`),W.endGroup()),console.log("checking out and building base commit");try{if(!n)throw Error("missing context.payload.base.ref");await br(`git reset --hard ${n}`)}catch(e){await br(`git reset --hard ${s}`)}W.endGroup(),W.startGroup("[base] Install Dependencies"),({packageManager:u,installScript:l}=await Ro(c)),W.getInput("install-script")&&(l=W.getInput("install-script")),console.log(`Installing using ${l}`),await br(l),W.endGroup(),W.startGroup(`[base] Build using ${u}`),await br(`${u} run ${a}`),W.endGroup(),await br("git reset --hard");const m=await i.readFromDisk(c),h=await i.getDiff(m,p);W.startGroup("Size Differences:");const g=await i.printSizes(h);console.log(g),W.endGroup();const f=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:o,minimumChangeThreshold:s,sortBy:n}){const i=[],a=[],[c,u]=n.split(":"),l={Filename:"filename",Size:"size",Change:"delta"};e.sort((e,t)=>{const r=l[c];return"asc"===u?e[r].toString().localeCompare(t[r].toString(),void 0,{numeric:!0}):t[r].toString().localeCompare(e[r].toString(),void 0,{numeric:!0})});let p=0,d=0;for(const t of e){const{filename:e,size:n,delta:c}=t;p+=n;const u=n-c,l=Math.abs(c)đŸ“Ļ View Changed\n\n${xo(i)}\n\n`),0!==a.length&&(m+=`\n\n
â„šī¸ View Unchanged\n\n${xo(a)}\n\n
\n\n`),t){const e=p-d;let t=Co(d,e),r=Go(d,e);m=`**Total Size:** ${Oo(p)}\n\n${m}`,m=`**Size Change:** ${t} ${r}\n\n${m}`}return m}(h,{collapseUnchanged:$o(W.getInput("collapse-unchanged")),omitUnchanged:$o(W.getInput("omit-unchanged")),showTotal:$o(W.getInput("show-total")),minimumChangeThreshold:parseInt(W.getInput("minimum-change-threshold"),10),sortBy:Lo(W.getInput("sort-by"))});let b=!1;const T={...t.repo,issue_number:o},E=W.getInput("comment-key"),w={...T,body:f+`\n\ncompressed-size-action${E?`::${E}`:""}`};if("pull_request"!==t.eventName&&"pull_request_target"!==t.eventName)console.log("No PR associated with this action run. Not posting a check or comment."),b=!1;else if($o(W.getInput("use-check")))if(r){const r=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,t);await r({conclusion:"success",output:{title:"Compressed Size Action",summary:f}})}else b=!0;else{let r;W.startGroup("Updating stats PR comment");try{const t=(await e.issues.listComments(T)).data,o=new RegExp(`[s\n]*(compressed|gzip)-size-action${E?`::${E}`:""}`);for(let e=t.length;e--;){const s=t[e];if(o.test(s.body)){r=s.id;break}}}catch(e){console.log("Error checking for previous comments: "+e.message)}if(r){console.log(`Updating previous comment #${r}`);try{await e.issues.updateComment({...t.repo,comment_id:r,body:w.body})}catch(e){console.log("Error editing previous comment: "+e.message),r=null}}if(!r){console.log("Creating new comment");try{await e.issues.createComment(w)}catch(r){console.log(`Error creating comment: ${r.message}`),console.log("Submitting a PR review comment instead...");try{const r=t.issue;await e.pulls.createReview({owner:r.owner,repo:r.repo,pull_number:r.number,event:"COMMENT",body:w.body})}catch(e){console.log("Error creating PR review."),b=!0}}}W.endGroup()}b&&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${w.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}(t,Xt.context,e)}catch(e){W.setFailed(e.message)}})(); From 7e1f5d1861453d23ca965c636738f90ad11642c1 Mon Sep 17 00:00:00 2001 From: Hajime-san <41257923+Hajime-san@users.noreply.github.com> Date: Tue, 7 Apr 2026 08:47:04 +0900 Subject: [PATCH 4/5] `packageManager` --- src/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index a5f9c99..72c22aa 100644 --- a/src/utils.js +++ b/src/utils.js @@ -30,7 +30,8 @@ export async function getPackageManagerAndInstallScript(cwd) { } else if (packageLockExists) { installScript = 'npm ci'; } else if (denoLockExists) { - installScript = 'deno install --frozen' + installScript = 'deno install --frozen'; + packageManager = 'deno'; } return { packageManager, installScript }; From 5350adbfb1266e00862d183ad0de31c88f3693b2 Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Mon, 6 Apr 2026 19:01:27 -0500 Subject: [PATCH 5/5] refactor: Move NPM check to last --- src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index 72c22aa..fc4b8b7 100644 --- a/src/utils.js +++ b/src/utils.js @@ -27,11 +27,11 @@ export async function getPackageManagerAndInstallScript(cwd) { } else if (bunLockBinaryExists || bunLockExists) { installScript = 'bun install --frozen-lockfile'; packageManager = 'bun'; - } else if (packageLockExists) { - installScript = 'npm ci'; } else if (denoLockExists) { installScript = 'deno install --frozen'; packageManager = 'deno'; + } else if (packageLockExists) { + installScript = 'npm ci'; } return { packageManager, installScript };