From 787d9453cfaaa47433ce6fdb19730d7ead0809cd Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Tue, 27 Apr 2021 17:33:48 +0200 Subject: [PATCH] fetch main lock via Octokit (#12) --- README.md | 1 - action.js | 17 +++++++---------- action.yml | 3 --- dist/index.js | 6 +++--- package.json | 4 ++-- yarn.lock | 5 +++++ 6 files changed, 17 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 75f61c6..9399160 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,5 @@ Creates a comment inside Pull Request with the human-readable summary of the cha | Input | Required | Description | | --- | --- | --- | -| `accessToken` | No | Personal access token to give action an access to private repository. Read more: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token | | `path` | No | Path to the `yarn.lock` file in the repository. Default `yarn.lock` (project root). | | `token` | **Yes** | GitHub token for the bot, so it can publish a comment in the pull request. | diff --git a/action.js b/action.js index 63b99fb..97575b3 100644 --- a/action.js +++ b/action.js @@ -3,8 +3,8 @@ const github = require('@actions/github'); const lockfile = require('@yarnpkg/lockfile'); const compareVersions = require('compare-versions'); const fs = require('fs'); +const { Base64 } = require('js-base64'); const { markdownTable } = require('markdown-table'); -const fetch = require('node-fetch'); const path = require('path'); const GH_RAW_URL = 'https://raw.githubusercontent.com'; @@ -76,7 +76,6 @@ const run = async () => { const inputPath = core.getInput('path'); const { owner, repo, number } = github.context.issue; - const { default_branch, temp_clone_token } = github.context.payload.repository; if (!number) { throw new Error('Cannot find the PR!'); @@ -91,15 +90,13 @@ const run = async () => { const content = await fs.readFileSync(lockPath, { encoding: 'utf8' }); const updatedLock = lockfile.parse(content); - const response = await fetch( - `${GH_RAW_URL}/${owner}/${repo}/${default_branch}/${inputPath}?token=${temp_clone_token}` - ); + const masterLockResponse = await octokit.request('GET /repos/{owner}/{repo}/contents/{path}', { + owner, + repo, + path: inputPath + }); - if (!response) { - throw new Error('Cannot fetch current lock file!'); - } - - const masterLock = lockfile.parse(await response.text()); + const masterLock = lockfile.parse(Base64.decode(masterLockResponse.data.content)); const lockChanges = diffLocks(masterLock, updatedLock); if (Object.keys(lockChanges).length) { diff --git a/action.yml b/action.yml index 2ada67f..f2e27b3 100644 --- a/action.yml +++ b/action.yml @@ -4,9 +4,6 @@ branding: icon: 'copy' color: 'purple' inputs: - accessToken: - description: 'Personal access token to give action an access to private repository.' - required: false path: description: 'Path to the `yarn.lock` file in the repository.' required: false diff --git a/dist/index.js b/dist/index.js index 393fd5c..6d72e1c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,13 +1,13 @@ -(()=>{var __webpack_modules__={5997:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2087));const o=r(1581);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7090:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(5997);const i=r(5441);const a=r(1581);const c=s(r(2087));const u=s(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;i.issueCommand("ENV",n)}else{o.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){i.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(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.getInput=getInput;function setOutput(e,t){process.stdout.write(c.EOL);o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},5441:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5747));const o=n(r(2087));const i=r(1581);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${i.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},1581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},9341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(5747);const s=r(2087);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.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${s.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'")}}t.Context=Context},6993:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(9341));const a=r(6803);t.context=new i.Context;function getOctokit(e,t){return new a.GitHub(a.getOctokitOptions(e,t))}t.getOctokit=getOctokit},2200:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const i=o(r(1956));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new i.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},6803:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const i=o(r(9341));const a=o(r(2200));const c=r(8020);const u=r(3755);const l=r(7877);t.context=new i.Context;const p=a.getApiBaseUrl();const d={baseUrl:p,request:{agent:a.getProxyAgent(p)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,l.paginateRest).defaults(d);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},1956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8605);const s=r(7211);const o=r(4739);let i;var a;(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"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const p=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const h=10;const m=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{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=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,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=e;this.handlers=t||[];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(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,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let s=await this.post(e,n,r);return this._processResponse(s,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let s=await this.put(e,n,r);return this._processResponse(s,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let s=await this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let s=new URL(t);let o=this._prepareRequest(e,s,n);let i=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const i=u.message.headers["location"];if(!i){break}let a=new URL(i);if(s.protocol=="https:"&&s.protocol!=a.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 u.readBody();if(a.hostname!==s.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);u=await this.requestRaw(o,r);t--}if(p.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;let handleResult=(e,t)=>{if(!s){s=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{n=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?s:n;const a=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;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((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!i){i=r(2083)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const s=a.protocol==="https:";if(u){n=s?i.httpsOverHttps:i.httpsOverHttp}else{n=s?i.httpOverHttps:i.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new s.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?s.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=m*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const s=e.message.statusCode;const o={statusCode:s,result:null,headers:{}};if(s==a.NotFound){r(o)}let i;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){i=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{i=JSON.parse(c)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+s+")"}let t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))}}t.HttpClient=HttpClient},4739:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},6782:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},8020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(74);var s=r(2889);var o=r(8437);var i=r(8587);var a=r(6782);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var s,o;for(o=0;o=0)continue;r[s]=e[s]}return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t);var n,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;r[n]=e[n]}}return r}const c="3.4.0";class Octokit{constructor(e={}){const t=new s.Collection;const r={baseUrl:o.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${c} ${n.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=o.request.defaults(r);this.graphql=i.withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=a.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r}=e,n=_objectWithoutProperties(e,["authStrategy"]);const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const u=this.constructor;u.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const n=(t=class extends(this){},t.plugins=r.concat(e.filter((e=>!r.includes(e)))),t);return n}}Octokit.VERSION=c;Octokit.plugins=[];t.Octokit=Octokit},6172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(906);var s=r(74);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((s=>{if(n.isPlainObject(t[s])){if(!(s in e))Object.assign(r,{[s]:t[s]});else r[s]=mergeDeep(e[s],t[s])}else{Object.assign(r,{[s]:t[s]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map((e=>e.replace(/-preview/,"")));return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const o=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(o);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,r)=>{t[r]=e[r];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}))}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const i="6.0.11";const a=`octokit-endpoint.js/${i} ${s.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const u=withDefaults(null,c);t.endpoint=u},8587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(8437);var s=r(74);const o="4.6.1";class GraphqlError extends Error{constructor(e,t){const r=t.data.errors[0].message;super(r);Object.assign(this,t.data);Object.assign(this,{headers:t.headers});this.name="GraphqlError";this.request=e;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const i=["method","baseUrl","url","headers","request","query","mediaType"];const a=["query","method","url"];const c=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!a.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(i.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(c.test(o)){s.url=o.replace(c,"/api/graphql")}return 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 GraphqlError(s,{headers:t,data:e.data})}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const u=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${o} ${s.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=u;t.withCustomRequest=withCustomRequest},7877:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.13.3";function normalizePaginatedListResponse(e){const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}const n=Object.assign(paginate,{iterator:iterator});const s=["GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/actions/runners/downloads","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/runners/downloads","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runners/downloads","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /scim/v2/enterprises/{enterprise}/Groups","GET /scim/v2/enterprises/{enterprise}/Users","GET /scim/v2/organizations/{org}/Users","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/team-sync/group-mappings","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return s.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=n;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=s},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t)n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(6891);var s=_interopDefault(r(54));const o=s((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){o(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s}}t.RequestError=RequestError},8437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(6172);var s=r(74);var o=r(906);var i=_interopDefault(r(7374));var a=r(8187);const c="5.4.15";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(o.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const s=e.request&&e.request.fetch||i;return s(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((s=>{n=s.url;r=s.status;for(const e of s.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(s.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return s.text().then((n=>{const s=new a.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(s.message);Object.assign(s,e);let t=e.errors;s.message=s.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw s}))}const o=s.headers.get("content-type");if(/application\/json/.test(o)){return s.json()}if(!o||/^text\/|charset=utf-8$/.test(o)){return s.text()}return getBufferResponse(s)})).then((e=>({status:r,url:n,headers:t,data:e}))).catch((r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${s.getUserAgent()}`}});t.request=u},4705:(e,t,r)=>{e.exports=function(e){var t={};function __nested_webpack_require_187__(r){if(t[r]){return t[r].exports}var n=t[r]={i:r,l:false,exports:{}};e[r].call(n.exports,n,n.exports,__nested_webpack_require_187__);n.l=true;return n.exports}__nested_webpack_require_187__.m=e;__nested_webpack_require_187__.c=t;__nested_webpack_require_187__.i=function(e){return e};__nested_webpack_require_187__.d=function(e,t,r){if(!__nested_webpack_require_187__.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:r})}};__nested_webpack_require_187__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e["default"]}:function getModuleExports(){return e};__nested_webpack_require_187__.d(t,"a",t);return t};__nested_webpack_require_187__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};__nested_webpack_require_187__.p="";return __nested_webpack_require_187__(__nested_webpack_require_187__.s=14)}([function(e,t){e.exports=r(5622)},function(e,t,r){"use strict";t.__esModule=true;var n=r(173);var s=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(){var t=e.apply(this,arguments);return new s.default((function(e,r){function step(n,o){try{var i=t[n](o);var a=i.value}catch(e){r(e);return}if(i.done){e(a)}else{return s.default.resolve(a).then((function(e){step("next",e)}),(function(e){step("throw",e)}))}}return step("next")}))}}},function(e,t){e.exports=r(1669)},function(e,t){e.exports=r(5747)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});class MessageError extends Error{constructor(e,t){super(e);this.code=t}}t.MessageError=MessageError;class ProcessSpawnError extends MessageError{constructor(e,t,r){super(e,t);this.process=r}}t.ProcessSpawnError=ProcessSpawnError;class SecurityError extends MessageError{}t.SecurityError=SecurityError;class ProcessTermError extends MessageError{}t.ProcessTermError=ProcessTermError;class ResponseError extends Error{constructor(e,t){super(e);this.responseCode=t}}t.ResponseError=ResponseError},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=undefined;var n;function _load_asyncToGenerator(){return n=_interopRequireDefault(r(1))}let s=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r,s){let o=(()=>{var o=(0,(n||_load_asyncToGenerator()).default)((function*(n){const o=n.src,c=n.dest,u=n.type;const l=n.onFresh||noop;const p=n.onDone||noop;if(a.has(c.toLowerCase())){s.verbose(`The case-insensitive file ${c} shouldn't be copied twice in one bulk copy`)}else{a.add(c.toLowerCase())}if(u==="symlink"){yield H((O||_load_path()).default.dirname(c));l();d.symlink.push({dest:c,linkname:o});p();return}if(t.ignoreBasenames.indexOf((O||_load_path()).default.basename(o))>=0){return}const h=yield z(o);let m;if(h.isDirectory()){m=yield I(o)}let g;try{g=yield z(c)}catch(e){if(e.code!=="ENOENT"){throw e}}if(g){const e=h.isSymbolicLink()&&g.isSymbolicLink();const t=h.isDirectory()&&g.isDirectory();const n=h.isFile()&&g.isFile();if(n&&i.has(c)){p();s.verbose(s.lang("verboseFileSkipArtifact",o));return}if(n&&h.size===g.size&&(0,(C||_load_fsNormalized()).fileDatesEqual)(h.mtime,g.mtime)){p();s.verbose(s.lang("verboseFileSkip",o,c,h.size,+h.mtime));return}if(e){const e=yield U(o);if(e===(yield U(c))){p();s.verbose(s.lang("verboseFileSkipSymlink",o,c,e));return}}if(t){const e=yield I(c);Q(m,"src files not initialised");for(var v=e,y=Array.isArray(v),b=0,v=y?v:v[Symbol.iterator]();;){var _;if(y){if(b>=v.length)break;_=v[b++]}else{b=v.next();if(b.done)break;_=b.value}const e=_;if(m.indexOf(e)<0){const t=(O||_load_path()).default.join(c,e);r.add(t);if((yield z(t)).isDirectory()){for(var E=yield I(t),w=Array.isArray(E),T=0,E=w?E:E[Symbol.iterator]();;){var k;if(w){if(T>=E.length)break;k=E[T++]}else{T=E.next();if(T.done)break;k=T.value}const e=k;r.add((O||_load_path()).default.join(t,e))}}}}}}if(g&&g.isSymbolicLink()){yield(0,(C||_load_fsNormalized()).unlink)(c);g=null}if(h.isSymbolicLink()){l();const e=yield U(o);d.symlink.push({dest:c,linkname:e});p()}else if(h.isDirectory()){if(!g){s.verbose(s.lang("verboseFileFolder",c));yield H(c)}const t=c.split((O||_load_path()).default.sep);while(t.length){a.add(t.join((O||_load_path()).default.sep).toLowerCase());t.pop()}Q(m,"src files not initialised");let r=m.length;if(!r){p()}for(var S=m,G=Array.isArray(S),P=0,S=G?S:S[Symbol.iterator]();;){var A;if(G){if(P>=S.length)break;A=S[P++]}else{P=S.next();if(P.done)break;A=P.value}const t=A;e.push({dest:(O||_load_path()).default.join(c,t),onFresh:l,onDone:function(e){function onDone(){return e.apply(this,arguments)}onDone.toString=function(){return e.toString()};return onDone}((function(){if(--r===0){p()}})),src:(O||_load_path()).default.join(o,t)})}}else if(h.isFile()){l();d.file.push({src:o,dest:c,atime:h.atime,mtime:h.mtime,mode:h.mode});p()}else{throw new Error(`unsure how to copy this: ${o}`)}}));return function build(e){return o.apply(this,arguments)}})();const i=new Set(t.artifactFiles||[]);const a=new Set;for(var c=e,u=Array.isArray(c),l=0,c=u?c:c[Symbol.iterator]();;){var p;if(u){if(l>=c.length)break;p=c[l++]}else{l=c.next();if(l.done)break;p=l.value}const e=p;const r=e.onDone;e.onDone=function(){t.onProgress(e.dest);if(r){r()}}}t.onStart(e.length);const d={file:[],symlink:[],link:[]};while(e.length){const t=e.splice(0,Y);yield Promise.all(t.map(o))}for(var h=i,m=Array.isArray(h),g=0,h=m?h:h[Symbol.iterator]();;){var v;if(m){if(g>=h.length)break;v=h[g++]}else{g=h.next();if(g.done)break;v=g.value}const e=v;if(r.has(e)){s.verbose(s.lang("verboseFilePhantomExtraneous",e));r.delete(e)}}for(var y=r,b=Array.isArray(y),_=0,y=b?y:y[Symbol.iterator]();;){var E;if(b){if(_>=y.length)break;E=y[_++]}else{_=y.next();if(_.done)break;E=_.value}const e=E;if(a.has(e.toLowerCase())){r.delete(e)}}return d}));return function buildActionsForCopy(t,r,n,s){return e.apply(this,arguments)}})();let o=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r,s){let o=(()=>{var o=(0,(n||_load_asyncToGenerator()).default)((function*(n){const o=n.src,c=n.dest;const u=n.onFresh||noop;const l=n.onDone||noop;if(a.has(c.toLowerCase())){l();return}a.add(c.toLowerCase());if(t.ignoreBasenames.indexOf((O||_load_path()).default.basename(o))>=0){return}const p=yield z(o);let h;if(p.isDirectory()){h=yield I(o)}const m=yield $(c);if(m){const e=yield z(c);const t=p.isSymbolicLink()&&e.isSymbolicLink();const n=p.isDirectory()&&e.isDirectory();const a=p.isFile()&&e.isFile();if(p.mode!==e.mode){try{yield N(c,p.mode)}catch(e){s.verbose(e)}}if(a&&i.has(c)){l();s.verbose(s.lang("verboseFileSkipArtifact",o));return}if(a&&p.ino!==null&&p.ino===e.ino){l();s.verbose(s.lang("verboseFileSkip",o,c,p.ino));return}if(t){const e=yield U(o);if(e===(yield U(c))){l();s.verbose(s.lang("verboseFileSkipSymlink",o,c,e));return}}if(n){const e=yield I(c);Q(h,"src files not initialised");for(var g=e,v=Array.isArray(g),y=0,g=v?g:g[Symbol.iterator]();;){var b;if(v){if(y>=g.length)break;b=g[y++]}else{y=g.next();if(y.done)break;b=y.value}const e=b;if(h.indexOf(e)<0){const t=(O||_load_path()).default.join(c,e);r.add(t);if((yield z(t)).isDirectory()){for(var _=yield I(t),E=Array.isArray(_),w=0,_=E?_:_[Symbol.iterator]();;){var T;if(E){if(w>=_.length)break;T=_[w++]}else{w=_.next();if(w.done)break;T=w.value}const e=T;r.add((O||_load_path()).default.join(t,e))}}}}}}if(p.isSymbolicLink()){u();const e=yield U(o);d.symlink.push({dest:c,linkname:e});l()}else if(p.isDirectory()){s.verbose(s.lang("verboseFileFolder",c));yield H(c);const t=c.split((O||_load_path()).default.sep);while(t.length){a.add(t.join((O||_load_path()).default.sep).toLowerCase());t.pop()}Q(h,"src files not initialised");let r=h.length;if(!r){l()}for(var k=h,S=Array.isArray(k),G=0,k=S?k:k[Symbol.iterator]();;){var P;if(S){if(G>=k.length)break;P=k[G++]}else{G=k.next();if(G.done)break;P=G.value}const t=P;e.push({onFresh:u,src:(O||_load_path()).default.join(o,t),dest:(O||_load_path()).default.join(c,t),onDone:function(e){function onDone(){return e.apply(this,arguments)}onDone.toString=function(){return e.toString()};return onDone}((function(){if(--r===0){l()}}))})}}else if(p.isFile()){u();d.link.push({src:o,dest:c,removeDest:m});l()}else{throw new Error(`unsure how to copy this: ${o}`)}}));return function build(e){return o.apply(this,arguments)}})();const i=new Set(t.artifactFiles||[]);const a=new Set;for(var c=e,u=Array.isArray(c),l=0,c=u?c:c[Symbol.iterator]();;){var p;if(u){if(l>=c.length)break;p=c[l++]}else{l=c.next();if(l.done)break;p=l.value}const e=p;const r=e.onDone||noop;e.onDone=function(){t.onProgress(e.dest);r()}}t.onStart(e.length);const d={file:[],symlink:[],link:[]};while(e.length){const t=e.splice(0,Y);yield Promise.all(t.map(o))}for(var h=i,m=Array.isArray(h),g=0,h=m?h:h[Symbol.iterator]();;){var v;if(m){if(g>=h.length)break;v=h[g++]}else{g=h.next();if(g.done)break;v=g.value}const e=v;if(r.has(e)){s.verbose(s.lang("verboseFilePhantomExtraneous",e));r.delete(e)}}for(var y=r,b=Array.isArray(y),_=0,y=b?y:y[Symbol.iterator]();;){var E;if(b){if(_>=y.length)break;E=y[_++]}else{_=y.next();if(_.done)break;E=_.value}const e=E;if(a.has(e.toLowerCase())){r.delete(e)}}return d}));return function buildActionsForHardlink(t,r,n,s){return e.apply(this,arguments)}})();let i=t.copyBulk=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r){const o={onStart:r&&r.onStart||noop,onProgress:r&&r.onProgress||noop,possibleExtraneous:r?r.possibleExtraneous:new Set,ignoreBasenames:r&&r.ignoreBasenames||[],artifactFiles:r&&r.artifactFiles||[]};const i=yield s(e,o,o.possibleExtraneous,t);o.onStart(i.file.length+i.symlink.length+i.link.length);const a=i.file;const c=new Map;yield(G||_load_promise()).queue(a,(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){let r;while(r=c.get(e.dest)){yield r}t.verbose(t.lang("verboseFileCopy",e.src,e.dest));const n=(0,(C||_load_fsNormalized()).copyFile)(e,(function(){return c.delete(e.dest)}));c.set(e.dest,n);o.onProgress(e.dest);return n}));return function(t){return e.apply(this,arguments)}})(),Y);const u=i.symlink;yield(G||_load_promise()).queue(u,(function(e){const r=(O||_load_path()).default.resolve((O||_load_path()).default.dirname(e.dest),e.linkname);t.verbose(t.lang("verboseFileSymlink",e.dest,r));return d(r,e.dest)}))}));return function copyBulk(t,r,n){return e.apply(this,arguments)}})();let a=t.hardlinkBulk=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r){const s={onStart:r&&r.onStart||noop,onProgress:r&&r.onProgress||noop,possibleExtraneous:r?r.possibleExtraneous:new Set,artifactFiles:r&&r.artifactFiles||[],ignoreBasenames:[]};const i=yield o(e,s,s.possibleExtraneous,t);s.onStart(i.file.length+i.symlink.length+i.link.length);const a=i.link;yield(G||_load_promise()).queue(a,(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){t.verbose(t.lang("verboseFileLink",e.src,e.dest));if(e.removeDest){yield(0,(C||_load_fsNormalized()).unlink)(e.dest)}yield V(e.src,e.dest)}));return function(t){return e.apply(this,arguments)}})(),Y);const c=i.symlink;yield(G||_load_promise()).queue(c,(function(e){const r=(O||_load_path()).default.resolve((O||_load_path()).default.dirname(e.dest),e.linkname);t.verbose(t.lang("verboseFileSymlink",e.dest,r));return d(r,e.dest)}))}));return function hardlinkBulk(t,r,n){return e.apply(this,arguments)}})();let c=t.readFileAny=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){for(var t=e,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var s;if(r){if(n>=t.length)break;s=t[n++]}else{n=t.next();if(n.done)break;s=n.value}const e=s;if(yield $(e)){return readFile(e)}}return null}));return function readFileAny(t){return e.apply(this,arguments)}})();let u=t.readJson=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){return(yield l(e)).object}));return function readJson(t){return e.apply(this,arguments)}})();let l=t.readJsonAndFile=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){const t=yield readFile(e);try{return{object:(0,(A||_load_map()).default)(JSON.parse(Z(t))),content:t}}catch(t){t.message=`${e}: ${t.message}`;throw t}}));return function readJsonAndFile(t){return e.apply(this,arguments)}})();let p=t.find=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t){const r=t.split((O||_load_path()).default.sep);while(r.length){const t=r.concat(e).join((O||_load_path()).default.sep);if(yield $(t)){return t}else{r.pop()}}return false}));return function find(t,r){return e.apply(this,arguments)}})();let d=t.symlink=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t){try{const r=yield z(t);if(r.isSymbolicLink()){const r=yield q(t);if(r===e){return}}}catch(e){if(e.code!=="ENOENT"){throw e}}yield(0,(C||_load_fsNormalized()).unlink)(t);if(process.platform==="win32"){yield J(e,t,"junction")}else{let r;try{r=(O||_load_path()).default.relative((w||_load_fs()).default.realpathSync((O||_load_path()).default.dirname(t)),(w||_load_fs()).default.realpathSync(e))}catch(n){if(n.code!=="ENOENT"){throw n}r=(O||_load_path()).default.relative((O||_load_path()).default.dirname(t),e)}yield J(r||".",t)}}));return function symlink(t,r){return e.apply(this,arguments)}})();let h=t.walk=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r=new Set){let n=[];let s=yield I(e);if(r.size){s=s.filter((function(e){return!r.has(e)}))}for(var o=s,i=Array.isArray(o),a=0,o=i?o:o[Symbol.iterator]();;){var c;if(i){if(a>=o.length)break;c=o[a++]}else{a=o.next();if(a.done)break;c=a.value}const s=c;const u=t?(O||_load_path()).default.join(t,s):s;const l=(O||_load_path()).default.join(e,s);const p=yield z(l);n.push({relative:u,basename:s,absolute:l,mtime:+p.mtime});if(p.isDirectory()){n=n.concat(yield h(l,u,r))}}return n}));return function walk(t,r){return e.apply(this,arguments)}})();let m=t.getFileSizeOnDisk=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){const t=yield z(e);const r=t.size,n=t.blksize;return Math.ceil(r/n)*n}));return function getFileSizeOnDisk(t){return e.apply(this,arguments)}})();let g=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){if(!(yield $(e))){return undefined}const t=yield j(e);for(let e=0;e{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t){const r=(yield g(e))||(k||_load_os()).default.EOL;if(r!=="\n"){t=t.replace(/\n/g,r)}yield L(e,t)}));return function writeFilePreservingEol(t,r){return e.apply(this,arguments)}})();let y=t.hardlinksWork=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){const t="test-file"+Math.random();const r=(O||_load_path()).default.join(e,t);const n=(O||_load_path()).default.join(e,t+"-link");try{yield L(r,"test");yield V(r,n)}catch(e){return false}finally{yield(0,(C||_load_fsNormalized()).unlink)(r);yield(0,(C||_load_fsNormalized()).unlink)(n)}return true}));return function hardlinksWork(t){return e.apply(this,arguments)}})();let b=t.makeTempDir=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){const t=(O||_load_path()).default.join((k||_load_os()).default.tmpdir(),`yarn-${e||""}-${Date.now()}-${Math.random()}`);yield(0,(C||_load_fsNormalized()).unlink)(t);yield H(t);return t}));return function makeTempDir(t){return e.apply(this,arguments)}})();let _=t.readFirstAvailableStream=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){for(var t=e,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var s;if(r){if(n>=t.length)break;s=t[n++]}else{n=t.next();if(n.done)break;s=n.value}const e=s;try{const t=yield D(e,"r");return(w||_load_fs()).default.createReadStream(e,{fd:t})}catch(e){}}return null}));return function readFirstAvailableStream(t){return e.apply(this,arguments)}})();let E=t.getFirstSuitableFolder=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t=x.W_OK|x.X_OK){const r={skipped:[],folder:null};for(var n=e,s=Array.isArray(n),o=0,n=s?n:n[Symbol.iterator]();;){var i;if(s){if(o>=n.length)break;i=n[o++]}else{o=n.next();if(o.done)break;i=o.value}const e=i;try{yield H(e);yield N(e,t);r.folder=e;return r}catch(t){r.skipped.push({error:t,folder:e})}}return r}));return function getFirstSuitableFolder(t){return e.apply(this,arguments)}})();t.copy=copy;t.readFile=readFile;t.readFileRaw=readFileRaw;t.normalizeOS=normalizeOS;var w;function _load_fs(){return w=_interopRequireDefault(r(3))}var T;function _load_glob(){return T=_interopRequireDefault(r(75))}var k;function _load_os(){return k=_interopRequireDefault(r(36))}var O;function _load_path(){return O=_interopRequireDefault(r(0))}var S;function _load_blockingQueue(){return S=_interopRequireDefault(r(84))}var G;function _load_promise(){return G=_interopRequireWildcard(r(40))}var P;function _load_promise2(){return P=r(40)}var A;function _load_map(){return A=_interopRequireDefault(r(20))}var C;function _load_fsNormalized(){return C=r(164)}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const x=t.constants=typeof(w||_load_fs()).default.constants!=="undefined"?(w||_load_fs()).default.constants:{R_OK:(w||_load_fs()).default.R_OK,W_OK:(w||_load_fs()).default.W_OK,X_OK:(w||_load_fs()).default.X_OK};const R=t.lockQueue=new((S||_load_blockingQueue()).default)("fs lock");const j=t.readFileBuffer=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.readFile);const D=t.open=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.open);const L=t.writeFile=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.writeFile);const U=t.readlink=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.readlink);const q=t.realpath=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.realpath);const I=t.readdir=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.readdir);const M=t.rename=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.rename);const N=t.access=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.access);const B=t.stat=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.stat);const H=t.mkdirp=(0,(P||_load_promise2()).promisify)(r(116));const $=t.exists=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.exists,true);const z=t.lstat=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.lstat);const W=t.chmod=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.chmod);const V=t.link=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.link);const K=t.glob=(0,(P||_load_promise2()).promisify)((T||_load_glob()).default);t.unlink=(C||_load_fsNormalized()).unlink;const Y=(w||_load_fs()).default.copyFile?128:4;const J=(0,(P||_load_promise2()).promisify)((w||_load_fs()).default.symlink);const Q=r(7);const Z=r(122);const noop=()=>{};function copy(e,t,r){return i([{src:e,dest:t}],r)}function _readFile(e,t){return new Promise(((r,n)=>{(w||_load_fs()).default.readFile(e,t,(function(e,t){if(e){n(e)}else{r(t)}}))}))}function readFile(e){return _readFile(e,"utf8").then(normalizeOS)}function readFileRaw(e){return _readFile(e,"binary")}function normalizeOS(e){return e.replace(/\r\n/g,"\n")}const X="\r".charCodeAt(0);const ee="\n".charCodeAt(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPathKey=getPathKey;const n=r(36);const s=r(0);const o=r(45).default;var i=r(171);const a=i.getCacheDir,c=i.getConfigDir,u=i.getDataDir;const l=r(227);const p=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"];const d=t.RESOLUTIONS="resolutions";const h=t.MANIFEST_FIELDS=[d,...p];const m=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0";const g=t.YARN_REGISTRY="https://registry.yarnpkg.com";const v=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/";const y=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh";const b=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi";const _=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version";const E=t.CACHE_VERSION=2;const w=t.LOCKFILE_VERSION=1;const T=t.NETWORK_CONCURRENCY=8;const k=t.NETWORK_TIMEOUT=30*1e3;const O=t.CHILD_CONCURRENCY=5;const S=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function getPreferredCacheDirectories(){const e=[a()];if(process.getuid){e.push(s.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`))}e.push(s.join(n.tmpdir(),`.yarn-cache`));return e}const G=t.PREFERRED_MODULE_CACHE_DIRECTORIES=getPreferredCacheDirectories();const P=t.CONFIG_DIRECTORY=c();const A=t.DATA_DIRECTORY=u();const C=t.LINK_REGISTRY_DIRECTORY=s.join(A,"link");const x=t.GLOBAL_MODULE_DIRECTORY=s.join(A,"global");const R=t.NODE_BIN_PATH=process.execPath;const j=t.YARN_BIN_PATH=getYarnBinPath();function getYarnBinPath(){if(l){return __filename}else{return s.join(__dirname,"..","bin","yarn.js")}}const D=t.NODE_MODULES_FOLDER="node_modules";const L=t.NODE_PACKAGE_JSON="package.json";const U=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`;const q=t.FALLBACK_GLOBAL_PREFIX=s.join(o,".yarn");const I=t.META_FOLDER=".yarn-meta";const M=t.INTEGRITY_FILENAME=".yarn-integrity";const N=t.LOCKFILE_FILENAME="yarn.lock";const B=t.METADATA_FILENAME=".yarn-metadata.json";const H=t.TARBALL_FILENAME=".yarn-tarball.tgz";const $=t.CLEAN_FILENAME=".yarnclean";const z=t.NPM_LOCK_FILENAME="package-lock.json";const W=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json";const V=t.DEFAULT_INDENT=" ";const K=t.SINGLE_INSTANCE_PORT=31997;const Y=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance";const J=t.ENV_PATH_KEY=getPathKey(process.platform,process.env);function getPathKey(e,t){let r="PATH";if(e==="win32"){r="Path";for(const e in t){if(e.toLowerCase()==="path"){r=e}}}return r}const Q=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,r){"use strict";var n=process.env.NODE_ENV;var invariant=function(e,t,r,s,o,i,a,c){if(n!=="production"){if(t===undefined){throw new Error("invariant requires an error message argument")}}if(!e){var u;if(t===undefined){u=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var l=[r,s,o,i,a,c];var p=0;u=new Error(t.replace(/%s/g,(function(){return l[p++]})));u.name="Invariant Violation"}u.framesToPop=1;throw u}};e.exports=invariant},,function(e,t){e.exports=r(6417)},,function(e,t){var r=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sortAlpha=sortAlpha;t.entries=entries;t.removePrefix=removePrefix;t.removeSuffix=removeSuffix;t.addSuffix=addSuffix;t.hyphenate=hyphenate;t.camelCase=camelCase;t.compareSortedArrays=compareSortedArrays;t.sleep=sleep;const n=r(176);function sortAlpha(e,t){const r=Math.min(e.length,t.length);for(let n=0;n"-"+e.charAt(0).toLowerCase()))}function camelCase(e){if(/[A-Z]/.test(e)){return null}else{return n(e)}}function compareSortedArrays(e,t){if(e.length!==t.length){return false}for(let r=0,n=e.length;r{setTimeout(t,e)}))}},function(e,t,r){var n=r(107)("wks");var s=r(111);var o=r(11).Symbol;var i=typeof o=="function";var a=e.exports=function(e){return n[e]||(n[e]=i&&o[e]||(i?o:s)("Symbol."+e))};a.store=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringify=t.parse=undefined;var n;function _load_asyncToGenerator(){return n=_interopRequireDefault(r(1))}var s;function _load_parse(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:true,get:function get(){return _interopRequireDefault(s||_load_parse()).default}});var o;function _load_stringify(){return o=r(150)}Object.defineProperty(t,"stringify",{enumerable:true,get:function get(){return _interopRequireDefault(o||_load_stringify()).default}});t.implodeEntry=implodeEntry;t.explodeEntry=explodeEntry;var i;function _load_misc(){return i=r(12)}var a;function _load_normalizePattern(){return a=r(29)}var c;function _load_parse2(){return c=_interopRequireDefault(r(81))}var u;function _load_constants(){return u=r(6)}var l;function _load_fs(){return l=_interopRequireWildcard(r(5))}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const p=r(7);const d=r(0);const h=r(55);function getName(e){return(0,(a||_load_normalizePattern()).normalizePattern)(e).name}function blankObjectUndefined(e){return e&&Object.keys(e).length?e:undefined}function keyForRemote(e){return e.resolved||(e.reference&&e.hash?`${e.reference}#${e.hash}`:null)}function serializeIntegrity(e){return e.toString().split(" ").sort().join(" ")}function implodeEntry(e,t){const r=getName(e);const n=t.integrity?serializeIntegrity(t.integrity):"";const s={name:r===t.name?undefined:t.name,version:t.version,uid:t.uid===t.version?undefined:t.uid,resolved:t.resolved,registry:t.registry==="npm"?undefined:t.registry,dependencies:blankObjectUndefined(t.dependencies),optionalDependencies:blankObjectUndefined(t.optionalDependencies),permissions:blankObjectUndefined(t.permissions),prebuiltVariants:blankObjectUndefined(t.prebuiltVariants)};if(n){s.integrity=n}return s}function explodeEntry(e,t){t.optionalDependencies=t.optionalDependencies||{};t.dependencies=t.dependencies||{};t.uid=t.uid||t.version;t.permissions=t.permissions||{};t.registry=t.registry||"npm";t.name=t.name||getName(e);const r=t.integrity;if(r&&r.isIntegrity){t.integrity=h.parse(r)}return t}class Lockfile{constructor({cache:e,source:t,parseResultType:r}={}){this.source=t||"";this.cache=e;this.parseResultType=r}hasEntriesExistWithoutIntegrity(){if(!this.cache){return false}for(const e in this.cache){if(!/^.*@(file:|http)/.test(e)&&this.cache[e]&&!this.cache[e].integrity){return true}}return false}static fromDirectory(e,t){return(0,(n||_load_asyncToGenerator()).default)((function*(){const r=d.join(e,(u||_load_constants()).LOCKFILE_FILENAME);let n;let s="";let o;if(yield(l||_load_fs()).exists(r)){s=yield(l||_load_fs()).readFile(r);o=(0,(c||_load_parse2()).default)(s,r);if(t){if(o.type==="merge"){t.info(t.lang("lockfileMerged"))}else if(o.type==="conflict"){t.warn(t.lang("lockfileConflict"))}}n=o.object}else if(t){t.info(t.lang("noLockfileFound"))}return new Lockfile({cache:n,source:s,parseResultType:o&&o.type})}))()}getLocked(e){const t=this.cache;if(!t){return undefined}const r=e in t&&t[e];if(typeof r==="string"){return this.getLocked(r)}else if(r){explodeEntry(e,r);return r}return undefined}removePattern(e){const t=this.cache;if(!t){return}delete t[e]}getLockfile(e){const t={};const r=new Map;const n=Object.keys(e).sort((i||_load_misc()).sortAlpha);for(var s=n,o=Array.isArray(s),a=0,s=o?s:s[Symbol.iterator]();;){var c;if(o){if(a>=s.length)break;c=s[a++]}else{a=s.next();if(a.done)break;c=a.value}const n=c;const i=e[n];const u=i._remote,l=i._reference;p(l,"Package is missing a reference");p(u,"Package is missing a remote");const d=keyForRemote(u);const h=d&&r.get(d);if(h){t[n]=h;if(!h.name&&getName(n)!==i.name){h.name=i.name}continue}const m=implodeEntry(n,{name:i.name,version:i.version,uid:i._uid,resolved:u.resolved,integrity:u.integrity,registry:u.registry,dependencies:i.dependencies,peerDependencies:i.peerDependencies,optionalDependencies:i.optionalDependencies,permissions:l.permissions,prebuiltVariants:i.prebuiltVariants});t[n]=m;if(d){r.set(d,m)}}return t}}t.default=Lockfile},,,function(e,t){e.exports=r(2413)},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=nullify;function nullify(e={}){if(Array.isArray(e)){for(var t=e,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var s;if(r){if(n>=t.length)break;s=t[n++]}else{n=t.next();if(n.done)break;s=n.value}const e=s;nullify(e)}}else if(e!==null&&typeof e==="object"||typeof e==="function"){Object.setPrototypeOf(e,null);if(typeof e==="object"){for(const t in e){nullify(e[t])}}}return e}},,function(e,t){e.exports=r(2357)},function(e,t){var r=e.exports={version:"2.5.7"};if(typeof __e=="number")__e=r},,,,function(e,t,r){var n=r(34);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizePattern=normalizePattern;function normalizePattern(e){let t=false;let r="latest";let n=e;let s=false;if(n[0]==="@"){s=true;n=n.slice(1)}const o=n.split("@");if(o.length>1){n=o.shift();r=o.join("@");if(r){t=true}else{r="*"}}if(s){n=`@${n}`}return{name:n,range:r,hasVersion:t}}},,function(e,t,r){var n=r(50);var s=r(106);e.exports=r(33)?function(e,t,r){return n.f(e,t,s(1,r))}:function(e,t,r){e[t]=r;return e}},function(e,t,r){var n=r(63);var s=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return s(e,t,r)}copyProps(s,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=s(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},function(e,t,r){e.exports=!r(85)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},function(e,t){e.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},function(e,t){e.exports={}},function(e,t){e.exports=r(2087)},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wait=wait;t.promisify=promisify;t.queue=queue;function wait(e){return new Promise((t=>{setTimeout(t,e)}))}function promisify(e,t){return function(...r){return new Promise((function(n,s){r.push((function(e,...r){let o=r;if(r.length<=1){o=r[0]}if(t){o=e;e=null}if(e){s(e)}else{n(o)}}));e.apply(null,r)}))}}function queue(e,t,r=Infinity){r=Math.min(r,e.length);e=e.slice();const n=[];let s=e.length;if(!s){return Promise.resolve(n)}return new Promise(((o,i)=>{for(let e=0;ee===n[1]))){return}this.algorithm=n[1];this.digest=n[2];const s=n[3];this.options=s?s.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(e){if(e&&e.strict){if(!(i.some((e=>e===this.algorithm))&&this.digest.match(a)&&(this.options||[]).every((e=>e.match(l))))){return""}}const t=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${t}`}}class Integrity{get isIntegrity(){return true}toJSON(){return this.toString()}toString(e){e=e||{};let t=e.sep||" ";if(e.strict){t=t.replace(/\S+/g," ")}return Object.keys(this).map((r=>this[r].map((t=>Hash.prototype.toString.call(t,e))).filter((e=>e.length)).join(t))).filter((e=>e.length)).join(t)}concat(e,t){const r=typeof e==="string"?e:stringify(e,t);return parse(`${this.toString(t)} ${r}`,t)}hexDigest(){return parse(this,{single:true}).hexDigest()}match(e,t){const r=parse(e,t);const n=r.pickAlgorithm(t);return this[n]&&r[n]&&this[n].find((e=>r[n].find((t=>e.digest===t.digest))))||false}pickAlgorithm(e){const t=e&&e.pickAlgorithm||getPrioritizedHash;const r=Object.keys(this);if(!r.length){throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`)}return r.reduce(((e,r)=>t(e,r)||e))}}e.exports.parse=parse;function parse(e,t){t=t||{};if(typeof e==="string"){return _parse(e,t)}else if(e.algorithm&&e.digest){const r=new Integrity;r[e.algorithm]=[e];return _parse(stringify(r,t),t)}else{return _parse(stringify(e,t),t)}}function _parse(e,t){if(t.single){return new Hash(e,t)}return e.trim().split(/\s+/).reduce(((e,r)=>{const n=new Hash(r,t);if(n.algorithm&&n.digest){const t=n.algorithm;if(!e[t]){e[t]=[]}e[t].push(n)}return e}),new Integrity)}e.exports.stringify=stringify;function stringify(e,t){if(e.algorithm&&e.digest){return Hash.prototype.toString.call(e,t)}else if(typeof e==="string"){return stringify(parse(e,t),t)}else{return Integrity.prototype.toString.call(e,t)}}e.exports.fromHex=fromHex;function fromHex(e,t,r){const s=r&&r.options&&r.options.length?`?${r.options.join("?")}`:"";return parse(`${t}-${n.from(e,"hex").toString("base64")}${s}`,r)}e.exports.fromData=fromData;function fromData(e,t){t=t||{};const r=t.algorithms||["sha512"];const n=t.options&&t.options.length?`?${t.options.join("?")}`:"";return r.reduce(((r,o)=>{const i=s.createHash(o).update(e).digest("base64");const a=new Hash(`${o}-${i}${n}`,t);if(a.algorithm&&a.digest){const e=a.algorithm;if(!r[e]){r[e]=[]}r[e].push(a)}return r}),new Integrity)}e.exports.fromStream=fromStream;function fromStream(e,t){t=t||{};const r=t.Promise||Promise;const n=integrityStream(t);return new r(((t,r)=>{e.pipe(n);e.on("error",r);n.on("error",r);let s;n.on("integrity",(e=>{s=e}));n.on("end",(()=>t(s)));n.on("data",(()=>{}))}))}e.exports.checkData=checkData;function checkData(e,t,r){r=r||{};t=parse(t,r);if(!Object.keys(t).length){if(r.error){throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"})}else{return false}}const n=t.pickAlgorithm(r);const o=s.createHash(n).update(e).digest("base64");const i=parse({algorithm:n,digest:o});const a=i.match(t,r);if(a||!r.error){return a}else if(typeof r.size==="number"&&e.length!==r.size){const n=new Error(`data size mismatch when checking ${t}.\n Wanted: ${r.size}\n Found: ${e.length}`);n.code="EBADSIZE";n.found=e.length;n.expected=r.size;n.sri=t;throw n}else{const r=new Error(`Integrity checksum failed when using ${n}: Wanted ${t}, but got ${i}. (${e.length} bytes)`);r.code="EINTEGRITY";r.found=i;r.expected=t;r.algorithm=n;r.sri=t;throw r}}e.exports.checkStream=checkStream;function checkStream(e,t,r){r=r||{};const n=r.Promise||Promise;const s=integrityStream(Object.assign({},r,{integrity:t}));return new n(((t,r)=>{e.pipe(s);e.on("error",r);s.on("error",r);let n;s.on("verified",(e=>{n=e}));s.on("end",(()=>t(n)));s.on("data",(()=>{}))}))}e.exports.integrityStream=integrityStream;function integrityStream(e){e=e||{};const t=e.integrity&&parse(e.integrity,e);const r=t&&Object.keys(t).length;const n=r&&t.pickAlgorithm(e);const i=r&&t[n];const a=Array.from(new Set((e.algorithms||["sha512"]).concat(n?[n]:[])));const c=a.map(s.createHash);let u=0;const l=new o({transform(e,t,r){u+=e.length;c.forEach((r=>r.update(e,t)));r(null,e,t)}}).on("end",(()=>{const s=e.options&&e.options.length?`?${e.options.join("?")}`:"";const o=parse(c.map(((e,t)=>`${a[t]}-${e.digest("base64")}${s}`)).join(" "),e);const p=r&&o.match(t,e);if(typeof e.size==="number"&&u!==e.size){const r=new Error(`stream size mismatch when checking ${t}.\n Wanted: ${e.size}\n Found: ${u}`);r.code="EBADSIZE";r.found=u;r.expected=e.size;r.sri=t;l.emit("error",r)}else if(e.integrity&&!p){const e=new Error(`${t} integrity checksum failed when using ${n}: wanted ${i} but got ${o}. (${u} bytes)`);e.code="EINTEGRITY";e.found=o;e.expected=i;e.algorithm=n;e.sri=t;l.emit("error",e)}else{l.emit("size",u);l.emit("integrity",o);p&&l.emit("verified",p)}}));return l}e.exports.create=createIntegrity;function createIntegrity(e){e=e||{};const t=e.algorithms||["sha512"];const r=e.options&&e.options.length?`?${e.options.join("?")}`:"";const n=t.map(s.createHash);return{update:function(e,t){n.forEach((r=>r.update(e,t)));return this},digest:function(s){const o=t.reduce(((t,s)=>{const o=n.shift().digest("base64");const i=new Hash(`${s}-${o}${r}`,e);if(i.algorithm&&i.digest){const e=i.algorithm;if(!t[e]){t[e]=[]}t[e].push(i)}return t}),new Integrity);return o}}}const p=new Set(s.getHashes());const d=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter((e=>p.has(e)));function getPrioritizedHash(e,t){return d.indexOf(e.toLowerCase())>=d.indexOf(t.toLowerCase())?e:t}},,,,,function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=r(0)}catch(e){}var s=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var o=r(175);var i={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var p=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var d=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,s){return minimatch(r,e,t)}}function ext(e,t){e=e||{};t=t||{};var r={};Object.keys(t).forEach((function(e){r[e]=t[e]}));Object.keys(e).forEach((function(t){r[t]=e[t]}));return r}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var r=function minimatch(r,n,s){return t.minimatch(r,n,ext(e,s))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};return r};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(d)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var s=0,o=e.length;s1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return s;if(e==="")return"";var n="";var o=!!r.nocase;var u=false;var l=[];var d=[];var m;var g=false;var v=-1;var y=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(m){switch(m){case"*":n+=c;o=true;break;case"?":n+=a;o=true;break;default:n+="\\"+m;break}_.debug("clearStateChar %j %j",m,n);m=false}}for(var E=0,w=e.length,T;E-1;C--){var x=d[C];var R=n.slice(0,x.reStart);var j=n.slice(x.reStart,x.reEnd-8);var D=n.slice(x.reEnd-8,x.reEnd);var L=n.slice(x.reEnd);D+=L;var U=R.split("(").length-1;var q=L;for(E=0;E=0;i--){o=e[i];if(o)break}for(i=0;i>> no match, partial?",e,p,t,d);if(p===a)return true}return false}var m;if(typeof u==="string"){if(n.nocase){m=l.toLowerCase()===u.toLowerCase()}else{m=l===u}this.debug("string match",u,l,m)}else{m=l.match(u);this.debug("pattern match",u,l,m)}if(!m)return false}if(o===a&&i===c){return true}else if(o===a){return r}else if(i===c){var g=o===a-1&&e[o]==="";return g}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,r){var n=r(123);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},,function(e,t){e.exports=r(4293)},,,,function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(34);var s=r(11).document;var o=n(s)&&n(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},function(e,t){e.exports=true},function(e,t,r){"use strict";var n=r(46);function PromiseCapability(e){var t,r;this.promise=new e((function(e,n){if(t!==undefined||r!==undefined)throw TypeError("Bad Promise constructor");t=e;r=n}));this.resolve=n(t);this.reject=n(r)}e.exports.f=function(e){return new PromiseCapability(e)}},function(e,t,r){var n=r(50).f;var s=r(49);var o=r(13)("toStringTag");e.exports=function(e,t,r){if(e&&!s(e=r?e:e.prototype,o))n(e,o,{configurable:true,value:t})}},function(e,t,r){var n=r(107)("keys");var s=r(111);e.exports=function(e){return n[e]||(n[e]=s(e))}},function(e,t){var r=Math.ceil;var n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(131);var s=r(67);e.exports=function(e){return n(s(e))}},function(e,t,r){e.exports=glob;var n=r(3);var s=r(114);var o=r(60);var i=o.Minimatch;var a=r(42);var c=r(54).EventEmitter;var u=r(0);var l=r(22);var p=r(76);var d=r(218);var h=r(115);var m=h.alphasort;var g=h.alphasorti;var v=h.setopts;var y=h.ownProp;var b=r(223);var _=r(2);var E=h.childrenIgnored;var w=h.isIgnored;var T=r(61);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return d(e,t)}return new Glob(e,t,r)}glob.sync=d;var k=glob.GlobSync=d.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var s=n.minimatch.set;if(!e)return false;if(s.length>1)return true;for(var o=0;othis.maxLength)return t();if(!this.stat&&y(this.cache,r)){var o=this.cache[r];if(Array.isArray(o))o="DIR";if(!s||o==="DIR")return t(null,o);if(s&&o==="FILE")return t()}var i;var a=this.statCache[r];if(a!==undefined){if(a===false)return t(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(s&&c==="FILE")return t();else return t(null,c,a)}}var u=this;var l=b("stat\0"+r,lstatcb_);if(l)n.lstat(r,l);function lstatcb_(s,o){if(o&&o.isSymbolicLink()){return n.stat(r,(function(n,s){if(n)u._stat2(e,r,null,o,t);else u._stat2(e,r,n,s,t)}))}else{u._stat2(e,r,s,o,t)}}};Glob.prototype._stat2=function(e,t,r,n,s){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return s()}var o=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return s(null,false,n);var i=true;if(n)i=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(o&&i==="FILE")return s();return s(null,i,n)}},function(e,t,r){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var s=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||s)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},,,function(e,t){e.exports=r(3867)},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e,t="lockfile"){e=(0,(o||_load_stripBom()).default)(e);return hasMergeConflicts(e)?parseWithConflict(e,t):{type:"success",object:parse(e,t)}};var n;function _load_util(){return n=_interopRequireDefault(r(2))}var s;function _load_invariant(){return s=_interopRequireDefault(r(7))}var o;function _load_stripBom(){return o=_interopRequireDefault(r(122))}var i;function _load_constants(){return i=r(6)}var a;function _load_errors(){return a=r(4)}var c;function _load_map(){return c=_interopRequireDefault(r(20))}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const u=/^yarn lockfile v(\d+)$/;const l={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"};const p=[l.boolean,l.string,l.number];function isValidPropValueToken(e){return p.indexOf(e.type)>=0}function*tokenise(e){let t=false;let r=1;let n=0;function buildToken(e,t){return{line:r,col:n,type:e,value:t}}while(e.length){let s=0;if(e[0]==="\n"||e[0]==="\r"){s++;if(e[1]==="\n"){s++}r++;n=0;yield buildToken(l.newline)}else if(e[0]==="#"){s++;let t="";while(e[s]!=="\n"){t+=e[s];s++}yield buildToken(l.comment,t)}else if(e[0]===" "){if(t){let t="";for(let r=0;e[r]===" ";r++){t+=e[r]}if(t.length%2){throw new TypeError("Invalid number of spaces")}else{s=t.length;yield buildToken(l.indent,t.length/2)}}else{s++}}else if(e[0]==='"'){let t="";for(let r=0;;r++){const n=e[r];t+=n;if(r>0&&n==='"'){const t=e[r-1]==="\\"&&e[r-2]!=="\\";if(!t){break}}}s=t.length;try{yield buildToken(l.string,JSON.parse(t))}catch(e){if(e instanceof SyntaxError){yield buildToken(l.invalid)}else{throw e}}}else if(/^[0-9]/.test(e)){let t="";for(let r=0;/^[0-9]$/.test(e[r]);r++){t+=e[r]}s=t.length;yield buildToken(l.number,+t)}else if(/^true/.test(e)){yield buildToken(l.boolean,true);s=4}else if(/^false/.test(e)){yield buildToken(l.boolean,false);s=5}else if(e[0]===":"){yield buildToken(l.colon);s++}else if(e[0]===","){yield buildToken(l.comma);s++}else if(/^[a-zA-Z\/-]/g.test(e)){let t="";for(let r=0;r(i||_load_constants()).LOCKFILE_VERSION){throw new((a||_load_errors()).MessageError)(`Can't install from a lockfile of version ${e} as you're on an old yarn version that only supports `+`versions up to ${(i||_load_constants()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}}this.comments.push(r)}next(){const e=this.tokens.next();(0,(s||_load_invariant()).default)(e,"expected a token");const t=e.done,r=e.value;if(t||!r){throw new Error("No more tokens")}else if(r.type===l.comment){this.onComment(r);return this.next()}else{return this.token=r}}unexpected(e="Unexpected token"){throw new SyntaxError(`${e} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(e){if(this.token.type===e){this.next()}else{this.unexpected()}}eat(e){if(this.token.type===e){this.next();return true}else{return false}}parse(e=0){const t=(0,(c||_load_map()).default)();while(true){const c=this.token;if(c.type===l.newline){const t=this.next();if(!e){continue}if(t.type!==l.indent){break}if(t.value===e){this.next()}else{break}}else if(c.type===l.indent){if(c.value===e){this.next()}else{break}}else if(c.type===l.eof){break}else if(c.type===l.string){const n=c.value;(0,(s||_load_invariant()).default)(n,"Expected a key");const m=[n];this.next();while(this.token.type===l.comma){this.next();const e=this.token;if(e.type!==l.string){this.unexpected("Expected string")}const t=e.value;(0,(s||_load_invariant()).default)(t,"Expected a key");m.push(t);this.next()}const g=this.token;if(g.type===l.colon){this.next();const n=this.parse(e+1);for(var r=m,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{i=r.next();if(i.done)break;a=i.value}const e=a;t[e]=n}if(e&&this.token.type!==l.indent){break}}else if(isValidPropValueToken(g)){for(var u=m,p=Array.isArray(u),d=0,u=p?u:u[Symbol.iterator]();;){var h;if(p){if(d>=u.length)break;h=u[d++]}else{d=u.next();if(d.done)break;h=d.value}const e=h;t[e]=g.value}this.next()}else{this.unexpected("Invalid value type")}}else{this.unexpected(`Unknown token: ${(n||_load_util()).default.inspect(c)}`)}}return t}}const d="|||||||";const h=">>>>>>>";const m="=======";const g="<<<<<<<";function extractConflictVariants(e){const t=[[],[]];const r=e.split(/\r?\n/g);let n=false;while(r.length){const e=r.shift();if(e.startsWith(g)){while(r.length){const e=r.shift();if(e===m){n=false;break}else if(n||e.startsWith(d)){n=true;continue}else{t[0].push(e)}}while(r.length){const e=r.shift();if(e.startsWith(h)){break}else{t[1].push(e)}}}else{t[0].push(e);t[1].push(e)}}return[t[0].join("\n"),t[1].join("\n")]}function hasMergeConflicts(e){return e.includes(g)&&e.includes(m)&&e.includes(h)}function parse(e,t){const r=new Parser(e,t);r.next();return r.parse()}function parseWithConflict(e,t){const r=extractConflictVariants(e);try{return{type:"merge",object:Object.assign({},parse(r[0],t),parse(r[1],t))}}catch(e){if(e instanceof SyntaxError){return{type:"conflict",object:{}}}else{throw e}}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n;function _load_map(){return n=_interopRequireDefault(r(20))}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=r(212)("yarn");class BlockingQueue{constructor(e,t=Infinity){this.concurrencyQueue=[];this.maxConcurrency=t;this.runningCount=0;this.warnedStuck=false;this.alias=e;this.first=true;this.running=(0,(n||_load_map()).default)();this.queue=(0,(n||_load_map()).default)();this.stuckTick=this.stuckTick.bind(this)}stillActive(){if(this.stuckTimer){clearTimeout(this.stuckTimer)}this.stuckTimer=setTimeout(this.stuckTick,5e3);this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){if(this.runningCount===1){this.warnedStuck=true;s(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds `+`without any activity with 1 worker: ${Object.keys(this.running)[0]}`)}}push(e,t){if(this.first){this.first=false}else{this.stillActive()}return new Promise(((r,n)=>{const s=this.queue[e]=this.queue[e]||[];s.push({factory:t,resolve:r,reject:n});if(!this.running[e]){this.shift(e)}}))}shift(e){if(this.running[e]){delete this.running[e];this.runningCount--;if(this.stuckTimer){clearTimeout(this.stuckTimer);this.stuckTimer=null}if(this.warnedStuck){this.warnedStuck=false;s(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)}}const t=this.queue[e];if(!t){return}var r=t.shift();const n=r.resolve,o=r.reject,i=r.factory;if(!t.length){delete this.queue[e]}const next=()=>{this.shift(e);this.shiftConcurrencyQueue()};const run=()=>{this.running[e]=true;this.runningCount++;i().then((function(e){n(e);next();return null})).catch((function(e){o(e);next()}))};this.maybePushConcurrencyQueue(run)}maybePushConcurrencyQueue(e){if(this.runningCountr)t.push(arguments[r++]);m[++h]=function(){s(typeof e=="function"?e:Function(e),t)};v(h);return h};l=function clearImmediate(e){delete m[e]};if(r(47)(c)=="process"){v=function(e){c.nextTick(n(run,e,1))}}else if(d&&d.now){v=function(e){d.now(n(run,e,1))}}else if(p){y=new p;b=y.port2;y.port1.onmessage=listener;v=n(b.postMessage,b,1)}else if(a.addEventListener&&typeof postMessage=="function"&&!a.importScripts){v=function(e){a.postMessage(e+"","*")};a.addEventListener("message",listener,false)}else if(g in i("script")){v=function(e){o.appendChild(i("script"))[g]=function(){o.removeChild(this);run.call(e)}}}else{v=function(e){setTimeout(n(run,e,1),0)}}}e.exports={set:u,clear:l}},function(e,t,r){var n=r(73);var s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},function(e,t){var r=0;var n=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++r+n).toString(36))}},function(e,t,r){t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(229);t.instances=[];t.names=[];t.skips=[];t.formatters={};function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){var r;function debug(){if(!debug.enabled)return;var e=debug;var n=+new Date;var s=n-(r||n);e.diff=s;e.prev=r;e.curr=n;r=n;var o=new Array(arguments.length);for(var i=0;i{if(typeof e!=="string"){throw new TypeError("Expected a string, got "+typeof e)}if(e.charCodeAt(0)===65279){return e.slice(1)}return e}},function(e,t){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=stringify;var n;function _load_misc(){return n=r(12)}var s;function _load_constants(){return s=r(6)}var o;function _load_package(){return o=r(145)}const i=process.version;function shouldWrapKey(e){return e.indexOf("true")===0||e.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(e)||/^[0-9]/g.test(e)||!/^[a-zA-Z]/g.test(e)}function maybeWrap(e){if(typeof e==="boolean"||typeof e==="number"||shouldWrapKey(e)){return JSON.stringify(e)}else{return e}}const a={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function priorityThenAlphaSort(e,t){if(a[e]||a[t]){return(a[e]||100)>(a[t]||100)?1:-1}else{return(0,(n||_load_misc()).sortAlpha)(e,t)}}function _stringify(e,t){if(typeof e!=="object"){throw new TypeError}const r=t.indent;const s=[];const o=Object.keys(e).sort(priorityThenAlphaSort);let i=[];for(let a=0;a=0){continue}const l=[c];if(typeof u==="object"){for(let t=a+1;t{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r){const n=e===undefined;let s=e?e:-1;if(a===undefined){const e=yield l(t);a=y(e.mtime,r.mtime)}if(a){return}if(n){try{s=yield p(t,"a",r.mode)}catch(e){try{s=yield p(t,"r",r.mode)}catch(e){return}}}try{if(s){yield d(s,r.atime,r.mtime)}}catch(e){}finally{if(n&&s){yield u(s)}}}));return function fixTimes(t,r,n){return e.apply(this,arguments)}})();var o;function _load_fs(){return o=_interopRequireDefault(r(3))}var i;function _load_promise(){return i=r(40)}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let a=undefined;const c=(0,(i||_load_promise()).promisify)((o||_load_fs()).default.readFile);const u=(0,(i||_load_promise()).promisify)((o||_load_fs()).default.close);const l=(0,(i||_load_promise()).promisify)((o||_load_fs()).default.lstat);const p=(0,(i||_load_promise()).promisify)((o||_load_fs()).default.open);const d=(0,(i||_load_promise()).promisify)((o||_load_fs()).default.futimes);const h=(0,(i||_load_promise()).promisify)((o||_load_fs()).default.write);const m=t.unlink=(0,(i||_load_promise()).promisify)(r(233));const g=t.copyFile=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t){try{yield m(e.dest);yield copyFilePoly(e.src,e.dest,0,e)}finally{if(t){t()}}}));return function copyFile(t,r){return e.apply(this,arguments)}})();const copyFilePoly=(e,t,r,n)=>{if((o||_load_fs()).default.copyFile){return new Promise(((i,a)=>(o||_load_fs()).default.copyFile(e,t,r,(e=>{if(e){a(e)}else{s(undefined,t,n).then((()=>i())).catch((e=>a(e)))}}))))}else{return v(e,t,r,n)}};const v=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r,n){const o=yield p(t,"w",n.mode);try{const r=yield c(e);yield h(o,r,0,r.length);yield s(o,t,n)}finally{yield u(o)}}));return function copyWithBuffer(t,r,n,s){return e.apply(this,arguments)}})();const y=t.fileDatesEqual=(e,t)=>{const r=e.getTime();const n=t.getTime();if(process.platform!=="win32"){return r===n}if(Math.abs(r-n)<=1){return true}const s=Math.floor(r/1e3);const o=Math.floor(n/1e3);if(r-s*1e3===0||n-o*1e3===0){return s===o}return r===n}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFakeRoot=isFakeRoot;t.isRootUser=isRootUser;function getUid(){if(process.platform!=="win32"&&process.getuid){return process.getuid()}return null}t.default=isRootUser(getUid())&&!isFakeRoot();function isFakeRoot(){return Boolean(process.env.FAKEROOTKEY)}function isRootUser(e){return e===0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDataDir=getDataDir;t.getCacheDir=getCacheDir;t.getConfigDir=getConfigDir;const n=r(0);const s=r(45).default;const o=n.join(s,".config","yarn");const i=n.join(s,".cache","yarn");function getDataDir(){if(process.platform==="win32"){const e=getLocalAppDataDir();return e==null?o:n.join(e,"Data")}else if(process.env.XDG_DATA_HOME){return n.join(process.env.XDG_DATA_HOME,"yarn")}else{return o}}function getCacheDir(){if(process.platform==="win32"){return n.join(getLocalAppDataDir()||n.join(s,"AppData","Local","Yarn"),"Cache")}else if(process.env.XDG_CACHE_HOME){return n.join(process.env.XDG_CACHE_HOME,"yarn")}else if(process.platform==="darwin"){return n.join(s,"Library","Caches","Yarn")}else{return i}}function getConfigDir(){if(process.platform==="win32"){const e=getLocalAppDataDir();return e==null?o:n.join(e,"Config")}else if(process.env.XDG_CONFIG_HOME){return n.join(process.env.XDG_CONFIG_HOME,"yarn")}else{return o}}function getLocalAppDataDir(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,r){e.exports={default:r(179),__esModule:true}},function(e,t,r){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,s,o,i,a;var c=r.indexOf(e);var u=r.indexOf(t,c+1);var l=c;if(c>=0&&u>0){n=[];o=r.length;while(l>=0&&!a){if(l==c){n.push(l);c=r.indexOf(e,l+1)}else if(n.length==1){a=[n.pop(),u]}else{s=n.pop();if(s=0?c:u}if(n.length){a=[o,i]}}return a}},function(e,t,r){var n=r(178);var s=r(174);e.exports=expandTop;var o="\0SLASH"+Math.random()+"\0";var i="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(o).join("\\").split(i).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=s("{","}",e);if(!r)return e.split(",");var n=r.pre;var o=r.body;var i=r.post;var a=n.split(",");a[a.length-1]+="{"+o+"}";var c=parseCommaParts(i);if(i.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var o=s("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body);var u=i||c;var l=o.body.indexOf(",")>=0;if(!u&&!l){if(o.post.match(/,.*\}/)){e=o.pre+"{"+o.body+a+o.post;return expand(e)}return[e]}var p;if(u){p=o.body.split(/\.\./)}else{p=parseCommaParts(o.body);if(p.length===1){p=expand(p[0],false).map(embrace);if(p.length===1){var d=o.post.length?expand(o.post,false):[""];return d.map((function(e){return o.pre+p[0]+e}))}}}var h=o.pre;var d=o.post.length?expand(o.post,false):[""];var m;if(u){var g=numeric(p[0]);var v=numeric(p[1]);var y=Math.max(p[0].length,p[1].length);var b=p.length==3?Math.abs(numeric(p[2])):1;var _=lte;var E=v0){var S=new Array(O+1).join("0");if(T<0)k="-"+S+k.slice(1);else k=S+k}}}m.push(k)}}else{m=n(p,(function(e){return expand(e,false)}))}for(var G=0;G1){e=Array.from(arguments).map((e=>e.trim())).filter((e=>e.length)).join("-")}else{e=e.trim()}if(e.length===0){return""}if(e.length===1){return e.toLowerCase()}if(/^[a-z0-9]+$/.test(e)){return e}const t=e!==e.toLowerCase();if(t){e=preserveCamelCase(e)}return e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((e,t)=>t.toUpperCase()))}},,function(e,t){e.exports=function(e,t){var n=[];for(var s=0;su){l=a[u++];if(l!=l)return true}else for(;c>u;u++)if(e||u in a){if(a[u]===r)return e||u||0}return!e&&-1}}},function(e,t,r){var n=r(48);var s=r(187);var o=r(186);var i=r(27);var a=r(110);var c=r(203);var u={};var l={};var t=e.exports=function(e,t,r,p,d){var h=d?function(){return e}:c(e);var m=n(r,p,t?2:1);var g=0;var v,y,b,_;if(typeof h!="function")throw TypeError(e+" is not iterable!");if(o(h))for(v=a(e.length);v>g;g++){_=t?m(i(y=e[g])[0],y[1]):m(e[g]);if(_===u||_===l)return _}else for(b=h.call(e);!(y=b.next()).done;){_=s(b,m,y.value,t);if(_===u||_===l)return _}};t.BREAK=u;t.RETURN=l},function(e,t,r){e.exports=!r(33)&&!r(85)((function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t){e.exports=function(e,t,r){var n=r===undefined;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(35);var s=r(13)("iterator");var o=Array.prototype;e.exports=function(e){return e!==undefined&&(n.Array===e||o[s]===e)}},function(e,t,r){var n=r(27);e.exports=function(e,t,r,s){try{return s?t(n(r)[0],r[1]):t(r)}catch(t){var o=e["return"];if(o!==undefined)n(o.call(e));throw t}}},function(e,t,r){"use strict";var n=r(192);var s=r(106);var o=r(71);var i={};r(31)(i,r(13)("iterator"),(function(){return this}));e.exports=function(e,t,r){e.prototype=n(i,{next:s(1,r)});o(e,t+" Iterator")}},function(e,t,r){var n=r(13)("iterator");var s=false;try{var o=[7][n]();o["return"]=function(){s=true};Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!s)return false;var r=false;try{var o=[7];var i=o[n]();i.next=function(){return{done:r=true}};o[n]=function(){return i};e(o)}catch(e){}return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){var n=r(11);var s=r(109).set;var o=n.MutationObserver||n.WebKitMutationObserver;var i=n.process;var a=n.Promise;var c=r(47)(i)=="process";e.exports=function(){var e,t,r;var flush=function(){var n,s;if(c&&(n=i.domain))n.exit();while(e){s=e.fn;e=e.next;try{s()}catch(n){if(e)r();else t=undefined;throw n}}t=undefined;if(n)n.enter()};if(c){r=function(){i.nextTick(flush)}}else if(o&&!(n.navigator&&n.navigator.standalone)){var u=true;var l=document.createTextNode("");new o(flush).observe(l,{characterData:true});r=function(){l.data=u=!u}}else if(a&&a.resolve){var p=a.resolve(undefined);r=function(){p.then(flush)}}else{r=function(){s.call(n,flush)}}return function(n){var s={fn:n,next:undefined};if(t)t.next=s;if(!e){e=s;r()}t=s}}},function(e,t,r){var n=r(27);var s=r(193);var o=r(101);var i=r(72)("IE_PROTO");var Empty=function(){};var a="prototype";var createDict=function(){var e=r(68)("iframe");var t=o.length;var n="<";var s=">";var i;e.style.display="none";r(102).appendChild(e);e.src="javascript:";i=e.contentWindow.document;i.open();i.write(n+"script"+s+"document.F=Object"+n+"/script"+s);i.close();createDict=i.F;while(t--)delete createDict[a][o[t]];return createDict()};e.exports=Object.create||function create(e,t){var r;if(e!==null){Empty[a]=n(e);r=new Empty;Empty[a]=null;r[i]=e}else r=createDict();return t===undefined?r:s(r,t)}},function(e,t,r){var n=r(50);var s=r(27);var o=r(132);e.exports=r(33)?Object.defineProperties:function defineProperties(e,t){s(e);var r=o(t);var i=r.length;var a=0;var c;while(i>a)n.f(e,c=r[a++],t[c]);return e}},function(e,t,r){var n=r(49);var s=r(133);var o=r(72)("IE_PROTO");var i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){e=s(e);if(n(e,o))return e[o];if(typeof e.constructor=="function"&&e instanceof e.constructor){return e.constructor.prototype}return e instanceof Object?i:null}},function(e,t,r){var n=r(49);var s=r(74);var o=r(182)(false);var i=r(72)("IE_PROTO");e.exports=function(e,t){var r=s(e);var a=0;var c=[];var u;for(u in r)if(u!=i)n(r,u)&&c.push(u);while(t.length>a)if(n(r,u=t[a++])){~o(c,u)||c.push(u)}return c}},function(e,t,r){var n=r(31);e.exports=function(e,t,r){for(var s in t){if(r&&e[s])e[s]=t[s];else n(e,s,t[s])}return e}},function(e,t,r){e.exports=r(31)},function(e,t,r){"use strict";var n=r(11);var s=r(23);var o=r(50);var i=r(33);var a=r(13)("species");e.exports=function(e){var t=typeof s[e]=="function"?s[e]:n[e];if(i&&t&&!t[a])o.f(t,a,{configurable:true,get:function(){return this}})}},function(e,t,r){var n=r(73);var s=r(67);e.exports=function(e){return function(t,r){var o=String(s(t));var i=n(r);var a=o.length;var c,u;if(i<0||i>=a)return e?"":undefined;c=o.charCodeAt(i);return c<55296||c>56319||i+1===a||(u=o.charCodeAt(i+1))<56320||u>57343?e?o.charAt(i):c:e?o.slice(i,i+2):(c-55296<<10)+(u-56320)+65536}}},function(e,t,r){var n=r(73);var s=Math.max;var o=Math.min;e.exports=function(e,t){e=n(e);return e<0?s(e+t,0):o(e,t)}},function(e,t,r){var n=r(34);e.exports=function(e,t){if(!n(e))return e;var r,s;if(t&&typeof(r=e.toString)=="function"&&!n(s=r.call(e)))return s;if(typeof(r=e.valueOf)=="function"&&!n(s=r.call(e)))return s;if(!t&&typeof(r=e.toString)=="function"&&!n(s=r.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(11);var s=n.navigator;e.exports=s&&s.userAgent||""},function(e,t,r){var n=r(100);var s=r(13)("iterator");var o=r(35);e.exports=r(23).getIteratorMethod=function(e){if(e!=undefined)return e[s]||e["@@iterator"]||o[n(e)]}},function(e,t,r){"use strict";var n=r(180);var s=r(190);var o=r(35);var i=r(74);e.exports=r(103)(Array,"Array",(function(e,t){this._t=i(e);this._i=0;this._k=t}),(function(){var e=this._t;var t=this._k;var r=this._i++;if(!e||r>=e.length){this._t=undefined;return s(1)}if(t=="keys")return s(0,r);if(t=="values")return s(0,e[r]);return s(0,[r,e[r]])}),"values");o.Arguments=o.Array;n("keys");n("values");n("entries")},function(e,t){},function(e,t,r){"use strict";var n=r(69);var s=r(11);var o=r(48);var i=r(100);var a=r(41);var c=r(34);var u=r(46);var l=r(181);var p=r(183);var d=r(108);var h=r(109).set;var m=r(191)();var g=r(70);var v=r(104);var y=r(202);var b=r(105);var _="Promise";var E=s.TypeError;var w=s.process;var T=w&&w.versions;var k=T&&T.v8||"";var O=s[_];var S=i(w)=="process";var empty=function(){};var G,P,A,C;var x=P=g.f;var R=!!function(){try{var e=O.resolve(1);var t=(e.constructor={})[r(13)("species")]=function(e){e(empty,empty)};return(S||typeof PromiseRejectionEvent=="function")&&e.then(empty)instanceof t&&k.indexOf("6.6")!==0&&y.indexOf("Chrome/66")===-1}catch(e){}}();var isThenable=function(e){var t;return c(e)&&typeof(t=e.then)=="function"?t:false};var notify=function(e,t){if(e._n)return;e._n=true;var r=e._c;m((function(){var n=e._v;var s=e._s==1;var o=0;var run=function(t){var r=s?t.ok:t.fail;var o=t.resolve;var i=t.reject;var a=t.domain;var c,u,l;try{if(r){if(!s){if(e._h==2)onHandleUnhandled(e);e._h=1}if(r===true)c=n;else{if(a)a.enter();c=r(n);if(a){a.exit();l=true}}if(c===t.promise){i(E("Promise-chain cycle"))}else if(u=isThenable(c)){u.call(c,o,i)}else o(c)}else i(n)}catch(e){if(a&&!l)a.exit();i(e)}};while(r.length>o)run(r[o++]);e._c=[];e._n=false;if(t&&!e._h)onUnhandled(e)}))};var onUnhandled=function(e){h.call(s,(function(){var t=e._v;var r=isUnhandled(e);var n,o,i;if(r){n=v((function(){if(S){w.emit("unhandledRejection",t,e)}else if(o=s.onunhandledrejection){o({promise:e,reason:t})}else if((i=s.console)&&i.error){i.error("Unhandled promise rejection",t)}}));e._h=S||isUnhandled(e)?2:1}e._a=undefined;if(r&&n.e)throw n.v}))};var isUnhandled=function(e){return e._h!==1&&(e._a||e._c).length===0};var onHandleUnhandled=function(e){h.call(s,(function(){var t;if(S){w.emit("rejectionHandled",e)}else if(t=s.onrejectionhandled){t({promise:e,reason:e._v})}}))};var $reject=function(e){var t=this;if(t._d)return;t._d=true;t=t._w||t;t._v=e;t._s=2;if(!t._a)t._a=t._c.slice();notify(t,true)};var $resolve=function(e){var t=this;var r;if(t._d)return;t._d=true;t=t._w||t;try{if(t===e)throw E("Promise can't be resolved itself");if(r=isThenable(e)){m((function(){var n={_w:t,_d:false};try{r.call(e,o($resolve,n,1),o($reject,n,1))}catch(e){$reject.call(n,e)}}))}else{t._v=e;t._s=1;notify(t,false)}}catch(e){$reject.call({_w:t,_d:false},e)}};if(!R){O=function Promise(e){l(this,O,_,"_h");u(e);G.call(this);try{e(o($resolve,this,1),o($reject,this,1))}catch(e){$reject.call(this,e)}};G=function Promise(e){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};G.prototype=r(196)(O.prototype,{then:function then(e,t){var r=x(d(this,O));r.ok=typeof e=="function"?e:true;r.fail=typeof t=="function"&&t;r.domain=S?w.domain:undefined;this._c.push(r);if(this._a)this._a.push(r);if(this._s)notify(this,false);return r.promise},catch:function(e){return this.then(undefined,e)}});A=function(){var e=new G;this.promise=e;this.resolve=o($resolve,e,1);this.reject=o($reject,e,1)};g.f=x=function(e){return e===O||e===C?new A(e):P(e)}}a(a.G+a.W+a.F*!R,{Promise:O});r(71)(O,_);r(198)(_);C=r(23)[_];a(a.S+a.F*!R,_,{reject:function reject(e){var t=x(this);var r=t.reject;r(e);return t.promise}});a(a.S+a.F*(n||!R),_,{resolve:function resolve(e){return b(n&&this===C?O:this,e)}});a(a.S+a.F*!(R&&r(189)((function(e){O.all(e)["catch"](empty)}))),_,{all:function all(e){var t=this;var r=x(t);var n=r.resolve;var s=r.reject;var o=v((function(){var r=[];var o=0;var i=1;p(e,false,(function(e){var a=o++;var c=false;r.push(undefined);i++;t.resolve(e).then((function(e){if(c)return;c=true;r[a]=e;--i||n(r)}),s)}));--i||n(r)}));if(o.e)s(o.v);return r.promise},race:function race(e){var t=this;var r=x(t);var n=r.reject;var s=v((function(){p(e,false,(function(e){t.resolve(e).then(r.resolve,n)}))}));if(s.e)n(s.v);return r.promise}})},function(e,t,r){"use strict";var n=r(199)(true);r(103)(String,"String",(function(e){this._t=String(e);this._i=0}),(function(){var e=this._t;var t=this._i;var r;if(t>=e.length)return{value:undefined,done:true};r=n(e,t);this._i+=r.length;return{value:r,done:false}}))},function(e,t,r){"use strict";var n=r(41);var s=r(23);var o=r(11);var i=r(108);var a=r(105);n(n.P+n.R,"Promise",{finally:function(e){var t=i(this,s.Promise||o.Promise);var r=typeof e=="function";return this.then(r?function(r){return a(t,e()).then((function(){return r}))}:e,r?function(r){return a(t,e()).then((function(){throw r}))}:e)}})},function(e,t,r){"use strict";var n=r(41);var s=r(70);var o=r(104);n(n.S,"Promise",{try:function(e){var t=s.f(this);var r=o(e);(r.e?t.reject:t.resolve)(r.v);return t.promise}})},function(e,t,r){r(204);var n=r(11);var s=r(31);var o=r(35);var i=r(13)("toStringTag");var a=("CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,"+"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,"+"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,"+"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,"+"TextTrackList,TouchList").split(",");for(var c=0;c=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var s=0;var o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){if("%%"===e)return;s++;if("%c"===e){o=s}}));e.splice(o,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"){e.exports=r(211)}else{e.exports=r(213)}},function(e,t,r){var n=r(79);var s=r(2);t=e.exports=r(112);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{var o=r(239);if(o&&o.level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()}));var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var s=this.color;var o="[3"+(s<8?s:"8;5;"+s);var i=" "+o+";1m"+r+" "+"";e[0]=i+e[0].split("\n").join("\n"+i);e.push(o+"m+"+t.humanize(this.diff)+"")}else{e[0]=getDate()+r+" "+e[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}else{return(new Date).toISOString()+" "}}function log(){return process.stderr.write(s.format.apply(s,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n=e.length){if(t)t[i]=e;return r(null,e)}c.lastIndex=p;var n=c.exec(e);m=d;d+=n[0];h=m+n[1];p=c.lastIndex;if(l[h]||t&&t[h]===h){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,h)){return gotResolvedLink(t[h])}return o.lstat(h,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[h]=true;if(t)t[h]=h;return process.nextTick(LOOP)}if(!s){var i=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(i)){return gotTarget(null,a[i],h)}}o.stat(h,(function(e){if(e)return r(e);o.readlink(h,(function(e,t){if(!s)a[i]=t;gotTarget(e,t)}))}))}function gotTarget(e,s,o){if(e)return r(e);var i=n.resolve(m,s);if(t)t[o]=i;gotResolvedLink(i)}function gotResolvedLink(t){e=n.resolve(t,e.slice(p));start()}}},function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(3);var s=r(114);var o=r(60);var i=o.Minimatch;var a=r(75).Glob;var c=r(2);var u=r(0);var l=r(22);var p=r(76);var d=r(115);var h=d.alphasort;var m=d.alphasorti;var g=d.setopts;var v=d.ownProp;var y=d.childrenIgnored;var b=d.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);g(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return false;if(!this.stat&&v(this.cache,t)){var s=this.cache[t];if(Array.isArray(s))s="DIR";if(!r||s==="DIR")return s;if(r&&s==="FILE")return false}var o;var i=this.statCache[t];if(!i){var a;try{a=n.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(a&&a.isSymbolicLink()){try{i=n.statSync(t)}catch(e){i=a}}else{i=a}}this.statCache[t]=i;var s=true;if(i)s=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(r&&s==="FILE")return false;return s};GlobSync.prototype._mark=function(e){return d.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return d.makeAbs(this,e)}},,,function(e,t,r){"use strict";e.exports=function(e,t){t=t||process.argv;var r=t.indexOf("--");var n=/^--/.test(e)?"":"--";var s=t.indexOf(n+e);return s!==-1&&(r!==-1?sr){t.splice(0,r);process.nextTick((function(){RES.apply(null,n)}))}else{delete s[e]}}}))}function slice(e){var t=e.length;var r=[];for(var n=0;n0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t){return}var a=parseFloat(t[1]);var c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=o){return Math.round(e/o)+"d"}if(e>=s){return Math.round(e/s)+"h"}if(e>=n){return Math.round(e/n)+"m"}if(e>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){return plural(e,o,"day")||plural(e,s,"hour")||plural(e,n,"minute")||plural(e,r,"second")||e+" ms"}function plural(e,t,r){if(e=2,has16m:e>=3}};var s=function(){if(n("no-color")||n("no-colors")||n("color=false")){return 0}if(n("color=16m")||n("color=full")||n("color=truecolor")){return 3}if(n("color=256")){return 2}if(n("color")||n("colors")||n("color=true")||n("color=always")){return 1}if(process.stdout&&!process.stdout.isTTY){return 0}if(process.platform==="win32"){return 1}if("CI"in process.env){if("TRAVIS"in process.env||process.env.CI==="Travis"){return 1}return 0}if("TEAMCITY_VERSION"in process.env){return process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1}if(/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)){return 2}if(/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)){return 1}if("COLORTERM"in process.env){return 1}if(process.env.TERM==="dumb"){return 0}return 0}();if(s===0&&"FORCE_COLOR"in process.env){s=1}e.exports=process&&support(s)}])},2889:(e,t,r)=>{var n=r(8497);var s=r(6272);var o=r(9934);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},6272:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},8497:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},9934:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},9035:function(e){(function(t,r){if(typeof define==="function"&&define.amd){define([],r)}else if(true){e.exports=r()}else{}})(this,(function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function indexOrEnd(e,t){return e.indexOf(t)===-1?e.length:e.indexOf(t)}function split(e){var t=e.replace(/^v/,"").replace(/\+.*$/,"");var r=indexOrEnd(t,"-");var n=t.substring(0,r).split(".");n.push(t.substring(r+1));return n}function tryParse(e){return isNaN(Number(e))?e:Number(e)}function validate(t){if(typeof t!=="string"){throw new TypeError("Invalid argument expected string")}if(!e.test(t)){throw new Error("Invalid argument not valid semver ('"+t+"' received)")}}function compareVersions(e,t){[e,t].forEach(validate);var r=split(e);var n=split(t);for(var s=0;si)return 1;if(i>o)return-1}var a=r[r.length-1];var c=n[n.length-1];if(a&&c){var u=a.split(".").map(tryParse);var l=c.split(".").map(tryParse);for(s=0;sl[s])return 1;if(l[s]>u[s])return-1}}else if(a||c){return a?-1:1}return 0}var t=[">",">=","=","<","<="];var r={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};function validateOperator(e){if(typeof e!=="string"){throw new TypeError("Invalid operator type, expected string but got "+typeof e)}if(t.indexOf(e)===-1){throw new TypeError("Invalid operator, expected one of "+t.join("|"))}}compareVersions.validate=function(t){return typeof t==="string"&&e.test(t)};compareVersions.compare=function(e,t,n){validateOperator(n);var s=compareVersions(e,t);return r[n].indexOf(s)>-1};return compareVersions}))},6891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); +(()=>{var __webpack_modules__={5997:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(2087));const s=r(1581);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7090:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(5997);const i=r(5441);const a=r(1581);const c=o(r(2087));const u=o(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;i.issueCommand("ENV",n)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){i.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(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.getInput=getInput;function setOutput(e,t){process.stdout.write(c.EOL);s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},5441:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(5747));const s=n(r(2087));const i=r(1581);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}o.appendFileSync(r,`${i.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},1581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},9341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(5747);const o=r(2087);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.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${o.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'")}}t.Context=Context},6993:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=s(r(9341));const a=r(6803);t.context=new i.Context;function getOctokit(e,t){return new a.GitHub(a.getOctokitOptions(e,t))}t.getOctokit=getOctokit},2200:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const i=s(r(1956));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new i.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},6803:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const i=s(r(9341));const a=s(r(2200));const c=r(8020);const u=r(3755);const l=r(7877);t.context=new i.Context;const p=a.getApiBaseUrl();const d={baseUrl:p,request:{agent:a.getProxyAgent(p)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,l.paginateRest).defaults(d);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},1956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8605);const o=r(7211);const s=r(4739);let i;var a;(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"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=s.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const p=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const h=10;const m=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{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=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,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=e;this.handlers=t||[];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(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,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let o=await this.post(e,n,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let o=await this.put(e,n,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let o=await this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let o=new URL(t);let s=this._prepareRequest(e,o,n);let i=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const i=u.message.headers["location"];if(!i){break}let a=new URL(i);if(o.protocol=="https:"&&o.protocol!=a.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 u.readBody();if(a.hostname!==o.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}s=this._prepareRequest(e,a,n);u=await this.requestRaw(s,r);t--}if(p.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let handleResult=(e,t)=>{if(!o){o=true;r(e,t)}};let s=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));s.on("socket",(e=>{n=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));s.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const s={};s.parsedUrl=t;const i=s.parsedUrl.protocol==="https:";s.httpModule=i?o:n;const a=i?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=e;s.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(s.options)}))}return s}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=s.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!i){i=r(2083)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const o=a.protocol==="https:";if(u){n=o?i.httpsOverHttps:i.httpsOverHttp}else{n=o?i.httpOverHttps:i.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new o.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?o.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=m*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const o=e.message.statusCode;const s={statusCode:o,result:null,headers:{}};if(o==a.NotFound){r(s)}let i;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){i=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{i=JSON.parse(c)}s.result=i}s.headers=e.message.headers}catch(e){}if(o>299){let e;if(i&&i.message){e=i.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+o+")"}let t=new HttpClientError(e,o);t.result=s.result;n(t)}else{r(s)}}))}}t.HttpClient=HttpClient},4739:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},6782:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const o=t.endpoint.merge(r,n);o.headers.authorization=withAuthorizationPrefix(e);return t(o)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},8020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(74);var o=r(2889);var s=r(8437);var i=r(8587);var a=r(6782);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var o,s;for(s=0;s=0)continue;r[o]=e[o]}return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t);var n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;r[n]=e[n]}}return r}const c="3.4.0";class Octokit{constructor(e={}){const t=new o.Collection;const r={baseUrl:s.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${c} ${n.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=s.request.defaults(r);this.graphql=i.withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=a.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r}=e,n=_objectWithoutProperties(e,["authStrategy"]);const o=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",o.hook);this.auth=o}const u=this.constructor;u.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const n=(t=class extends(this){},t.plugins=r.concat(e.filter((e=>!r.includes(e)))),t);return n}}Octokit.VERSION=c;Octokit.plugins=[];t.Octokit=Octokit},6172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(906);var o=r(74);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((o=>{if(n.isPlainObject(t[o])){if(!(o in e))Object.assign(r,{[o]:t[o]});else r[o]=mergeDeep(e[o],t[o])}else{Object.assign(r,{[o]:t[o]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map((e=>e.replace(/-preview/,"")));return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const s=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(s);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,r)=>{t[r]=e[r];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var o=e[r],s=[];if(isDefined(o)&&o!==""){if(typeof o==="string"||typeof o==="number"||typeof o==="boolean"){o=o.toString();if(n&&n!=="*"){o=o.substring(0,parseInt(n,10))}s.push(encodeValue(t,o,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(o)){o.filter(isDefined).forEach((function(e){s.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(o).forEach((function(e){if(isDefined(o[e])){s.push(encodeValue(t,o[e],e))}}))}}else{const e=[];if(Array.isArray(o)){o.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(o).forEach((function(r){if(isDefined(o[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,o[r].toString()))}}))}if(isKeyOperator(t)){s.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){s.push(e.join(","))}}}}else{if(t===";"){if(isDefined(o)){s.push(encodeUnreserved(r))}}else if(o===""&&(t==="&"||t==="?")){s.push(encodeUnreserved(r)+"=")}else if(o===""){s.push("")}}return s}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,o){if(n){let e="";const o=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);o.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var s=",";if(e==="?"){s="&"}else if(e!=="#"){s=e}return(o.length!==0?e:"")+o.join(s)}else{return o.join(",")}}else{return encodeReserved(o)}}))}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let o;let s=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(s);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(s,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){o=c.data}else{if(Object.keys(c).length){o=c}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof o!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof o==="undefined"){o=""}return Object.assign({method:t,url:r,headers:n},typeof o!=="undefined"?{body:o}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const i="6.0.11";const a=`octokit-endpoint.js/${i} ${o.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const u=withDefaults(null,c);t.endpoint=u},8587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(8437);var o=r(74);const s="4.6.1";class GraphqlError extends Error{constructor(e,t){const r=t.data.errors[0].message;super(r);Object.assign(this,t.data);Object.assign(this,{headers:t.headers});this.name="GraphqlError";this.request=e;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const i=["method","baseUrl","url","headers","request","query","mediaType"];const a=["query","method","url"];const c=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!a.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const o=Object.keys(n).reduce(((e,t)=>{if(i.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const s=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(c.test(s)){o.url=s.replace(c,"/api/graphql")}return e(o).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlError(o,{headers:t,data:e.data})}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const u=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${s} ${o.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=u;t.withCustomRequest=withCustomRequest},7877:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.13.3";function normalizePaginatedListResponse(e){const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const 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];const i=e.data[s];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=o;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const o=typeof t==="function"?t:e.request;const s=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};const e=await o({method:s,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((o=>{if(o.done){return t}let s=false;function done(){s=true}t=t.concat(n?n(o.value,done):o.value.data);if(s){return t}return gather(e,t,r,n)}))}const n=Object.assign(paginate,{iterator:iterator});const o=["GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/actions/runners/downloads","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/runners/downloads","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runners/downloads","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /scim/v2/enterprises/{enterprise}/Groups","GET /scim/v2/enterprises/{enterprise}/Users","GET /scim/v2/organizations/{org}/Users","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/team-sync/group-mappings","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return o.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=n;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=o},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t)n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(6891);var o=_interopDefault(r(54));const s=o((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const o=Object.assign({},r.request);if(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}}t.RequestError=RequestError},8437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(6172);var o=r(74);var s=r(906);var i=_interopDefault(r(7374));var a=r(8187);const c="5.4.15";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(s.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const o=e.request&&e.request.fetch||i;return o(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((o=>{n=o.url;r=o.status;for(const e of o.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(o.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return o.text().then((n=>{const o=new a.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(o.message);Object.assign(o,e);let t=e.errors;o.message=o.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw o}))}const s=o.headers.get("content-type");if(/application\/json/.test(s)){return o.json()}if(!s||/^text\/|charset=utf-8$/.test(s)){return o.text()}return getBufferResponse(o)})).then((e=>({status:r,url:n,headers:t,data:e}))).catch((r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${o.getUserAgent()}`}});t.request=u},4705:(e,t,r)=>{e.exports=function(e){var t={};function __nested_webpack_require_187__(r){if(t[r]){return t[r].exports}var n=t[r]={i:r,l:false,exports:{}};e[r].call(n.exports,n,n.exports,__nested_webpack_require_187__);n.l=true;return n.exports}__nested_webpack_require_187__.m=e;__nested_webpack_require_187__.c=t;__nested_webpack_require_187__.i=function(e){return e};__nested_webpack_require_187__.d=function(e,t,r){if(!__nested_webpack_require_187__.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:r})}};__nested_webpack_require_187__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e["default"]}:function getModuleExports(){return e};__nested_webpack_require_187__.d(t,"a",t);return t};__nested_webpack_require_187__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};__nested_webpack_require_187__.p="";return __nested_webpack_require_187__(__nested_webpack_require_187__.s=14)}([function(e,t){e.exports=r(5622)},function(e,t,r){"use strict";t.__esModule=true;var n=r(173);var o=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(){var t=e.apply(this,arguments);return new o.default((function(e,r){function step(n,s){try{var i=t[n](s);var a=i.value}catch(e){r(e);return}if(i.done){e(a)}else{return o.default.resolve(a).then((function(e){step("next",e)}),(function(e){step("throw",e)}))}}return step("next")}))}}},function(e,t){e.exports=r(1669)},function(e,t){e.exports=r(5747)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});class MessageError extends Error{constructor(e,t){super(e);this.code=t}}t.MessageError=MessageError;class ProcessSpawnError extends MessageError{constructor(e,t,r){super(e,t);this.process=r}}t.ProcessSpawnError=ProcessSpawnError;class SecurityError extends MessageError{}t.SecurityError=SecurityError;class ProcessTermError extends MessageError{}t.ProcessTermError=ProcessTermError;class ResponseError extends Error{constructor(e,t){super(e);this.responseCode=t}}t.ResponseError=ResponseError},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=undefined;var n;function _load_asyncToGenerator(){return n=_interopRequireDefault(r(1))}let o=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r,o){let s=(()=>{var s=(0,(n||_load_asyncToGenerator()).default)((function*(n){const s=n.src,c=n.dest,u=n.type;const l=n.onFresh||noop;const p=n.onDone||noop;if(a.has(c.toLowerCase())){o.verbose(`The case-insensitive file ${c} shouldn't be copied twice in one bulk copy`)}else{a.add(c.toLowerCase())}if(u==="symlink"){yield H((O||_load_path()).default.dirname(c));l();d.symlink.push({dest:c,linkname:s});p();return}if(t.ignoreBasenames.indexOf((O||_load_path()).default.basename(s))>=0){return}const h=yield z(s);let m;if(h.isDirectory()){m=yield q(s)}let g;try{g=yield z(c)}catch(e){if(e.code!=="ENOENT"){throw e}}if(g){const e=h.isSymbolicLink()&&g.isSymbolicLink();const t=h.isDirectory()&&g.isDirectory();const n=h.isFile()&&g.isFile();if(n&&i.has(c)){p();o.verbose(o.lang("verboseFileSkipArtifact",s));return}if(n&&h.size===g.size&&(0,(C||_load_fsNormalized()).fileDatesEqual)(h.mtime,g.mtime)){p();o.verbose(o.lang("verboseFileSkip",s,c,h.size,+h.mtime));return}if(e){const e=yield U(s);if(e===(yield U(c))){p();o.verbose(o.lang("verboseFileSkipSymlink",s,c,e));return}}if(t){const e=yield q(c);Z(m,"src files not initialised");for(var v=e,y=Array.isArray(v),b=0,v=y?v:v[Symbol.iterator]();;){var _;if(y){if(b>=v.length)break;_=v[b++]}else{b=v.next();if(b.done)break;_=b.value}const e=_;if(m.indexOf(e)<0){const t=(O||_load_path()).default.join(c,e);r.add(t);if((yield z(t)).isDirectory()){for(var E=yield q(t),w=Array.isArray(E),T=0,E=w?E:E[Symbol.iterator]();;){var k;if(w){if(T>=E.length)break;k=E[T++]}else{T=E.next();if(T.done)break;k=T.value}const e=k;r.add((O||_load_path()).default.join(t,e))}}}}}}if(g&&g.isSymbolicLink()){yield(0,(C||_load_fsNormalized()).unlink)(c);g=null}if(h.isSymbolicLink()){l();const e=yield U(s);d.symlink.push({dest:c,linkname:e});p()}else if(h.isDirectory()){if(!g){o.verbose(o.lang("verboseFileFolder",c));yield H(c)}const t=c.split((O||_load_path()).default.sep);while(t.length){a.add(t.join((O||_load_path()).default.sep).toLowerCase());t.pop()}Z(m,"src files not initialised");let r=m.length;if(!r){p()}for(var S=m,A=Array.isArray(S),G=0,S=A?S:S[Symbol.iterator]();;){var P;if(A){if(G>=S.length)break;P=S[G++]}else{G=S.next();if(G.done)break;P=G.value}const t=P;e.push({dest:(O||_load_path()).default.join(c,t),onFresh:l,onDone:function(e){function onDone(){return e.apply(this,arguments)}onDone.toString=function(){return e.toString()};return onDone}((function(){if(--r===0){p()}})),src:(O||_load_path()).default.join(s,t)})}}else if(h.isFile()){l();d.file.push({src:s,dest:c,atime:h.atime,mtime:h.mtime,mode:h.mode});p()}else{throw new Error(`unsure how to copy this: ${s}`)}}));return function build(e){return s.apply(this,arguments)}})();const i=new Set(t.artifactFiles||[]);const a=new Set;for(var c=e,u=Array.isArray(c),l=0,c=u?c:c[Symbol.iterator]();;){var p;if(u){if(l>=c.length)break;p=c[l++]}else{l=c.next();if(l.done)break;p=l.value}const e=p;const r=e.onDone;e.onDone=function(){t.onProgress(e.dest);if(r){r()}}}t.onStart(e.length);const d={file:[],symlink:[],link:[]};while(e.length){const t=e.splice(0,Y);yield Promise.all(t.map(s))}for(var h=i,m=Array.isArray(h),g=0,h=m?h:h[Symbol.iterator]();;){var v;if(m){if(g>=h.length)break;v=h[g++]}else{g=h.next();if(g.done)break;v=g.value}const e=v;if(r.has(e)){o.verbose(o.lang("verboseFilePhantomExtraneous",e));r.delete(e)}}for(var y=r,b=Array.isArray(y),_=0,y=b?y:y[Symbol.iterator]();;){var E;if(b){if(_>=y.length)break;E=y[_++]}else{_=y.next();if(_.done)break;E=_.value}const e=E;if(a.has(e.toLowerCase())){r.delete(e)}}return d}));return function buildActionsForCopy(t,r,n,o){return e.apply(this,arguments)}})();let s=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r,o){let s=(()=>{var s=(0,(n||_load_asyncToGenerator()).default)((function*(n){const s=n.src,c=n.dest;const u=n.onFresh||noop;const l=n.onDone||noop;if(a.has(c.toLowerCase())){l();return}a.add(c.toLowerCase());if(t.ignoreBasenames.indexOf((O||_load_path()).default.basename(s))>=0){return}const p=yield z(s);let h;if(p.isDirectory()){h=yield q(s)}const m=yield $(c);if(m){const e=yield z(c);const t=p.isSymbolicLink()&&e.isSymbolicLink();const n=p.isDirectory()&&e.isDirectory();const a=p.isFile()&&e.isFile();if(p.mode!==e.mode){try{yield M(c,p.mode)}catch(e){o.verbose(e)}}if(a&&i.has(c)){l();o.verbose(o.lang("verboseFileSkipArtifact",s));return}if(a&&p.ino!==null&&p.ino===e.ino){l();o.verbose(o.lang("verboseFileSkip",s,c,p.ino));return}if(t){const e=yield U(s);if(e===(yield U(c))){l();o.verbose(o.lang("verboseFileSkipSymlink",s,c,e));return}}if(n){const e=yield q(c);Z(h,"src files not initialised");for(var g=e,v=Array.isArray(g),y=0,g=v?g:g[Symbol.iterator]();;){var b;if(v){if(y>=g.length)break;b=g[y++]}else{y=g.next();if(y.done)break;b=y.value}const e=b;if(h.indexOf(e)<0){const t=(O||_load_path()).default.join(c,e);r.add(t);if((yield z(t)).isDirectory()){for(var _=yield q(t),E=Array.isArray(_),w=0,_=E?_:_[Symbol.iterator]();;){var T;if(E){if(w>=_.length)break;T=_[w++]}else{w=_.next();if(w.done)break;T=w.value}const e=T;r.add((O||_load_path()).default.join(t,e))}}}}}}if(p.isSymbolicLink()){u();const e=yield U(s);d.symlink.push({dest:c,linkname:e});l()}else if(p.isDirectory()){o.verbose(o.lang("verboseFileFolder",c));yield H(c);const t=c.split((O||_load_path()).default.sep);while(t.length){a.add(t.join((O||_load_path()).default.sep).toLowerCase());t.pop()}Z(h,"src files not initialised");let r=h.length;if(!r){l()}for(var k=h,S=Array.isArray(k),A=0,k=S?k:k[Symbol.iterator]();;){var G;if(S){if(A>=k.length)break;G=k[A++]}else{A=k.next();if(A.done)break;G=A.value}const t=G;e.push({onFresh:u,src:(O||_load_path()).default.join(s,t),dest:(O||_load_path()).default.join(c,t),onDone:function(e){function onDone(){return e.apply(this,arguments)}onDone.toString=function(){return e.toString()};return onDone}((function(){if(--r===0){l()}}))})}}else if(p.isFile()){u();d.link.push({src:s,dest:c,removeDest:m});l()}else{throw new Error(`unsure how to copy this: ${s}`)}}));return function build(e){return s.apply(this,arguments)}})();const i=new Set(t.artifactFiles||[]);const a=new Set;for(var c=e,u=Array.isArray(c),l=0,c=u?c:c[Symbol.iterator]();;){var p;if(u){if(l>=c.length)break;p=c[l++]}else{l=c.next();if(l.done)break;p=l.value}const e=p;const r=e.onDone||noop;e.onDone=function(){t.onProgress(e.dest);r()}}t.onStart(e.length);const d={file:[],symlink:[],link:[]};while(e.length){const t=e.splice(0,Y);yield Promise.all(t.map(s))}for(var h=i,m=Array.isArray(h),g=0,h=m?h:h[Symbol.iterator]();;){var v;if(m){if(g>=h.length)break;v=h[g++]}else{g=h.next();if(g.done)break;v=g.value}const e=v;if(r.has(e)){o.verbose(o.lang("verboseFilePhantomExtraneous",e));r.delete(e)}}for(var y=r,b=Array.isArray(y),_=0,y=b?y:y[Symbol.iterator]();;){var E;if(b){if(_>=y.length)break;E=y[_++]}else{_=y.next();if(_.done)break;E=_.value}const e=E;if(a.has(e.toLowerCase())){r.delete(e)}}return d}));return function buildActionsForHardlink(t,r,n,o){return e.apply(this,arguments)}})();let i=t.copyBulk=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r){const s={onStart:r&&r.onStart||noop,onProgress:r&&r.onProgress||noop,possibleExtraneous:r?r.possibleExtraneous:new Set,ignoreBasenames:r&&r.ignoreBasenames||[],artifactFiles:r&&r.artifactFiles||[]};const i=yield o(e,s,s.possibleExtraneous,t);s.onStart(i.file.length+i.symlink.length+i.link.length);const a=i.file;const c=new Map;yield(A||_load_promise()).queue(a,(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){let r;while(r=c.get(e.dest)){yield r}t.verbose(t.lang("verboseFileCopy",e.src,e.dest));const n=(0,(C||_load_fsNormalized()).copyFile)(e,(function(){return c.delete(e.dest)}));c.set(e.dest,n);s.onProgress(e.dest);return n}));return function(t){return e.apply(this,arguments)}})(),Y);const u=i.symlink;yield(A||_load_promise()).queue(u,(function(e){const r=(O||_load_path()).default.resolve((O||_load_path()).default.dirname(e.dest),e.linkname);t.verbose(t.lang("verboseFileSymlink",e.dest,r));return d(r,e.dest)}))}));return function copyBulk(t,r,n){return e.apply(this,arguments)}})();let a=t.hardlinkBulk=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r){const o={onStart:r&&r.onStart||noop,onProgress:r&&r.onProgress||noop,possibleExtraneous:r?r.possibleExtraneous:new Set,artifactFiles:r&&r.artifactFiles||[],ignoreBasenames:[]};const i=yield s(e,o,o.possibleExtraneous,t);o.onStart(i.file.length+i.symlink.length+i.link.length);const a=i.link;yield(A||_load_promise()).queue(a,(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){t.verbose(t.lang("verboseFileLink",e.src,e.dest));if(e.removeDest){yield(0,(C||_load_fsNormalized()).unlink)(e.dest)}yield V(e.src,e.dest)}));return function(t){return e.apply(this,arguments)}})(),Y);const c=i.symlink;yield(A||_load_promise()).queue(c,(function(e){const r=(O||_load_path()).default.resolve((O||_load_path()).default.dirname(e.dest),e.linkname);t.verbose(t.lang("verboseFileSymlink",e.dest,r));return d(r,e.dest)}))}));return function hardlinkBulk(t,r,n){return e.apply(this,arguments)}})();let c=t.readFileAny=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){for(var t=e,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var o;if(r){if(n>=t.length)break;o=t[n++]}else{n=t.next();if(n.done)break;o=n.value}const e=o;if(yield $(e)){return readFile(e)}}return null}));return function readFileAny(t){return e.apply(this,arguments)}})();let u=t.readJson=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){return(yield l(e)).object}));return function readJson(t){return e.apply(this,arguments)}})();let l=t.readJsonAndFile=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){const t=yield readFile(e);try{return{object:(0,(P||_load_map()).default)(JSON.parse(Q(t))),content:t}}catch(t){t.message=`${e}: ${t.message}`;throw t}}));return function readJsonAndFile(t){return e.apply(this,arguments)}})();let p=t.find=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t){const r=t.split((O||_load_path()).default.sep);while(r.length){const t=r.concat(e).join((O||_load_path()).default.sep);if(yield $(t)){return t}else{r.pop()}}return false}));return function find(t,r){return e.apply(this,arguments)}})();let d=t.symlink=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t){try{const r=yield z(t);if(r.isSymbolicLink()){const r=yield I(t);if(r===e){return}}}catch(e){if(e.code!=="ENOENT"){throw e}}yield(0,(C||_load_fsNormalized()).unlink)(t);if(process.platform==="win32"){yield J(e,t,"junction")}else{let r;try{r=(O||_load_path()).default.relative((w||_load_fs()).default.realpathSync((O||_load_path()).default.dirname(t)),(w||_load_fs()).default.realpathSync(e))}catch(n){if(n.code!=="ENOENT"){throw n}r=(O||_load_path()).default.relative((O||_load_path()).default.dirname(t),e)}yield J(r||".",t)}}));return function symlink(t,r){return e.apply(this,arguments)}})();let h=t.walk=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r=new Set){let n=[];let o=yield q(e);if(r.size){o=o.filter((function(e){return!r.has(e)}))}for(var s=o,i=Array.isArray(s),a=0,s=i?s:s[Symbol.iterator]();;){var c;if(i){if(a>=s.length)break;c=s[a++]}else{a=s.next();if(a.done)break;c=a.value}const o=c;const u=t?(O||_load_path()).default.join(t,o):o;const l=(O||_load_path()).default.join(e,o);const p=yield z(l);n.push({relative:u,basename:o,absolute:l,mtime:+p.mtime});if(p.isDirectory()){n=n.concat(yield h(l,u,r))}}return n}));return function walk(t,r){return e.apply(this,arguments)}})();let m=t.getFileSizeOnDisk=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){const t=yield z(e);const r=t.size,n=t.blksize;return Math.ceil(r/n)*n}));return function getFileSizeOnDisk(t){return e.apply(this,arguments)}})();let g=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){if(!(yield $(e))){return undefined}const t=yield j(e);for(let e=0;e{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t){const r=(yield g(e))||(k||_load_os()).default.EOL;if(r!=="\n"){t=t.replace(/\n/g,r)}yield L(e,t)}));return function writeFilePreservingEol(t,r){return e.apply(this,arguments)}})();let y=t.hardlinksWork=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){const t="test-file"+Math.random();const r=(O||_load_path()).default.join(e,t);const n=(O||_load_path()).default.join(e,t+"-link");try{yield L(r,"test");yield V(r,n)}catch(e){return false}finally{yield(0,(C||_load_fsNormalized()).unlink)(r);yield(0,(C||_load_fsNormalized()).unlink)(n)}return true}));return function hardlinksWork(t){return e.apply(this,arguments)}})();let b=t.makeTempDir=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){const t=(O||_load_path()).default.join((k||_load_os()).default.tmpdir(),`yarn-${e||""}-${Date.now()}-${Math.random()}`);yield(0,(C||_load_fsNormalized()).unlink)(t);yield H(t);return t}));return function makeTempDir(t){return e.apply(this,arguments)}})();let _=t.readFirstAvailableStream=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e){for(var t=e,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var o;if(r){if(n>=t.length)break;o=t[n++]}else{n=t.next();if(n.done)break;o=n.value}const e=o;try{const t=yield D(e,"r");return(w||_load_fs()).default.createReadStream(e,{fd:t})}catch(e){}}return null}));return function readFirstAvailableStream(t){return e.apply(this,arguments)}})();let E=t.getFirstSuitableFolder=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t=x.W_OK|x.X_OK){const r={skipped:[],folder:null};for(var n=e,o=Array.isArray(n),s=0,n=o?n:n[Symbol.iterator]();;){var i;if(o){if(s>=n.length)break;i=n[s++]}else{s=n.next();if(s.done)break;i=s.value}const e=i;try{yield H(e);yield M(e,t);r.folder=e;return r}catch(t){r.skipped.push({error:t,folder:e})}}return r}));return function getFirstSuitableFolder(t){return e.apply(this,arguments)}})();t.copy=copy;t.readFile=readFile;t.readFileRaw=readFileRaw;t.normalizeOS=normalizeOS;var w;function _load_fs(){return w=_interopRequireDefault(r(3))}var T;function _load_glob(){return T=_interopRequireDefault(r(75))}var k;function _load_os(){return k=_interopRequireDefault(r(36))}var O;function _load_path(){return O=_interopRequireDefault(r(0))}var S;function _load_blockingQueue(){return S=_interopRequireDefault(r(84))}var A;function _load_promise(){return A=_interopRequireWildcard(r(40))}var G;function _load_promise2(){return G=r(40)}var P;function _load_map(){return P=_interopRequireDefault(r(20))}var C;function _load_fsNormalized(){return C=r(164)}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const x=t.constants=typeof(w||_load_fs()).default.constants!=="undefined"?(w||_load_fs()).default.constants:{R_OK:(w||_load_fs()).default.R_OK,W_OK:(w||_load_fs()).default.W_OK,X_OK:(w||_load_fs()).default.X_OK};const R=t.lockQueue=new((S||_load_blockingQueue()).default)("fs lock");const j=t.readFileBuffer=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.readFile);const D=t.open=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.open);const L=t.writeFile=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.writeFile);const U=t.readlink=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.readlink);const I=t.realpath=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.realpath);const q=t.readdir=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.readdir);const B=t.rename=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.rename);const M=t.access=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.access);const N=t.stat=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.stat);const H=t.mkdirp=(0,(G||_load_promise2()).promisify)(r(116));const $=t.exists=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.exists,true);const z=t.lstat=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.lstat);const W=t.chmod=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.chmod);const V=t.link=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.link);const K=t.glob=(0,(G||_load_promise2()).promisify)((T||_load_glob()).default);t.unlink=(C||_load_fsNormalized()).unlink;const Y=(w||_load_fs()).default.copyFile?128:4;const J=(0,(G||_load_promise2()).promisify)((w||_load_fs()).default.symlink);const Z=r(7);const Q=r(122);const noop=()=>{};function copy(e,t,r){return i([{src:e,dest:t}],r)}function _readFile(e,t){return new Promise(((r,n)=>{(w||_load_fs()).default.readFile(e,t,(function(e,t){if(e){n(e)}else{r(t)}}))}))}function readFile(e){return _readFile(e,"utf8").then(normalizeOS)}function readFileRaw(e){return _readFile(e,"binary")}function normalizeOS(e){return e.replace(/\r\n/g,"\n")}const X="\r".charCodeAt(0);const ee="\n".charCodeAt(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPathKey=getPathKey;const n=r(36);const o=r(0);const s=r(45).default;var i=r(171);const a=i.getCacheDir,c=i.getConfigDir,u=i.getDataDir;const l=r(227);const p=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"];const d=t.RESOLUTIONS="resolutions";const h=t.MANIFEST_FIELDS=[d,...p];const m=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0";const g=t.YARN_REGISTRY="https://registry.yarnpkg.com";const v=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/";const y=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh";const b=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi";const _=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version";const E=t.CACHE_VERSION=2;const w=t.LOCKFILE_VERSION=1;const T=t.NETWORK_CONCURRENCY=8;const k=t.NETWORK_TIMEOUT=30*1e3;const O=t.CHILD_CONCURRENCY=5;const S=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function getPreferredCacheDirectories(){const e=[a()];if(process.getuid){e.push(o.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`))}e.push(o.join(n.tmpdir(),`.yarn-cache`));return e}const A=t.PREFERRED_MODULE_CACHE_DIRECTORIES=getPreferredCacheDirectories();const G=t.CONFIG_DIRECTORY=c();const P=t.DATA_DIRECTORY=u();const C=t.LINK_REGISTRY_DIRECTORY=o.join(P,"link");const x=t.GLOBAL_MODULE_DIRECTORY=o.join(P,"global");const R=t.NODE_BIN_PATH=process.execPath;const j=t.YARN_BIN_PATH=getYarnBinPath();function getYarnBinPath(){if(l){return __filename}else{return o.join(__dirname,"..","bin","yarn.js")}}const D=t.NODE_MODULES_FOLDER="node_modules";const L=t.NODE_PACKAGE_JSON="package.json";const U=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`;const I=t.FALLBACK_GLOBAL_PREFIX=o.join(s,".yarn");const q=t.META_FOLDER=".yarn-meta";const B=t.INTEGRITY_FILENAME=".yarn-integrity";const M=t.LOCKFILE_FILENAME="yarn.lock";const N=t.METADATA_FILENAME=".yarn-metadata.json";const H=t.TARBALL_FILENAME=".yarn-tarball.tgz";const $=t.CLEAN_FILENAME=".yarnclean";const z=t.NPM_LOCK_FILENAME="package-lock.json";const W=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json";const V=t.DEFAULT_INDENT=" ";const K=t.SINGLE_INSTANCE_PORT=31997;const Y=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance";const J=t.ENV_PATH_KEY=getPathKey(process.platform,process.env);function getPathKey(e,t){let r="PATH";if(e==="win32"){r="Path";for(const e in t){if(e.toLowerCase()==="path"){r=e}}}return r}const Z=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,r){"use strict";var n=process.env.NODE_ENV;var invariant=function(e,t,r,o,s,i,a,c){if(n!=="production"){if(t===undefined){throw new Error("invariant requires an error message argument")}}if(!e){var u;if(t===undefined){u=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var l=[r,o,s,i,a,c];var p=0;u=new Error(t.replace(/%s/g,(function(){return l[p++]})));u.name="Invariant Violation"}u.framesToPop=1;throw u}};e.exports=invariant},,function(e,t){e.exports=r(6417)},,function(e,t){var r=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sortAlpha=sortAlpha;t.entries=entries;t.removePrefix=removePrefix;t.removeSuffix=removeSuffix;t.addSuffix=addSuffix;t.hyphenate=hyphenate;t.camelCase=camelCase;t.compareSortedArrays=compareSortedArrays;t.sleep=sleep;const n=r(176);function sortAlpha(e,t){const r=Math.min(e.length,t.length);for(let n=0;n"-"+e.charAt(0).toLowerCase()))}function camelCase(e){if(/[A-Z]/.test(e)){return null}else{return n(e)}}function compareSortedArrays(e,t){if(e.length!==t.length){return false}for(let r=0,n=e.length;r{setTimeout(t,e)}))}},function(e,t,r){var n=r(107)("wks");var o=r(111);var s=r(11).Symbol;var i=typeof s=="function";var a=e.exports=function(e){return n[e]||(n[e]=i&&s[e]||(i?s:o)("Symbol."+e))};a.store=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringify=t.parse=undefined;var n;function _load_asyncToGenerator(){return n=_interopRequireDefault(r(1))}var o;function _load_parse(){return o=r(81)}Object.defineProperty(t,"parse",{enumerable:true,get:function get(){return _interopRequireDefault(o||_load_parse()).default}});var s;function _load_stringify(){return s=r(150)}Object.defineProperty(t,"stringify",{enumerable:true,get:function get(){return _interopRequireDefault(s||_load_stringify()).default}});t.implodeEntry=implodeEntry;t.explodeEntry=explodeEntry;var i;function _load_misc(){return i=r(12)}var a;function _load_normalizePattern(){return a=r(29)}var c;function _load_parse2(){return c=_interopRequireDefault(r(81))}var u;function _load_constants(){return u=r(6)}var l;function _load_fs(){return l=_interopRequireWildcard(r(5))}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const p=r(7);const d=r(0);const h=r(55);function getName(e){return(0,(a||_load_normalizePattern()).normalizePattern)(e).name}function blankObjectUndefined(e){return e&&Object.keys(e).length?e:undefined}function keyForRemote(e){return e.resolved||(e.reference&&e.hash?`${e.reference}#${e.hash}`:null)}function serializeIntegrity(e){return e.toString().split(" ").sort().join(" ")}function implodeEntry(e,t){const r=getName(e);const n=t.integrity?serializeIntegrity(t.integrity):"";const o={name:r===t.name?undefined:t.name,version:t.version,uid:t.uid===t.version?undefined:t.uid,resolved:t.resolved,registry:t.registry==="npm"?undefined:t.registry,dependencies:blankObjectUndefined(t.dependencies),optionalDependencies:blankObjectUndefined(t.optionalDependencies),permissions:blankObjectUndefined(t.permissions),prebuiltVariants:blankObjectUndefined(t.prebuiltVariants)};if(n){o.integrity=n}return o}function explodeEntry(e,t){t.optionalDependencies=t.optionalDependencies||{};t.dependencies=t.dependencies||{};t.uid=t.uid||t.version;t.permissions=t.permissions||{};t.registry=t.registry||"npm";t.name=t.name||getName(e);const r=t.integrity;if(r&&r.isIntegrity){t.integrity=h.parse(r)}return t}class Lockfile{constructor({cache:e,source:t,parseResultType:r}={}){this.source=t||"";this.cache=e;this.parseResultType=r}hasEntriesExistWithoutIntegrity(){if(!this.cache){return false}for(const e in this.cache){if(!/^.*@(file:|http)/.test(e)&&this.cache[e]&&!this.cache[e].integrity){return true}}return false}static fromDirectory(e,t){return(0,(n||_load_asyncToGenerator()).default)((function*(){const r=d.join(e,(u||_load_constants()).LOCKFILE_FILENAME);let n;let o="";let s;if(yield(l||_load_fs()).exists(r)){o=yield(l||_load_fs()).readFile(r);s=(0,(c||_load_parse2()).default)(o,r);if(t){if(s.type==="merge"){t.info(t.lang("lockfileMerged"))}else if(s.type==="conflict"){t.warn(t.lang("lockfileConflict"))}}n=s.object}else if(t){t.info(t.lang("noLockfileFound"))}return new Lockfile({cache:n,source:o,parseResultType:s&&s.type})}))()}getLocked(e){const t=this.cache;if(!t){return undefined}const r=e in t&&t[e];if(typeof r==="string"){return this.getLocked(r)}else if(r){explodeEntry(e,r);return r}return undefined}removePattern(e){const t=this.cache;if(!t){return}delete t[e]}getLockfile(e){const t={};const r=new Map;const n=Object.keys(e).sort((i||_load_misc()).sortAlpha);for(var o=n,s=Array.isArray(o),a=0,o=s?o:o[Symbol.iterator]();;){var c;if(s){if(a>=o.length)break;c=o[a++]}else{a=o.next();if(a.done)break;c=a.value}const n=c;const i=e[n];const u=i._remote,l=i._reference;p(l,"Package is missing a reference");p(u,"Package is missing a remote");const d=keyForRemote(u);const h=d&&r.get(d);if(h){t[n]=h;if(!h.name&&getName(n)!==i.name){h.name=i.name}continue}const m=implodeEntry(n,{name:i.name,version:i.version,uid:i._uid,resolved:u.resolved,integrity:u.integrity,registry:u.registry,dependencies:i.dependencies,peerDependencies:i.peerDependencies,optionalDependencies:i.optionalDependencies,permissions:l.permissions,prebuiltVariants:i.prebuiltVariants});t[n]=m;if(d){r.set(d,m)}}return t}}t.default=Lockfile},,,function(e,t){e.exports=r(2413)},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=nullify;function nullify(e={}){if(Array.isArray(e)){for(var t=e,r=Array.isArray(t),n=0,t=r?t:t[Symbol.iterator]();;){var o;if(r){if(n>=t.length)break;o=t[n++]}else{n=t.next();if(n.done)break;o=n.value}const e=o;nullify(e)}}else if(e!==null&&typeof e==="object"||typeof e==="function"){Object.setPrototypeOf(e,null);if(typeof e==="object"){for(const t in e){nullify(e[t])}}}return e}},,function(e,t){e.exports=r(2357)},function(e,t){var r=e.exports={version:"2.5.7"};if(typeof __e=="number")__e=r},,,,function(e,t,r){var n=r(34);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizePattern=normalizePattern;function normalizePattern(e){let t=false;let r="latest";let n=e;let o=false;if(n[0]==="@"){o=true;n=n.slice(1)}const s=n.split("@");if(s.length>1){n=s.shift();r=s.join("@");if(r){t=true}else{r="*"}}if(o){n=`@${n}`}return{name:n,range:r,hasVersion:t}}},,function(e,t,r){var n=r(50);var o=r(106);e.exports=r(33)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){e[t]=r;return e}},function(e,t,r){var n=r(63);var o=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return o(e,t,r)}copyProps(o,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return o(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=o(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return o(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},function(e,t,r){e.exports=!r(85)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},function(e,t){e.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},function(e,t){e.exports={}},function(e,t){e.exports=r(2087)},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wait=wait;t.promisify=promisify;t.queue=queue;function wait(e){return new Promise((t=>{setTimeout(t,e)}))}function promisify(e,t){return function(...r){return new Promise((function(n,o){r.push((function(e,...r){let s=r;if(r.length<=1){s=r[0]}if(t){s=e;e=null}if(e){o(e)}else{n(s)}}));e.apply(null,r)}))}}function queue(e,t,r=Infinity){r=Math.min(r,e.length);e=e.slice();const n=[];let o=e.length;if(!o){return Promise.resolve(n)}return new Promise(((s,i)=>{for(let e=0;ee===n[1]))){return}this.algorithm=n[1];this.digest=n[2];const o=n[3];this.options=o?o.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(e){if(e&&e.strict){if(!(i.some((e=>e===this.algorithm))&&this.digest.match(a)&&(this.options||[]).every((e=>e.match(l))))){return""}}const t=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${t}`}}class Integrity{get isIntegrity(){return true}toJSON(){return this.toString()}toString(e){e=e||{};let t=e.sep||" ";if(e.strict){t=t.replace(/\S+/g," ")}return Object.keys(this).map((r=>this[r].map((t=>Hash.prototype.toString.call(t,e))).filter((e=>e.length)).join(t))).filter((e=>e.length)).join(t)}concat(e,t){const r=typeof e==="string"?e:stringify(e,t);return parse(`${this.toString(t)} ${r}`,t)}hexDigest(){return parse(this,{single:true}).hexDigest()}match(e,t){const r=parse(e,t);const n=r.pickAlgorithm(t);return this[n]&&r[n]&&this[n].find((e=>r[n].find((t=>e.digest===t.digest))))||false}pickAlgorithm(e){const t=e&&e.pickAlgorithm||getPrioritizedHash;const r=Object.keys(this);if(!r.length){throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`)}return r.reduce(((e,r)=>t(e,r)||e))}}e.exports.parse=parse;function parse(e,t){t=t||{};if(typeof e==="string"){return _parse(e,t)}else if(e.algorithm&&e.digest){const r=new Integrity;r[e.algorithm]=[e];return _parse(stringify(r,t),t)}else{return _parse(stringify(e,t),t)}}function _parse(e,t){if(t.single){return new Hash(e,t)}return e.trim().split(/\s+/).reduce(((e,r)=>{const n=new Hash(r,t);if(n.algorithm&&n.digest){const t=n.algorithm;if(!e[t]){e[t]=[]}e[t].push(n)}return e}),new Integrity)}e.exports.stringify=stringify;function stringify(e,t){if(e.algorithm&&e.digest){return Hash.prototype.toString.call(e,t)}else if(typeof e==="string"){return stringify(parse(e,t),t)}else{return Integrity.prototype.toString.call(e,t)}}e.exports.fromHex=fromHex;function fromHex(e,t,r){const o=r&&r.options&&r.options.length?`?${r.options.join("?")}`:"";return parse(`${t}-${n.from(e,"hex").toString("base64")}${o}`,r)}e.exports.fromData=fromData;function fromData(e,t){t=t||{};const r=t.algorithms||["sha512"];const n=t.options&&t.options.length?`?${t.options.join("?")}`:"";return r.reduce(((r,s)=>{const i=o.createHash(s).update(e).digest("base64");const a=new Hash(`${s}-${i}${n}`,t);if(a.algorithm&&a.digest){const e=a.algorithm;if(!r[e]){r[e]=[]}r[e].push(a)}return r}),new Integrity)}e.exports.fromStream=fromStream;function fromStream(e,t){t=t||{};const r=t.Promise||Promise;const n=integrityStream(t);return new r(((t,r)=>{e.pipe(n);e.on("error",r);n.on("error",r);let o;n.on("integrity",(e=>{o=e}));n.on("end",(()=>t(o)));n.on("data",(()=>{}))}))}e.exports.checkData=checkData;function checkData(e,t,r){r=r||{};t=parse(t,r);if(!Object.keys(t).length){if(r.error){throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"})}else{return false}}const n=t.pickAlgorithm(r);const s=o.createHash(n).update(e).digest("base64");const i=parse({algorithm:n,digest:s});const a=i.match(t,r);if(a||!r.error){return a}else if(typeof r.size==="number"&&e.length!==r.size){const n=new Error(`data size mismatch when checking ${t}.\n Wanted: ${r.size}\n Found: ${e.length}`);n.code="EBADSIZE";n.found=e.length;n.expected=r.size;n.sri=t;throw n}else{const r=new Error(`Integrity checksum failed when using ${n}: Wanted ${t}, but got ${i}. (${e.length} bytes)`);r.code="EINTEGRITY";r.found=i;r.expected=t;r.algorithm=n;r.sri=t;throw r}}e.exports.checkStream=checkStream;function checkStream(e,t,r){r=r||{};const n=r.Promise||Promise;const o=integrityStream(Object.assign({},r,{integrity:t}));return new n(((t,r)=>{e.pipe(o);e.on("error",r);o.on("error",r);let n;o.on("verified",(e=>{n=e}));o.on("end",(()=>t(n)));o.on("data",(()=>{}))}))}e.exports.integrityStream=integrityStream;function integrityStream(e){e=e||{};const t=e.integrity&&parse(e.integrity,e);const r=t&&Object.keys(t).length;const n=r&&t.pickAlgorithm(e);const i=r&&t[n];const a=Array.from(new Set((e.algorithms||["sha512"]).concat(n?[n]:[])));const c=a.map(o.createHash);let u=0;const l=new s({transform(e,t,r){u+=e.length;c.forEach((r=>r.update(e,t)));r(null,e,t)}}).on("end",(()=>{const o=e.options&&e.options.length?`?${e.options.join("?")}`:"";const s=parse(c.map(((e,t)=>`${a[t]}-${e.digest("base64")}${o}`)).join(" "),e);const p=r&&s.match(t,e);if(typeof e.size==="number"&&u!==e.size){const r=new Error(`stream size mismatch when checking ${t}.\n Wanted: ${e.size}\n Found: ${u}`);r.code="EBADSIZE";r.found=u;r.expected=e.size;r.sri=t;l.emit("error",r)}else if(e.integrity&&!p){const e=new Error(`${t} integrity checksum failed when using ${n}: wanted ${i} but got ${s}. (${u} bytes)`);e.code="EINTEGRITY";e.found=s;e.expected=i;e.algorithm=n;e.sri=t;l.emit("error",e)}else{l.emit("size",u);l.emit("integrity",s);p&&l.emit("verified",p)}}));return l}e.exports.create=createIntegrity;function createIntegrity(e){e=e||{};const t=e.algorithms||["sha512"];const r=e.options&&e.options.length?`?${e.options.join("?")}`:"";const n=t.map(o.createHash);return{update:function(e,t){n.forEach((r=>r.update(e,t)));return this},digest:function(o){const s=t.reduce(((t,o)=>{const s=n.shift().digest("base64");const i=new Hash(`${o}-${s}${r}`,e);if(i.algorithm&&i.digest){const e=i.algorithm;if(!t[e]){t[e]=[]}t[e].push(i)}return t}),new Integrity);return s}}}const p=new Set(o.getHashes());const d=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter((e=>p.has(e)));function getPrioritizedHash(e,t){return d.indexOf(e.toLowerCase())>=d.indexOf(t.toLowerCase())?e:t}},,,,,function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=r(0)}catch(e){}var o=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(175);var i={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var p=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var d=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,o){return minimatch(r,e,t)}}function ext(e,t){e=e||{};t=t||{};var r={};Object.keys(t).forEach((function(e){r[e]=t[e]}));Object.keys(e).forEach((function(t){r[t]=e[t]}));return r}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var r=function minimatch(r,n,o){return t.minimatch(r,n,ext(e,o))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};return r};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(d)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var o=0,s=e.length;o1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return o;if(e==="")return"";var n="";var s=!!r.nocase;var u=false;var l=[];var d=[];var m;var g=false;var v=-1;var y=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(m){switch(m){case"*":n+=c;s=true;break;case"?":n+=a;s=true;break;default:n+="\\"+m;break}_.debug("clearStateChar %j %j",m,n);m=false}}for(var E=0,w=e.length,T;E-1;C--){var x=d[C];var R=n.slice(0,x.reStart);var j=n.slice(x.reStart,x.reEnd-8);var D=n.slice(x.reEnd-8,x.reEnd);var L=n.slice(x.reEnd);D+=L;var U=R.split("(").length-1;var I=L;for(E=0;E=0;i--){s=e[i];if(s)break}for(i=0;i>> no match, partial?",e,p,t,d);if(p===a)return true}return false}var m;if(typeof u==="string"){if(n.nocase){m=l.toLowerCase()===u.toLowerCase()}else{m=l===u}this.debug("string match",u,l,m)}else{m=l.match(u);this.debug("pattern match",u,l,m)}if(!m)return false}if(s===a&&i===c){return true}else if(s===a){return r}else if(i===c){var g=s===a-1&&e[s]==="";return g}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,r){var n=r(123);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},,function(e,t){e.exports=r(4293)},,,,function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(34);var o=r(11).document;var s=n(o)&&n(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},function(e,t){e.exports=true},function(e,t,r){"use strict";var n=r(46);function PromiseCapability(e){var t,r;this.promise=new e((function(e,n){if(t!==undefined||r!==undefined)throw TypeError("Bad Promise constructor");t=e;r=n}));this.resolve=n(t);this.reject=n(r)}e.exports.f=function(e){return new PromiseCapability(e)}},function(e,t,r){var n=r(50).f;var o=r(49);var s=r(13)("toStringTag");e.exports=function(e,t,r){if(e&&!o(e=r?e:e.prototype,s))n(e,s,{configurable:true,value:t})}},function(e,t,r){var n=r(107)("keys");var o=r(111);e.exports=function(e){return n[e]||(n[e]=o(e))}},function(e,t){var r=Math.ceil;var n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(131);var o=r(67);e.exports=function(e){return n(o(e))}},function(e,t,r){e.exports=glob;var n=r(3);var o=r(114);var s=r(60);var i=s.Minimatch;var a=r(42);var c=r(54).EventEmitter;var u=r(0);var l=r(22);var p=r(76);var d=r(218);var h=r(115);var m=h.alphasort;var g=h.alphasorti;var v=h.setopts;var y=h.ownProp;var b=r(223);var _=r(2);var E=h.childrenIgnored;var w=h.isIgnored;var T=r(61);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return d(e,t)}return new Glob(e,t,r)}glob.sync=d;var k=glob.GlobSync=d.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var o=n.minimatch.set;if(!e)return false;if(o.length>1)return true;for(var s=0;sthis.maxLength)return t();if(!this.stat&&y(this.cache,r)){var s=this.cache[r];if(Array.isArray(s))s="DIR";if(!o||s==="DIR")return t(null,s);if(o&&s==="FILE")return t()}var i;var a=this.statCache[r];if(a!==undefined){if(a===false)return t(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(o&&c==="FILE")return t();else return t(null,c,a)}}var u=this;var l=b("stat\0"+r,lstatcb_);if(l)n.lstat(r,l);function lstatcb_(o,s){if(s&&s.isSymbolicLink()){return n.stat(r,(function(n,o){if(n)u._stat2(e,r,null,s,t);else u._stat2(e,r,n,o,t)}))}else{u._stat2(e,r,o,s,t)}}};Glob.prototype._stat2=function(e,t,r,n,o){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return o()}var s=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return o(null,false,n);var i=true;if(n)i=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(s&&i==="FILE")return o();return o(null,i,n)}},function(e,t,r){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var o=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||o)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},,,function(e,t){e.exports=r(3867)},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=function(e,t="lockfile"){e=(0,(s||_load_stripBom()).default)(e);return hasMergeConflicts(e)?parseWithConflict(e,t):{type:"success",object:parse(e,t)}};var n;function _load_util(){return n=_interopRequireDefault(r(2))}var o;function _load_invariant(){return o=_interopRequireDefault(r(7))}var s;function _load_stripBom(){return s=_interopRequireDefault(r(122))}var i;function _load_constants(){return i=r(6)}var a;function _load_errors(){return a=r(4)}var c;function _load_map(){return c=_interopRequireDefault(r(20))}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const u=/^yarn lockfile v(\d+)$/;const l={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"};const p=[l.boolean,l.string,l.number];function isValidPropValueToken(e){return p.indexOf(e.type)>=0}function*tokenise(e){let t=false;let r=1;let n=0;function buildToken(e,t){return{line:r,col:n,type:e,value:t}}while(e.length){let o=0;if(e[0]==="\n"||e[0]==="\r"){o++;if(e[1]==="\n"){o++}r++;n=0;yield buildToken(l.newline)}else if(e[0]==="#"){o++;let t="";while(e[o]!=="\n"){t+=e[o];o++}yield buildToken(l.comment,t)}else if(e[0]===" "){if(t){let t="";for(let r=0;e[r]===" ";r++){t+=e[r]}if(t.length%2){throw new TypeError("Invalid number of spaces")}else{o=t.length;yield buildToken(l.indent,t.length/2)}}else{o++}}else if(e[0]==='"'){let t="";for(let r=0;;r++){const n=e[r];t+=n;if(r>0&&n==='"'){const t=e[r-1]==="\\"&&e[r-2]!=="\\";if(!t){break}}}o=t.length;try{yield buildToken(l.string,JSON.parse(t))}catch(e){if(e instanceof SyntaxError){yield buildToken(l.invalid)}else{throw e}}}else if(/^[0-9]/.test(e)){let t="";for(let r=0;/^[0-9]$/.test(e[r]);r++){t+=e[r]}o=t.length;yield buildToken(l.number,+t)}else if(/^true/.test(e)){yield buildToken(l.boolean,true);o=4}else if(/^false/.test(e)){yield buildToken(l.boolean,false);o=5}else if(e[0]===":"){yield buildToken(l.colon);o++}else if(e[0]===","){yield buildToken(l.comma);o++}else if(/^[a-zA-Z\/-]/g.test(e)){let t="";for(let r=0;r(i||_load_constants()).LOCKFILE_VERSION){throw new((a||_load_errors()).MessageError)(`Can't install from a lockfile of version ${e} as you're on an old yarn version that only supports `+`versions up to ${(i||_load_constants()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}}this.comments.push(r)}next(){const e=this.tokens.next();(0,(o||_load_invariant()).default)(e,"expected a token");const t=e.done,r=e.value;if(t||!r){throw new Error("No more tokens")}else if(r.type===l.comment){this.onComment(r);return this.next()}else{return this.token=r}}unexpected(e="Unexpected token"){throw new SyntaxError(`${e} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(e){if(this.token.type===e){this.next()}else{this.unexpected()}}eat(e){if(this.token.type===e){this.next();return true}else{return false}}parse(e=0){const t=(0,(c||_load_map()).default)();while(true){const c=this.token;if(c.type===l.newline){const t=this.next();if(!e){continue}if(t.type!==l.indent){break}if(t.value===e){this.next()}else{break}}else if(c.type===l.indent){if(c.value===e){this.next()}else{break}}else if(c.type===l.eof){break}else if(c.type===l.string){const n=c.value;(0,(o||_load_invariant()).default)(n,"Expected a key");const m=[n];this.next();while(this.token.type===l.comma){this.next();const e=this.token;if(e.type!==l.string){this.unexpected("Expected string")}const t=e.value;(0,(o||_load_invariant()).default)(t,"Expected a key");m.push(t);this.next()}const g=this.token;if(g.type===l.colon){this.next();const n=this.parse(e+1);for(var r=m,s=Array.isArray(r),i=0,r=s?r:r[Symbol.iterator]();;){var a;if(s){if(i>=r.length)break;a=r[i++]}else{i=r.next();if(i.done)break;a=i.value}const e=a;t[e]=n}if(e&&this.token.type!==l.indent){break}}else if(isValidPropValueToken(g)){for(var u=m,p=Array.isArray(u),d=0,u=p?u:u[Symbol.iterator]();;){var h;if(p){if(d>=u.length)break;h=u[d++]}else{d=u.next();if(d.done)break;h=d.value}const e=h;t[e]=g.value}this.next()}else{this.unexpected("Invalid value type")}}else{this.unexpected(`Unknown token: ${(n||_load_util()).default.inspect(c)}`)}}return t}}const d="|||||||";const h=">>>>>>>";const m="=======";const g="<<<<<<<";function extractConflictVariants(e){const t=[[],[]];const r=e.split(/\r?\n/g);let n=false;while(r.length){const e=r.shift();if(e.startsWith(g)){while(r.length){const e=r.shift();if(e===m){n=false;break}else if(n||e.startsWith(d)){n=true;continue}else{t[0].push(e)}}while(r.length){const e=r.shift();if(e.startsWith(h)){break}else{t[1].push(e)}}}else{t[0].push(e);t[1].push(e)}}return[t[0].join("\n"),t[1].join("\n")]}function hasMergeConflicts(e){return e.includes(g)&&e.includes(m)&&e.includes(h)}function parse(e,t){const r=new Parser(e,t);r.next();return r.parse()}function parseWithConflict(e,t){const r=extractConflictVariants(e);try{return{type:"merge",object:Object.assign({},parse(r[0],t),parse(r[1],t))}}catch(e){if(e instanceof SyntaxError){return{type:"conflict",object:{}}}else{throw e}}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n;function _load_map(){return n=_interopRequireDefault(r(20))}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=r(212)("yarn");class BlockingQueue{constructor(e,t=Infinity){this.concurrencyQueue=[];this.maxConcurrency=t;this.runningCount=0;this.warnedStuck=false;this.alias=e;this.first=true;this.running=(0,(n||_load_map()).default)();this.queue=(0,(n||_load_map()).default)();this.stuckTick=this.stuckTick.bind(this)}stillActive(){if(this.stuckTimer){clearTimeout(this.stuckTimer)}this.stuckTimer=setTimeout(this.stuckTick,5e3);this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){if(this.runningCount===1){this.warnedStuck=true;o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds `+`without any activity with 1 worker: ${Object.keys(this.running)[0]}`)}}push(e,t){if(this.first){this.first=false}else{this.stillActive()}return new Promise(((r,n)=>{const o=this.queue[e]=this.queue[e]||[];o.push({factory:t,resolve:r,reject:n});if(!this.running[e]){this.shift(e)}}))}shift(e){if(this.running[e]){delete this.running[e];this.runningCount--;if(this.stuckTimer){clearTimeout(this.stuckTimer);this.stuckTimer=null}if(this.warnedStuck){this.warnedStuck=false;o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)}}const t=this.queue[e];if(!t){return}var r=t.shift();const n=r.resolve,s=r.reject,i=r.factory;if(!t.length){delete this.queue[e]}const next=()=>{this.shift(e);this.shiftConcurrencyQueue()};const run=()=>{this.running[e]=true;this.runningCount++;i().then((function(e){n(e);next();return null})).catch((function(e){s(e);next()}))};this.maybePushConcurrencyQueue(run)}maybePushConcurrencyQueue(e){if(this.runningCountr)t.push(arguments[r++]);m[++h]=function(){o(typeof e=="function"?e:Function(e),t)};v(h);return h};l=function clearImmediate(e){delete m[e]};if(r(47)(c)=="process"){v=function(e){c.nextTick(n(run,e,1))}}else if(d&&d.now){v=function(e){d.now(n(run,e,1))}}else if(p){y=new p;b=y.port2;y.port1.onmessage=listener;v=n(b.postMessage,b,1)}else if(a.addEventListener&&typeof postMessage=="function"&&!a.importScripts){v=function(e){a.postMessage(e+"","*")};a.addEventListener("message",listener,false)}else if(g in i("script")){v=function(e){s.appendChild(i("script"))[g]=function(){s.removeChild(this);run.call(e)}}}else{v=function(e){setTimeout(n(run,e,1),0)}}}e.exports={set:u,clear:l}},function(e,t,r){var n=r(73);var o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=0;var n=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++r+n).toString(36))}},function(e,t,r){t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(229);t.instances=[];t.names=[];t.skips=[];t.formatters={};function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){var r;function debug(){if(!debug.enabled)return;var e=debug;var n=+new Date;var o=n-(r||n);e.diff=o;e.prev=r;e.curr=n;r=n;var s=new Array(arguments.length);for(var i=0;i{if(typeof e!=="string"){throw new TypeError("Expected a string, got "+typeof e)}if(e.charCodeAt(0)===65279){return e.slice(1)}return e}},function(e,t){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=stringify;var n;function _load_misc(){return n=r(12)}var o;function _load_constants(){return o=r(6)}var s;function _load_package(){return s=r(145)}const i=process.version;function shouldWrapKey(e){return e.indexOf("true")===0||e.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(e)||/^[0-9]/g.test(e)||!/^[a-zA-Z]/g.test(e)}function maybeWrap(e){if(typeof e==="boolean"||typeof e==="number"||shouldWrapKey(e)){return JSON.stringify(e)}else{return e}}const a={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function priorityThenAlphaSort(e,t){if(a[e]||a[t]){return(a[e]||100)>(a[t]||100)?1:-1}else{return(0,(n||_load_misc()).sortAlpha)(e,t)}}function _stringify(e,t){if(typeof e!=="object"){throw new TypeError}const r=t.indent;const o=[];const s=Object.keys(e).sort(priorityThenAlphaSort);let i=[];for(let a=0;a=0){continue}const l=[c];if(typeof u==="object"){for(let t=a+1;t{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r){const n=e===undefined;let o=e?e:-1;if(a===undefined){const e=yield l(t);a=y(e.mtime,r.mtime)}if(a){return}if(n){try{o=yield p(t,"a",r.mode)}catch(e){try{o=yield p(t,"r",r.mode)}catch(e){return}}}try{if(o){yield d(o,r.atime,r.mtime)}}catch(e){}finally{if(n&&o){yield u(o)}}}));return function fixTimes(t,r,n){return e.apply(this,arguments)}})();var s;function _load_fs(){return s=_interopRequireDefault(r(3))}var i;function _load_promise(){return i=r(40)}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let a=undefined;const c=(0,(i||_load_promise()).promisify)((s||_load_fs()).default.readFile);const u=(0,(i||_load_promise()).promisify)((s||_load_fs()).default.close);const l=(0,(i||_load_promise()).promisify)((s||_load_fs()).default.lstat);const p=(0,(i||_load_promise()).promisify)((s||_load_fs()).default.open);const d=(0,(i||_load_promise()).promisify)((s||_load_fs()).default.futimes);const h=(0,(i||_load_promise()).promisify)((s||_load_fs()).default.write);const m=t.unlink=(0,(i||_load_promise()).promisify)(r(233));const g=t.copyFile=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t){try{yield m(e.dest);yield copyFilePoly(e.src,e.dest,0,e)}finally{if(t){t()}}}));return function copyFile(t,r){return e.apply(this,arguments)}})();const copyFilePoly=(e,t,r,n)=>{if((s||_load_fs()).default.copyFile){return new Promise(((i,a)=>(s||_load_fs()).default.copyFile(e,t,r,(e=>{if(e){a(e)}else{o(undefined,t,n).then((()=>i())).catch((e=>a(e)))}}))))}else{return v(e,t,r,n)}};const v=(()=>{var e=(0,(n||_load_asyncToGenerator()).default)((function*(e,t,r,n){const s=yield p(t,"w",n.mode);try{const r=yield c(e);yield h(s,r,0,r.length);yield o(s,t,n)}finally{yield u(s)}}));return function copyWithBuffer(t,r,n,o){return e.apply(this,arguments)}})();const y=t.fileDatesEqual=(e,t)=>{const r=e.getTime();const n=t.getTime();if(process.platform!=="win32"){return r===n}if(Math.abs(r-n)<=1){return true}const o=Math.floor(r/1e3);const s=Math.floor(n/1e3);if(r-o*1e3===0||n-s*1e3===0){return o===s}return r===n}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFakeRoot=isFakeRoot;t.isRootUser=isRootUser;function getUid(){if(process.platform!=="win32"&&process.getuid){return process.getuid()}return null}t.default=isRootUser(getUid())&&!isFakeRoot();function isFakeRoot(){return Boolean(process.env.FAKEROOTKEY)}function isRootUser(e){return e===0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDataDir=getDataDir;t.getCacheDir=getCacheDir;t.getConfigDir=getConfigDir;const n=r(0);const o=r(45).default;const s=n.join(o,".config","yarn");const i=n.join(o,".cache","yarn");function getDataDir(){if(process.platform==="win32"){const e=getLocalAppDataDir();return e==null?s:n.join(e,"Data")}else if(process.env.XDG_DATA_HOME){return n.join(process.env.XDG_DATA_HOME,"yarn")}else{return s}}function getCacheDir(){if(process.platform==="win32"){return n.join(getLocalAppDataDir()||n.join(o,"AppData","Local","Yarn"),"Cache")}else if(process.env.XDG_CACHE_HOME){return n.join(process.env.XDG_CACHE_HOME,"yarn")}else if(process.platform==="darwin"){return n.join(o,"Library","Caches","Yarn")}else{return i}}function getConfigDir(){if(process.platform==="win32"){const e=getLocalAppDataDir();return e==null?s:n.join(e,"Config")}else if(process.env.XDG_CONFIG_HOME){return n.join(process.env.XDG_CONFIG_HOME,"yarn")}else{return s}}function getLocalAppDataDir(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,r){e.exports={default:r(179),__esModule:true}},function(e,t,r){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,o,s,i,a;var c=r.indexOf(e);var u=r.indexOf(t,c+1);var l=c;if(c>=0&&u>0){n=[];s=r.length;while(l>=0&&!a){if(l==c){n.push(l);c=r.indexOf(e,l+1)}else if(n.length==1){a=[n.pop(),u]}else{o=n.pop();if(o=0?c:u}if(n.length){a=[s,i]}}return a}},function(e,t,r){var n=r(178);var o=r(174);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var i="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(i).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(s).join("\\").split(i).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=o("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var i=r.post;var a=n.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(i);if(i.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=o("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var u=i||c;var l=s.body.indexOf(",")>=0;if(!u&&!l){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+a+s.post;return expand(e)}return[e]}var p;if(u){p=s.body.split(/\.\./)}else{p=parseCommaParts(s.body);if(p.length===1){p=expand(p[0],false).map(embrace);if(p.length===1){var d=s.post.length?expand(s.post,false):[""];return d.map((function(e){return s.pre+p[0]+e}))}}}var h=s.pre;var d=s.post.length?expand(s.post,false):[""];var m;if(u){var g=numeric(p[0]);var v=numeric(p[1]);var y=Math.max(p[0].length,p[1].length);var b=p.length==3?Math.abs(numeric(p[2])):1;var _=lte;var E=v0){var S=new Array(O+1).join("0");if(T<0)k="-"+S+k.slice(1);else k=S+k}}}m.push(k)}}else{m=n(p,(function(e){return expand(e,false)}))}for(var A=0;A1){e=Array.from(arguments).map((e=>e.trim())).filter((e=>e.length)).join("-")}else{e=e.trim()}if(e.length===0){return""}if(e.length===1){return e.toLowerCase()}if(/^[a-z0-9]+$/.test(e)){return e}const t=e!==e.toLowerCase();if(t){e=preserveCamelCase(e)}return e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((e,t)=>t.toUpperCase()))}},,function(e,t){e.exports=function(e,t){var n=[];for(var o=0;ou){l=a[u++];if(l!=l)return true}else for(;c>u;u++)if(e||u in a){if(a[u]===r)return e||u||0}return!e&&-1}}},function(e,t,r){var n=r(48);var o=r(187);var s=r(186);var i=r(27);var a=r(110);var c=r(203);var u={};var l={};var t=e.exports=function(e,t,r,p,d){var h=d?function(){return e}:c(e);var m=n(r,p,t?2:1);var g=0;var v,y,b,_;if(typeof h!="function")throw TypeError(e+" is not iterable!");if(s(h))for(v=a(e.length);v>g;g++){_=t?m(i(y=e[g])[0],y[1]):m(e[g]);if(_===u||_===l)return _}else for(b=h.call(e);!(y=b.next()).done;){_=o(b,m,y.value,t);if(_===u||_===l)return _}};t.BREAK=u;t.RETURN=l},function(e,t,r){e.exports=!r(33)&&!r(85)((function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7}))},function(e,t){e.exports=function(e,t,r){var n=r===undefined;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(35);var o=r(13)("iterator");var s=Array.prototype;e.exports=function(e){return e!==undefined&&(n.Array===e||s[o]===e)}},function(e,t,r){var n=r(27);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var s=e["return"];if(s!==undefined)n(s.call(e));throw t}}},function(e,t,r){"use strict";var n=r(192);var o=r(106);var s=r(71);var i={};r(31)(i,r(13)("iterator"),(function(){return this}));e.exports=function(e,t,r){e.prototype=n(i,{next:o(1,r)});s(e,t+" Iterator")}},function(e,t,r){var n=r(13)("iterator");var o=false;try{var s=[7][n]();s["return"]=function(){o=true};Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return false;var r=false;try{var s=[7];var i=s[n]();i.next=function(){return{done:r=true}};s[n]=function(){return i};e(s)}catch(e){}return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){var n=r(11);var o=r(109).set;var s=n.MutationObserver||n.WebKitMutationObserver;var i=n.process;var a=n.Promise;var c=r(47)(i)=="process";e.exports=function(){var e,t,r;var flush=function(){var n,o;if(c&&(n=i.domain))n.exit();while(e){o=e.fn;e=e.next;try{o()}catch(n){if(e)r();else t=undefined;throw n}}t=undefined;if(n)n.enter()};if(c){r=function(){i.nextTick(flush)}}else if(s&&!(n.navigator&&n.navigator.standalone)){var u=true;var l=document.createTextNode("");new s(flush).observe(l,{characterData:true});r=function(){l.data=u=!u}}else if(a&&a.resolve){var p=a.resolve(undefined);r=function(){p.then(flush)}}else{r=function(){o.call(n,flush)}}return function(n){var o={fn:n,next:undefined};if(t)t.next=o;if(!e){e=o;r()}t=o}}},function(e,t,r){var n=r(27);var o=r(193);var s=r(101);var i=r(72)("IE_PROTO");var Empty=function(){};var a="prototype";var createDict=function(){var e=r(68)("iframe");var t=s.length;var n="<";var o=">";var i;e.style.display="none";r(102).appendChild(e);e.src="javascript:";i=e.contentWindow.document;i.open();i.write(n+"script"+o+"document.F=Object"+n+"/script"+o);i.close();createDict=i.F;while(t--)delete createDict[a][s[t]];return createDict()};e.exports=Object.create||function create(e,t){var r;if(e!==null){Empty[a]=n(e);r=new Empty;Empty[a]=null;r[i]=e}else r=createDict();return t===undefined?r:o(r,t)}},function(e,t,r){var n=r(50);var o=r(27);var s=r(132);e.exports=r(33)?Object.defineProperties:function defineProperties(e,t){o(e);var r=s(t);var i=r.length;var a=0;var c;while(i>a)n.f(e,c=r[a++],t[c]);return e}},function(e,t,r){var n=r(49);var o=r(133);var s=r(72)("IE_PROTO");var i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){e=o(e);if(n(e,s))return e[s];if(typeof e.constructor=="function"&&e instanceof e.constructor){return e.constructor.prototype}return e instanceof Object?i:null}},function(e,t,r){var n=r(49);var o=r(74);var s=r(182)(false);var i=r(72)("IE_PROTO");e.exports=function(e,t){var r=o(e);var a=0;var c=[];var u;for(u in r)if(u!=i)n(r,u)&&c.push(u);while(t.length>a)if(n(r,u=t[a++])){~s(c,u)||c.push(u)}return c}},function(e,t,r){var n=r(31);e.exports=function(e,t,r){for(var o in t){if(r&&e[o])e[o]=t[o];else n(e,o,t[o])}return e}},function(e,t,r){e.exports=r(31)},function(e,t,r){"use strict";var n=r(11);var o=r(23);var s=r(50);var i=r(33);var a=r(13)("species");e.exports=function(e){var t=typeof o[e]=="function"?o[e]:n[e];if(i&&t&&!t[a])s.f(t,a,{configurable:true,get:function(){return this}})}},function(e,t,r){var n=r(73);var o=r(67);e.exports=function(e){return function(t,r){var s=String(o(t));var i=n(r);var a=s.length;var c,u;if(i<0||i>=a)return e?"":undefined;c=s.charCodeAt(i);return c<55296||c>56319||i+1===a||(u=s.charCodeAt(i+1))<56320||u>57343?e?s.charAt(i):c:e?s.slice(i,i+2):(c-55296<<10)+(u-56320)+65536}}},function(e,t,r){var n=r(73);var o=Math.max;var s=Math.min;e.exports=function(e,t){e=n(e);return e<0?o(e+t,0):s(e,t)}},function(e,t,r){var n=r(34);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&typeof(r=e.toString)=="function"&&!n(o=r.call(e)))return o;if(typeof(r=e.valueOf)=="function"&&!n(o=r.call(e)))return o;if(!t&&typeof(r=e.toString)=="function"&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(11);var o=n.navigator;e.exports=o&&o.userAgent||""},function(e,t,r){var n=r(100);var o=r(13)("iterator");var s=r(35);e.exports=r(23).getIteratorMethod=function(e){if(e!=undefined)return e[o]||e["@@iterator"]||s[n(e)]}},function(e,t,r){"use strict";var n=r(180);var o=r(190);var s=r(35);var i=r(74);e.exports=r(103)(Array,"Array",(function(e,t){this._t=i(e);this._i=0;this._k=t}),(function(){var e=this._t;var t=this._k;var r=this._i++;if(!e||r>=e.length){this._t=undefined;return o(1)}if(t=="keys")return o(0,r);if(t=="values")return o(0,e[r]);return o(0,[r,e[r]])}),"values");s.Arguments=s.Array;n("keys");n("values");n("entries")},function(e,t){},function(e,t,r){"use strict";var n=r(69);var o=r(11);var s=r(48);var i=r(100);var a=r(41);var c=r(34);var u=r(46);var l=r(181);var p=r(183);var d=r(108);var h=r(109).set;var m=r(191)();var g=r(70);var v=r(104);var y=r(202);var b=r(105);var _="Promise";var E=o.TypeError;var w=o.process;var T=w&&w.versions;var k=T&&T.v8||"";var O=o[_];var S=i(w)=="process";var empty=function(){};var A,G,P,C;var x=G=g.f;var R=!!function(){try{var e=O.resolve(1);var t=(e.constructor={})[r(13)("species")]=function(e){e(empty,empty)};return(S||typeof PromiseRejectionEvent=="function")&&e.then(empty)instanceof t&&k.indexOf("6.6")!==0&&y.indexOf("Chrome/66")===-1}catch(e){}}();var isThenable=function(e){var t;return c(e)&&typeof(t=e.then)=="function"?t:false};var notify=function(e,t){if(e._n)return;e._n=true;var r=e._c;m((function(){var n=e._v;var o=e._s==1;var s=0;var run=function(t){var r=o?t.ok:t.fail;var s=t.resolve;var i=t.reject;var a=t.domain;var c,u,l;try{if(r){if(!o){if(e._h==2)onHandleUnhandled(e);e._h=1}if(r===true)c=n;else{if(a)a.enter();c=r(n);if(a){a.exit();l=true}}if(c===t.promise){i(E("Promise-chain cycle"))}else if(u=isThenable(c)){u.call(c,s,i)}else s(c)}else i(n)}catch(e){if(a&&!l)a.exit();i(e)}};while(r.length>s)run(r[s++]);e._c=[];e._n=false;if(t&&!e._h)onUnhandled(e)}))};var onUnhandled=function(e){h.call(o,(function(){var t=e._v;var r=isUnhandled(e);var n,s,i;if(r){n=v((function(){if(S){w.emit("unhandledRejection",t,e)}else if(s=o.onunhandledrejection){s({promise:e,reason:t})}else if((i=o.console)&&i.error){i.error("Unhandled promise rejection",t)}}));e._h=S||isUnhandled(e)?2:1}e._a=undefined;if(r&&n.e)throw n.v}))};var isUnhandled=function(e){return e._h!==1&&(e._a||e._c).length===0};var onHandleUnhandled=function(e){h.call(o,(function(){var t;if(S){w.emit("rejectionHandled",e)}else if(t=o.onrejectionhandled){t({promise:e,reason:e._v})}}))};var $reject=function(e){var t=this;if(t._d)return;t._d=true;t=t._w||t;t._v=e;t._s=2;if(!t._a)t._a=t._c.slice();notify(t,true)};var $resolve=function(e){var t=this;var r;if(t._d)return;t._d=true;t=t._w||t;try{if(t===e)throw E("Promise can't be resolved itself");if(r=isThenable(e)){m((function(){var n={_w:t,_d:false};try{r.call(e,s($resolve,n,1),s($reject,n,1))}catch(e){$reject.call(n,e)}}))}else{t._v=e;t._s=1;notify(t,false)}}catch(e){$reject.call({_w:t,_d:false},e)}};if(!R){O=function Promise(e){l(this,O,_,"_h");u(e);A.call(this);try{e(s($resolve,this,1),s($reject,this,1))}catch(e){$reject.call(this,e)}};A=function Promise(e){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};A.prototype=r(196)(O.prototype,{then:function then(e,t){var r=x(d(this,O));r.ok=typeof e=="function"?e:true;r.fail=typeof t=="function"&&t;r.domain=S?w.domain:undefined;this._c.push(r);if(this._a)this._a.push(r);if(this._s)notify(this,false);return r.promise},catch:function(e){return this.then(undefined,e)}});P=function(){var e=new A;this.promise=e;this.resolve=s($resolve,e,1);this.reject=s($reject,e,1)};g.f=x=function(e){return e===O||e===C?new P(e):G(e)}}a(a.G+a.W+a.F*!R,{Promise:O});r(71)(O,_);r(198)(_);C=r(23)[_];a(a.S+a.F*!R,_,{reject:function reject(e){var t=x(this);var r=t.reject;r(e);return t.promise}});a(a.S+a.F*(n||!R),_,{resolve:function resolve(e){return b(n&&this===C?O:this,e)}});a(a.S+a.F*!(R&&r(189)((function(e){O.all(e)["catch"](empty)}))),_,{all:function all(e){var t=this;var r=x(t);var n=r.resolve;var o=r.reject;var s=v((function(){var r=[];var s=0;var i=1;p(e,false,(function(e){var a=s++;var c=false;r.push(undefined);i++;t.resolve(e).then((function(e){if(c)return;c=true;r[a]=e;--i||n(r)}),o)}));--i||n(r)}));if(s.e)o(s.v);return r.promise},race:function race(e){var t=this;var r=x(t);var n=r.reject;var o=v((function(){p(e,false,(function(e){t.resolve(e).then(r.resolve,n)}))}));if(o.e)n(o.v);return r.promise}})},function(e,t,r){"use strict";var n=r(199)(true);r(103)(String,"String",(function(e){this._t=String(e);this._i=0}),(function(){var e=this._t;var t=this._i;var r;if(t>=e.length)return{value:undefined,done:true};r=n(e,t);this._i+=r.length;return{value:r,done:false}}))},function(e,t,r){"use strict";var n=r(41);var o=r(23);var s=r(11);var i=r(108);var a=r(105);n(n.P+n.R,"Promise",{finally:function(e){var t=i(this,o.Promise||s.Promise);var r=typeof e=="function";return this.then(r?function(r){return a(t,e()).then((function(){return r}))}:e,r?function(r){return a(t,e()).then((function(){throw r}))}:e)}})},function(e,t,r){"use strict";var n=r(41);var o=r(70);var s=r(104);n(n.S,"Promise",{try:function(e){var t=o.f(this);var r=s(e);(r.e?t.reject:t.resolve)(r.v);return t.promise}})},function(e,t,r){r(204);var n=r(11);var o=r(31);var s=r(35);var i=r(13)("toStringTag");var a=("CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,"+"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,"+"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,"+"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,"+"TextTrackList,TouchList").split(",");for(var c=0;c=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0;var s=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){if("%%"===e)return;o++;if("%c"===e){s=o}}));e.splice(s,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"){e.exports=r(211)}else{e.exports=r(213)}},function(e,t,r){var n=r(79);var o=r(2);t=e.exports=r(112);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{var s=r(239);if(s&&s.level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()}));var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var o=this.color;var s="[3"+(o<8?o:"8;5;"+o);var i=" "+s+";1m"+r+" "+"";e[0]=i+e[0].split("\n").join("\n"+i);e.push(s+"m+"+t.humanize(this.diff)+"")}else{e[0]=getDate()+r+" "+e[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}else{return(new Date).toISOString()+" "}}function log(){return process.stderr.write(o.format.apply(o,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n=e.length){if(t)t[i]=e;return r(null,e)}c.lastIndex=p;var n=c.exec(e);m=d;d+=n[0];h=m+n[1];p=c.lastIndex;if(l[h]||t&&t[h]===h){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,h)){return gotResolvedLink(t[h])}return s.lstat(h,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[h]=true;if(t)t[h]=h;return process.nextTick(LOOP)}if(!o){var i=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(i)){return gotTarget(null,a[i],h)}}s.stat(h,(function(e){if(e)return r(e);s.readlink(h,(function(e,t){if(!o)a[i]=t;gotTarget(e,t)}))}))}function gotTarget(e,o,s){if(e)return r(e);var i=n.resolve(m,o);if(t)t[s]=i;gotResolvedLink(i)}function gotResolvedLink(t){e=n.resolve(t,e.slice(p));start()}}},function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(3);var o=r(114);var s=r(60);var i=s.Minimatch;var a=r(75).Glob;var c=r(2);var u=r(0);var l=r(22);var p=r(76);var d=r(115);var h=d.alphasort;var m=d.alphasorti;var g=d.setopts;var v=d.ownProp;var y=d.childrenIgnored;var b=d.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);g(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return false;if(!this.stat&&v(this.cache,t)){var o=this.cache[t];if(Array.isArray(o))o="DIR";if(!r||o==="DIR")return o;if(r&&o==="FILE")return false}var s;var i=this.statCache[t];if(!i){var a;try{a=n.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(a&&a.isSymbolicLink()){try{i=n.statSync(t)}catch(e){i=a}}else{i=a}}this.statCache[t]=i;var o=true;if(i)o=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(r&&o==="FILE")return false;return o};GlobSync.prototype._mark=function(e){return d.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return d.makeAbs(this,e)}},,,function(e,t,r){"use strict";e.exports=function(e,t){t=t||process.argv;var r=t.indexOf("--");var n=/^--/.test(e)?"":"--";var o=t.indexOf(n+e);return o!==-1&&(r!==-1?or){t.splice(0,r);process.nextTick((function(){RES.apply(null,n)}))}else{delete o[e]}}}))}function slice(e){var t=e.length;var r=[];for(var n=0;n0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t){return}var a=parseFloat(t[1]);var c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=s){return Math.round(e/s)+"d"}if(e>=o){return Math.round(e/o)+"h"}if(e>=n){return Math.round(e/n)+"m"}if(e>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){return plural(e,s,"day")||plural(e,o,"hour")||plural(e,n,"minute")||plural(e,r,"second")||e+" ms"}function plural(e,t,r){if(e=2,has16m:e>=3}};var o=function(){if(n("no-color")||n("no-colors")||n("color=false")){return 0}if(n("color=16m")||n("color=full")||n("color=truecolor")){return 3}if(n("color=256")){return 2}if(n("color")||n("colors")||n("color=true")||n("color=always")){return 1}if(process.stdout&&!process.stdout.isTTY){return 0}if(process.platform==="win32"){return 1}if("CI"in process.env){if("TRAVIS"in process.env||process.env.CI==="Travis"){return 1}return 0}if("TEAMCITY_VERSION"in process.env){return process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1}if(/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)){return 2}if(/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)){return 1}if("COLORTERM"in process.env){return 1}if(process.env.TERM==="dumb"){return 0}return 0}();if(o===0&&"FORCE_COLOR"in process.env){o=1}e.exports=process&&support(o)}])},2889:(e,t,r)=>{var n=r(8497);var o=r(6272);var s=r(9934);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(s,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var s=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(o,null).apply(null,s)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},6272:e=>{e.exports=addHook;function addHook(e,t,r,n){var o=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(o.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return o(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return o(e,t)}))}}e.registry[r].push({hook:n,orig:o})}},8497:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},9934:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},9035:function(e){(function(t,r){if(typeof define==="function"&&define.amd){define([],r)}else if(true){e.exports=r()}else{}})(this,(function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function indexOrEnd(e,t){return e.indexOf(t)===-1?e.length:e.indexOf(t)}function split(e){var t=e.replace(/^v/,"").replace(/\+.*$/,"");var r=indexOrEnd(t,"-");var n=t.substring(0,r).split(".");n.push(t.substring(r+1));return n}function tryParse(e){return isNaN(Number(e))?e:Number(e)}function validate(t){if(typeof t!=="string"){throw new TypeError("Invalid argument expected string")}if(!e.test(t)){throw new Error("Invalid argument not valid semver ('"+t+"' received)")}}function compareVersions(e,t){[e,t].forEach(validate);var r=split(e);var n=split(t);for(var o=0;oi)return 1;if(i>s)return-1}var a=r[r.length-1];var c=n[n.length-1];if(a&&c){var u=a.split(".").map(tryParse);var l=c.split(".").map(tryParse);for(o=0;ol[o])return 1;if(l[o]>u[o])return-1}}else if(a||c){return a?-1:1}return 0}var t=[">",">=","=","<","<="];var r={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};function validateOperator(e){if(typeof e!=="string"){throw new TypeError("Invalid operator type, expected string but got "+typeof e)}if(t.indexOf(e)===-1){throw new TypeError("Invalid operator, expected one of "+t.join("|"))}}compareVersions.validate=function(t){return typeof t==="string"&&e.test(t)};compareVersions.compare=function(e,t,n){validateOperator(n);var o=compareVersions(e,t);return r[n].indexOf(o)>-1};return compareVersions}))},6891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},3852:(e,t,r)=>{"use strict";r.r(t);r.d(t,{markdownTable:()=>markdownTable});var n=r(6458);function markdownTable(e,t){var r=t||{};var s=(r.align||[]).concat();var o=r.stringLength||defaultStringLength;var i=[];var a=-1;var c=[];var u=[];var l=[];var p=0;var d;var h;var m;var g;var v;var y;var b;var _;var E;var w;while(++ap){p=e[a].length}while(++dl[d]){l[d]=g}}h.push(v)}c[a]=h;u[a]=m}d=-1;if(typeof s==="object"&&"length"in s){while(++dl[d]){l[d]=g}m[d]=g}h[d]=v}c.splice(1,0,h);u.splice(1,0,m);a=-1;y=[];while(++a{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2413));var s=_interopDefault(r(8605));var o=_interopDefault(r(8835));var i=_interopDefault(r(7211));var a=_interopDefault(r(8761));const c=n.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const s=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},s=r.size;let o=s===undefined?0:s;var i=r.timeout;let a=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n);else{e=Buffer.from(String(e))}this[d]={body:e,disturbed:false,error:null};this.size=o;this.timeout=a;if(e instanceof n){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[d].error=r}))}}Body.prototype={get body(){return this[d].body},get bodyUsed(){return this[d].disturbed},arrayBuffer(){return consumeBody.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 consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[d].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[d].disturbed=true;if(this[d].error){return Body.Promise.reject(this[d].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let s=0;let o=false;return new Body.Promise((function(n,i){let a;if(e.timeout){a=setTimeout((function(){o=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){o=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(o||t===null){return}if(e.size&&s+t.length>e.size){o=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=t.length;r.push(t)}));t.on("end",(function(){if(o){return}clearTimeout(a);try{n(Buffer.concat(r,s))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let s,o;if(r){s=/charset=([^;]*)/i.exec(r)}o=e.slice(0,1024).toString();if(!s&&o){s=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[v]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){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)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[v],e);if(t===undefined){return null}return this[v][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[v]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[v][t].join(", ")}:function(t){return[t.toLowerCase(),e[v][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(b);r[y]={target:e,kind:t,index:0};return r}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,r=e.kind,n=e.index;const s=getHeaders(t,r);const o=s.length;if(n>=o){return{value:undefined,done:true}}this[y].index=n+1;return{value:s[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[v]);const r=find(e[v],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(g.test(n)){continue}if(t[v][r]===undefined){t[v][r]=[n]}else{t[v][r].push(n)}}}else if(!g.test(e[r])){t[v][r]=[e[r]]}}return t}const _=Symbol("Response internals");const E=s.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[_]={url:t.url,status:r,statusText:t.statusText||E[r],headers:n,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const w=Symbol("Request internals");const T=o.parse;const k=o.format;const O="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[w]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=T(e.href)}else{r=T(`${e}`)}e={}}else{r=T(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let s=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,s,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(s!=null&&!o.has("Content-Type")){const e=extractContentType(s);if(e){o.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[w]={method:n,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[w].method}get url(){return k(this[w].parsedURL)}get headers(){return this[w].headers}get redirect(){return this[w].redirect}get signal(){return this[w].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[w].parsedURL;const r=new Headers(e[w].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!O){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let s=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){s="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){s=String(t)}}if(s){r.set("Content-Length",s)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!r.has("Connection")&&!o){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const S=n.PassThrough;const G=o.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,o){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?i:s).request;const p=c.signal;let d=null;const h=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof n.Readable){c.body.destroy(e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){h();return}const m=function abortAndFinalize(){h();finalize()};const g=l(u);let v;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(v)}if(c.timeout){g.once("socket",(function(e){v=setTimeout((function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()}),c.timeout)}))}g.on("error",(function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()}));g.on("response",(function(e){clearTimeout(v);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const s=n===null?null:G(c.url,n);switch(c.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{t.set("Location",s)}catch(e){o(e)}}break;case"follow":if(s===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(s,n)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",m)}));let n=e.pipe(new S);const s={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const i=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){d=new Response(n,s);r(d);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){n=n.pipe(a.createGunzip(u));d=new Response(n,s);r(d);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new S);t.once("data",(function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}d=new Response(n,s);r(d)}));return}if(i=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());d=new Response(n,s);r(d);return}d=new Response(n,s);r(d)}));writeToStream(g,c)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},54:(e,t,r)=>{var n=r(5488);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},6458:e=>{"use strict"; + */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},9990:function(e){(function(t,r){true?e.exports=r():0})(typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this,(function(){"use strict";const e="3.6.0";const t=e;const r=typeof atob==="function";const n=typeof btoa==="function";const o=typeof Buffer==="function";const s=typeof TextDecoder==="function"?new TextDecoder:undefined;const i=typeof TextEncoder==="function"?new TextEncoder:undefined;const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";const c=[...a];const u=(e=>{let t={};e.forEach(((e,r)=>t[e]=r));return t})(c);const l=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;const p=String.fromCharCode.bind(String);const d=typeof Uint8Array.from==="function"?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t));const _mkUriSafe=e=>e.replace(/[+\/]/g,(e=>e=="+"?"-":"_")).replace(/=+$/m,"");const _tidyB64=e=>e.replace(/[^A-Za-z0-9\+\/]/g,"");const btoaPolyfill=e=>{let t,r,n,o,s="";const i=e.length%3;for(let i=0;i255||(n=e.charCodeAt(i++))>255||(o=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o;s+=c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[t&63]}return i?s.slice(0,i-3)+"===".substring(i):s};const h=n?e=>btoa(e):o?e=>Buffer.from(e,"binary").toString("base64"):btoaPolyfill;const m=o?e=>Buffer.from(e).toString("base64"):e=>{const t=4096;let r=[];for(let n=0,o=e.length;nt?_mkUriSafe(m(e)):m(e);const cb_utob=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?p(192|t>>>6)+p(128|t&63):p(224|t>>>12&15)+p(128|t>>>6&63)+p(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return p(240|t>>>18&7)+p(128|t>>>12&63)+p(128|t>>>6&63)+p(128|t&63)}};const g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;const utob=e=>e.replace(g,cb_utob);const v=o?e=>Buffer.from(e,"utf8").toString("base64"):i?e=>m(i.encode(e)):e=>h(utob(e));const encode=(e,t=false)=>t?_mkUriSafe(v(e)):v(e);const encodeURI=e=>encode(e,true);const y=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;const cb_btou=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return p((r>>>10)+55296)+p((r&1023)+56320);case 3:return p((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return p((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}};const btou=e=>e.replace(y,cb_btou);const atobPolyfill=e=>{e=e.replace(/\s+/g,"");if(!l.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,o;for(let s=0;s>16&255):o===64?p(t>>16&255,t>>8&255):p(t>>16&255,t>>8&255,t&255)}return r};const b=r?e=>atob(_tidyB64(e)):o?e=>Buffer.from(e,"base64").toString("binary"):atobPolyfill;const _=o?e=>d(Buffer.from(e,"base64")):e=>d(b(e),(e=>e.charCodeAt(0)));const toUint8Array=e=>_(_unURI(e));const E=o?e=>Buffer.from(e,"base64").toString("utf8"):s?e=>s.decode(_(e)):e=>btou(b(e));const _unURI=e=>_tidyB64(e.replace(/[-_]/g,(e=>e=="-"?"+":"/")));const decode=e=>E(_unURI(e));const isValid=e=>{if(typeof e!=="string")return false;const t=e.replace(/\s+/g,"").replace(/=+$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)};const _noEnum=e=>({value:e,enumerable:false,writable:true,configurable:true});const extendString=function(){const _add=(e,t)=>Object.defineProperty(String.prototype,e,_noEnum(t));_add("fromBase64",(function(){return decode(this)}));_add("toBase64",(function(e){return encode(this,e)}));_add("toBase64URI",(function(){return encode(this,true)}));_add("toBase64URL",(function(){return encode(this,true)}));_add("toUint8Array",(function(){return toUint8Array(this)}))};const extendUint8Array=function(){const _add=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,_noEnum(t));_add("toBase64",(function(e){return fromUint8Array(this,e)}));_add("toBase64URI",(function(){return fromUint8Array(this,true)}));_add("toBase64URL",(function(){return fromUint8Array(this,true)}))};const extendBuiltins=()=>{extendString();extendUint8Array()};const w={version:e,VERSION:t,atob:b,atobPolyfill:atobPolyfill,btoa:h,btoaPolyfill:btoaPolyfill,fromBase64:decode,toBase64:encode,encode:encode,encodeURI:encodeURI,encodeURL:encodeURI,utob:utob,btou:btou,decode:decode,isValid:isValid,fromUint8Array:fromUint8Array,toUint8Array:toUint8Array,extendString:extendString,extendUint8Array:extendUint8Array,extendBuiltins:extendBuiltins};w.Base64={};Object.keys(w).forEach((e=>w.Base64[e]=w[e]));return w}))},3852:(e,t,r)=>{"use strict";r.r(t);r.d(t,{markdownTable:()=>markdownTable});var n=r(6458);function markdownTable(e,t){var r=t||{};var o=(r.align||[]).concat();var s=r.stringLength||defaultStringLength;var i=[];var a=-1;var c=[];var u=[];var l=[];var p=0;var d;var h;var m;var g;var v;var y;var b;var _;var E;var w;while(++ap){p=e[a].length}while(++dl[d]){l[d]=g}}h.push(v)}c[a]=h;u[a]=m}d=-1;if(typeof o==="object"&&"length"in o){while(++dl[d]){l[d]=g}m[d]=g}h[d]=v}c.splice(1,0,h);u.splice(1,0,m);a=-1;y=[];while(++a{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2413));var o=_interopDefault(r(8605));var s=_interopDefault(r(8835));var i=_interopDefault(r(7211));var a=_interopDefault(r(8761));const c=n.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const o=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},o=r.size;let s=o===undefined?0:o;var i=r.timeout;let a=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n);else{e=Buffer.from(String(e))}this[d]={body:e,disturbed:false,error:null};this.size=s;this.timeout=a;if(e instanceof n){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[d].error=r}))}}Body.prototype={get body(){return this[d].body},get bodyUsed(){return this[d].disturbed},arrayBuffer(){return consumeBody.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 consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[d].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[d].disturbed=true;if(this[d].error){return Body.Promise.reject(this[d].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let o=0;let s=false;return new Body.Promise((function(n,i){let a;if(e.timeout){a=setTimeout((function(){s=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){s=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(s||t===null){return}if(e.size&&o+t.length>e.size){s=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}o+=t.length;r.push(t)}));t.on("end",(function(){if(s){return}clearTimeout(a);try{n(Buffer.concat(r,o))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let o,s;if(r){o=/charset=([^;]*)/i.exec(r)}s=e.slice(0,1024).toString();if(!o&&s){o=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[v]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){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)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[v],e);if(t===undefined){return null}return this[v][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[v]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[v][t].join(", ")}:function(t){return[t.toLowerCase(),e[v][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(b);r[y]={target:e,kind:t,index:0};return r}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,r=e.kind,n=e.index;const o=getHeaders(t,r);const s=o.length;if(n>=s){return{value:undefined,done:true}}this[y].index=n+1;return{value:o[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[v]);const r=find(e[v],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(g.test(n)){continue}if(t[v][r]===undefined){t[v][r]=[n]}else{t[v][r].push(n)}}}else if(!g.test(e[r])){t[v][r]=[e[r]]}}return t}const _=Symbol("Response internals");const E=o.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[_]={url:t.url,status:r,statusText:t.statusText||E[r],headers:n,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const w=Symbol("Request internals");const T=s.parse;const k=s.format;const O="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[w]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=T(e.href)}else{r=T(`${e}`)}e={}}else{r=T(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let o=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,o,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const s=new Headers(t.headers||e.headers||{});if(o!=null&&!s.has("Content-Type")){const e=extractContentType(o);if(e){s.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[w]={method:n,redirect:t.redirect||e.redirect||"follow",headers:s,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[w].method}get url(){return k(this[w].parsedURL)}get headers(){return this[w].headers}get redirect(){return this[w].redirect}get signal(){return this[w].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[w].parsedURL;const r=new Headers(e[w].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!O){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let o=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){o="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){o=String(t)}}if(o){r.set("Content-Length",o)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let s=e.agent;if(typeof s==="function"){s=s(t)}if(!r.has("Connection")&&!s){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:s})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const S=n.PassThrough;const A=s.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,s){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?i:o).request;const p=c.signal;let d=null;const h=function abort(){let e=new AbortError("The user aborted a request.");s(e);if(c.body&&c.body instanceof n.Readable){c.body.destroy(e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){h();return}const m=function abortAndFinalize(){h();finalize()};const g=l(u);let v;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(v)}if(c.timeout){g.once("socket",(function(e){v=setTimeout((function(){s(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()}),c.timeout)}))}g.on("error",(function(e){s(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()}));g.on("response",(function(e){clearTimeout(v);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const o=n===null?null:A(c.url,n);switch(c.redirect){case"error":s(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(o!==null){try{t.set("Location",o)}catch(e){s(e)}}break;case"follow":if(o===null){break}if(c.counter>=c.follow){s(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){s(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(o,n)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",m)}));let n=e.pipe(new S);const o={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const i=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){d=new Response(n,o);r(d);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){n=n.pipe(a.createGunzip(u));d=new Response(n,o);r(d);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new S);t.once("data",(function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}d=new Response(n,o);r(d)}));return}if(i=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());d=new Response(n,o);r(d);return}d=new Response(n,o);r(d)}));writeToStream(g,c)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},54:(e,t,r)=>{var n=r(5488);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},6458:e=>{"use strict"; /*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. - */var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var s=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=s){return t.substr(0,s)}while(s>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,s);return t}},2083:(e,t,r)=>{e.exports=r(8203)},8203:(e,t,r)=>{"use strict";var n=r(1631);var s=r(4016);var o=r(8605);var i=r(7211);var a=r(8614);var c=r(2357);var u=r(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();l("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(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},5488:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{module.exports=eval("require")("encoding")},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},6417:e=>{"use strict";e.exports=require("crypto")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return r.exports}(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const e=__nccwpck_require__(7090);const t=__nccwpck_require__(6993);const r=__nccwpck_require__(4705);const n=__nccwpck_require__(9035);const s=__nccwpck_require__(5747);const{markdownTable:o}=__nccwpck_require__(3852);const i=__nccwpck_require__(7374);const a=__nccwpck_require__(5622);const c="https://raw.githubusercontent.com";const u=`${c}/Simek/yarn-lock-changes/main/assets`;const getStatusLabel=e=>`[${e.toUpperCase()}](#)`;const formatNameAndVersion=e=>Object.fromEntries(Object.keys(e.object).map((t=>{const r=t.split("@");const n=r[0]===""?"@"+r[1]:r[0];return[n,{name:n,version:e.object[t].version}]})));const diffLocks=(e,t)=>{const r={};const s=formatNameAndVersion(e);const o=formatNameAndVersion(t);Object.keys(s).forEach((e=>{r[e]={previous:s[e].version,current:"-",status:getStatusLabel("removed")}}));Object.keys(o).forEach((e=>{if(!r[e]){r[e]={previous:"-",current:o[e].version,status:getStatusLabel("added")}}else{if(r[e].previous===o[e].version){delete r[e]}else{r[e].current=o[e].version;if(n(r[e].previous,r[e].current)===1){r[e].status=getStatusLabel("downgraded")}else{r[e].status=getStatusLabel("updated")}}}}));return r};const createTable=e=>o([["Name","Status","Previous","Current"],...Object.entries(e).map((([e,{status:t,previous:r,current:n}])=>["`"+e+"`",t,r,n])).sort(((e,t)=>e[0].localeCompare(t[0])))],{align:["l","c","c","c"],alignDelimiters:false});const run=async()=>{try{const n=t.getOctokit(e.getInput("token"));const o=e.getInput("path");const{owner:u,repo:l,number:p}=t.context.issue;const{default_branch:d,temp_clone_token:h}=t.context.payload.repository;if(!p){throw new Error("Cannot find the PR!")}const m=a.resolve(process.cwd(),o);if(!s.existsSync(m)){throw new Error(`${m} does not exist!`)}const g=await s.readFileSync(m,{encoding:"utf8"});const v=r.parse(g);const y=await i(`${c}/${u}/${l}/${d}/${o}?token=${h}`);if(!y){throw new Error("Cannot fetch current lock file!")}const b=r.parse(await y.text());const _=diffLocks(b,v);if(Object.keys(_).length){const e=createTable(_);await n.issues.createComment({owner:u,repo:l,issue_number:p,body:"## `yarn.lock` changes"+"\n"+e})}}catch(t){e.setFailed(t.message)}};run()})();module.exports=__webpack_exports__})(); \ No newline at end of file + */var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var o=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=o){return t.substr(0,o)}while(o>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,o);return t}},2083:(e,t,r)=>{e.exports=r(8203)},8203:(e,t,r)=>{"use strict";var n=r(1631);var o=r(4016);var s=r(8605);var i=r(7211);var a=r(8614);var c=r(2357);var u=r(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,o){var s=toOptions(r,n,o);for(var i=0,a=t.requests.length;i=this.maxSockets){o.requests.push(s);return}o.createSocket(s,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){o.emit("free",t,s)}function onCloseOrRemove(e){o.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var o=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){o.localAddress=e.localAddress}if(o.proxyAuth){o.headers=o.headers||{};o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")}l("making CONNECT request");var s=r.request(o);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(o,i,a){s.removeAllListeners();i.removeAllListeners();if(o.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",o.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+o.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){s.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, "+"cause="+t.message);o.code="ECONNRESET";e.request.emit("error",o);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var s=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=o.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},5488:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{module.exports=eval("require")("encoding")},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},6417:e=>{"use strict";e.exports=require("crypto")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return r.exports}(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const e=__nccwpck_require__(7090);const t=__nccwpck_require__(6993);const r=__nccwpck_require__(4705);const n=__nccwpck_require__(9035);const o=__nccwpck_require__(5747);const{Base64:s}=__nccwpck_require__(9990);const{markdownTable:i}=__nccwpck_require__(3852);const a=__nccwpck_require__(5622);const c="https://raw.githubusercontent.com";const u=`${c}/Simek/yarn-lock-changes/main/assets`;const getStatusLabel=e=>`[${e.toUpperCase()}](#)`;const formatNameAndVersion=e=>Object.fromEntries(Object.keys(e.object).map((t=>{const r=t.split("@");const n=r[0]===""?"@"+r[1]:r[0];return[n,{name:n,version:e.object[t].version}]})));const diffLocks=(e,t)=>{const r={};const o=formatNameAndVersion(e);const s=formatNameAndVersion(t);Object.keys(o).forEach((e=>{r[e]={previous:o[e].version,current:"-",status:getStatusLabel("removed")}}));Object.keys(s).forEach((e=>{if(!r[e]){r[e]={previous:"-",current:s[e].version,status:getStatusLabel("added")}}else{if(r[e].previous===s[e].version){delete r[e]}else{r[e].current=s[e].version;if(n(r[e].previous,r[e].current)===1){r[e].status=getStatusLabel("downgraded")}else{r[e].status=getStatusLabel("updated")}}}}));return r};const createTable=e=>i([["Name","Status","Previous","Current"],...Object.entries(e).map((([e,{status:t,previous:r,current:n}])=>["`"+e+"`",t,r,n])).sort(((e,t)=>e[0].localeCompare(t[0])))],{align:["l","c","c","c"],alignDelimiters:false});const run=async()=>{try{const n=t.getOctokit(e.getInput("token"));const i=e.getInput("path");const{owner:c,repo:u,number:l}=t.context.issue;if(!l){throw new Error("Cannot find the PR!")}const p=a.resolve(process.cwd(),i);if(!o.existsSync(p)){throw new Error(`${p} does not exist!`)}const d=await o.readFileSync(p,{encoding:"utf8"});const h=r.parse(d);const m=await n.request("GET /repos/{owner}/{repo}/contents/{path}",{owner:c,repo:u,path:i});const g=r.parse(s.decode(m.data.content));const v=diffLocks(g,h);if(Object.keys(v).length){const e=createTable(v);await n.issues.createComment({owner:c,repo:u,issue_number:l,body:"## `yarn.lock` changes"+"\n"+e})}}catch(t){e.setFailed(t.message)}};run()})();module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/package.json b/package.json index 8233df1..0a7e339 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "@actions/github": "^4.0.0", "@yarnpkg/lockfile": "^1.1.0", "compare-versions": "^3.6.0", - "markdown-table": "^3.0.0", - "node-fetch": "^2.6.1" + "js-base64": "^3.6.0", + "markdown-table": "^3.0.0" }, "devDependencies": { "eslint": "^7.25.0", diff --git a/yarn.lock b/yarn.lock index ae4d5c5..adc75e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -701,6 +701,11 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= +js-base64@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.6.0.tgz#773e1de628f4f298d65a7e9842c50244751f5756" + integrity sha512-wVdUBYQeY2gY73RIlPrysvpYx+2vheGo8Y1SNQv/BzHToWpAZzJU7Z6uheKMAe+GLSBig5/Ps2nxg/8tRB73xg== + js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"