diff --git a/dist/index.js b/dist/index.js index 8cbbdc6..377b4d2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const p=o(r(2037));const u=r(5278);function issueCommand(t,a,r){const d=new Command(t,a,r);process.stdout.write(d.toString()+p.EOL)}a.issueCommand=issueCommand;function issue(t,a=""){issueCommand(t,{},a)}a.issue=issue;const l="::";class Command{constructor(t,a,r){if(!t){t="missing.command"}this.command=t;this.properties=a;this.message=r}toString(){let t=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const d=this.properties[r];if(d){if(a){a=false}else{t+=","}t+=`${r}=${escapeProperty(d)}`}}}}t+=`${l}${escapeData(this.message)}`;return t}}function escapeData(t){return u.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return u.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};var p=this&&this.__awaiter||function(t,a,r,d){function adopt(t){return t instanceof r?t:new r((function(a){a(t)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(t){try{step(d.next(t))}catch(t){i(t)}}function rejected(t){try{step(d["throw"](t))}catch(t){i(t)}}function step(t){t.done?r(t.value):adopt(t.value).then(fulfilled,rejected)}step((d=d.apply(t,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const u=r(7351);const l=r(717);const c=r(5278);const m=o(r(2037));const h=o(r(1017));const v=r(8041);var g;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(g=a.ExitCode||(a.ExitCode={}));function exportVariable(t,a){const r=c.toCommandValue(a);process.env[t]=r;const d=process.env["GITHUB_ENV"]||"";if(d){const a="_GitHubActionsFileCommandDelimeter_";const d=`${t}<<${a}${m.EOL}${r}${m.EOL}${a}`;l.issueCommand("ENV",d)}else{u.issueCommand("set-env",{name:t},r)}}a.exportVariable=exportVariable;function setSecret(t){u.issueCommand("add-mask",{},t)}a.setSecret=setSecret;function addPath(t){const a=process.env["GITHUB_PATH"]||"";if(a){l.issueCommand("PATH",t)}else{u.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${h.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(t,a){const r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${t}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(t,a){const r=getInput(t,a).split("\n").filter((t=>t!==""));return r}a.getMultilineInput=getMultilineInput;function getBooleanInput(t,a){const r=["true","True","TRUE"];const d=["false","False","FALSE"];const i=getInput(t,a);if(r.includes(i))return true;if(d.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a.getBooleanInput=getBooleanInput;function setOutput(t,a){process.stdout.write(m.EOL);u.issueCommand("set-output",{name:t},a)}a.setOutput=setOutput;function setCommandEcho(t){u.issue("echo",t?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(t){process.exitCode=g.Failure;error(t)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDebug=isDebug;function debug(t){u.issueCommand("debug",{},t)}a.debug=debug;function error(t,a={}){u.issueCommand("error",c.toCommandProperties(a),t instanceof Error?t.toString():t)}a.error=error;function warning(t,a={}){u.issueCommand("warning",c.toCommandProperties(a),t instanceof Error?t.toString():t)}a.warning=warning;function notice(t,a={}){u.issueCommand("notice",c.toCommandProperties(a),t instanceof Error?t.toString():t)}a.notice=notice;function info(t){process.stdout.write(t+m.EOL)}a.info=info;function startGroup(t){u.issue("group",t)}a.startGroup=startGroup;function endGroup(){u.issue("endgroup")}a.endGroup=endGroup;function group(t,a){return p(this,void 0,void 0,(function*(){startGroup(t);let r;try{r=yield a()}finally{endGroup()}return r}))}a.group=group;function saveState(t,a){u.issueCommand("save-state",{name:t},a)}a.saveState=saveState;function getState(t){return process.env[`STATE_${t}`]||""}a.getState=getState;function getIDToken(t){return p(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(t)}))}a.getIDToken=getIDToken},717:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};Object.defineProperty(a,"__esModule",{value:true});a.issueCommand=void 0;const p=o(r(7147));const u=o(r(2037));const l=r(5278);function issueCommand(t,a){const r=process.env[`GITHUB_${t}`];if(!r){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!p.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}p.appendFileSync(r,`${l.toCommandValue(a)}${u.EOL}`,{encoding:"utf8"})}a.issueCommand=issueCommand},8041:function(t,a,r){"use strict";var d=this&&this.__awaiter||function(t,a,r,d){function adopt(t){return t instanceof r?t:new r((function(a){a(t)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(t){try{step(d.next(t))}catch(t){i(t)}}function rejected(t){try{step(d["throw"](t))}catch(t){i(t)}}function step(t){t.done?r(t.value):adopt(t.value).then(fulfilled,rejected)}step((d=d.apply(t,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.OidcClient=void 0;const i=r(9925);const o=r(3702);const p=r(2186);class OidcClient{static createHttpClient(t=true,a=10){const r={allowRetries:t,maxRetries:a};return new i.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return t}static getIDTokenUrl(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return t}static getCall(t){var a;return d(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const d=yield r.getJson(t).catch((t=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${t.statusCode}\n \n Error Message: ${t.result.message}`)}));const i=(a=d.result)===null||a===void 0?void 0:a.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(t){return d(this,void 0,void 0,(function*(){try{let a=OidcClient.getIDTokenUrl();if(t){const r=encodeURIComponent(t);a=`${a}&audience=${r}`}p.debug(`ID token url is ${a}`);const r=yield OidcClient.getCall(a);p.setSecret(r);return r}catch(t){throw new Error(`Error message: ${t.message}`)}}))}}a.OidcClient=OidcClient},5278:(t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.toCommandProperties=a.toCommandValue=void 0;function toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}a.toCommandValue=toCommandValue;function toCommandProperties(t){if(!Object.keys(t).length){return{}}return{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}}a.toCommandProperties=toCommandProperties},4087:(t,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.Context=void 0;const d=r(7147);const i=r(2037);class Context{constructor(){var t,a,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(d.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(d.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const t=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${t} does not exist${i.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);this.apiUrl=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:`https://api.github.com`;this.serverUrl=(a=process.env.GITHUB_SERVER_URL)!==null&&a!==void 0?a:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const t=this.payload;return Object.assign(Object.assign({},this.repo),{number:(t.issue||t.pull_request||t).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[t,a]=process.env.GITHUB_REPOSITORY.split("/");return{owner:t,repo:a}}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'")}}a.Context=Context},5438:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};Object.defineProperty(a,"__esModule",{value:true});a.getOctokit=a.context=void 0;const p=o(r(4087));const u=r(3030);a.context=new p.Context;function getOctokit(t,a){return new u.GitHub(u.getOctokitOptions(t,a))}a.getOctokit=getOctokit},7914:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};Object.defineProperty(a,"__esModule",{value:true});a.getApiBaseUrl=a.getProxyAgent=a.getAuthString=void 0;const p=o(r(9925));function getAuthString(t,a){if(!t&&!a.auth){throw new Error("Parameter token or opts.auth is required")}else if(t&&a.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof a.auth==="string"?a.auth:`token ${t}`}a.getAuthString=getAuthString;function getProxyAgent(t){const a=new p.HttpClient;return a.getAgent(t)}a.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}a.getApiBaseUrl=getApiBaseUrl},3030:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};Object.defineProperty(a,"__esModule",{value:true});a.getOctokitOptions=a.GitHub=a.context=void 0;const p=o(r(4087));const u=o(r(7914));const l=r(6762);const c=r(3044);const m=r(4193);a.context=new p.Context;const h=u.getApiBaseUrl();const v={baseUrl:h,request:{agent:u.getProxyAgent(h)}};a.GitHub=l.Octokit.plugin(c.restEndpointMethods,m.paginateRest).defaults(v);function getOctokitOptions(t,a){const r=Object.assign({},a||{});const d=u.getAuthString(t,r);if(d){r.auth=d}return r}a.getOctokitOptions=getOctokitOptions},3702:(t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});class BasicCredentialHandler{constructor(t,a){this.username=t;this.password=a}prepareRequest(t){t.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(t){return false}handleAuthentication(t,a,r){return null}}a.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(t){this.token=t}prepareRequest(t){t.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(t){return false}handleAuthentication(t,a,r){return null}}a.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(t){this.token=t}prepareRequest(t){t.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(t){return false}handleAuthentication(t,a,r){return null}}a.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(t,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const d=r(3685);const i=r(5687);const o=r(6443);let p;var u;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(u=a.HttpCodes||(a.HttpCodes={}));var l;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(l=a.Headers||(a.Headers={}));var c;(function(t){t["ApplicationJson"]="application/json"})(c=a.MediaTypes||(a.MediaTypes={}));function getProxyUrl(t){let a=o.getProxyUrl(new URL(t));return a?a.href:""}a.getProxyUrl=getProxyUrl;const m=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const h=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const v=["OPTIONS","GET","DELETE","HEAD"];const g=10;const _=5;class HttpClientError extends Error{constructor(t,a){super(t);this.name="HttpClientError";this.statusCode=a;Object.setPrototypeOf(this,HttpClientError.prototype)}}a.HttpClientError=HttpClientError;class HttpClientResponse{constructor(t){this.message=t}readBody(){return new Promise((async(t,a)=>{let r=Buffer.alloc(0);this.message.on("data",(t=>{r=Buffer.concat([r,t])}));this.message.on("end",(()=>{t(r.toString())}))}))}}a.HttpClientResponse=HttpClientResponse;function isHttps(t){let a=new URL(t);return a.protocol==="https:"}a.isHttps=isHttps;class HttpClient{constructor(t,a,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=t;this.handlers=a||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(t,a){return this.request("OPTIONS",t,null,a||{})}get(t,a){return this.request("GET",t,null,a||{})}del(t,a){return this.request("DELETE",t,null,a||{})}post(t,a,r){return this.request("POST",t,a,r||{})}patch(t,a,r){return this.request("PATCH",t,a,r||{})}put(t,a,r){return this.request("PUT",t,a,r||{})}head(t,a){return this.request("HEAD",t,null,a||{})}sendStream(t,a,r,d){return this.request(t,a,r,d)}async getJson(t,a={}){a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,c.ApplicationJson);let r=await this.get(t,a);return this._processResponse(r,this.requestOptions)}async postJson(t,a,r={}){let d=JSON.stringify(a,null,2);r[l.Accept]=this._getExistingOrDefaultHeader(r,l.Accept,c.ApplicationJson);r[l.ContentType]=this._getExistingOrDefaultHeader(r,l.ContentType,c.ApplicationJson);let i=await this.post(t,d,r);return this._processResponse(i,this.requestOptions)}async putJson(t,a,r={}){let d=JSON.stringify(a,null,2);r[l.Accept]=this._getExistingOrDefaultHeader(r,l.Accept,c.ApplicationJson);r[l.ContentType]=this._getExistingOrDefaultHeader(r,l.ContentType,c.ApplicationJson);let i=await this.put(t,d,r);return this._processResponse(i,this.requestOptions)}async patchJson(t,a,r={}){let d=JSON.stringify(a,null,2);r[l.Accept]=this._getExistingOrDefaultHeader(r,l.Accept,c.ApplicationJson);r[l.ContentType]=this._getExistingOrDefaultHeader(r,l.ContentType,c.ApplicationJson);let i=await this.patch(t,d,r);return this._processResponse(i,this.requestOptions)}async request(t,a,r,d){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(a);let o=this._prepareRequest(t,i,d);let p=this._allowRetries&&v.indexOf(t)!=-1?this._maxRetries+1:1;let l=0;let c;while(l
0){const p=c.message.headers["location"];if(!p){break}let u=new URL(p);if(i.protocol=="https:"&&i.protocol!=u.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();if(u.hostname!==i.hostname){for(let t in d){if(t.toLowerCase()==="authorization"){delete d[t]}}}o=this._prepareRequest(t,u,d);c=await this.requestRaw(o,r);a--}if(h.indexOf(c.message.statusCode)==-1){return c}l+=1;if(l
{let callbackForResult=function(t,a){if(t){d(t)}r(a)};this.requestRawWithCallback(t,a,callbackForResult)}))}requestRawWithCallback(t,a,r){let d;if(typeof a==="string"){t.options.headers["Content-Length"]=Buffer.byteLength(a,"utf8")}let i=false;let handleResult=(t,a)=>{if(!i){i=true;r(t,a)}};let o=t.httpModule.request(t.options,(t=>{let a=new HttpClientResponse(t);handleResult(null,a)}));o.on("socket",(t=>{d=t}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error("Request timeout: "+t.options.path),null)}));o.on("error",(function(t){handleResult(t,null)}));if(a&&typeof a==="string"){o.write(a,"utf8")}if(a&&typeof a!=="string"){a.on("close",(function(){o.end()}));a.pipe(o)}else{o.end()}}getAgent(t){let a=new URL(t);return this._getAgent(a)}_prepareRequest(t,a,r){const o={};o.parsedUrl=a;const p=o.parsedUrl.protocol==="https:";o.httpModule=p?i:d;const u=p?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):u;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=t;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((t=>{t.prepareRequest(o.options)}))}return o}_mergeHeaders(t){const lowercaseKeys=t=>Object.keys(t).reduce(((a,r)=>(a[r.toLowerCase()]=t[r],a)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,a,r){const lowercaseKeys=t=>Object.keys(t).reduce(((a,r)=>(a[r.toLowerCase()]=t[r],a)),{});let d;if(this.requestOptions&&this.requestOptions.headers){d=lowercaseKeys(this.requestOptions.headers)[a]}return t[a]||d||r}_getAgent(t){let a;let u=o.getProxyUrl(t);let l=u&&u.hostname;if(this._keepAlive&&l){a=this._proxyAgent}if(this._keepAlive&&!l){a=this._agent}if(!!a){return a}const c=t.protocol==="https:";let m=100;if(!!this.requestOptions){m=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(l){if(!p){p=r(4294)}const t={maxSockets:m,keepAlive:this._keepAlive,proxy:{...(u.username||u.password)&&{proxyAuth:`${u.username}:${u.password}`},host:u.hostname,port:u.port}};let d;const i=u.protocol==="https:";if(c){d=i?p.httpsOverHttps:p.httpsOverHttp}else{d=i?p.httpOverHttps:p.httpOverHttp}a=d(t);this._proxyAgent=a}if(this._keepAlive&&!a){const t={keepAlive:this._keepAlive,maxSockets:m};a=c?new i.Agent(t):new d.Agent(t);this._agent=a}if(!a){a=c?i.globalAgent:d.globalAgent}if(c&&this._ignoreSslError){a.options=Object.assign(a.options||{},{rejectUnauthorized:false})}return a}_performExponentialBackoff(t){t=Math.min(g,t);const a=_*Math.pow(2,t);return new Promise((t=>setTimeout((()=>t()),a)))}static dateTimeDeserializer(t,a){if(typeof a==="string"){let t=new Date(a);if(!isNaN(t.valueOf())){return t}}return a}async _processResponse(t,a){return new Promise((async(r,d)=>{const i=t.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==u.NotFound){r(o)}let p;let l;try{l=await t.readBody();if(l&&l.length>0){if(a&&a.deserializeDates){p=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{p=JSON.parse(l)}o.result=p}o.headers=t.message.headers}catch(t){}if(i>299){let t;if(p&&p.message){t=p.message}else if(l&&l.length>0){t=l}else{t="Failed request: ("+i+")"}let a=new HttpClientError(t,i);a.result=o.result;d(a)}else{r(o)}}))}}a.HttpClient=HttpClient},6443:(t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function getProxyUrl(t){let a=t.protocol==="https:";let r;if(checkBypass(t)){return r}let d;if(a){d=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{d=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(d){r=new URL(d)}return r}a.getProxyUrl=getProxyUrl;function checkBypass(t){if(!t.hostname){return false}let a=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!a){return false}let r;if(t.port){r=Number(t.port)}else if(t.protocol==="http:"){r=80}else if(t.protocol==="https:"){r=443}let d=[t.hostname.toUpperCase()];if(typeof r==="number"){d.push(`${d[0]}:${r}`)}for(let t of a.split(",").map((t=>t.trim().toUpperCase())).filter((t=>t))){if(d.some((a=>a===t))){return true}}return false}a.checkBypass=checkBypass},3361:(t,a,r)=>{t.exports=r(531)},5401:(t,a,r)=>{t.exports=r(2674)},466:(t,a,r)=>{t.exports=r(6910)},3046:(t,a,r)=>{t.exports=r(1737)},669:(t,a,r)=>{t.exports=r(4151)},6611:(t,a,r)=>{t.exports=r(7482)},3781:(t,a,r)=>{t.exports=r(2594)},5502:(t,a,r)=>{t.exports=r(3466)},6099:(t,a,r)=>{t.exports=r(5426)},9188:(t,a,r)=>{t.exports=r(8034)},8979:(t,a,r)=>{t.exports=r(7180)},6761:(t,a,r)=>{t.exports=r(2491)},4218:(t,a,r)=>{t.exports=r(9327)},1308:(t,a,r)=>{t.exports=r(3567)},7652:(t,a,r)=>{t.exports=r(7556)},1477:(t,a,r)=>{t.exports=r(7587)},2146:(t,a,r)=>{t.exports=r(1656)},9640:(t,a,r)=>{t.exports=r(7800)},2038:(t,a,r)=>{t.exports=r(7161)},7196:(t,a,r)=>{t.exports=r(4941)},5007:(t,a,r)=>{t.exports=r(2686)},5437:t=>{function _arrayLikeToArray(t,a){if(a==null||a>t.length)a=t.length;for(var r=0,d=new Array(a);r{var d=r(2146);function _arrayWithHoles(t){if(d(t))return t}t.exports=_arrayWithHoles;t.exports["default"]=t.exports,t.exports.__esModule=true},4393:t=>{function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}t.exports=_interopRequireDefault;t.exports["default"]=t.exports,t.exports.__esModule=true},7061:(t,a,r)=>{var d=r(5007);var i=r(9640);function _iterableToArrayLimit(t,a){var r=t==null?null:typeof d!=="undefined"&&i(t)||t["@@iterator"];if(r==null)return;var o=[];var p=true;var u=false;var l,c;try{for(r=r.call(t);!(p=(l=r.next()).done);p=true){o.push(l.value);if(a&&o.length===a)break}}catch(t){u=true;c=t}finally{try{if(!p&&r["return"]!=null)r["return"]()}finally{if(u)throw c}}return o}t.exports=_iterableToArrayLimit;t.exports["default"]=t.exports,t.exports.__esModule=true},3558:t=>{function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=_nonIterableRest;t.exports["default"]=t.exports,t.exports.__esModule=true},8135:(t,a,r)=>{var d=r(9991);var i=r(7061);var o=r(499);var p=r(3558);function _slicedToArray(t,a){return d(t)||i(t,a)||o(t,a)||p()}t.exports=_slicedToArray;t.exports["default"]=t.exports,t.exports.__esModule=true},499:(t,a,r)=>{var d=r(7196);var i=r(1477);var o=r(5437);function _unsupportedIterableToArray(t,a){var r;if(!t)return;if(typeof t==="string")return o(t,a);var p=d(r=Object.prototype.toString.call(t)).call(r,8,-1);if(p==="Object"&&t.constructor)p=t.constructor.name;if(p==="Map"||p==="Set")return i(t);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return o(t,a)}t.exports=_unsupportedIterableToArray;t.exports["default"]=t.exports,t.exports.__esModule=true},334:(t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});async function auth(t){const a=t.split(/\./).length===3?"app":/^v\d+\./.test(t)?"installation":"oauth";return{type:"token",token:t,tokenType:a}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,a,r,d){const i=a.endpoint.merge(r,d);i.headers.authorization=withAuthorizationPrefix(t);return a(i)}const r=function createTokenAuth(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};a.createTokenAuth=r},6762:(t,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});var d=r(5030);var i=r(3682);var o=r(6234);var p=r(8467);var u=r(334);function _objectWithoutPropertiesLoose(t,a){if(t==null)return{};var r={};var d=Object.keys(t);var i,o;for(o=0;o b)throw TypeError(w);for(o=0;o {"use strict";a.__esModule=true;a.Compiler=Compiler;a.precompile=precompile;a.compile=compile;function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var d=r(2879);var i=_interopRequireDefault(d);var o=r(1437);var p=r(9211);var u=_interopRequireDefault(p);var l=[].slice;function Compiler(){}Compiler.prototype={compiler:Compiler,equals:function equals(t){var a=this.opcodes.length;if(t.opcodes.length!==a){return false}for(var r=0;r1){throw new i["default"]("Unsupported number of partial arguments: "+r.length,t)}else if(!r.length){if(this.options.explicitPartialContext){this.opcode("pushLiteral","undefined")}else{r.push({type:"PathExpression",parts:[],depth:0})}}var d=t.name.original,o=t.name.type==="SubExpression";if(o){this.accept(t.name)}this.setupFullMustacheParams(t,a,undefined,true);var p=t.indent||"";if(this.options.preventIndent&&p){this.opcode("appendContent",p);p=""}this.opcode("invokePartial",o,d,p);this.opcode("append")},PartialBlockStatement:function PartialBlockStatement(t){this.PartialStatement(t)},MustacheStatement:function MustacheStatement(t){this.SubExpression(t);if(t.escaped&&!this.options.noEscape){this.opcode("appendEscaped")}else{this.opcode("append")}},Decorator:function Decorator(t){this.DecoratorBlock(t)},ContentStatement:function ContentStatement(t){if(t.value){this.opcode("appendContent",t.value)}},CommentStatement:function CommentStatement(){},SubExpression:function SubExpression(t){transformLiteralToPath(t);var a=this.classifySexpr(t);if(a==="simple"){this.simpleSexpr(t)}else if(a==="helper"){this.helperSexpr(t)}else{this.ambiguousSexpr(t)}},ambiguousSexpr:function ambiguousSexpr(t,a,r){var d=t.path,i=d.parts[0],o=a!=null||r!=null;this.opcode("getContext",d.depth);this.opcode("pushProgram",a);this.opcode("pushProgram",r);d.strict=true;this.accept(d);this.opcode("invokeAmbiguous",i,o)},simpleSexpr:function simpleSexpr(t){var a=t.path;a.strict=true;this.accept(a);this.opcode("resolvePossibleLambda")},helperSexpr:function helperSexpr(t,a,r){var d=this.setupFullMustacheParams(t,a,r),o=t.path,p=o.parts[0];if(this.options.knownHelpers[p]){this.opcode("invokeKnownHelper",d.length,p)}else if(this.options.knownHelpersOnly){throw new i["default"]("You specified knownHelpersOnly, but used the unknown helper "+p,t)}else{o.strict=true;o.falsy=true;this.accept(o);this.opcode("invokeHelper",d.length,o.original,u["default"].helpers.simpleId(o))}},PathExpression:function PathExpression(t){this.addDepth(t.depth);this.opcode("getContext",t.depth);var a=t.parts[0],r=u["default"].helpers.scopedId(t),d=!t.depth&&!r&&this.blockParamIndex(a);if(d){this.opcode("lookupBlockParam",d,t.parts)}else if(!a){this.opcode("pushContext")}else if(t.data){this.options.data=true;this.opcode("lookupData",t.depth,t.parts,t.strict)}else{this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,r)}},StringLiteral:function StringLiteral(t){this.opcode("pushString",t.value)},NumberLiteral:function NumberLiteral(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function BooleanLiteral(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function UndefinedLiteral(){this.opcode("pushLiteral","undefined")},NullLiteral:function NullLiteral(){this.opcode("pushLiteral","null")},Hash:function Hash(t){var a=t.pairs,r=0,d=a.length;this.opcode("pushHash");for(;r this.stackVars.length){this.stackVars.push("stack"+this.stackSlot)}return this.topStackName()},topStackName:function topStackName(){return"stack"+this.stackSlot},flushInline:function flushInline(){var t=this.inlineStack;this.inlineStack=[];for(var a=0,r=t.length;a 0){const p=c.message.headers["location"];if(!p){break}let u=new URL(p);if(i.protocol=="https:"&&i.protocol!=u.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();if(u.hostname!==i.hostname){for(let t in d){if(t.toLowerCase()==="authorization"){delete d[t]}}}o=this._prepareRequest(t,u,d);c=await this.requestRaw(o,r);a--}if(h.indexOf(c.message.statusCode)==-1){return c}l+=1;if(l {let callbackForResult=function(t,a){if(t){d(t)}r(a)};this.requestRawWithCallback(t,a,callbackForResult)}))}requestRawWithCallback(t,a,r){let d;if(typeof a==="string"){t.options.headers["Content-Length"]=Buffer.byteLength(a,"utf8")}let i=false;let handleResult=(t,a)=>{if(!i){i=true;r(t,a)}};let o=t.httpModule.request(t.options,(t=>{let a=new HttpClientResponse(t);handleResult(null,a)}));o.on("socket",(t=>{d=t}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error("Request timeout: "+t.options.path),null)}));o.on("error",(function(t){handleResult(t,null)}));if(a&&typeof a==="string"){o.write(a,"utf8")}if(a&&typeof a!=="string"){a.on("close",(function(){o.end()}));a.pipe(o)}else{o.end()}}getAgent(t){let a=new URL(t);return this._getAgent(a)}_prepareRequest(t,a,r){const o={};o.parsedUrl=a;const p=o.parsedUrl.protocol==="https:";o.httpModule=p?i:d;const u=p?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):u;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=t;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((t=>{t.prepareRequest(o.options)}))}return o}_mergeHeaders(t){const lowercaseKeys=t=>Object.keys(t).reduce(((a,r)=>(a[r.toLowerCase()]=t[r],a)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,a,r){const lowercaseKeys=t=>Object.keys(t).reduce(((a,r)=>(a[r.toLowerCase()]=t[r],a)),{});let d;if(this.requestOptions&&this.requestOptions.headers){d=lowercaseKeys(this.requestOptions.headers)[a]}return t[a]||d||r}_getAgent(t){let a;let u=o.getProxyUrl(t);let l=u&&u.hostname;if(this._keepAlive&&l){a=this._proxyAgent}if(this._keepAlive&&!l){a=this._agent}if(!!a){return a}const c=t.protocol==="https:";let m=100;if(!!this.requestOptions){m=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(l){if(!p){p=r(4294)}const t={maxSockets:m,keepAlive:this._keepAlive,proxy:{...(u.username||u.password)&&{proxyAuth:`${u.username}:${u.password}`},host:u.hostname,port:u.port}};let d;const i=u.protocol==="https:";if(c){d=i?p.httpsOverHttps:p.httpsOverHttp}else{d=i?p.httpOverHttps:p.httpOverHttp}a=d(t);this._proxyAgent=a}if(this._keepAlive&&!a){const t={keepAlive:this._keepAlive,maxSockets:m};a=c?new i.Agent(t):new d.Agent(t);this._agent=a}if(!a){a=c?i.globalAgent:d.globalAgent}if(c&&this._ignoreSslError){a.options=Object.assign(a.options||{},{rejectUnauthorized:false})}return a}_performExponentialBackoff(t){t=Math.min(g,t);const a=_*Math.pow(2,t);return new Promise((t=>setTimeout((()=>t()),a)))}static dateTimeDeserializer(t,a){if(typeof a==="string"){let t=new Date(a);if(!isNaN(t.valueOf())){return t}}return a}async _processResponse(t,a){return new Promise((async(r,d)=>{const i=t.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==u.NotFound){r(o)}let p;let l;try{l=await t.readBody();if(l&&l.length>0){if(a&&a.deserializeDates){p=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{p=JSON.parse(l)}o.result=p}o.headers=t.message.headers}catch(t){}if(i>299){let t;if(p&&p.message){t=p.message}else if(l&&l.length>0){t=l}else{t="Failed request: ("+i+")"}let a=new HttpClientError(t,i);a.result=o.result;d(a)}else{r(o)}}))}}a.HttpClient=HttpClient},6443:(t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function getProxyUrl(t){let a=t.protocol==="https:";let r;if(checkBypass(t)){return r}let d;if(a){d=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{d=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(d){r=new URL(d)}return r}a.getProxyUrl=getProxyUrl;function checkBypass(t){if(!t.hostname){return false}let a=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!a){return false}let r;if(t.port){r=Number(t.port)}else if(t.protocol==="http:"){r=80}else if(t.protocol==="https:"){r=443}let d=[t.hostname.toUpperCase()];if(typeof r==="number"){d.push(`${d[0]}:${r}`)}for(let t of a.split(",").map((t=>t.trim().toUpperCase())).filter((t=>t))){if(d.some((a=>a===t))){return true}}return false}a.checkBypass=checkBypass},3361:(t,a,r)=>{t.exports=r(531)},5401:(t,a,r)=>{t.exports=r(2674)},466:(t,a,r)=>{t.exports=r(6910)},3046:(t,a,r)=>{t.exports=r(1737)},669:(t,a,r)=>{t.exports=r(4151)},6611:(t,a,r)=>{t.exports=r(7482)},3781:(t,a,r)=>{t.exports=r(2594)},5502:(t,a,r)=>{t.exports=r(3466)},6099:(t,a,r)=>{t.exports=r(5426)},9188:(t,a,r)=>{t.exports=r(8034)},8979:(t,a,r)=>{t.exports=r(7180)},6761:(t,a,r)=>{t.exports=r(2491)},4218:(t,a,r)=>{t.exports=r(9327)},1308:(t,a,r)=>{t.exports=r(3567)},7652:(t,a,r)=>{t.exports=r(7556)},1477:(t,a,r)=>{t.exports=r(7587)},2146:(t,a,r)=>{t.exports=r(1656)},9640:(t,a,r)=>{t.exports=r(7800)},2038:(t,a,r)=>{t.exports=r(7161)},7196:(t,a,r)=>{t.exports=r(4941)},5007:(t,a,r)=>{t.exports=r(2686)},5437:t=>{function _arrayLikeToArray(t,a){if(a==null||a>t.length)a=t.length;for(var r=0,d=new Array(a);r{var d=r(2146);function _arrayWithHoles(t){if(d(t))return t}t.exports=_arrayWithHoles;t.exports["default"]=t.exports,t.exports.__esModule=true},515:t=>{function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}t.exports=_interopRequireDefault;t.exports["default"]=t.exports,t.exports.__esModule=true},7061:(t,a,r)=>{var d=r(5007);var i=r(9640);function _iterableToArrayLimit(t,a){var r=t==null?null:typeof d!=="undefined"&&i(t)||t["@@iterator"];if(r==null)return;var o=[];var p=true;var u=false;var l,c;try{for(r=r.call(t);!(p=(l=r.next()).done);p=true){o.push(l.value);if(a&&o.length===a)break}}catch(t){u=true;c=t}finally{try{if(!p&&r["return"]!=null)r["return"]()}finally{if(u)throw c}}return o}t.exports=_iterableToArrayLimit;t.exports["default"]=t.exports,t.exports.__esModule=true},3558:t=>{function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=_nonIterableRest;t.exports["default"]=t.exports,t.exports.__esModule=true},8135:(t,a,r)=>{var d=r(9991);var i=r(7061);var o=r(499);var p=r(3558);function _slicedToArray(t,a){return d(t)||i(t,a)||o(t,a)||p()}t.exports=_slicedToArray;t.exports["default"]=t.exports,t.exports.__esModule=true},499:(t,a,r)=>{var d=r(7196);var i=r(1477);var o=r(5437);function _unsupportedIterableToArray(t,a){var r;if(!t)return;if(typeof t==="string")return o(t,a);var p=d(r=Object.prototype.toString.call(t)).call(r,8,-1);if(p==="Object"&&t.constructor)p=t.constructor.name;if(p==="Map"||p==="Set")return i(t);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return o(t,a)}t.exports=_unsupportedIterableToArray;t.exports["default"]=t.exports,t.exports.__esModule=true},334:(t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});async function auth(t){const a=t.split(/\./).length===3?"app":/^v\d+\./.test(t)?"installation":"oauth";return{type:"token",token:t,tokenType:a}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,a,r,d){const i=a.endpoint.merge(r,d);i.headers.authorization=withAuthorizationPrefix(t);return a(i)}const r=function createTokenAuth(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};a.createTokenAuth=r},6762:(t,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});var d=r(5030);var i=r(3682);var o=r(6234);var p=r(8467);var u=r(334);function _objectWithoutPropertiesLoose(t,a){if(t==null)return{};var r={};var d=Object.keys(t);var i,o;for(o=0;o b)throw TypeError(w);for(o=0;o {"use strict";a.__esModule=true;a.Compiler=Compiler;a.precompile=precompile;a.compile=compile;function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var d=r(2879);var i=_interopRequireDefault(d);var o=r(1437);var p=r(9211);var u=_interopRequireDefault(p);var l=[].slice;function Compiler(){}Compiler.prototype={compiler:Compiler,equals:function equals(t){var a=this.opcodes.length;if(t.opcodes.length!==a){return false}for(var r=0;r1){throw new i["default"]("Unsupported number of partial arguments: "+r.length,t)}else if(!r.length){if(this.options.explicitPartialContext){this.opcode("pushLiteral","undefined")}else{r.push({type:"PathExpression",parts:[],depth:0})}}var d=t.name.original,o=t.name.type==="SubExpression";if(o){this.accept(t.name)}this.setupFullMustacheParams(t,a,undefined,true);var p=t.indent||"";if(this.options.preventIndent&&p){this.opcode("appendContent",p);p=""}this.opcode("invokePartial",o,d,p);this.opcode("append")},PartialBlockStatement:function PartialBlockStatement(t){this.PartialStatement(t)},MustacheStatement:function MustacheStatement(t){this.SubExpression(t);if(t.escaped&&!this.options.noEscape){this.opcode("appendEscaped")}else{this.opcode("append")}},Decorator:function Decorator(t){this.DecoratorBlock(t)},ContentStatement:function ContentStatement(t){if(t.value){this.opcode("appendContent",t.value)}},CommentStatement:function CommentStatement(){},SubExpression:function SubExpression(t){transformLiteralToPath(t);var a=this.classifySexpr(t);if(a==="simple"){this.simpleSexpr(t)}else if(a==="helper"){this.helperSexpr(t)}else{this.ambiguousSexpr(t)}},ambiguousSexpr:function ambiguousSexpr(t,a,r){var d=t.path,i=d.parts[0],o=a!=null||r!=null;this.opcode("getContext",d.depth);this.opcode("pushProgram",a);this.opcode("pushProgram",r);d.strict=true;this.accept(d);this.opcode("invokeAmbiguous",i,o)},simpleSexpr:function simpleSexpr(t){var a=t.path;a.strict=true;this.accept(a);this.opcode("resolvePossibleLambda")},helperSexpr:function helperSexpr(t,a,r){var d=this.setupFullMustacheParams(t,a,r),o=t.path,p=o.parts[0];if(this.options.knownHelpers[p]){this.opcode("invokeKnownHelper",d.length,p)}else if(this.options.knownHelpersOnly){throw new i["default"]("You specified knownHelpersOnly, but used the unknown helper "+p,t)}else{o.strict=true;o.falsy=true;this.accept(o);this.opcode("invokeHelper",d.length,o.original,u["default"].helpers.simpleId(o))}},PathExpression:function PathExpression(t){this.addDepth(t.depth);this.opcode("getContext",t.depth);var a=t.parts[0],r=u["default"].helpers.scopedId(t),d=!t.depth&&!r&&this.blockParamIndex(a);if(d){this.opcode("lookupBlockParam",d,t.parts)}else if(!a){this.opcode("pushContext")}else if(t.data){this.options.data=true;this.opcode("lookupData",t.depth,t.parts,t.strict)}else{this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,r)}},StringLiteral:function StringLiteral(t){this.opcode("pushString",t.value)},NumberLiteral:function NumberLiteral(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function BooleanLiteral(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function UndefinedLiteral(){this.opcode("pushLiteral","undefined")},NullLiteral:function NullLiteral(){this.opcode("pushLiteral","null")},Hash:function Hash(t){var a=t.pairs,r=0,d=a.length;this.opcode("pushHash");for(;r this.stackVars.length){this.stackVars.push("stack"+this.stackSlot)}return this.topStackName()},topStackName:function topStackName(){return"stack"+this.stackSlot},flushInline:function flushInline(){var t=this.inlineStack;this.inlineStack=[];for(var a=0,r=t.length;a =0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+d}var l=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,c=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,m={},h={};function addFormatToken(t,a,r,d){var i=d;if(typeof d==="string"){i=function(){return this[d]()}}if(t){h[t]=i}if(a){h[a[0]]=function(){return zeroFill(i.apply(this,arguments),a[1],a[2])}}if(r){h[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)}}}function removeFormattingTokens(t){if(t.match(/\[[\s\S]/)){return t.replace(/^\[|\]$/g,"")}return t.replace(/\\/g,"")}function makeFormatFunction(t){var a=t.match(l),r,d;for(r=0,d=a.length;r r.valueOf()}else{return r.valueOf() 253||u.length===0){o.error=true}for(var l=0;l 253||u.length===0){o.error=true}for(var l=0;l","[-_\\.]?","(?
","[-_\\.]?","(?
\", // pre-release\n /* */ \"[-_\\\\.]?\",\n /* */ \"(?