diff --git a/README.md b/README.md index a426b56..b93b495 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,25 @@ Install pnpm package manager. ### `version` -**Required** Version of pnpm to install. +Can either specifiy a specific version of pnpm to install (e.g. "6.14.6") or can +specifiy a version range (in the [semver range +format](https://github.com/npm/node-semver#ranges)). The latest version to +match the range is used and if the input version is not specified, the latest +overall version is used. Version ranges are only supported for versions +starting at 6.13.0 and higher, because that is the first version of pnpm to be +published to github releases. ### `dest` -**Optional** Where to store pnpm files. +This option is obsolete. It is only used when a specific version of pnpm which +is 6.12 or lower is specified. For these old versions of pnpm, the `dest` input +is where to store pnpm files. ### `run_install` -**Optional** (_default:_ `null`) If specified, run `pnpm install`. +If specified, run `pnpm install`. -If `run_install` is either `null` or `false`, pnpm will not install any npm package. +If `run_install` is either `null` (the default) or `false`, pnpm will not install any npm package. If `run_install` is `true`, pnpm will install dependencies recursively. @@ -24,99 +32,99 @@ If `run_install` is a YAML string representation of either an object or an array #### `run_install.recursive` -**Optional** (_type:_ `boolean`, _default:_ `false`) Whether to use `pnpm recursive install`. +(_type:_ `boolean`, _default:_ `false`) Whether to use `pnpm recursive install`. #### `run_install.cwd` -**Optional** (_type:_ `string`) Working directory when run `pnpm [recursive] install`. +(_type:_ `string`) Working directory when run `pnpm [recursive] install`. #### `run_install.args` -**Optional** (_type:_ `string[]`) Additional arguments after `pnpm [recursive] install`, e.g. `[--frozen-lockfile, --strict-peer-dependencies]`. +(_type:_ `string[]`) Additional arguments after `pnpm [recursive] install`, e.g. `[--frozen-lockfile, --strict-peer-dependencies]`. ## Outputs -### `dest` +### `bin_dest` -Expanded path of inputs#dest. +Folder containing the `pnpm` executable. -### `bin_dest` +### `dest` -Location of `pnpm` and `pnpx` command. +Expanded path of inputs#dest, only set if a version before "6.14.6" is specified. ## Usage example -### Just install pnpm +### Install latest pnpm and cache store + +The following yaml will first install the latest version of pnpm, install node, +and setup caching of the pnpm store. +[actions/setup-node](https://github.com/actions/setup-node) has support for +caching the pnpm store, as long as pnpm is installed first. ```yaml -on: - - push - - pull_request +steps: + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2.0.1 + - uses: actions/setup-node@v2 + with: + node-version: "16" + cache: "pnpm" + + - run: pnpm install --frozen-lockfile -jobs: - runs-on: ubuntu-latest + # more build/run commands ... - steps: - - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.0.2 + - run: pnpm store prune ``` -### Install pnpm and a few npm packages +### Install specific range of pnpm ```yaml -on: - - push - - pull_request - -jobs: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.0.2 - run_install: | - - recursive: true - args: [--frozen-lockfile, --strict-peer-dependencies] - - args: [--global, gulp, prettier, typescript] -``` +steps: + - uses: actions/checkout@v2 -### Use cache to reduce installation time + - uses: pnpm/action-setup@v2.0.1 + with: + version: "^6.14.6" -```yaml -on: - - push - - pull_request - -jobs: - runs-on: ubuntu-latest - - steps: - build: - - uses: actions/checkout@v2 - - - name: Cache pnpm modules - uses: actions/cache@v2 - with: - path: ~/.pnpm-store - key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}- - - - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.0.2 - run_install: true + - uses: actions/setup-node@v2 + with: + node-version: "16" + cache: "pnpm" + + - run: pnpm install --frozen-lockfile + + # more build/run commands ... + + - run: pnpm store prune ``` -**Note:** You don't need to run `pnpm store prune` at the end; post-action has already taken care of that. +### Install pnpm and a few npm packages -## Notes +Unfortunately, using `run_install` does not work together with the caching +in `actions/setup-node`. The caching in `actions/setup-node` requires pnpm +to be installed before node, while the `run_install` option +requires node to be installed first. In this situation, you will need to setup +the caching yourself. -This action does not setup Node.js for you, use [actions/setup-node](https://github.com/actions/setup-node) yourself. +```yaml +steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 + with: + node-version: "16" + + - uses: pnpm/action-setup@v2.0.1 + with: + version: "6.*" + run_install: | + - recursive: true + args: [--frozen-lockfile, --strict-peer-dependencies] + - args: [--global, gulp, prettier, typescript] + + # Setup caching here using actions/cache +``` ## License diff --git a/action.yml b/action.yml index cbb4c7e..ff9f4dc 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,8 @@ branding: inputs: version: description: Version of PNPM to install - required: true + required: false + default: '' dest: description: Where to store PNPM files required: false @@ -14,8 +15,7 @@ inputs: run_install: description: If specified, run `pnpm install` required: false - default: 'null' + default: '' runs: using: node12 main: dist/index.js - post: dist/index.js diff --git a/dist/index.js b/dist/index.js index 347c662..63e041a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -module.exports=(()=>{var __webpack_modules__={2492:e=>{"use strict";e.exports=JSON.parse('{"anyOf":[{"$ref":"#/definitions/RunInstall"},{"type":"array","items":{"$ref":"#/definitions/RunInstall"}},{"type":["null","boolean"]}],"definitions":{"RunInstall":{"type":"object","properties":{"recursive":{"type":"boolean"},"cwd":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}}}},"$schema":"http://json-schema.org/draft-07/schema#"}')},6011:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});const s=r(6832);const l=f(r(8527));const c=f(r(3406));const i=f(r(9282));const v=f(r(6866));const p=f(r(2726));async function main(){const e=l.default();const n=s.getState("is_post");if(n==="true")return p.default(e);s.saveState("is_post","true");await i.default(e);console.log("Installation Completed!");c.default(e);v.default(e)}main().catch(e=>{console.error(e);s.setFailed(e)})},8527:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.getInputs=void 0;const s=r(6832);const l=f(r(4010));const c=r(986);const i={required:true};const v=e=>l.default(s.getInput(e,i));const p=()=>({version:s.getInput("version",i),dest:v("dest"),runInstall:c.parseRunInstall("run_install")});n.getInputs=p;n.default=n.getInputs},986:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.parseRunInstall=void 0;const s=f(r(1765));const l=r(9520);const c=f(r(8469));const i=r(6832);const v=f(r(2492));const p={required:true};function parseRunInstall(e){const n=l.load(i.getInput(e,p));const r=new c.default({allErrors:true});const f=r.compile(v.default);if(!f(n)){for(const e of f.errors){i.error(`with.run_install${e.dataPath}: ${e.message}`)}return s.default.exit(1)}if(!n)return[];if(n===true)return[{recursive:true}];if(Array.isArray(n))return n;return[n]}n.parseRunInstall=parseRunInstall},9282:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.install=n.runSelfInstaller=void 0;const s=r(6832);const l=f(r(7388));n.runSelfInstaller=l.default;async function install(e){s.startGroup("Running self-installer...");const n=await l.default(e);s.endGroup();if(n){return s.setFailed(`Something does wrong, self-installer exits with code ${n}`)}}n.install=install;n.default=install},7388:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.runSelfInstaller=void 0;const s=r(3129);const l=r(1765);const c=r(5622);const i=r(4240);const v=f(r(2192));async function runSelfInstaller(e){const{version:n,dest:r}=e;const f=n?`pnpm@${n}`:"pnpm";const p=c.join(r,"package.json");await i.remove(r);await i.ensureFile(p);await i.writeFile(p,JSON.stringify({private:true}));const d=s.spawn(l.execPath,["-","install",f,"--no-lockfile"],{cwd:r,stdio:["pipe","inherit","inherit"]});const a=await v.default("https://pnpm.js.org/pnpm.js");a.body.pipe(d.stdin);return new Promise((e,n)=>{d.on("error",n);d.on("close",e)})}n.runSelfInstaller=runSelfInstaller;n.default=runSelfInstaller},3406:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.setOutputs=void 0;const f=r(6832);const s=r(1630);function setOutputs(e){const n=s.getBinDest(e);f.addPath(n);f.setOutput("dest",e.dest);f.setOutput("bin_dest",n)}n.setOutputs=setOutputs;n.default=setOutputs},6866:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.runPnpmInstall=void 0;const f=r(3129);const s=r(6832);const l=r(1630);function runPnpmInstall(e){const n=l.patchPnpmEnv(e);for(const r of e.runInstall){const e=["install"];if(r.recursive)e.unshift("recursive");if(r.args)e.push(...r.args);const l=["pnpm",...e].join(" ");s.startGroup(`Running ${l}...`);const{error:c,status:i}=f.spawnSync("pnpm",e,{stdio:"inherit",cwd:r.cwd,shell:true,env:n});s.endGroup();if(c){s.setFailed(c);continue}if(i){s.setFailed(`Command ${l} (cwd: ${r.cwd}) exits with status ${i}`);continue}}}n.runPnpmInstall=runPnpmInstall;n.default=runPnpmInstall},2726:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.pruneStore=void 0;const f=r(3129);const s=r(6832);const l=r(1630);function pruneStore(e){if(e.runInstall.length===0){console.log("Pruning is unnecessary.");return}s.startGroup("Running pnpm store prune...");const{error:n,status:r}=f.spawnSync("pnpm",["store","prune"],{stdio:"inherit",shell:true,env:l.patchPnpmEnv(e)});s.endGroup();if(n){s.warning(n);return}if(r){s.warning(`command pnpm store prune exits with code ${r}`);return}}n.pruneStore=pruneStore;n.default=pruneStore},1630:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.patchPnpmEnv=n.getBinDest=void 0;const s=f(r(1765));const l=f(r(5622));const c=e=>l.default.join(e.dest,"node_modules",".bin");n.getBinDest=c;const i=e=>({...s.default.env,PATH:n.getBinDest(e)+l.default.delimiter+s.default.env.PATH});n.patchPnpmEnv=i},8362:function(e,n,r){"use strict";var f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n[r]=e[r];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const s=f(r(2087));const l=r(9017);function issueCommand(e,n,r){const f=new Command(e,n,r);process.stdout.write(f.toString()+s.EOL)}n.issueCommand=issueCommand;function issue(e,n=""){issueCommand(e,{},n)}n.issue=issue;const c="::";class Command{constructor(e,n,r){if(!e){e="missing.command"}this.command=e;this.properties=n;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const f=this.properties[r];if(f){if(n){n=false}else{e+=","}e+=`${r}=${escapeProperty(f)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return l.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return l.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},6832:function(e,n,r){"use strict";var f=this&&this.__awaiter||function(e,n,r,f){function adopt(e){return e instanceof r?e:new r(function(n){n(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(f.next(e))}catch(e){s(e)}}function rejected(e){try{step(f["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((f=f.apply(e,n||[])).next())})};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n[r]=e[r];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const l=r(8362);const c=r(7531);const i=r(9017);const v=s(r(2087));const p=s(r(5622));var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=n.ExitCode||(n.ExitCode={}));function exportVariable(e,n){const r=i.toCommandValue(n);process.env[e]=r;const f=process.env["GITHUB_ENV"]||"";if(f){const n="_GitHubActionsFileCommandDelimeter_";const f=`${e}<<${n}${v.EOL}${r}${v.EOL}${n}`;c.issueCommand("ENV",f)}else{l.issueCommand("set-env",{name:e},r)}}n.exportVariable=exportVariable;function setSecret(e){l.issueCommand("add-mask",{},e)}n.setSecret=setSecret;function addPath(e){const n=process.env["GITHUB_PATH"]||"";if(n){c.issueCommand("PATH",e)}else{l.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${p.delimiter}${process.env["PATH"]}`}n.addPath=addPath;function getInput(e,n){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}n.getInput=getInput;function setOutput(e,n){l.issueCommand("set-output",{name:e},n)}n.setOutput=setOutput;function setCommandEcho(e){l.issue("echo",e?"on":"off")}n.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}n.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}n.isDebug=isDebug;function debug(e){l.issueCommand("debug",{},e)}n.debug=debug;function error(e){l.issue("error",e instanceof Error?e.toString():e)}n.error=error;function warning(e){l.issue("warning",e instanceof Error?e.toString():e)}n.warning=warning;function info(e){process.stdout.write(e+v.EOL)}n.info=info;function startGroup(e){l.issue("group",e)}n.startGroup=startGroup;function endGroup(){l.issue("endgroup")}n.endGroup=endGroup;function group(e,n){return f(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield n()}finally{endGroup()}return r})}n.group=group;function saveState(e,n){l.issueCommand("save-state",{name:e},n)}n.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}n.getState=getState},7531:function(e,n,r){"use strict";var f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n[r]=e[r];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const s=f(r(5747));const l=f(r(2087));const c=r(9017);function issueCommand(e,n){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,`${c.toCommandValue(n)}${l.EOL}`,{encoding:"utf8"})}n.issueCommand=issueCommand},9017:(e,n)=>{"use strict";Object.defineProperty(n,"__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)}n.toCommandValue=toCommandValue},8469:(e,n,r)=>{"use strict";var f=r(5637),s=r(270),l=r(1642),c=r(5657),i=r(7485),v=r(2877),p=r(8950),d=r(3379),a=r(9120);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=r(6384);var g=r(7758);Ajv.prototype.addKeyword=g.add;Ajv.prototype.getKeyword=g.get;Ajv.prototype.removeKeyword=g.remove;Ajv.prototype.validateKeyword=g.validate;var b=r(8319);Ajv.ValidationError=b.Validation;Ajv.MissingRefError=b.MissingRef;Ajv.$dataMetaSchema=d;var w="http://json-schema.org/draft-07/schema";var E=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var F=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=a.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=v(e.format);this._cache=e.cache||new l;this._loadingSchemas={};this._compilations=[];this.RULES=p();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=i;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,n){var r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error('no schema with key or ref "'+e+'"')}else{var f=this._addSchema(e);r=f.validate||this._compile(f)}var s=r(n);if(r.$async!==true)this.errors=r.errors;return s}function compile(e,n){var r=this._addSchema(e,undefined,n);return r.validate||this._compile(r)}function addSchema(e,n,r,f){if(Array.isArray(e)){for(var l=0;l{"use strict";var n=e.exports=function Cache(){this._cache={}};n.prototype.put=function Cache_put(e,n){this._cache[e]=n};n.prototype.get=function Cache_get(e){return this._cache[e]};n.prototype.del=function Cache_del(e){delete this._cache[e]};n.prototype.clear=function Cache_clear(){this._cache={}}},6384:(e,n,r)=>{"use strict";var f=r(8319).MissingRef;e.exports=compileAsync;function compileAsync(e,n,r){var s=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof n=="function"){r=n;n=undefined}var l=loadMetaSchemaOf(e).then(function(){var r=s._addSchema(e,undefined,n);return r.validate||_compileAsync(r)});if(r){l.then(function(e){r(null,e)},r)}return l;function loadMetaSchemaOf(e){var n=e.$schema;return n&&!s.getSchema(n)?compileAsync.call(s,{$ref:n},true):Promise.resolve()}function _compileAsync(e){try{return s._compile(e)}catch(e){if(e instanceof f)return loadMissingSchema(e);throw e}function loadMissingSchema(r){var f=r.missingSchema;if(added(f))throw new Error("Schema "+f+" is loaded but "+r.missingRef+" cannot be resolved");var l=s._loadingSchemas[f];if(!l){l=s._loadingSchemas[f]=s._opts.loadSchema(f);l.then(removePromise,removePromise)}return l.then(function(e){if(!added(f)){return loadMetaSchemaOf(e).then(function(){if(!added(f))s.addSchema(e,f,undefined,n)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete s._loadingSchemas[f]}function added(e){return s._refs[e]||s._schemas[e]}}}}},8319:(e,n,r)=>{"use strict";var f=r(270);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,n){return"can't resolve reference "+n+" from id "+e};function MissingRefError(e,n,r){this.message=r||MissingRefError.message(e,n);this.missingRef=f.url(e,n);this.missingSchema=f.normalizeId(f.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},2877:(e,n,r)=>{"use strict";var f=r(9120);var s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var l=[0,31,28,31,30,31,30,31,31,30,31,30,31];var c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var i=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var v=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var p=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var d=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var a=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var g=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var b=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var w=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var E=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return f.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":d,url:a,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:g,"json-pointer":b,"json-pointer-uri-fragment":w,"relative-json-pointer":E};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":p,"uri-template":d,url:a,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:g,"json-pointer":b,"json-pointer-uri-fragment":w,"relative-json-pointer":E};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var n=e.match(s);if(!n)return false;var r=+n[1];var f=+n[2];var c=+n[3];return f>=1&&f<=12&&c>=1&&c<=(f==2&&isLeapYear(r)?29:l[f])}function time(e,n){var r=e.match(c);if(!r)return false;var f=r[1];var s=r[2];var l=r[3];var i=r[5];return(f<=23&&s<=59&&l<=59||f==23&&s==59&&l==60)&&(!n||i)}var F=/t|\s/i;function date_time(e){var n=e.split(F);return n.length==2&&date(n[0])&&time(n[1],true)}var A=/\/|:/;function uri(e){return A.test(e)&&v.test(e)}var j=/[^\\]\\Z/;function regex(e){if(j.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},5637:(e,n,r)=>{"use strict";var f=r(270),s=r(9120),l=r(8319),c=r(7485);var i=r(4327);var v=s.ucs2length;var p=r(3118);var d=l.Validation;e.exports=compile;function compile(e,n,r,a){var g=this,b=this._opts,w=[undefined],E={},F=[],A={},j=[],h={},O=[];n=n||{schema:e,refVal:w,refs:E};var y=checkCompiling.call(this,e,n,a);var R=this._compilations[y.index];if(y.compiling)return R.callValidate=callValidate;var m=this._formats;var I=this.RULES;try{var x=localCompile(e,n,r,a);R.validate=x;var C=R.callValidate;if(C){C.schema=x.schema;C.errors=null;C.refs=x.refs;C.refVal=x.refVal;C.root=x.root;C.$async=x.$async;if(b.sourceCode)C.source=x.source}return x}finally{endCompiling.call(this,e,n,a)}function callValidate(){var e=R.validate;var n=e.apply(this,arguments);callValidate.errors=e.errors;return n}function localCompile(e,r,c,a){var A=!r||r&&r.schema==e;if(r.schema!=n.schema)return compile.call(g,e,r,c,a);var h=e.$async===true;var y=i({isTop:true,schema:e,isRoot:A,baseId:a,root:r,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:l.MissingRef,RULES:I,validate:i,util:s,resolve:f,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:b,formats:m,logger:g.logger,self:g});y=vars(w,refValCode)+vars(F,patternCode)+vars(j,defaultCode)+vars(O,customRuleCode)+y;if(b.processCode)y=b.processCode(y,e);var R;try{var x=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",y);R=x(g,I,m,n,w,j,O,p,v,d);w[0]=R}catch(e){g.logger.error("Error compiling schema, function code:",y);throw e}R.schema=e;R.errors=null;R.refs=E;R.refVal=w;R.root=A?R:r;if(h)R.$async=true;if(b.sourceCode===true){R.source={code:y,patterns:F,defaults:j}}return R}function resolveRef(e,s,l){s=f.url(e,s);var c=E[s];var i,v;if(c!==undefined){i=w[c];v="refVal["+c+"]";return resolvedRef(i,v)}if(!l&&n.refs){var p=n.refs[s];if(p!==undefined){i=n.refVal[p];v=addLocalRef(s,i);return resolvedRef(i,v)}}v=addLocalRef(s);var d=f.call(g,localCompile,n,s);if(d===undefined){var a=r&&r[s];if(a){d=f.inlineRef(a,b.inlineRefs)?a:compile.call(g,a,n,r,e)}}if(d===undefined){removeLocalRef(s)}else{replaceLocalRef(s,d);return resolvedRef(d,v)}}function addLocalRef(e,n){var r=w.length;w[r]=n;E[e]=r;return"refVal"+r}function removeLocalRef(e){delete E[e]}function replaceLocalRef(e,n){var r=E[e];w[r]=n}function resolvedRef(e,n){return typeof e=="object"||typeof e=="boolean"?{code:n,schema:e,inline:true}:{code:n,$async:e&&!!e.$async}}function usePattern(e){var n=A[e];if(n===undefined){n=A[e]=F.length;F[n]=e}return"pattern"+n}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return s.toQuotedString(e);case"object":if(e===null)return"null";var n=c(e);var r=h[n];if(r===undefined){r=h[n]=j.length;j[r]=e}return"default"+r}}function useCustomRule(e,n,r,f){if(g._opts.validateSchema!==false){var s=e.definition.dependencies;if(s&&!s.every(function(e){return Object.prototype.hasOwnProperty.call(r,e)}))throw new Error("parent schema must have all required keywords: "+s.join(","));var l=e.definition.validateSchema;if(l){var c=l(n);if(!c){var i="keyword schema is invalid: "+g.errorsText(l.errors);if(g._opts.validateSchema=="log")g.logger.error(i);else throw new Error(i)}}}var v=e.definition.compile,p=e.definition.inline,d=e.definition.macro;var a;if(v){a=v.call(g,n,r,f)}else if(d){a=d.call(g,n,r,f);if(b.validateSchema!==false)g.validateSchema(a,true)}else if(p){a=p.call(g,f,e.keyword,n,r)}else{a=e.definition.validate;if(!a)return}if(a===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var w=O.length;O[w]=a;return{code:"customRule"+w,validate:a}}}function checkCompiling(e,n,r){var f=compIndex.call(this,e,n,r);if(f>=0)return{index:f,compiling:true};f=this._compilations.length;this._compilations[f]={schema:e,root:n,baseId:r};return{index:f,compiling:false}}function endCompiling(e,n,r){var f=compIndex.call(this,e,n,r);if(f>=0)this._compilations.splice(f,1)}function compIndex(e,n,r){for(var f=0;f{"use strict";var f=r(4430),s=r(3118),l=r(9120),c=r(5657),i=r(6997);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,n,r){var f=this._refs[r];if(typeof f=="string"){if(this._refs[f])f=this._refs[f];else return resolve.call(this,e,n,f)}f=f||this._schemas[r];if(f instanceof c){return inlineRef(f.schema,this._opts.inlineRefs)?f.schema:f.validate||this._compile(f)}var s=resolveSchema.call(this,n,r);var l,i,v;if(s){l=s.schema;n=s.root;v=s.baseId}if(l instanceof c){i=l.validate||e.call(this,l.schema,n,undefined,v)}else if(l!==undefined){i=inlineRef(l,this._opts.inlineRefs)?l:e.call(this,l,n,undefined,v)}return i}function resolveSchema(e,n){var r=f.parse(n),s=_getFullPath(r),l=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||s!==l){var i=normalizeId(s);var v=this._refs[i];if(typeof v=="string"){return resolveRecursive.call(this,e,v,r)}else if(v instanceof c){if(!v.validate)this._compile(v);e=v}else{v=this._schemas[i];if(v instanceof c){if(!v.validate)this._compile(v);if(i==normalizeId(n))return{schema:v,root:e,baseId:l};e=v}else{return}}if(!e.schema)return;l=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,r,l,e.schema,e)}function resolveRecursive(e,n,r){var f=resolveSchema.call(this,e,n);if(f){var s=f.schema;var l=f.baseId;e=f.root;var c=this._getId(s);if(c)l=resolveUrl(l,c);return getJsonPointer.call(this,r,l,s,e)}}var v=l.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,n,r,f){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var s=e.fragment.split("/");for(var c=1;c{"use strict";var f=r(3649),s=r(9120).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var n=["type","$comment"];var r=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var l=["number","integer","string","array","object","boolean","null"];e.all=s(n);e.types=s(l);e.forEach(function(r){r.rules=r.rules.map(function(r){var s;if(typeof r=="object"){var l=Object.keys(r)[0];s=r[l];r=l;s.forEach(function(r){n.push(r);e.all[r]=true})}n.push(r);var c=e.all[r]={keyword:r,code:f[r],implements:s};return c});e.all.$comment={keyword:"$comment",code:f.$comment};if(r.type)e.types[r.type]=r});e.keywords=s(n.concat(r));e.custom={};return e}},5657:(e,n,r)=>{"use strict";var f=r(9120);e.exports=SchemaObject;function SchemaObject(e){f.copy(e,this)}},3694:e=>{"use strict";e.exports=function ucs2length(e){var n=0,r=e.length,f=0,s;while(f=55296&&s<=56319&&f{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:r(3118),ucs2length:r(3694),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,n){n=n||{};for(var r in e)n[r]=e[r];return n}function checkDataType(e,n,r,f){var s=f?" !== ":" === ",l=f?" || ":" && ",c=f?"!":"",i=f?"":"!";switch(e){case"null":return n+s+"null";case"array":return c+"Array.isArray("+n+")";case"object":return"("+c+n+l+"typeof "+n+s+'"object"'+l+i+"Array.isArray("+n+"))";case"integer":return"(typeof "+n+s+'"number"'+l+i+"("+n+" % 1)"+l+n+s+n+(r?l+c+"isFinite("+n+")":"")+")";case"number":return"(typeof "+n+s+'"'+e+'"'+(r?l+c+"isFinite("+n+")":"")+")";default:return"typeof "+n+s+'"'+e+'"'}}function checkDataTypes(e,n,r){switch(e.length){case 1:return checkDataType(e[0],n,r,true);default:var f="";var s=toHash(e);if(s.array&&s.object){f=s.null?"(":"(!"+n+" || ";f+="typeof "+n+' !== "object")';delete s.null;delete s.array;delete s.object}if(s.number)delete s.integer;for(var l in s)f+=(f?" && ":"")+checkDataType(l,n,r,true);return f}}var f=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,n){if(Array.isArray(n)){var r=[];for(var s=0;s=n)throw new Error("Cannot access property/index "+f+" levels up, current level is "+n);return r[n-f]}if(f>n)throw new Error("Cannot access data "+f+" levels up, current level is "+n);l="data"+(n-f||"");if(!s)return l}var p=l;var d=s.split("/");for(var a=0;a{"use strict";var n=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var f=0;f{"use strict";var f=r(1742);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:f.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:f.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},5848:e=>{"use strict";e.exports=function generate__limit(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}var w=n=="maximum",E=w?"exclusiveMaximum":"exclusiveMinimum",F=e.schema[E],A=e.opts.$data&&F&&F.$data,j=w?"<":">",h=w?">":"<",d=undefined;if(!(g||typeof c=="number"||c===undefined)){throw new Error(n+" must be number")}if(!(A||F===undefined||typeof F=="number"||typeof F=="boolean")){throw new Error(E+" must be number or boolean")}if(A){var O=e.util.getData(F.$data,l,e.dataPathArr),y="exclusive"+s,R="exclType"+s,m="exclIsNumber"+s,I="op"+s,x="' + "+I+" + '";f+=" var schemaExcl"+s+" = "+O+"; ";O="schemaExcl"+s;f+=" var "+y+"; var "+R+" = typeof "+O+"; if ("+R+" != 'boolean' && "+R+" != 'undefined' && "+R+" != 'number') { ";var d=E;var C=C||[];C.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: '"+E+" should be boolean' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var T=f;f=C.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+T+"]); "}else{f+=" validate.errors = ["+T+"]; return false; "}}else{f+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } else if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" "+R+" == 'number' ? ( ("+y+" = "+b+" === undefined || "+O+" "+j+"= "+b+") ? "+a+" "+h+"= "+O+" : "+a+" "+h+" "+b+" ) : ( ("+y+" = "+O+" === true) ? "+a+" "+h+"= "+b+" : "+a+" "+h+" "+b+" ) || "+a+" !== "+a+") { var op"+s+" = "+y+" ? '"+j+"' : '"+j+"='; ";if(c===undefined){d=E;v=e.errSchemaPath+"/"+E;b=O;g=A}}else{var m=typeof F=="number",x=j;if(m&&g){var I="'"+x+"'";f+=" if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" ( "+b+" === undefined || "+F+" "+j+"= "+b+" ? "+a+" "+h+"= "+F+" : "+a+" "+h+" "+b+" ) || "+a+" !== "+a+") { "}else{if(m&&c===undefined){y=true;d=E;v=e.errSchemaPath+"/"+E;b=F;h+="="}else{if(m)b=Math[w?"min":"max"](F,c);if(F===(m?b:true)){y=true;d=E;v=e.errSchemaPath+"/"+E;h+="="}else{y=false;x+="="}}var I="'"+x+"'";f+=" if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" "+a+" "+h+" "+b+" || "+a+" !== "+a+") { "}}d=d||n;var C=C||[];C.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { comparison: "+I+", limit: "+b+", exclusive: "+y+" } ";if(e.opts.messages!==false){f+=" , message: 'should be "+x+" ";if(g){f+="' + "+b}else{f+=""+b+"'"}}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var T=f;f=C.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+T+"]); "}else{f+=" validate.errors = ["+T+"]; return false; "}}else{f+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } ";if(p){f+=" else { "}return f}},7682:e=>{"use strict";e.exports=function generate__limitItems(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if(!(g||typeof c=="number")){throw new Error(n+" must be number")}var w=n=="maxItems"?">":"<";f+="if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" "+a+".length "+w+" "+b+") { ";var d=n;var E=E||[];E.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { limit: "+b+" } ";if(e.opts.messages!==false){f+=" , message: 'should NOT have ";if(n=="maxItems"){f+="more"}else{f+="fewer"}f+=" than ";if(g){f+="' + "+b+" + '"}else{f+=""+c}f+=" items' "}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var F=f;f=E.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+F+"]); "}else{f+=" validate.errors = ["+F+"]; return false; "}}else{f+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},6262:e=>{"use strict";e.exports=function generate__limitLength(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if(!(g||typeof c=="number")){throw new Error(n+" must be number")}var w=n=="maxLength"?">":"<";f+="if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}if(e.opts.unicode===false){f+=" "+a+".length "}else{f+=" ucs2length("+a+") "}f+=" "+w+" "+b+") { ";var d=n;var E=E||[];E.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { limit: "+b+" } ";if(e.opts.messages!==false){f+=" , message: 'should NOT be ";if(n=="maxLength"){f+="longer"}else{f+="shorter"}f+=" than ";if(g){f+="' + "+b+" + '"}else{f+=""+c}f+=" characters' "}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var F=f;f=E.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+F+"]); "}else{f+=" validate.errors = ["+F+"]; return false; "}}else{f+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},8125:e=>{"use strict";e.exports=function generate__limitProperties(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if(!(g||typeof c=="number")){throw new Error(n+" must be number")}var w=n=="maxProperties"?">":"<";f+="if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" Object.keys("+a+").length "+w+" "+b+") { ";var d=n;var E=E||[];E.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { limit: "+b+" } ";if(e.opts.messages!==false){f+=" , message: 'should NOT have ";if(n=="maxProperties"){f+="more"}else{f+="fewer"}f+=" than ";if(g){f+="' + "+b+" + '"}else{f+=""+c}f+=" properties' "}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var F=f;f=E.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+F+"]); "}else{f+=" validate.errors = ["+F+"]; return false; "}}else{f+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},4511:e=>{"use strict";e.exports=function generate_allOf(e,n,r){var f=" ";var s=e.schema[n];var l=e.schemaPath+e.util.getProperty(n);var c=e.errSchemaPath+"/"+n;var i=!e.opts.allErrors;var v=e.util.copy(e);var p="";v.level++;var d="valid"+v.level;var a=v.baseId,g=true;var b=s;if(b){var w,E=-1,F=b.length-1;while(E0||w===false:e.util.schemaHasRules(w,e.RULES.all)){g=false;v.schema=w;v.schemaPath=l+"["+E+"]";v.errSchemaPath=c+"/"+E;f+=" "+e.validate(v)+" ";v.baseId=a;if(i){f+=" if ("+d+") { ";p+="}"}}}}if(i){if(g){f+=" if (true) { "}else{f+=" "+p.slice(0,-1)+" "}}return f}},1888:e=>{"use strict";e.exports=function generate_anyOf(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);var w="";b.level++;var E="valid"+b.level;var F=c.every(function(n){return e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===false:e.util.schemaHasRules(n,e.RULES.all)});if(F){var A=b.baseId;f+=" var "+g+" = errors; var "+a+" = false; ";var j=e.compositeRule;e.compositeRule=b.compositeRule=true;var h=c;if(h){var O,y=-1,R=h.length-1;while(y{"use strict";e.exports=function generate_comment(e,n,r){var f=" ";var s=e.schema[n];var l=e.errSchemaPath+"/"+n;var c=!e.opts.allErrors;var i=e.util.toQuotedString(s);if(e.opts.$comment===true){f+=" console.log("+i+");"}else if(typeof e.opts.$comment=="function"){f+=" self._opts.$comment("+i+", "+e.util.toQuotedString(l)+", validate.root.schema);"}return f}},5272:e=>{"use strict";e.exports=function generate_const(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if(!g){f+=" var schema"+s+" = validate.schema"+i+";"}f+="var "+a+" = equal("+d+", schema"+s+"); if (!"+a+") { ";var w=w||[];w.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { allowedValue: schema"+s+" } ";if(e.opts.messages!==false){f+=" , message: 'should be equal to constant' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var E=f;f=w.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+E+"]); "}else{f+=" validate.errors = ["+E+"]; return false; "}}else{f+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" }";if(p){f+=" else { "}return f}},6839:e=>{"use strict";e.exports=function generate_contains(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);var w="";b.level++;var E="valid"+b.level;var F="i"+s,A=b.dataLevel=e.dataLevel+1,j="data"+A,h=e.baseId,O=e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===false:e.util.schemaHasRules(c,e.RULES.all);f+="var "+g+" = errors;var "+a+";";if(O){var y=e.compositeRule;e.compositeRule=b.compositeRule=true;b.schema=c;b.schemaPath=i;b.errSchemaPath=v;f+=" var "+E+" = false; for (var "+F+" = 0; "+F+" < "+d+".length; "+F+"++) { ";b.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,true);var R=d+"["+F+"]";b.dataPathArr[A]=F;var m=e.validate(b);b.baseId=h;if(e.util.varOccurences(m,j)<2){f+=" "+e.util.varReplace(m,j,R)+" "}else{f+=" var "+j+" = "+R+"; "+m+" "}f+=" if ("+E+") break; } ";e.compositeRule=b.compositeRule=y;f+=" "+w+" if (!"+E+") {"}else{f+=" if ("+d+".length == 0) {"}var I=I||[];I.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: 'should contain a valid item' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var x=f;f=I.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+x+"]); "}else{f+=" validate.errors = ["+x+"]; return false; "}}else{f+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } else { ";if(O){f+=" errors = "+g+"; if (vErrors !== null) { if ("+g+") vErrors.length = "+g+"; else vErrors = null; } "}if(e.opts.allErrors){f+=" } "}return f}},2273:e=>{"use strict";e.exports=function generate_custom(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g="valid"+s;var b="errs__"+s;var w=e.opts.$data&&c&&c.$data,E;if(w){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";E="schema"+s}else{E=c}var F=this,A="definition"+s,j=F.definition,h="";var O,y,R,m,I;if(w&&j.$data){I="keywordValidate"+s;var x=j.validateSchema;f+=" var "+A+" = RULES.custom['"+n+"'].definition; var "+I+" = "+A+".validate;"}else{m=e.useCustomRule(F,c,e.schema,e);if(!m)return;E="validate.schema"+i;I=m.code;O=j.compile;y=j.inline;R=j.macro}var C=I+".errors",T="i"+s,z="ruleErr"+s,N=j.async;if(N&&!e.async)throw new Error("async keyword in sync schema");if(!(y||R)){f+=""+C+" = null;"}f+="var "+b+" = errors;var "+g+";";if(w&&j.$data){h+="}";f+=" if ("+E+" === undefined) { "+g+" = true; } else { ";if(x){h+="}";f+=" "+g+" = "+A+".validateSchema("+E+"); if ("+g+") { "}}if(y){if(j.statements){f+=" "+m.validate+" "}else{f+=" "+g+" = "+m.validate+"; "}}else if(R){var U=e.util.copy(e);var h="";U.level++;var q="valid"+U.level;U.schema=m.validate;U.schemaPath="";var M=e.compositeRule;e.compositeRule=U.compositeRule=true;var L=e.validate(U).replace(/validate\.schema/g,I);e.compositeRule=U.compositeRule=M;f+=" "+L}else{var B=B||[];B.push(f);f="";f+=" "+I+".call( ";if(e.opts.passContext){f+="this"}else{f+="self"}if(O||j.schema===false){f+=" , "+a+" "}else{f+=" , "+E+" , "+a+" , validate.schema"+e.schemaPath+" "}f+=" , (dataPath || '')";if(e.errorPath!='""'){f+=" + "+e.errorPath}var Q=l?"data"+(l-1||""):"parentData",W=l?e.dataPathArr[l]:"parentDataProperty";f+=" , "+Q+" , "+W+" , rootData ) ";var Y=f;f=B.pop();if(j.errors===false){f+=" "+g+" = ";if(N){f+="await "}f+=""+Y+"; "}else{if(N){C="customErrors"+s;f+=" var "+C+" = null; try { "+g+" = await "+Y+"; } catch (e) { "+g+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } "}else{f+=" "+C+" = null; "+g+" = "+Y+"; "}}}if(j.modifying){f+=" if ("+Q+") "+a+" = "+Q+"["+W+"];"}f+=""+h;if(j.valid){if(p){f+=" if (true) { "}}else{f+=" if ( ";if(j.valid===undefined){f+=" !";if(R){f+=""+q}else{f+=""+g}}else{f+=" "+!j.valid+" "}f+=") { ";d=F.keyword;var B=B||[];B.push(f);f="";var B=B||[];B.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { keyword: '"+F.keyword+"' } ";if(e.opts.messages!==false){f+=" , message: 'should pass \""+F.keyword+"\" keyword validation' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var D=f;f=B.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+D+"]); "}else{f+=" validate.errors = ["+D+"]; return false; "}}else{f+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var J=f;f=B.pop();if(y){if(j.errors){if(j.errors!="full"){f+=" for (var "+T+"="+b+"; "+T+"{"use strict";e.exports=function generate_dependencies(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="errs__"+s;var g=e.util.copy(e);var b="";g.level++;var w="valid"+g.level;var E={},F={},A=e.opts.ownProperties;for(y in c){if(y=="__proto__")continue;var j=c[y];var h=Array.isArray(j)?F:E;h[y]=j}f+="var "+a+" = errors;";var O=e.errorPath;f+="var missing"+s+";";for(var y in F){h=F[y];if(h.length){f+=" if ( "+d+e.util.getProperty(y)+" !== undefined ";if(A){f+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(y)+"') "}if(p){f+=" && ( ";var R=h;if(R){var m,I=-1,x=R.length-1;while(I0||j===false:e.util.schemaHasRules(j,e.RULES.all)){f+=" "+w+" = true; if ( "+d+e.util.getProperty(y)+" !== undefined ";if(A){f+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(y)+"') "}f+=") { ";g.schema=j;g.schemaPath=i+e.util.getProperty(y);g.errSchemaPath=v+"/"+e.util.escapeFragment(y);f+=" "+e.validate(g)+" ";g.baseId=Q;f+=" } ";if(p){f+=" if ("+w+") { ";b+="}"}}}if(p){f+=" "+b+" if ("+a+" == errors) {"}return f}},9645:e=>{"use strict";e.exports=function generate_enum(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}var w="i"+s,E="schema"+s;if(!g){f+=" var "+E+" = validate.schema"+i+";"}f+="var "+a+";";if(g){f+=" if (schema"+s+" === undefined) "+a+" = true; else if (!Array.isArray(schema"+s+")) "+a+" = false; else {"}f+=""+a+" = false;for (var "+w+"=0; "+w+"<"+E+".length; "+w+"++) if (equal("+d+", "+E+"["+w+"])) { "+a+" = true; break; }";if(g){f+=" } "}f+=" if (!"+a+") { ";var F=F||[];F.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { allowedValues: schema"+s+" } ";if(e.opts.messages!==false){f+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var A=f;f=F.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+A+"]); "}else{f+=" validate.errors = ["+A+"]; return false; "}}else{f+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" }";if(p){f+=" else { "}return f}},7987:e=>{"use strict";e.exports=function generate_format(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");if(e.opts.format===false){if(p){f+=" if (true) { "}return f}var a=e.opts.$data&&c&&c.$data,g;if(a){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";g="schema"+s}else{g=c}var b=e.opts.unknownFormats,w=Array.isArray(b);if(a){var E="format"+s,F="isObject"+s,A="formatType"+s;f+=" var "+E+" = formats["+g+"]; var "+F+" = typeof "+E+" == 'object' && !("+E+" instanceof RegExp) && "+E+".validate; var "+A+" = "+F+" && "+E+".type || 'string'; if ("+F+") { ";if(e.async){f+=" var async"+s+" = "+E+".async; "}f+=" "+E+" = "+E+".validate; } if ( ";if(a){f+=" ("+g+" !== undefined && typeof "+g+" != 'string') || "}f+=" (";if(b!="ignore"){f+=" ("+g+" && !"+E+" ";if(w){f+=" && self._opts.unknownFormats.indexOf("+g+") == -1 "}f+=") || "}f+=" ("+E+" && "+A+" == '"+r+"' && !(typeof "+E+" == 'function' ? ";if(e.async){f+=" (async"+s+" ? await "+E+"("+d+") : "+E+"("+d+")) "}else{f+=" "+E+"("+d+") "}f+=" : "+E+".test("+d+"))))) {"}else{var E=e.formats[c];if(!E){if(b=="ignore"){e.logger.warn('unknown format "'+c+'" ignored in schema at path "'+e.errSchemaPath+'"');if(p){f+=" if (true) { "}return f}else if(w&&b.indexOf(c)>=0){if(p){f+=" if (true) { "}return f}else{throw new Error('unknown format "'+c+'" is used in schema at path "'+e.errSchemaPath+'"')}}var F=typeof E=="object"&&!(E instanceof RegExp)&&E.validate;var A=F&&E.type||"string";if(F){var j=E.async===true;E=E.validate}if(A!=r){if(p){f+=" if (true) { "}return f}if(j){if(!e.async)throw new Error("async format in sync schema");var h="formats"+e.util.getProperty(c)+".validate";f+=" if (!(await "+h+"("+d+"))) { "}else{f+=" if (! ";var h="formats"+e.util.getProperty(c);if(F)h+=".validate";if(typeof E=="function"){f+=" "+h+"("+d+") "}else{f+=" "+h+".test("+d+") "}f+=") { "}}var O=O||[];O.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { format: ";if(a){f+=""+g}else{f+=""+e.util.toQuotedString(c)}f+=" } ";if(e.opts.messages!==false){f+=" , message: 'should match format \"";if(a){f+="' + "+g+" + '"}else{f+=""+e.util.escapeQuotes(c)}f+="\"' "}if(e.opts.verbose){f+=" , schema: ";if(a){f+="validate.schema"+i}else{f+=""+e.util.toQuotedString(c)}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var y=f;f=O.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+y+"]); "}else{f+=" validate.errors = ["+y+"]; return false; "}}else{f+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } ";if(p){f+=" else { "}return f}},1774:e=>{"use strict";e.exports=function generate_if(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);b.level++;var w="valid"+b.level;var E=e.schema["then"],F=e.schema["else"],A=E!==undefined&&(e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===false:e.util.schemaHasRules(E,e.RULES.all)),j=F!==undefined&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===false:e.util.schemaHasRules(F,e.RULES.all)),h=b.baseId;if(A||j){var O;b.createErrors=false;b.schema=c;b.schemaPath=i;b.errSchemaPath=v;f+=" var "+g+" = errors; var "+a+" = true; ";var y=e.compositeRule;e.compositeRule=b.compositeRule=true;f+=" "+e.validate(b)+" ";b.baseId=h;b.createErrors=true;f+=" errors = "+g+"; if (vErrors !== null) { if ("+g+") vErrors.length = "+g+"; else vErrors = null; } ";e.compositeRule=b.compositeRule=y;if(A){f+=" if ("+w+") { ";b.schema=e.schema["then"];b.schemaPath=e.schemaPath+".then";b.errSchemaPath=e.errSchemaPath+"/then";f+=" "+e.validate(b)+" ";b.baseId=h;f+=" "+a+" = "+w+"; ";if(A&&j){O="ifClause"+s;f+=" var "+O+" = 'then'; "}else{O="'then'"}f+=" } ";if(j){f+=" else { "}}else{f+=" if (!"+w+") { "}if(j){b.schema=e.schema["else"];b.schemaPath=e.schemaPath+".else";b.errSchemaPath=e.errSchemaPath+"/else";f+=" "+e.validate(b)+" ";b.baseId=h;f+=" "+a+" = "+w+"; ";if(A&&j){O="ifClause"+s;f+=" var "+O+" = 'else'; "}else{O="'else'"}f+=" } "}f+=" if (!"+a+") { var err = ";if(e.createErrors!==false){f+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { failingKeyword: "+O+" } ";if(e.opts.messages!==false){f+=" , message: 'should match \"' + "+O+" + '\" schema' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}f+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(vErrors); "}else{f+=" validate.errors = vErrors; return false; "}}f+=" } ";if(p){f+=" else { "}}else{if(p){f+=" if (true) { "}}return f}},3649:(e,n,r)=>{"use strict";e.exports={$ref:r(4377),allOf:r(4511),anyOf:r(1888),$comment:r(9963),const:r(5272),contains:r(6839),dependencies:r(7814),enum:r(9645),format:r(7987),if:r(1774),items:r(4074),maximum:r(5848),minimum:r(5848),maxItems:r(7682),minItems:r(7682),maxLength:r(6262),minLength:r(6262),maxProperties:r(8125),minProperties:r(8125),multipleOf:r(8079),not:r(8138),oneOf:r(7975),pattern:r(2526),properties:r(9997),propertyNames:r(1538),required:r(6828),uniqueItems:r(9841),validate:r(4327)}},4074:e=>{"use strict";e.exports=function generate_items(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);var w="";b.level++;var E="valid"+b.level;var F="i"+s,A=b.dataLevel=e.dataLevel+1,j="data"+A,h=e.baseId;f+="var "+g+" = errors;var "+a+";";if(Array.isArray(c)){var O=e.schema.additionalItems;if(O===false){f+=" "+a+" = "+d+".length <= "+c.length+"; ";var y=v;v=e.errSchemaPath+"/additionalItems";f+=" if (!"+a+") { ";var R=R||[];R.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { limit: "+c.length+" } ";if(e.opts.messages!==false){f+=" , message: 'should NOT have more than "+c.length+" items' "}if(e.opts.verbose){f+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var m=f;f=R.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+m+"]); "}else{f+=" validate.errors = ["+m+"]; return false; "}}else{f+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } ";v=y;if(p){w+="}";f+=" else { "}}var I=c;if(I){var x,C=-1,T=I.length-1;while(C0||x===false:e.util.schemaHasRules(x,e.RULES.all)){f+=" "+E+" = true; if ("+d+".length > "+C+") { ";var z=d+"["+C+"]";b.schema=x;b.schemaPath=i+"["+C+"]";b.errSchemaPath=v+"/"+C;b.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,true);b.dataPathArr[A]=C;var N=e.validate(b);b.baseId=h;if(e.util.varOccurences(N,j)<2){f+=" "+e.util.varReplace(N,j,z)+" "}else{f+=" var "+j+" = "+z+"; "+N+" "}f+=" } ";if(p){f+=" if ("+E+") { ";w+="}"}}}}if(typeof O=="object"&&(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===false:e.util.schemaHasRules(O,e.RULES.all))){b.schema=O;b.schemaPath=e.schemaPath+".additionalItems";b.errSchemaPath=e.errSchemaPath+"/additionalItems";f+=" "+E+" = true; if ("+d+".length > "+c.length+") { for (var "+F+" = "+c.length+"; "+F+" < "+d+".length; "+F+"++) { ";b.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,true);var z=d+"["+F+"]";b.dataPathArr[A]=F;var N=e.validate(b);b.baseId=h;if(e.util.varOccurences(N,j)<2){f+=" "+e.util.varReplace(N,j,z)+" "}else{f+=" var "+j+" = "+z+"; "+N+" "}if(p){f+=" if (!"+E+") break; "}f+=" } } ";if(p){f+=" if ("+E+") { ";w+="}"}}}else if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===false:e.util.schemaHasRules(c,e.RULES.all)){b.schema=c;b.schemaPath=i;b.errSchemaPath=v;f+=" for (var "+F+" = "+0+"; "+F+" < "+d+".length; "+F+"++) { ";b.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,true);var z=d+"["+F+"]";b.dataPathArr[A]=F;var N=e.validate(b);b.baseId=h;if(e.util.varOccurences(N,j)<2){f+=" "+e.util.varReplace(N,j,z)+" "}else{f+=" var "+j+" = "+z+"; "+N+" "}if(p){f+=" if (!"+E+") break; "}f+=" }"}if(p){f+=" "+w+" if ("+g+" == errors) {"}return f}},8079:e=>{"use strict";e.exports=function generate_multipleOf(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a=e.opts.$data&&c&&c.$data,g;if(a){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";g="schema"+s}else{g=c}if(!(a||typeof c=="number")){throw new Error(n+" must be number")}f+="var division"+s+";if (";if(a){f+=" "+g+" !== undefined && ( typeof "+g+" != 'number' || "}f+=" (division"+s+" = "+d+" / "+g+", ";if(e.opts.multipleOfPrecision){f+=" Math.abs(Math.round(division"+s+") - division"+s+") > 1e-"+e.opts.multipleOfPrecision+" "}else{f+=" division"+s+" !== parseInt(division"+s+") "}f+=" ) ";if(a){f+=" ) "}f+=" ) { ";var b=b||[];b.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { multipleOf: "+g+" } ";if(e.opts.messages!==false){f+=" , message: 'should be multiple of ";if(a){f+="' + "+g}else{f+=""+g+"'"}}if(e.opts.verbose){f+=" , schema: ";if(a){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var w=f;f=b.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+w+"]); "}else{f+=" validate.errors = ["+w+"]; return false; "}}else{f+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},8138:e=>{"use strict";e.exports=function generate_not(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="errs__"+s;var g=e.util.copy(e);g.level++;var b="valid"+g.level;if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===false:e.util.schemaHasRules(c,e.RULES.all)){g.schema=c;g.schemaPath=i;g.errSchemaPath=v;f+=" var "+a+" = errors; ";var w=e.compositeRule;e.compositeRule=g.compositeRule=true;g.createErrors=false;var E;if(g.opts.allErrors){E=g.opts.allErrors;g.opts.allErrors=false}f+=" "+e.validate(g)+" ";g.createErrors=true;if(E)g.opts.allErrors=E;e.compositeRule=g.compositeRule=w;f+=" if ("+b+") { ";var F=F||[];F.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: 'should NOT be valid' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var A=f;f=F.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+A+"]); "}else{f+=" validate.errors = ["+A+"]; return false; "}}else{f+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } else { errors = "+a+"; if (vErrors !== null) { if ("+a+") vErrors.length = "+a+"; else vErrors = null; } ";if(e.opts.allErrors){f+=" } "}}else{f+=" var err = ";if(e.createErrors!==false){f+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: 'should NOT be valid' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}f+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(p){f+=" if (false) { "}}return f}},7975:e=>{"use strict";e.exports=function generate_oneOf(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);var w="";b.level++;var E="valid"+b.level;var F=b.baseId,A="prevValid"+s,j="passingSchemas"+s;f+="var "+g+" = errors , "+A+" = false , "+a+" = false , "+j+" = null; ";var h=e.compositeRule;e.compositeRule=b.compositeRule=true;var O=c;if(O){var y,R=-1,m=O.length-1;while(R0||y===false:e.util.schemaHasRules(y,e.RULES.all)){b.schema=y;b.schemaPath=i+"["+R+"]";b.errSchemaPath=v+"/"+R;f+=" "+e.validate(b)+" ";b.baseId=F}else{f+=" var "+E+" = true; "}if(R){f+=" if ("+E+" && "+A+") { "+a+" = false; "+j+" = ["+j+", "+R+"]; } else { ";w+="}"}f+=" if ("+E+") { "+a+" = "+A+" = true; "+j+" = "+R+"; }"}}e.compositeRule=b.compositeRule=h;f+=""+w+"if (!"+a+") { var err = ";if(e.createErrors!==false){f+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { passingSchemas: "+j+" } ";if(e.opts.messages!==false){f+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}f+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(vErrors); "}else{f+=" validate.errors = vErrors; return false; "}}f+="} else { errors = "+g+"; if (vErrors !== null) { if ("+g+") vErrors.length = "+g+"; else vErrors = null; }";if(e.opts.allErrors){f+=" } "}return f}},2526:e=>{"use strict";e.exports=function generate_pattern(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a=e.opts.$data&&c&&c.$data,g;if(a){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";g="schema"+s}else{g=c}var b=a?"(new RegExp("+g+"))":e.usePattern(c);f+="if ( ";if(a){f+=" ("+g+" !== undefined && typeof "+g+" != 'string') || "}f+=" !"+b+".test("+d+") ) { ";var w=w||[];w.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { pattern: ";if(a){f+=""+g}else{f+=""+e.util.toQuotedString(c)}f+=" } ";if(e.opts.messages!==false){f+=" , message: 'should match pattern \"";if(a){f+="' + "+g+" + '"}else{f+=""+e.util.escapeQuotes(c)}f+="\"' "}if(e.opts.verbose){f+=" , schema: ";if(a){f+="validate.schema"+i}else{f+=""+e.util.toQuotedString(c)}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var E=f;f=w.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+E+"]); "}else{f+=" validate.errors = ["+E+"]; return false; "}}else{f+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},9997:e=>{"use strict";e.exports=function generate_properties(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="errs__"+s;var g=e.util.copy(e);var b="";g.level++;var w="valid"+g.level;var E="key"+s,F="idx"+s,A=g.dataLevel=e.dataLevel+1,j="data"+A,h="dataProperties"+s;var O=Object.keys(c||{}).filter(notProto),y=e.schema.patternProperties||{},R=Object.keys(y).filter(notProto),m=e.schema.additionalProperties,I=O.length||R.length,x=m===false,C=typeof m=="object"&&Object.keys(m).length,T=e.opts.removeAdditional,z=x||C||T,N=e.opts.ownProperties,U=e.baseId;var q=e.schema.required;if(q&&!(e.opts.$data&&q.$data)&&q.length8){f+=" || validate.schema"+i+".hasOwnProperty("+E+") "}else{var L=O;if(L){var B,Q=-1,W=L.length-1;while(Q0||$===false:e.util.schemaHasRules($,e.RULES.all)){var ee=e.util.getProperty(B),K=d+ee,ne=P&&$.default!==undefined;g.schema=$;g.schemaPath=i+ee;g.errSchemaPath=v+"/"+e.util.escapeFragment(B);g.errorPath=e.util.getPath(e.errorPath,B,e.opts.jsonPointers);g.dataPathArr[A]=e.util.toQuotedString(B);var o=e.validate(g);g.baseId=U;if(e.util.varOccurences(o,j)<2){o=e.util.varReplace(o,j,K);var re=K}else{var re=j;f+=" var "+j+" = "+K+"; "}if(ne){f+=" "+o+" "}else{if(M&&M[B]){f+=" if ( "+re+" === undefined ";if(N){f+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "}f+=") { "+w+" = false; ";var G=e.errorPath,Z=v,fe=e.util.escapeQuotes(B);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(G,B,e.opts.jsonPointers)}v=e.errSchemaPath+"/required";var S=S||[];S.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { missingProperty: '"+fe+"' } ";if(e.opts.messages!==false){f+=" , message: '";if(e.opts._errorDataPathProperty){f+="is a required property"}else{f+="should have required property \\'"+fe+"\\'"}f+="' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var k=f;f=S.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+k+"]); "}else{f+=" validate.errors = ["+k+"]; return false; "}}else{f+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}v=Z;e.errorPath=G;f+=" } else { "}else{if(p){f+=" if ( "+re+" === undefined ";if(N){f+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "}f+=") { "+w+" = true; } else { "}else{f+=" if ("+re+" !== undefined ";if(N){f+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "}f+=" ) { "}}f+=" "+o+" } "}}if(p){f+=" if ("+w+") { ";b+="}"}}}}if(R.length){var se=R;if(se){var D,le=-1,ce=se.length-1;while(le0||$===false:e.util.schemaHasRules($,e.RULES.all)){g.schema=$;g.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(D);g.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(D);if(N){f+=" "+h+" = "+h+" || Object.keys("+d+"); for (var "+F+"=0; "+F+"<"+h+".length; "+F+"++) { var "+E+" = "+h+"["+F+"]; "}else{f+=" for (var "+E+" in "+d+") { "}f+=" if ("+e.usePattern(D)+".test("+E+")) { ";g.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var K=d+"["+E+"]";g.dataPathArr[A]=E;var o=e.validate(g);g.baseId=U;if(e.util.varOccurences(o,j)<2){f+=" "+e.util.varReplace(o,j,K)+" "}else{f+=" var "+j+" = "+K+"; "+o+" "}if(p){f+=" if (!"+w+") break; "}f+=" } ";if(p){f+=" else "+w+" = true; "}f+=" } ";if(p){f+=" if ("+w+") { ";b+="}"}}}}}if(p){f+=" "+b+" if ("+a+" == errors) {"}return f}},1538:e=>{"use strict";e.exports=function generate_propertyNames(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="errs__"+s;var g=e.util.copy(e);var b="";g.level++;var w="valid"+g.level;f+="var "+a+" = errors;";if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===false:e.util.schemaHasRules(c,e.RULES.all)){g.schema=c;g.schemaPath=i;g.errSchemaPath=v;var E="key"+s,F="idx"+s,A="i"+s,j="' + "+E+" + '",h=g.dataLevel=e.dataLevel+1,O="data"+h,y="dataProperties"+s,R=e.opts.ownProperties,m=e.baseId;if(R){f+=" var "+y+" = undefined; "}if(R){f+=" "+y+" = "+y+" || Object.keys("+d+"); for (var "+F+"=0; "+F+"<"+y+".length; "+F+"++) { var "+E+" = "+y+"["+F+"]; "}else{f+=" for (var "+E+" in "+d+") { "}f+=" var startErrs"+s+" = errors; ";var I=E;var x=e.compositeRule;e.compositeRule=g.compositeRule=true;var C=e.validate(g);g.baseId=m;if(e.util.varOccurences(C,O)<2){f+=" "+e.util.varReplace(C,O,I)+" "}else{f+=" var "+O+" = "+I+"; "+C+" "}e.compositeRule=g.compositeRule=x;f+=" if (!"+w+") { for (var "+A+"=startErrs"+s+"; "+A+"{"use strict";e.exports=function generate_ref(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.errSchemaPath+"/"+n;var v=!e.opts.allErrors;var p="data"+(l||"");var d="valid"+s;var a,g;if(c=="#"||c=="#/"){if(e.isRoot){a=e.async;g="validate"}else{a=e.root.schema.$async===true;g="root.refVal[0]"}}else{var b=e.resolveRef(e.baseId,c,e.isRoot);if(b===undefined){var w=e.MissingRefError.message(e.baseId,c);if(e.opts.missingRefs=="fail"){e.logger.error(w);var E=E||[];E.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ";if(e.opts.messages!==false){f+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "}if(e.opts.verbose){f+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}f+=" } "}else{f+=" {} "}var F=f;f=E.pop();if(!e.compositeRule&&v){if(e.async){f+=" throw new ValidationError(["+F+"]); "}else{f+=" validate.errors = ["+F+"]; return false; "}}else{f+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(v){f+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(w);if(v){f+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,c,w)}}else if(b.inline){var A=e.util.copy(e);A.level++;var j="valid"+A.level;A.schema=b.schema;A.schemaPath="";A.errSchemaPath=c;var h=e.validate(A).replace(/validate\.schema/g,b.code);f+=" "+h+" ";if(v){f+=" if ("+j+") { "}}else{a=b.$async===true||e.async&&b.$async!==false;g=b.code}}if(g){var E=E||[];E.push(f);f="";if(e.opts.passContext){f+=" "+g+".call(this, "}else{f+=" "+g+"( "}f+=" "+p+", (dataPath || '')";if(e.errorPath!='""'){f+=" + "+e.errorPath}var O=l?"data"+(l-1||""):"parentData",y=l?e.dataPathArr[l]:"parentDataProperty";f+=" , "+O+" , "+y+", rootData) ";var R=f;f=E.pop();if(a){if(!e.async)throw new Error("async schema referenced by sync schema");if(v){f+=" var "+d+"; "}f+=" try { await "+R+"; ";if(v){f+=" "+d+" = true; "}f+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(v){f+=" "+d+" = false; "}f+=" } ";if(v){f+=" if ("+d+") { "}}else{f+=" if (!"+R+") { if (vErrors === null) vErrors = "+g+".errors; else vErrors = vErrors.concat("+g+".errors); errors = vErrors.length; } ";if(v){f+=" else { "}}}return f}},6828:e=>{"use strict";e.exports=function generate_required(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}var w="schema"+s;if(!g){if(c.length0||O===false:e.util.schemaHasRules(O,e.RULES.all)))){E[E.length]=A}}}}else{var E=c}}if(g||E.length){var y=e.errorPath,R=g||E.length>=e.opts.loopRequired,m=e.opts.ownProperties;if(p){f+=" var missing"+s+"; ";if(R){if(!g){f+=" var "+w+" = validate.schema"+i+"; "}var I="i"+s,x="schema"+s+"["+I+"]",C="' + "+x+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(y,x,e.opts.jsonPointers)}f+=" var "+a+" = true; ";if(g){f+=" if (schema"+s+" === undefined) "+a+" = true; else if (!Array.isArray(schema"+s+")) "+a+" = false; else {"}f+=" for (var "+I+" = 0; "+I+" < "+w+".length; "+I+"++) { "+a+" = "+d+"["+w+"["+I+"]] !== undefined ";if(m){f+=" && Object.prototype.hasOwnProperty.call("+d+", "+w+"["+I+"]) "}f+="; if (!"+a+") break; } ";if(g){f+=" } "}f+=" if (!"+a+") { ";var T=T||[];T.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { missingProperty: '"+C+"' } ";if(e.opts.messages!==false){f+=" , message: '";if(e.opts._errorDataPathProperty){f+="is a required property"}else{f+="should have required property \\'"+C+"\\'"}f+="' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var z=f;f=T.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+z+"]); "}else{f+=" validate.errors = ["+z+"]; return false; "}}else{f+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } else { "}else{f+=" if ( ";var N=E;if(N){var U,I=-1,q=N.length-1;while(I{"use strict";e.exports=function generate_uniqueItems(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if((c||g)&&e.opts.uniqueItems!==false){if(g){f+=" var "+a+"; if ("+b+" === false || "+b+" === undefined) "+a+" = true; else if (typeof "+b+" != 'boolean') "+a+" = false; else { "}f+=" var i = "+d+".length , "+a+" = true , j; if (i > 1) { ";var w=e.schema.items&&e.schema.items.type,E=Array.isArray(w);if(!w||w=="object"||w=="array"||E&&(w.indexOf("object")>=0||w.indexOf("array")>=0)){f+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+a+" = false; break outer; } } } "}else{f+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var F="checkDataType"+(E?"s":"");f+=" if ("+e.util[F](w,"item",e.opts.strictNumbers,true)+") continue; ";if(E){f+=" if (typeof item == 'string') item = '\"' + item; "}f+=" if (typeof itemIndices[item] == 'number') { "+a+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}f+=" } ";if(g){f+=" } "}f+=" if (!"+a+") { ";var A=A||[];A.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){f+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var j=f;f=A.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+j+"]); "}else{f+=" validate.errors = ["+j+"]; return false; "}}else{f+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } ";if(p){f+=" else { "}}else{if(p){f+=" if (true) { "}}return f}},4327:e=>{"use strict";e.exports=function generate_validate(e,n,r){var f="";var s=e.schema.$async===true,l=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),c=e.self._getId(e.schema);if(e.opts.strictKeywords){var i=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(i){var v="unknown keyword: "+i;if(e.opts.strictKeywords==="log")e.logger.warn(v);else throw new Error(v)}}if(e.isTop){f+=" var validate = ";if(s){e.async=true;f+="async "}f+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(c&&(e.opts.sourceCode||e.opts.processCode)){f+=" "+("/*# sourceURL="+c+" */")+" "}}if(typeof e.schema=="boolean"||!(l||e.schema.$ref)){var n="false schema";var p=e.level;var d=e.dataLevel;var a=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var w=!e.opts.allErrors;var E;var F="data"+(d||"");var A="valid"+p;if(e.schema===false){if(e.isTop){w=true}else{f+=" var "+A+" = false; "}var j=j||[];j.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(E||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: 'boolean schema is false' "}if(e.opts.verbose){f+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+F+" "}f+=" } "}else{f+=" {} "}var h=f;f=j.pop();if(!e.compositeRule&&w){if(e.async){f+=" throw new ValidationError(["+h+"]); "}else{f+=" validate.errors = ["+h+"]; return false; "}}else{f+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(s){f+=" return data; "}else{f+=" validate.errors = null; return true; "}}else{f+=" var "+A+" = true; "}}if(e.isTop){f+=" }; return validate; "}return f}if(e.isTop){var O=e.isTop,p=e.level=0,d=e.dataLevel=0,F="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema));e.baseId=e.baseId||e.rootId;delete e.isTop;e.dataPathArr=[""];if(e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var y="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(y);else throw new Error(y)}f+=" var vErrors = null; ";f+=" var errors = 0; ";f+=" if (rootData === undefined) rootData = data; "}else{var p=e.level,d=e.dataLevel,F="data"+(d||"");if(c)e.baseId=e.resolve.url(e.baseId,c);if(s&&!e.async)throw new Error("async schema in sync schema");f+=" var errs_"+p+" = errors;"}var A="valid"+p,w=!e.opts.allErrors,R="",m="";var E;var I=e.schema.type,x=Array.isArray(I);if(I&&e.opts.nullable&&e.schema.nullable===true){if(x){if(I.indexOf("null")==-1)I=I.concat("null")}else if(I!="null"){I=[I,"null"];x=true}}if(x&&I.length==1){I=I[0];x=false}if(e.schema.$ref&&l){if(e.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)')}else if(e.opts.extendRefs!==true){l=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){f+=" "+e.RULES.all.$comment.code(e,"$comment")}if(I){if(e.opts.coerceTypes){var C=e.util.coerceToTypes(e.opts.coerceTypes,I)}var T=e.RULES.types[I];if(C||x||T===true||T&&!$shouldUseGroup(T)){var g=e.schemaPath+".type",b=e.errSchemaPath+"/type";var g=e.schemaPath+".type",b=e.errSchemaPath+"/type",z=x?"checkDataTypes":"checkDataType";f+=" if ("+e.util[z](I,F,e.opts.strictNumbers,true)+") { ";if(C){var N="dataType"+p,U="coerced"+p;f+=" var "+N+" = typeof "+F+"; var "+U+" = undefined; ";if(e.opts.coerceTypes=="array"){f+=" if ("+N+" == 'object' && Array.isArray("+F+") && "+F+".length == 1) { "+F+" = "+F+"[0]; "+N+" = typeof "+F+"; if ("+e.util.checkDataType(e.schema.type,F,e.opts.strictNumbers)+") "+U+" = "+F+"; } "}f+=" if ("+U+" !== undefined) ; ";var q=C;if(q){var M,L=-1,B=q.length-1;while(L{"use strict";var f=/^[a-z_$][a-z0-9_$-]*$/i;var s=r(2273);var l=r(3016);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,n){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!f.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(n){this.validateKeyword(n,true);var l=n.type;if(Array.isArray(l)){for(var c=0;c{e.exports=(e=>{const n=process.versions.node.split(".").map(e=>parseInt(e,10));e=e.split(".").map(e=>parseInt(e,10));return n[0]>e[0]||n[0]===e[0]&&(n[1]>e[1]||n[1]===e[1]&&n[2]>=e[2])})},4010:(e,n,r)=>{var f=r(7371);var s=r(5622);e.exports=function expandTilde(e){var n=f();if(e.charCodeAt(0)===126){if(e.charCodeAt(1)===43){return s.join(process.cwd(),e.slice(2))}return n?s.join(n,e.slice(1)):e}return e}},3118:e=>{"use strict";e.exports=function equal(e,n){if(e===n)return true;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return false;var r,f,s;if(Array.isArray(e)){r=e.length;if(r!=n.length)return false;for(f=r;f--!==0;)if(!equal(e[f],n[f]))return false;return true}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();s=Object.keys(e);r=s.length;if(r!==Object.keys(n).length)return false;for(f=r;f--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[f]))return false;for(f=r;f--!==0;){var l=s[f];if(!equal(e[l],n[l]))return false}return true}return e!==e&&n!==n}},7485:e=>{"use strict";e.exports=function(e,n){if(!n)n={};if(typeof n==="function")n={cmp:n};var r=typeof n.cycles==="boolean"?n.cycles:false;var f=n.cmp&&function(e){return function(n){return function(r,f){var s={key:r,value:n[r]};var l={key:f,value:n[f]};return e(s,l)}}}(n.cmp);var s=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var n,l;if(Array.isArray(e)){l="[";for(n=0;n{"use strict";const f=r(7690);const s=r(5622);const l=r(7038).mkdirsSync;const c=r(4856).utimesMillisSync;const i=r(4666);function copySync(e,n,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:f,destStat:s}=i.checkPathsSync(e,n,"copy");i.checkParentPathsSync(e,f,n,"copy");return handleFilterAndCopy(s,e,n,r)}function handleFilterAndCopy(e,n,r,c){if(c.filter&&!c.filter(n,r))return;const i=s.dirname(r);if(!f.existsSync(i))l(i);return startCopy(e,n,r,c)}function startCopy(e,n,r,f){if(f.filter&&!f.filter(n,r))return;return getStats(e,n,r,f)}function getStats(e,n,r,s){const l=s.dereference?f.statSync:f.lstatSync;const c=l(n);if(c.isDirectory())return onDir(c,e,n,r,s);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,n,r,s);else if(c.isSymbolicLink())return onLink(e,n,r,s)}function onFile(e,n,r,f,s){if(!n)return copyFile(e,r,f,s);return mayCopyFile(e,r,f,s)}function mayCopyFile(e,n,r,s){if(s.overwrite){f.unlinkSync(r);return copyFile(e,n,r,s)}else if(s.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,n,r,s){f.copyFileSync(n,r);if(s.preserveTimestamps)handleTimestamps(e.mode,n,r);return setDestMode(r,e.mode)}function handleTimestamps(e,n,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(n,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,n){return setDestMode(e,n|128)}function setDestMode(e,n){return f.chmodSync(e,n)}function setDestTimestamps(e,n){const r=f.statSync(e);return c(n,r.atime,r.mtime)}function onDir(e,n,r,f,s){if(!n)return mkDirAndCopy(e.mode,r,f,s);if(n&&!n.isDirectory()){throw new Error(`Cannot overwrite non-directory '${f}' with directory '${r}'.`)}return copyDir(r,f,s)}function mkDirAndCopy(e,n,r,s){f.mkdirSync(r);copyDir(n,r,s);return setDestMode(r,e)}function copyDir(e,n,r){f.readdirSync(e).forEach(f=>copyDirItem(f,e,n,r))}function copyDirItem(e,n,r,f){const l=s.join(n,e);const c=s.join(r,e);const{destStat:v}=i.checkPathsSync(l,c,"copy");return startCopy(v,l,c,f)}function onLink(e,n,r,l){let c=f.readlinkSync(n);if(l.dereference){c=s.resolve(process.cwd(),c)}if(!e){return f.symlinkSync(c,r)}else{let e;try{e=f.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return f.symlinkSync(c,r);throw e}if(l.dereference){e=s.resolve(process.cwd(),e)}if(i.isSrcSubdir(c,e)){throw new Error(`Cannot copy '${c}' to a subdirectory of itself, '${e}'.`)}if(f.statSync(r).isDirectory()&&i.isSrcSubdir(e,c)){throw new Error(`Cannot overwrite '${e}' with '${c}'.`)}return copyLink(c,r)}}function copyLink(e,n){f.unlinkSync(n);return f.symlinkSync(e,n)}e.exports=copySync},3642:(e,n,r)=>{"use strict";e.exports={copySync:r(4749)}},5154:(e,n,r)=>{"use strict";const f=r(7690);const s=r(5622);const l=r(7038).mkdirs;const c=r(8640).pathExists;const i=r(4856).utimesMillis;const v=r(4666);function copy(e,n,r,f){if(typeof r==="function"&&!f){f=r;r={}}else if(typeof r==="function"){r={filter:r}}f=f||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}v.checkPaths(e,n,"copy",(s,l)=>{if(s)return f(s);const{srcStat:c,destStat:i}=l;v.checkParentPaths(e,c,n,"copy",s=>{if(s)return f(s);if(r.filter)return handleFilter(checkParentDir,i,e,n,r,f);return checkParentDir(i,e,n,r,f)})})}function checkParentDir(e,n,r,f,i){const v=s.dirname(r);c(v,(s,c)=>{if(s)return i(s);if(c)return startCopy(e,n,r,f,i);l(v,s=>{if(s)return i(s);return startCopy(e,n,r,f,i)})})}function handleFilter(e,n,r,f,s,l){Promise.resolve(s.filter(r,f)).then(c=>{if(c)return e(n,r,f,s,l);return l()},e=>l(e))}function startCopy(e,n,r,f,s){if(f.filter)return handleFilter(getStats,e,n,r,f,s);return getStats(e,n,r,f,s)}function getStats(e,n,r,s,l){const c=s.dereference?f.stat:f.lstat;c(n,(f,c)=>{if(f)return l(f);if(c.isDirectory())return onDir(c,e,n,r,s,l);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,n,r,s,l);else if(c.isSymbolicLink())return onLink(e,n,r,s,l)})}function onFile(e,n,r,f,s,l){if(!n)return copyFile(e,r,f,s,l);return mayCopyFile(e,r,f,s,l)}function mayCopyFile(e,n,r,s,l){if(s.overwrite){f.unlink(r,f=>{if(f)return l(f);return copyFile(e,n,r,s,l)})}else if(s.errorOnExist){return l(new Error(`'${r}' already exists`))}else return l()}function copyFile(e,n,r,s,l){f.copyFile(n,r,f=>{if(f)return l(f);if(s.preserveTimestamps)return handleTimestampsAndMode(e.mode,n,r,l);return setDestMode(r,e.mode,l)})}function handleTimestampsAndMode(e,n,r,f){if(fileIsNotWritable(e)){return makeFileWritable(r,e,s=>{if(s)return f(s);return setDestTimestampsAndMode(e,n,r,f)})}return setDestTimestampsAndMode(e,n,r,f)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,n,r){return setDestMode(e,n|128,r)}function setDestTimestampsAndMode(e,n,r,f){setDestTimestamps(n,r,n=>{if(n)return f(n);return setDestMode(r,e,f)})}function setDestMode(e,n,r){return f.chmod(e,n,r)}function setDestTimestamps(e,n,r){f.stat(e,(e,f)=>{if(e)return r(e);return i(n,f.atime,f.mtime,r)})}function onDir(e,n,r,f,s,l){if(!n)return mkDirAndCopy(e.mode,r,f,s,l);if(n&&!n.isDirectory()){return l(new Error(`Cannot overwrite non-directory '${f}' with directory '${r}'.`))}return copyDir(r,f,s,l)}function mkDirAndCopy(e,n,r,s,l){f.mkdir(r,f=>{if(f)return l(f);copyDir(n,r,s,n=>{if(n)return l(n);return setDestMode(r,e,l)})})}function copyDir(e,n,r,s){f.readdir(e,(f,l)=>{if(f)return s(f);return copyDirItems(l,e,n,r,s)})}function copyDirItems(e,n,r,f,s){const l=e.pop();if(!l)return s();return copyDirItem(e,l,n,r,f,s)}function copyDirItem(e,n,r,f,l,c){const i=s.join(r,n);const p=s.join(f,n);v.checkPaths(i,p,"copy",(n,s)=>{if(n)return c(n);const{destStat:v}=s;startCopy(v,i,p,l,n=>{if(n)return c(n);return copyDirItems(e,r,f,l,c)})})}function onLink(e,n,r,l,c){f.readlink(n,(n,i)=>{if(n)return c(n);if(l.dereference){i=s.resolve(process.cwd(),i)}if(!e){return f.symlink(i,r,c)}else{f.readlink(r,(n,p)=>{if(n){if(n.code==="EINVAL"||n.code==="UNKNOWN")return f.symlink(i,r,c);return c(n)}if(l.dereference){p=s.resolve(process.cwd(),p)}if(v.isSrcSubdir(i,p)){return c(new Error(`Cannot copy '${i}' to a subdirectory of itself, '${p}'.`))}if(e.isDirectory()&&v.isSrcSubdir(p,i)){return c(new Error(`Cannot overwrite '${p}' with '${i}'.`))}return copyLink(i,r,c)})}})}function copyLink(e,n,r){f.unlink(n,s=>{if(s)return r(s);return f.symlink(e,n,r)})}e.exports=copy},8:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;e.exports={copy:f(r(5154))}},5053:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(7690);const l=r(5622);const c=r(7038);const i=r(6308);const v=f(function emptyDir(e,n){n=n||function(){};s.readdir(e,(r,f)=>{if(r)return c.mkdirs(e,n);f=f.map(n=>l.join(e,n));deleteItem();function deleteItem(){const e=f.pop();if(!e)return n();i.remove(e,e=>{if(e)return n(e);deleteItem()})}})});function emptyDirSync(e){let n;try{n=s.readdirSync(e)}catch{return c.mkdirsSync(e)}n.forEach(n=>{n=l.join(e,n);i.removeSync(n)})}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:v,emptydir:v}},2835:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(5622);const l=r(7690);const c=r(7038);function createFile(e,n){function makeFile(){l.writeFile(e,"",e=>{if(e)return n(e);n()})}l.stat(e,(r,f)=>{if(!r&&f.isFile())return n();const i=s.dirname(e);l.stat(i,(e,r)=>{if(e){if(e.code==="ENOENT"){return c.mkdirs(i,e=>{if(e)return n(e);makeFile()})}return n(e)}if(r.isDirectory())makeFile();else{l.readdir(i,e=>{if(e)return n(e)})}})})}function createFileSync(e){let n;try{n=l.statSync(e)}catch{}if(n&&n.isFile())return;const r=s.dirname(e);try{if(!l.statSync(r).isDirectory()){l.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")c.mkdirsSync(r);else throw e}l.writeFileSync(e,"")}e.exports={createFile:f(createFile),createFileSync:createFileSync}},4079:(e,n,r)=>{"use strict";const f=r(2835);const s=r(2739);const l=r(8932);e.exports={createFile:f.createFile,createFileSync:f.createFileSync,ensureFile:f.createFile,ensureFileSync:f.createFileSync,createLink:s.createLink,createLinkSync:s.createLinkSync,ensureLink:s.createLink,ensureLinkSync:s.createLinkSync,createSymlink:l.createSymlink,createSymlinkSync:l.createSymlinkSync,ensureSymlink:l.createSymlink,ensureSymlinkSync:l.createSymlinkSync}},2739:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(5622);const l=r(7690);const c=r(7038);const i=r(8640).pathExists;function createLink(e,n,r){function makeLink(e,n){l.link(e,n,e=>{if(e)return r(e);r(null)})}i(n,(f,v)=>{if(f)return r(f);if(v)return r(null);l.lstat(e,f=>{if(f){f.message=f.message.replace("lstat","ensureLink");return r(f)}const l=s.dirname(n);i(l,(f,s)=>{if(f)return r(f);if(s)return makeLink(e,n);c.mkdirs(l,f=>{if(f)return r(f);makeLink(e,n)})})})})}function createLinkSync(e,n){const r=l.existsSync(n);if(r)return undefined;try{l.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const f=s.dirname(n);const i=l.existsSync(f);if(i)return l.linkSync(e,n);c.mkdirsSync(f);return l.linkSync(e,n)}e.exports={createLink:f(createLink),createLinkSync:createLinkSync}},9637:(e,n,r)=>{"use strict";const f=r(5622);const s=r(7690);const l=r(8640).pathExists;function symlinkPaths(e,n,r){if(f.isAbsolute(e)){return s.lstat(e,n=>{if(n){n.message=n.message.replace("lstat","ensureSymlink");return r(n)}return r(null,{toCwd:e,toDst:e})})}else{const c=f.dirname(n);const i=f.join(c,e);return l(i,(n,l)=>{if(n)return r(n);if(l){return r(null,{toCwd:i,toDst:e})}else{return s.lstat(e,n=>{if(n){n.message=n.message.replace("lstat","ensureSymlink");return r(n)}return r(null,{toCwd:e,toDst:f.relative(c,e)})})}})}}function symlinkPathsSync(e,n){let r;if(f.isAbsolute(e)){r=s.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const l=f.dirname(n);const c=f.join(l,e);r=s.existsSync(c);if(r){return{toCwd:c,toDst:e}}else{r=s.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:f.relative(l,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},4351:(e,n,r)=>{"use strict";const f=r(7690);function symlinkType(e,n,r){r=typeof n==="function"?n:r;n=typeof n==="function"?false:n;if(n)return r(null,n);f.lstat(e,(e,f)=>{if(e)return r(null,"file");n=f&&f.isDirectory()?"dir":"file";r(null,n)})}function symlinkTypeSync(e,n){let r;if(n)return n;try{r=f.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},8932:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(5622);const l=r(7690);const c=r(7038);const i=c.mkdirs;const v=c.mkdirsSync;const p=r(9637);const d=p.symlinkPaths;const a=p.symlinkPathsSync;const g=r(4351);const b=g.symlinkType;const w=g.symlinkTypeSync;const E=r(8640).pathExists;function createSymlink(e,n,r,f){f=typeof r==="function"?r:f;r=typeof r==="function"?false:r;E(n,(c,v)=>{if(c)return f(c);if(v)return f(null);d(e,n,(c,v)=>{if(c)return f(c);e=v.toDst;b(v.toCwd,r,(r,c)=>{if(r)return f(r);const v=s.dirname(n);E(v,(r,s)=>{if(r)return f(r);if(s)return l.symlink(e,n,c,f);i(v,r=>{if(r)return f(r);l.symlink(e,n,c,f)})})})})})}function createSymlinkSync(e,n,r){const f=l.existsSync(n);if(f)return undefined;const c=a(e,n);e=c.toDst;r=w(c.toCwd,r);const i=s.dirname(n);const p=l.existsSync(i);if(p)return l.symlinkSync(e,n,r);v(i);return l.symlinkSync(e,n,r)}e.exports={createSymlink:f(createSymlink),createSymlinkSync:createSymlinkSync}},2553:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(7690);const l=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>{return typeof s[e]==="function"});Object.keys(s).forEach(e=>{if(e==="promises"){return}n[e]=s[e]});l.forEach(e=>{n[e]=f(s[e])});n.exists=function(e,n){if(typeof n==="function"){return s.exists(e,n)}return new Promise(n=>{return s.exists(e,n)})};n.read=function(e,n,r,f,l,c){if(typeof c==="function"){return s.read(e,n,r,f,l,c)}return new Promise((c,i)=>{s.read(e,n,r,f,l,(e,n,r)=>{if(e)return i(e);c({bytesRead:n,buffer:r})})})};n.write=function(e,n,...r){if(typeof r[r.length-1]==="function"){return s.write(e,n,...r)}return new Promise((f,l)=>{s.write(e,n,...r,(e,n,r)=>{if(e)return l(e);f({bytesWritten:n,buffer:r})})})};if(typeof s.writev==="function"){n.writev=function(e,n,...r){if(typeof r[r.length-1]==="function"){return s.writev(e,n,...r)}return new Promise((f,l)=>{s.writev(e,n,...r,(e,n,r)=>{if(e)return l(e);f({bytesWritten:n,buffers:r})})})}}if(typeof s.realpath.native==="function"){n.realpath.native=f(s.realpath.native)}},4240:(e,n,r)=>{"use strict";e.exports={...r(2553),...r(3642),...r(8),...r(5053),...r(4079),...r(6417),...r(7038),...r(4761),...r(7241),...r(2980),...r(8640),...r(6308)};const f=r(5747);if(Object.getOwnPropertyDescriptor(f,"promises")){Object.defineProperty(e.exports,"promises",{get(){return f.promises}})}},6417:(e,n,r)=>{"use strict";const f=r(7395).fromPromise;const s=r(5382);s.outputJson=f(r(615));s.outputJsonSync=r(724);s.outputJSON=s.outputJson;s.outputJSONSync=s.outputJsonSync;s.writeJSON=s.writeJson;s.writeJSONSync=s.writeJsonSync;s.readJSON=s.readJson;s.readJSONSync=s.readJsonSync;e.exports=s},5382:(e,n,r)=>{"use strict";const f=r(3665);e.exports={readJson:f.readFile,readJsonSync:f.readFileSync,writeJson:f.writeFile,writeJsonSync:f.writeFileSync}},724:(e,n,r)=>{"use strict";const{stringify:f}=r(3485);const{outputFileSync:s}=r(2980);function outputJsonSync(e,n,r){const l=f(n,r);s(e,l,r)}e.exports=outputJsonSync},615:(e,n,r)=>{"use strict";const{stringify:f}=r(3485);const{outputFile:s}=r(2980);async function outputJson(e,n,r={}){const l=f(n,r);await s(e,l,r)}e.exports=outputJson},7038:(e,n,r)=>{"use strict";const f=r(7395).fromPromise;const{makeDir:s,makeDirSync:l}=r(3793);const c=f(s);e.exports={mkdirs:c,mkdirsSync:l,mkdirp:c,mkdirpSync:l,ensureDir:c,ensureDirSync:l}},3793:(e,n,r)=>{"use strict";const f=r(2553);const s=r(5622);const l=r(1095);const c=l("10.12.0");const i=e=>{if(process.platform==="win32"){const n=/[<>:"|?*]/.test(e.replace(s.parse(e).root,""));if(n){const n=new Error(`Path contains invalid characters: ${e}`);n.code="EINVAL";throw n}}};const v=e=>{const n={mode:511};if(typeof e==="number")e={mode:e};return{...n,...e}};const p=e=>{const n=new Error(`operation not permitted, mkdir '${e}'`);n.code="EPERM";n.errno=-4048;n.path=e;n.syscall="mkdir";return n};e.exports.makeDir=(async(e,n)=>{i(e);n=v(n);if(c){const r=s.resolve(e);return f.mkdir(r,{mode:n.mode,recursive:true})}const r=async e=>{try{await f.mkdir(e,n.mode)}catch(n){if(n.code==="EPERM"){throw n}if(n.code==="ENOENT"){if(s.dirname(e)===e){throw p(e)}if(n.message.includes("null bytes")){throw n}await r(s.dirname(e));return r(e)}try{const r=await f.stat(e);if(!r.isDirectory()){throw new Error("The path is not a directory")}}catch{throw n}}};return r(s.resolve(e))});e.exports.makeDirSync=((e,n)=>{i(e);n=v(n);if(c){const r=s.resolve(e);return f.mkdirSync(r,{mode:n.mode,recursive:true})}const r=e=>{try{f.mkdirSync(e,n.mode)}catch(n){if(n.code==="EPERM"){throw n}if(n.code==="ENOENT"){if(s.dirname(e)===e){throw p(e)}if(n.message.includes("null bytes")){throw n}r(s.dirname(e));return r(e)}try{if(!f.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw n}}};return r(s.resolve(e))})},4761:(e,n,r)=>{"use strict";e.exports={moveSync:r(405)}},405:(e,n,r)=>{"use strict";const f=r(7690);const s=r(5622);const l=r(3642).copySync;const c=r(6308).removeSync;const i=r(7038).mkdirpSync;const v=r(4666);function moveSync(e,n,r){r=r||{};const f=r.overwrite||r.clobber||false;const{srcStat:l}=v.checkPathsSync(e,n,"move");v.checkParentPathsSync(e,l,n,"move");i(s.dirname(n));return doRename(e,n,f)}function doRename(e,n,r){if(r){c(n);return rename(e,n,r)}if(f.existsSync(n))throw new Error("dest already exists.");return rename(e,n,r)}function rename(e,n,r){try{f.renameSync(e,n)}catch(f){if(f.code!=="EXDEV")throw f;return moveAcrossDevice(e,n,r)}}function moveAcrossDevice(e,n,r){const f={overwrite:r,errorOnExist:true};l(e,n,f);return c(e)}e.exports=moveSync},7241:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;e.exports={move:f(r(5479))}},5479:(e,n,r)=>{"use strict";const f=r(7690);const s=r(5622);const l=r(8).copy;const c=r(6308).remove;const i=r(7038).mkdirp;const v=r(8640).pathExists;const p=r(4666);function move(e,n,r,f){if(typeof r==="function"){f=r;r={}}const l=r.overwrite||r.clobber||false;p.checkPaths(e,n,"move",(r,c)=>{if(r)return f(r);const{srcStat:v}=c;p.checkParentPaths(e,v,n,"move",r=>{if(r)return f(r);i(s.dirname(n),r=>{if(r)return f(r);return doRename(e,n,l,f)})})})}function doRename(e,n,r,f){if(r){return c(n,s=>{if(s)return f(s);return rename(e,n,r,f)})}v(n,(s,l)=>{if(s)return f(s);if(l)return f(new Error("dest already exists."));return rename(e,n,r,f)})}function rename(e,n,r,s){f.rename(e,n,f=>{if(!f)return s();if(f.code!=="EXDEV")return s(f);return moveAcrossDevice(e,n,r,s)})}function moveAcrossDevice(e,n,r,f){const s={overwrite:r,errorOnExist:true};l(e,n,s,n=>{if(n)return f(n);return c(e,f)})}e.exports=move},2980:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(7690);const l=r(5622);const c=r(7038);const i=r(8640).pathExists;function outputFile(e,n,r,f){if(typeof r==="function"){f=r;r="utf8"}const v=l.dirname(e);i(v,(l,i)=>{if(l)return f(l);if(i)return s.writeFile(e,n,r,f);c.mkdirs(v,l=>{if(l)return f(l);s.writeFile(e,n,r,f)})})}function outputFileSync(e,...n){const r=l.dirname(e);if(s.existsSync(r)){return s.writeFileSync(e,...n)}c.mkdirsSync(r);s.writeFileSync(e,...n)}e.exports={outputFile:f(outputFile),outputFileSync:outputFileSync}},8640:(e,n,r)=>{"use strict";const f=r(7395).fromPromise;const s=r(2553);function pathExists(e){return s.access(e).then(()=>true).catch(()=>false)}e.exports={pathExists:f(pathExists),pathExistsSync:s.existsSync}},6308:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(9463);e.exports={remove:f(s),removeSync:s.sync}},9463:(e,n,r)=>{"use strict";const f=r(7690);const s=r(5622);const l=r(2357);const c=process.platform==="win32";function defaults(e){const n=["unlink","chmod","stat","lstat","rmdir","readdir"];n.forEach(n=>{e[n]=e[n]||f[n];n=n+"Sync";e[n]=e[n]||f[n]});e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,n,r){let f=0;if(typeof n==="function"){r=n;n={}}l(e,"rimraf: missing path");l.strictEqual(typeof e,"string","rimraf: path should be a string");l.strictEqual(typeof r,"function","rimraf: callback function required");l(n,"rimraf: invalid options argument provided");l.strictEqual(typeof n,"object","rimraf: options should be object");defaults(n);rimraf_(e,n,function CB(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&frimraf_(e,n,CB),r)}if(s.code==="ENOENT")s=null}r(s)})}function rimraf_(e,n,r){l(e);l(n);l(typeof r==="function");n.lstat(e,(f,s)=>{if(f&&f.code==="ENOENT"){return r(null)}if(f&&f.code==="EPERM"&&c){return fixWinEPERM(e,n,f,r)}if(s&&s.isDirectory()){return rmdir(e,n,f,r)}n.unlink(e,f=>{if(f){if(f.code==="ENOENT"){return r(null)}if(f.code==="EPERM"){return c?fixWinEPERM(e,n,f,r):rmdir(e,n,f,r)}if(f.code==="EISDIR"){return rmdir(e,n,f,r)}}return r(f)})})}function fixWinEPERM(e,n,r,f){l(e);l(n);l(typeof f==="function");n.chmod(e,438,s=>{if(s){f(s.code==="ENOENT"?null:r)}else{n.stat(e,(s,l)=>{if(s){f(s.code==="ENOENT"?null:r)}else if(l.isDirectory()){rmdir(e,n,r,f)}else{n.unlink(e,f)}})}})}function fixWinEPERMSync(e,n,r){let f;l(e);l(n);try{n.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{f=n.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(f.isDirectory()){rmdirSync(e,n,r)}else{n.unlinkSync(e)}}function rmdir(e,n,r,f){l(e);l(n);l(typeof f==="function");n.rmdir(e,s=>{if(s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")){rmkids(e,n,f)}else if(s&&s.code==="ENOTDIR"){f(r)}else{f(s)}})}function rmkids(e,n,r){l(e);l(n);l(typeof r==="function");n.readdir(e,(f,l)=>{if(f)return r(f);let c=l.length;let i;if(c===0)return n.rmdir(e,r);l.forEach(f=>{rimraf(s.join(e,f),n,f=>{if(i){return}if(f)return r(i=f);if(--c===0){n.rmdir(e,r)}})})})}function rimrafSync(e,n){let r;n=n||{};defaults(n);l(e,"rimraf: missing path");l.strictEqual(typeof e,"string","rimraf: path should be a string");l(n,"rimraf: missing options");l.strictEqual(typeof n,"object","rimraf: options should be object");try{r=n.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&c){fixWinEPERMSync(e,n,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,n,null)}else{n.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return c?fixWinEPERMSync(e,n,r):rmdirSync(e,n,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,n,r)}}function rmdirSync(e,n,r){l(e);l(n);try{n.rmdirSync(e)}catch(f){if(f.code==="ENOTDIR"){throw r}else if(f.code==="ENOTEMPTY"||f.code==="EEXIST"||f.code==="EPERM"){rmkidsSync(e,n)}else if(f.code!=="ENOENT"){throw f}}}function rmkidsSync(e,n){l(e);l(n);n.readdirSync(e).forEach(r=>rimrafSync(s.join(e,r),n));if(c){const r=Date.now();do{try{const r=n.rmdirSync(e,n);return r}catch{}}while(Date.now()-r<500)}else{const r=n.rmdirSync(e,n);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},4666:(e,n,r)=>{"use strict";const f=r(2553);const s=r(5622);const l=r(1669);const c=r(1095);const i=c("10.5.0");const v=e=>i?f.stat(e,{bigint:true}):f.stat(e);const p=e=>i?f.statSync(e,{bigint:true}):f.statSync(e);function getStats(e,n){return Promise.all([v(e),v(n).catch(e=>{if(e.code==="ENOENT")return null;throw e})]).then(([e,n])=>({srcStat:e,destStat:n}))}function getStatsSync(e,n){let r;const f=p(e);try{r=p(n)}catch(e){if(e.code==="ENOENT")return{srcStat:f,destStat:null};throw e}return{srcStat:f,destStat:r}}function checkPaths(e,n,r,f){l.callbackify(getStats)(e,n,(s,l)=>{if(s)return f(s);const{srcStat:c,destStat:i}=l;if(i&&areIdentical(c,i)){return f(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&isSrcSubdir(e,n)){return f(new Error(errMsg(e,n,r)))}return f(null,{srcStat:c,destStat:i})})}function checkPathsSync(e,n,r){const{srcStat:f,destStat:s}=getStatsSync(e,n);if(s&&areIdentical(f,s)){throw new Error("Source and destination must not be the same.")}if(f.isDirectory()&&isSrcSubdir(e,n)){throw new Error(errMsg(e,n,r))}return{srcStat:f,destStat:s}}function checkParentPaths(e,n,r,l,c){const v=s.resolve(s.dirname(e));const p=s.resolve(s.dirname(r));if(p===v||p===s.parse(p).root)return c();const d=(f,s)=>{if(f){if(f.code==="ENOENT")return c();return c(f)}if(areIdentical(n,s)){return c(new Error(errMsg(e,r,l)))}return checkParentPaths(e,n,p,l,c)};if(i)f.stat(p,{bigint:true},d);else f.stat(p,d)}function checkParentPathsSync(e,n,r,f){const l=s.resolve(s.dirname(e));const c=s.resolve(s.dirname(r));if(c===l||c===s.parse(c).root)return;let i;try{i=p(c)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(n,i)){throw new Error(errMsg(e,r,f))}return checkParentPathsSync(e,n,c,f)}function areIdentical(e,n){if(n.ino&&n.dev&&n.ino===e.ino&&n.dev===e.dev){if(i||n.inoe);const f=s.resolve(n).split(s.sep).filter(e=>e);return r.reduce((e,n,r)=>e&&f[r]===n,true)}function errMsg(e,n,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${n}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},4856:(e,n,r)=>{"use strict";const f=r(7690);function utimesMillis(e,n,r,s){f.open(e,"r+",(e,l)=>{if(e)return s(e);f.futimes(l,n,r,e=>{f.close(l,n=>{if(s)s(e||n)})})})}function utimesMillisSync(e,n,r){const s=f.openSync(e,"r+");f.futimesSync(s,n,r);return f.closeSync(s)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},2796:e=>{"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var n={__proto__:e.__proto__};else var n=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))});return n}},7690:(e,n,r)=>{var f=r(5747);var s=r(8399);var l=r(2961);var c=r(2796);var i=r(1669);var v;var p;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){v=Symbol.for("graceful-fs.queue");p=Symbol.for("graceful-fs.previous")}else{v="___graceful-fs.queue";p="___graceful-fs.previous"}function noop(){}var d=noop;if(i.debuglog)d=i.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))d=function(){var e=i.format.apply(i,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!global[v]){var a=[];Object.defineProperty(global,v,{get:function(){return a}});f.close=function(e){function close(n,r){return e.call(f,n,function(e){if(!e){retry()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,p,{value:e});return close}(f.close);f.closeSync=function(e){function closeSync(n){e.apply(f,arguments);retry()}Object.defineProperty(closeSync,p,{value:e});return closeSync}(f.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){d(global[v]);r(2357).equal(global[v].length,0)})}}e.exports=patch(c(f));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!f.__patched){e.exports=patch(f);f.__patched=true}function patch(e){s(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var n=e.readFile;e.readFile=readFile;function readFile(e,r,f){if(typeof r==="function")f=r,r=null;return go$readFile(e,r,f);function go$readFile(e,r,f){return n(e,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$readFile,[e,r,f]]);else{if(typeof f==="function")f.apply(this,arguments);retry()}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,n,f,s){if(typeof f==="function")s=f,f=null;return go$writeFile(e,n,f,s);function go$writeFile(e,n,f,s){return r(e,n,f,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,n,f,s]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}})}}var f=e.appendFile;if(f)e.appendFile=appendFile;function appendFile(e,n,r,s){if(typeof r==="function")s=r,r=null;return go$appendFile(e,n,r,s);function go$appendFile(e,n,r,s){return f(e,n,r,function(f){if(f&&(f.code==="EMFILE"||f.code==="ENFILE"))enqueue([go$appendFile,[e,n,r,s]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}})}}var c=e.readdir;e.readdir=readdir;function readdir(e,n,r){var f=[e];if(typeof n!=="function"){f.push(n)}else{r=n}f.push(go$readdir$cb);return go$readdir(f);function go$readdir$cb(e,n){if(n&&n.sort)n.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[f]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(n){return c.apply(e,n)}if(process.version.substr(0,4)==="v0.8"){var i=l(e);ReadStream=i.ReadStream;WriteStream=i.WriteStream}var v=e.ReadStream;if(v){ReadStream.prototype=Object.create(v.prototype);ReadStream.prototype.open=ReadStream$open}var p=e.WriteStream;if(p){WriteStream.prototype=Object.create(p.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var d=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});var a=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return a},set:function(e){a=e},enumerable:true,configurable:true});function ReadStream(e,n){if(this instanceof ReadStream)return v.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(n,r){if(n){if(e.autoClose)e.destroy();e.emit("error",n)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,n){if(this instanceof WriteStream)return p.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(n,r){if(n){e.destroy();e.emit("error",n)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(n,r){return new e.ReadStream(n,r)}function createWriteStream(n,r){return new e.WriteStream(n,r)}var g=e.open;e.open=open;function open(e,n,r,f){if(typeof r==="function")f=r,r=null;return go$open(e,n,r,f);function go$open(e,n,r,f){return g(e,n,r,function(s,l){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,n,r,f]]);else{if(typeof f==="function")f.apply(this,arguments);retry()}})}}return e}function enqueue(e){d("ENQUEUE",e[0].name,e[1]);global[v].push(e)}function retry(){var e=global[v].shift();if(e){d("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},2961:(e,n,r)=>{var f=r(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(n,r){if(!(this instanceof ReadStream))return new ReadStream(n,r);f.call(this);var s=this;this.path=n;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var l=Object.keys(r);for(var c=0,i=l.length;cthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(e,n){if(e){s.emit("error",e);s.readable=false;return}s.fd=n;s.emit("open",n);s._read()})}function WriteStream(n,r){if(!(this instanceof WriteStream))return new WriteStream(n,r);f.call(this);this.path=n;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var s=Object.keys(r);for(var l=0,c=s.length;l= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},8399:(e,n,r)=>{var f=r(7619);var s=process.cwd;var l=null;var c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!l)l=s.call(process);return l};try{process.cwd()}catch(e){}var i=process.chdir;process.chdir=function(e){l=null;i.call(process,e)};e.exports=patch;function patch(e){if(f.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,n,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,n,r,f){if(f)process.nextTick(f)};e.lchownSync=function(){}}if(c==="win32"){e.rename=function(n){return function(r,f,s){var l=Date.now();var c=0;n(r,f,function CB(i){if(i&&(i.code==="EACCES"||i.code==="EPERM")&&Date.now()-l<6e4){setTimeout(function(){e.stat(f,function(e,l){if(e&&e.code==="ENOENT")n(r,f,CB);else s(i)})},c);if(c<100)c+=10;return}if(s)s(i)})}}(e.rename)}e.read=function(n){function read(r,f,s,l,c,i){var v;if(i&&typeof i==="function"){var p=0;v=function(d,a,g){if(d&&d.code==="EAGAIN"&&p<10){p++;return n.call(e,r,f,s,l,c,v)}i.apply(this,arguments)}}return n.call(e,r,f,s,l,c,v)}read.__proto__=n;return read}(e.read);e.readSync=function(n){return function(r,f,s,l,c){var i=0;while(true){try{return n.call(e,r,f,s,l,c)}catch(e){if(e.code==="EAGAIN"&&i<10){i++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(n,r,s){e.open(n,f.O_WRONLY|f.O_SYMLINK,r,function(n,f){if(n){if(s)s(n);return}e.fchmod(f,r,function(n){e.close(f,function(e){if(s)s(n||e)})})})};e.lchmodSync=function(n,r){var s=e.openSync(n,f.O_WRONLY|f.O_SYMLINK,r);var l=true;var c;try{c=e.fchmodSync(s,r);l=false}finally{if(l){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return c}}function patchLutimes(e){if(f.hasOwnProperty("O_SYMLINK")){e.lutimes=function(n,r,s,l){e.open(n,f.O_SYMLINK,function(n,f){if(n){if(l)l(n);return}e.futimes(f,r,s,function(n){e.close(f,function(e){if(l)l(n||e)})})})};e.lutimesSync=function(n,r,s){var l=e.openSync(n,f.O_SYMLINK);var c;var i=true;try{c=e.futimesSync(l,r,s);i=false}finally{if(i){try{e.closeSync(l)}catch(e){}}else{e.closeSync(l)}}return c}}else{e.lutimes=function(e,n,r,f){if(f)process.nextTick(f)};e.lutimesSync=function(){}}}function chmodFix(n){if(!n)return n;return function(r,f,s){return n.call(e,r,f,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chmodFixSync(n){if(!n)return n;return function(r,f){try{return n.call(e,r,f)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(n){if(!n)return n;return function(r,f,s,l){return n.call(e,r,f,s,function(e){if(chownErOk(e))e=null;if(l)l.apply(this,arguments)})}}function chownFixSync(n){if(!n)return n;return function(r,f,s){try{return n.call(e,r,f,s)}catch(e){if(!chownErOk(e))throw e}}}function statFix(n){if(!n)return n;return function(r,f,s){if(typeof f==="function"){s=f;f=null}function callback(e,n){if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}if(s)s.apply(this,arguments)}return f?n.call(e,r,f,callback):n.call(e,r,callback)}}function statFixSync(n){if(!n)return n;return function(r,f){var s=f?n.call(e,r,f):n.call(e,r);if(s.uid<0)s.uid+=4294967296;if(s.gid<0)s.gid+=4294967296;return s}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var n=!process.getuid||process.getuid()!==0;if(n){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},7371:(e,n,r)=>{"use strict";var f=r(2087);if(typeof f.homedir!=="undefined"){e.exports=f.homedir}else{e.exports=r(446)}},446:(e,n,r)=>{"use strict";var f=r(5747);var s=r(4393);function homedir(){if(process.platform==="win32"){if(process.env.USERPROFILE){return process.env.USERPROFILE}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){return process.env.HOMEDRIVE+process.env.HOMEPATH}if(process.env.HOME){return process.env.HOME}return null}if(process.env.HOME){return process.env.HOME}var e=tryReadFileSync("/etc/passwd");var n=find(s(e),getuid());if(n){return n}var r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!r){return null}if(process.platform==="darwin"){return"/Users/"+r}return"/home/"+r}function find(e,n){var r=e.length;for(var f=0;f{"use strict";var f=r(7329);var s=r(1704);function renamed(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+n+" instead, which is now safe by default.")}}e.exports.Type=r(9518);e.exports.Schema=r(4721);e.exports.FAILSAFE_SCHEMA=r(6654);e.exports.JSON_SCHEMA=r(708);e.exports.CORE_SCHEMA=r(3487);e.exports.DEFAULT_SCHEMA=r(6304);e.exports.load=f.load;e.exports.loadAll=f.loadAll;e.exports.dump=s.dump;e.exports.YAMLException=r(5646);e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},755:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,n){var r,f,s,l;if(n){l=Object.keys(n);for(r=0,f=l.length;r{"use strict";var f=r(755);var s=r(5646);var l=r(6304);var c=Object.prototype.toString;var i=Object.prototype.hasOwnProperty;var v=65279;var p=9;var d=10;var a=13;var g=32;var b=33;var w=34;var E=35;var F=37;var A=38;var j=39;var h=42;var O=44;var y=45;var R=58;var m=61;var I=62;var x=63;var C=64;var T=91;var z=93;var N=96;var U=123;var q=124;var M=125;var L={};L[0]="\\0";L[7]="\\a";L[8]="\\b";L[9]="\\t";L[10]="\\n";L[11]="\\v";L[12]="\\f";L[13]="\\r";L[27]="\\e";L[34]='\\"';L[92]="\\\\";L[133]="\\N";L[160]="\\_";L[8232]="\\L";L[8233]="\\P";var B=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var Q=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,n){var r,f,s,l,c,v,p;if(n===null)return{};r={};f=Object.keys(n);for(s=0,l=f.length;s=55296&&r<=56319&&n+1=56320&&f<=57343){return(r-55296)*1024+f-56320+65536}}return r}function needIndentIndicator(e){var n=/^\n* /;return n.test(e)}var D=1,J=2,H=3,G=4,X=5;function chooseScalarStyle(e,n,r,f,s,l,c,i){var v;var p=0;var a=null;var g=false;var b=false;var w=f!==-1;var E=-1;var F=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(n||c){for(v=0;v=65536?v+=2:v++){p=codePointAt(e,v);if(!isPrintable(p)){return X}F=F&&isPlainSafe(p,a,i);a=p}}else{for(v=0;v=65536?v+=2:v++){p=codePointAt(e,v);if(p===d){g=true;if(w){b=b||v-E-1>f&&e[E+1]!==" ";E=v}}else if(!isPrintable(p)){return X}F=F&&isPlainSafe(p,a,i);a=p}b=b||w&&(v-E-1>f&&e[E+1]!==" ")}if(!g&&!b){if(F&&!c&&!s(e)){return D}return l===Y?X:J}if(r>9&&needIndentIndicator(e)){return X}if(!c){return b?G:H}return l===Y?X:J}function writeScalar(e,n,r,f,l){e.dump=function(){if(n.length===0){return e.quotingType===Y?'""':"''"}if(!e.noCompatMode){if(B.indexOf(n)!==-1||Q.test(n)){return e.quotingType===Y?'"'+n+'"':"'"+n+"'"}}var c=e.indent*Math.max(1,r);var i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c);var v=f||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(n){return testImplicitResolving(e,n)}switch(chooseScalarStyle(n,v,e.indent,i,testAmbiguity,e.quotingType,e.forceQuotes&&!f,l)){case D:return n;case J:return"'"+n.replace(/'/g,"''")+"'";case H:return"|"+blockHeader(n,e.indent)+dropEndingNewline(indentString(n,c));case G:return">"+blockHeader(n,e.indent)+dropEndingNewline(indentString(foldString(n,i),c));case X:return'"'+escapeString(n,i)+'"';default:throw new s("impossible error: invalid scalar style")}}()}function blockHeader(e,n){var r=needIndentIndicator(e)?String(n):"";var f=e[e.length-1]==="\n";var s=f&&(e[e.length-2]==="\n"||e==="\n");var l=s?"+":f?"":"-";return r+l+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,n){var r=/(\n+)([^\n]*)/g;var f=function(){var f=e.indexOf("\n");f=f!==-1?f:e.length;r.lastIndex=f;return foldLine(e.slice(0,f),n)}();var s=e[0]==="\n"||e[0]===" ";var l;var c;while(c=r.exec(e)){var i=c[1],v=c[2];l=v[0]===" ";f+=i+(!s&&!l&&v!==""?"\n":"")+foldLine(v,n);s=l}return f}function foldLine(e,n){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var f;var s=0,l,c=0,i=0;var v="";while(f=r.exec(e)){i=f.index;if(i-s>n){l=c>s?c:i;v+="\n"+e.slice(s,l);s=l+1}c=i}v+="\n";if(e.length-s>n&&c>s){v+=e.slice(s,c)+"\n"+e.slice(c+1)}else{v+=e.slice(s)}return v.slice(1)}function escapeString(e){var n="";var r=0;var f;for(var s=0;s=65536?s+=2:s++){r=codePointAt(e,s);f=L[r];if(!f&&isPrintable(r)){n+=e[s];if(r>=65536)n+=e[s+1]}else{n+=f||encodeHex(r)}}return n}function writeFlowSequence(e,n,r){var f="",s=e.tag,l,c,i;for(l=0,c=r.length;l1024)d+="? ";d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,n,p,false,false)){continue}d+=e.dump;f+=d}e.tag=s;e.dump="{"+f+"}"}function writeBlockMapping(e,n,r,f){var l="",c=e.tag,i=Object.keys(r),v,p,a,g,b,w;if(e.sortKeys===true){i.sort()}else if(typeof e.sortKeys==="function"){i.sort(e.sortKeys)}else if(e.sortKeys){throw new s("sortKeys must be a boolean or a function")}for(v=0,p=i.length;v1024;if(b){if(e.dump&&d===e.dump.charCodeAt(0)){w+="?"}else{w+="? "}}w+=e.dump;if(b){w+=generateNextLine(e,n)}if(!writeNode(e,n+1,g,true,b)){continue}if(e.dump&&d===e.dump.charCodeAt(0)){w+=":"}else{w+=": "}w+=e.dump;l+=w}e.tag=c;e.dump=l||"{}"}function detectType(e,n,r){var f,l,v,p,d,a;l=r?e.explicitTypes:e.implicitTypes;for(v=0,p=l.length;v tag resolver accepts not "'+a+'" style')}e.dump=f}return true}}return false}function writeNode(e,n,r,f,l,i,v){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var p=c.call(e.dump);var d=f;var a;if(f){f=e.flowLevel<0||e.flowLevel>n}var g=p==="[object Object]"||p==="[object Array]",b,w;if(g){b=e.duplicates.indexOf(r);w=b!==-1}if(e.tag!==null&&e.tag!=="?"||w||e.indent!==2&&n>0){l=false}if(w&&e.usedDuplicates[b]){e.dump="*ref_"+b}else{if(g&&w&&!e.usedDuplicates[b]){e.usedDuplicates[b]=true}if(p==="[object Object]"){if(f&&Object.keys(e.dump).length!==0){writeBlockMapping(e,n,e.dump,l);if(w){e.dump="&ref_"+b+e.dump}}else{writeFlowMapping(e,n,e.dump);if(w){e.dump="&ref_"+b+" "+e.dump}}}else if(p==="[object Array]"){if(f&&e.dump.length!==0){if(e.noArrayIndent&&!v&&n>0){writeBlockSequence(e,n-1,e.dump,l)}else{writeBlockSequence(e,n,e.dump,l)}if(w){e.dump="&ref_"+b+e.dump}}else{writeFlowSequence(e,n,e.dump);if(w){e.dump="&ref_"+b+" "+e.dump}}}else if(p==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,n,i,d)}}else if(p==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new s("unacceptable kind of an object to dump "+p)}if(e.tag!==null&&e.tag!=="?"){a=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){a="!"+a}else if(a.slice(0,18)==="tag:yaml.org,2002:"){a="!!"+a.slice(18)}else{a="!<"+a+">"}e.dump=a+" "+e.dump}}return true}function getDuplicateReferences(e,n){var r=[],f=[],s,l;inspectNode(e,r,f);for(s=0,l=f.length;s{"use strict";function formatError(e,n){var r="",f=e.reason||"(unknown reason)";if(!e.mark)return f;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!n&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return f+" "+r}function YAMLException(e,n){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=n;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},7329:(e,n,r)=>{"use strict";var f=r(755);var s=r(5646);var l=r(5398);var c=r(6304);var i=Object.prototype.hasOwnProperty;var v=1;var p=2;var d=3;var a=4;var g=1;var b=2;var w=3;var E=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var F=/[\x85\u2028\u2029]/;var A=/[,\[\]\{\}]/;var j=/^(?:!|!!|![a-z\-]+!)$/i;var h=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var n;if(48<=e&&e<=57){return e-48}n=e|32;if(97<=n&&n<=102){return n-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var O=new Array(256);var y=new Array(256);for(var R=0;R<256;R++){O[R]=simpleEscapeSequence(R)?1:0;y[R]=simpleEscapeSequence(R)}function State(e,n){this.input=e;this.filename=n["filename"]||null;this.schema=n["schema"]||c;this.onWarning=n["onWarning"]||null;this.legacy=n["legacy"]||false;this.json=n["json"]||false;this.listener=n["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,n){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=l(r);return new s(n,r)}function throwError(e,n){throw generateError(e,n)}function throwWarning(e,n){if(e.onWarning){e.onWarning.call(null,generateError(e,n))}}var m={YAML:function handleYamlDirective(e,n,r){var f,s,l;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}f=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(f===null){throwError(e,"ill-formed argument of the YAML directive")}s=parseInt(f[1],10);l=parseInt(f[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=l<2;if(l!==1&&l!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,n,r){var f,s;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}f=r[0];s=r[1];if(!j.test(f)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(i.call(e.tagMap,f)){throwError(e,'there is a previously declared suffix for "'+f+'" tag handle')}if(!h.test(s)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{s=decodeURIComponent(s)}catch(n){throwError(e,"tag prefix is malformed: "+s)}e.tagMap[f]=s}};function captureSegment(e,n,r,f){var s,l,c,i;if(n1){e.result+=f.repeat("\n",n-1)}}function readPlainScalar(e,n,r){var f,s,l,c,i,v,p,d,a=e.kind,g=e.result,b;b=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(b)||is_FLOW_INDICATOR(b)||b===35||b===38||b===42||b===33||b===124||b===62||b===39||b===34||b===37||b===64||b===96){return false}if(b===63||b===45){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){return false}}e.kind="scalar";e.result="";l=c=e.position;i=false;while(b!==0){if(b===58){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){break}}else if(b===35){f=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(f)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(b)){break}else if(is_EOL(b)){v=e.line;p=e.lineStart;d=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=n){i=true;b=e.input.charCodeAt(e.position);continue}else{e.position=c;e.line=v;e.lineStart=p;e.lineIndent=d;break}}if(i){captureSegment(e,l,c,false);writeFoldedLines(e,e.line-v);l=c=e.position;i=false}if(!is_WHITE_SPACE(b)){c=e.position+1}b=e.input.charCodeAt(++e.position)}captureSegment(e,l,c,false);if(e.result){return true}e.kind=a;e.result=g;return false}function readSingleQuotedScalar(e,n){var r,f,s;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;f=s=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,f,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){f=e.position;e.position++;s=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,f,s,true);writeFoldedLines(e,skipSeparationSpace(e,false,n));f=s=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;s=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,n){var r,f,s,l,c,i;i=e.input.charCodeAt(e.position);if(i!==34){return false}e.kind="scalar";e.result="";e.position++;r=f=e.position;while((i=e.input.charCodeAt(e.position))!==0){if(i===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(i===92){captureSegment(e,r,e.position,true);i=e.input.charCodeAt(++e.position);if(is_EOL(i)){skipSeparationSpace(e,false,n)}else if(i<256&&O[i]){e.result+=y[i];e.position++}else if((c=escapedHexLen(i))>0){s=c;l=0;for(;s>0;s--){i=e.input.charCodeAt(++e.position);if((c=fromHexCode(i))>=0){l=(l<<4)+c}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(l);e.position++}else{throwError(e,"unknown escape sequence")}r=f=e.position}else if(is_EOL(i)){captureSegment(e,r,f,true);writeFoldedLines(e,skipSeparationSpace(e,false,n));r=f=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;f=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,n){var r=true,f,s,l,c=e.tag,i,p=e.anchor,d,a,g,b,w,E=Object.create(null),F,A,j,h;h=e.input.charCodeAt(e.position);if(h===91){a=93;w=false;i=[]}else if(h===123){a=125;w=true;i={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=i}h=e.input.charCodeAt(++e.position);while(h!==0){skipSeparationSpace(e,true,n);h=e.input.charCodeAt(e.position);if(h===a){e.position++;e.tag=c;e.anchor=p;e.kind=w?"mapping":"sequence";e.result=i;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(h===44){throwError(e,"expected the node content, but found ','")}A=F=j=null;g=b=false;if(h===63){d=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(d)){g=b=true;e.position++;skipSeparationSpace(e,true,n)}}f=e.line;s=e.lineStart;l=e.position;composeNode(e,n,v,false,true);A=e.tag;F=e.result;skipSeparationSpace(e,true,n);h=e.input.charCodeAt(e.position);if((b||e.line===f)&&h===58){g=true;h=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,n);composeNode(e,n,v,false,true);j=e.result}if(w){storeMappingPair(e,i,E,A,F,j,f,s,l)}else if(g){i.push(storeMappingPair(e,null,E,A,F,j,f,s,l))}else{i.push(F)}skipSeparationSpace(e,true,n);h=e.input.charCodeAt(e.position);if(h===44){r=true;h=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,n){var r,s,l=g,c=false,i=false,v=n,p=0,d=false,a,E;E=e.input.charCodeAt(e.position);if(E===124){s=false}else if(E===62){s=true}else{return false}e.kind="scalar";e.result="";while(E!==0){E=e.input.charCodeAt(++e.position);if(E===43||E===45){if(g===l){l=E===43?w:b}else{throwError(e,"repeat of a chomping mode identifier")}}else if((a=fromDecimalCode(E))>=0){if(a===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!i){v=n+a-1;i=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(E)){do{E=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(E));if(E===35){do{E=e.input.charCodeAt(++e.position)}while(!is_EOL(E)&&E!==0)}}while(E!==0){readLineBreak(e);e.lineIndent=0;E=e.input.charCodeAt(e.position);while((!i||e.lineIndentv){v=e.lineIndent}if(is_EOL(E)){p++;continue}if(e.lineIndentn)&&v!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentn){if(j){c=e.line;i=e.lineStart;v=e.position}if(composeNode(e,n,a,true,s)){if(j){F=e.result}else{A=e.result}}if(!j){storeMappingPair(e,b,w,E,F,A,c,i,v);E=F=A=null}skipSeparationSpace(e,true,-1);O=e.input.charCodeAt(e.position)}if((e.line===l||e.lineIndent>n)&&O!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentn){b=1}else if(e.lineIndent===n){b=0}else if(e.lineIndentn){b=1}else if(e.lineIndent===n){b=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(F=0,A=e.implicitTypes.length;F")}if(e.result!==null&&h.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"')}if(!h.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=h.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||E}function readDocument(e){var n=e.position,r,f,s,l=false,c;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((c=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);c=e.input.charCodeAt(e.position);if(e.lineIndent>0||c!==37){break}l=true;c=e.input.charCodeAt(++e.position);r=e.position;while(c!==0&&!is_WS_OR_EOL(c)){c=e.input.charCodeAt(++e.position)}f=e.input.slice(r,e.position);s=[];if(f.length<1){throwError(e,"directive name must not be less than one character in length")}while(c!==0){while(is_WHITE_SPACE(c)){c=e.input.charCodeAt(++e.position)}if(c===35){do{c=e.input.charCodeAt(++e.position)}while(c!==0&&!is_EOL(c));break}if(is_EOL(c))break;r=e.position;while(c!==0&&!is_WS_OR_EOL(c)){c=e.input.charCodeAt(++e.position)}s.push(e.input.slice(r,e.position))}if(c!==0)readLineBreak(e);if(i.call(m,f)){m[f](e,f,s)}else{throwWarning(e,'unknown document directive "'+f+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(l){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,a,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&F.test(e.input.slice(n,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var f=r(5646);var s=r(9518);function compileList(e,n,r){var f=[];e[n].forEach(function(e){r.forEach(function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){f.push(r)}});r.push(e)});return r.filter(function(e,n){return f.indexOf(n)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;function collectType(n){if(n.multi){e.multi[n.kind].push(n);e.multi["fallback"].push(n)}else{e[n.kind][n.tag]=e["fallback"][n.tag]=n}}for(n=0,r=arguments.length;n{"use strict";e.exports=r(708)},6304:(e,n,r)=>{"use strict";e.exports=r(3487).extend({implicit:[r(9346),r(3801)],explicit:[r(1220),r(5277),r(6864),r(4299)]})},6654:(e,n,r)=>{"use strict";var f=r(4721);e.exports=new f({explicit:[r(1420),r(8196),r(557)]})},708:(e,n,r)=>{"use strict";e.exports=r(6654).extend({implicit:[r(6133),r(952),r(4392),r(2458)]})},5398:(e,n,r)=>{"use strict";var f=r(755);function getLine(e,n,r,f,s){var l="";var c="";var i=Math.floor(s/2)-1;if(f-n>i){l=" ... ";n=f-i+l.length}if(r-f>i){c=" ...";r=f+i-c.length}return{str:l+e.slice(n,r).replace(/\t/g,"→")+c,pos:f-n+l.length}}function padStart(e,n){return f.repeat(" ",n-e.length)+e}function makeSnippet(e,n){n=Object.create(n||null);if(!e.buffer)return null;if(!n.maxLength)n.maxLength=79;if(typeof n.indent!=="number")n.indent=1;if(typeof n.linesBefore!=="number")n.linesBefore=3;if(typeof n.linesAfter!=="number")n.linesAfter=2;var r=/\r?\n|\r|\0/g;var s=[0];var l=[];var c;var i=-1;while(c=r.exec(e.buffer)){l.push(c.index);s.push(c.index+c[0].length);if(e.position<=c.index&&i<0){i=s.length-2}}if(i<0)i=s.length-1;var v="",p,d;var a=Math.min(e.line+n.linesAfter,l.length).toString().length;var g=n.maxLength-(n.indent+a+3);for(p=1;p<=n.linesBefore;p++){if(i-p<0)break;d=getLine(e.buffer,s[i-p],l[i-p],e.position-(s[i]-s[i-p]),g);v=f.repeat(" ",n.indent)+padStart((e.line-p+1).toString(),a)+" | "+d.str+"\n"+v}d=getLine(e.buffer,s[i],l[i],e.position,g);v+=f.repeat(" ",n.indent)+padStart((e.line+1).toString(),a)+" | "+d.str+"\n";v+=f.repeat("-",n.indent+a+3+d.pos)+"^"+"\n";for(p=1;p<=n.linesAfter;p++){if(i+p>=l.length)break;d=getLine(e.buffer,s[i+p],l[i+p],e.position-(s[i]-s[i+p]),g);v+=f.repeat(" ",n.indent)+padStart((e.line+p+1).toString(),a)+" | "+d.str+"\n"}return v.replace(/\n$/,"")}e.exports=makeSnippet},9518:(e,n,r)=>{"use strict";var f=r(5646);var s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var l=["scalar","sequence","mapping"];function compileStyleAliases(e){var n={};if(e!==null){Object.keys(e).forEach(function(r){e[r].forEach(function(e){n[String(e)]=r})})}return n}function Type(e,n){n=n||{};Object.keys(n).forEach(function(n){if(s.indexOf(n)===-1){throw new f('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=n["kind"]||null;this.resolve=n["resolve"]||function(){return true};this.construct=n["construct"]||function(e){return e};this.instanceOf=n["instanceOf"]||null;this.predicate=n["predicate"]||null;this.represent=n["represent"]||null;this.representName=n["representName"]||null;this.defaultStyle=n["defaultStyle"]||null;this.multi=n["multi"]||false;this.styleAliases=compileStyleAliases(n["styleAliases"]||null);if(l.indexOf(this.kind)===-1){throw new f('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},1220:(e,n,r)=>{"use strict";var f=r(9518);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var n,r,f=0,l=e.length,c=s;for(r=0;r64)continue;if(n<0)return false;f+=6}return f%8===0}function constructYamlBinary(e){var n,r,f=e.replace(/[\r\n=]/g,""),l=f.length,c=s,i=0,v=[];for(n=0;n>16&255);v.push(i>>8&255);v.push(i&255)}i=i<<6|c.indexOf(f.charAt(n))}r=l%4*6;if(r===0){v.push(i>>16&255);v.push(i>>8&255);v.push(i&255)}else if(r===18){v.push(i>>10&255);v.push(i>>2&255)}else if(r===12){v.push(i>>4&255)}return new Uint8Array(v)}function representYamlBinary(e){var n="",r=0,f,l,c=e.length,i=s;for(f=0;f>18&63];n+=i[r>>12&63];n+=i[r>>6&63];n+=i[r&63]}r=(r<<8)+e[f]}l=c%3;if(l===0){n+=i[r>>18&63];n+=i[r>>12&63];n+=i[r>>6&63];n+=i[r&63]}else if(l===2){n+=i[r>>10&63];n+=i[r>>4&63];n+=i[r<<2&63];n+=i[64]}else if(l===1){n+=i[r>>2&63];n+=i[r<<4&63];n+=i[64];n+=i[64]}return n}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new f("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},952:(e,n,r)=>{"use strict";var f=r(9518);function resolveYamlBoolean(e){if(e===null)return false;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new f("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},2458:(e,n,r)=>{"use strict";var f=r(755);var s=r(9518);var l=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!l.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var n,r;n=e.replace(/_/g,"").toLowerCase();r=n[0]==="-"?-1:1;if("+-".indexOf(n[0])>=0){n=n.slice(1)}if(n===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(n===".nan"){return NaN}return r*parseFloat(n,10)}var c=/^[-+]?[0-9]+e/;function representYamlFloat(e,n){var r;if(isNaN(e)){switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(f.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return c.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||f.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},4392:(e,n,r)=>{"use strict";var f=r(755);var s=r(9518);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var n=e.length,r=0,f=false,s;if(!n)return false;s=e[r];if(s==="-"||s==="+"){s=e[++r]}if(s==="0"){if(r+1===n)return true;s=e[++r];if(s==="b"){r++;for(;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},557:(e,n,r)=>{"use strict";var f=r(9518);e.exports=new f("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},3801:(e,n,r)=>{"use strict";var f=r(9518);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new f("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},6133:(e,n,r)=>{"use strict";var f=r(9518);function resolveYamlNull(e){if(e===null)return true;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new f("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},5277:(e,n,r)=>{"use strict";var f=r(9518);var s=Object.prototype.hasOwnProperty;var l=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var n=[],r,f,c,i,v,p=e;for(r=0,f=p.length;r{"use strict";var f=r(9518);var s=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var n,r,f,l,c,i=e;c=new Array(i.length);for(n=0,r=i.length;n{"use strict";var f=r(9518);e.exports=new f("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},4299:(e,n,r)=>{"use strict";var f=r(9518);var s=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var n,r=e;for(n in r){if(s.call(r,n)){if(r[n]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new f("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},1420:(e,n,r)=>{"use strict";var f=r(9518);e.exports=new f("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9346:(e,n,r)=>{"use strict";var f=r(9518);var s=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var l=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(s.exec(e)!==null)return true;if(l.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var n,r,f,c,i,v,p,d=0,a=null,g,b,w;n=s.exec(e);if(n===null)n=l.exec(e);if(n===null)throw new Error("Date resolve error");r=+n[1];f=+n[2]-1;c=+n[3];if(!n[4]){return new Date(Date.UTC(r,f,c))}i=+n[4];v=+n[5];p=+n[6];if(n[7]){d=n[7].slice(0,3);while(d.length<3){d+="0"}d=+d}if(n[9]){g=+n[10];b=+(n[11]||0);a=(g*60+b)*6e4;if(n[9]==="-")a=-a}w=new Date(Date.UTC(r,f,c,i,v,p,d));if(a)w.setTime(w.getTime()-a);return w}function representYamlTimestamp(e){return e.toISOString()}e.exports=new f("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6997:e=>{"use strict";var n=e.exports=function(e,n,r){if(typeof n=="function"){r=n;n={}}r=n.cb||r;var f=typeof r=="function"?r:r.pre||function(){};var s=r.post||function(){};_traverse(n,f,s,e,"",e)};n.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};n.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};n.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};n.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,r,f,s,l,c,i,v,p,d){if(s&&typeof s=="object"&&!Array.isArray(s)){r(s,l,c,i,v,p,d);for(var a in s){var g=s[a];if(Array.isArray(g)){if(a in n.arrayKeywords){for(var b=0;b{let f;try{f=r(7690)}catch(e){f=r(5747)}const s=r(7395);const{stringify:l,stripBom:c}=r(3485);async function _readFile(e,n={}){if(typeof n==="string"){n={encoding:n}}const r=n.fs||f;const l="throws"in n?n.throws:true;let i=await s.fromCallback(r.readFile)(e,n);i=c(i);let v;try{v=JSON.parse(i,n?n.reviver:null)}catch(n){if(l){n.message=`${e}: ${n.message}`;throw n}else{return null}}return v}const i=s.fromPromise(_readFile);function readFileSync(e,n={}){if(typeof n==="string"){n={encoding:n}}const r=n.fs||f;const s="throws"in n?n.throws:true;try{let f=r.readFileSync(e,n);f=c(f);return JSON.parse(f,n.reviver)}catch(n){if(s){n.message=`${e}: ${n.message}`;throw n}else{return null}}}async function _writeFile(e,n,r={}){const c=r.fs||f;const i=l(n,r);await s.fromCallback(c.writeFile)(e,i,r)}const v=s.fromPromise(_writeFile);function writeFileSync(e,n,r={}){const s=r.fs||f;const c=l(n,r);return s.writeFileSync(e,c,r)}const p={readFile:i,readFileSync:readFileSync,writeFile:v,writeFileSync:writeFileSync};e.exports=p},3485:e=>{function stringify(e,{EOL:n="\n",finalEOL:r=true,replacer:f=null,spaces:s}={}){const l=r?n:"";const c=JSON.stringify(e,f,s);return c.replace(/\n/g,n)+l}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},2192:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var f=_interopDefault(r(2413));var s=_interopDefault(r(8605));var l=_interopDefault(r(8835));var c=_interopDefault(r(7211));var i=_interopDefault(r(8761));const v=f.Readable;const p=Symbol("buffer");const d=Symbol("type");class Blob{constructor(){this[d]="";const e=arguments[0];const n=arguments[1];const r=[];let f=0;if(e){const n=e;const s=Number(n.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},s=r.size;let l=s===undefined?0:s;var c=r.timeout;let i=c===undefined?0:c;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 f) ;else{e=Buffer.from(String(e))}this[g]={body:e,disturbed:false,error:null};this.size=l;this.timeout=i;if(e instanceof f){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${n.url}: ${e.message}`,"system",e);n[g].error=r})}}Body.prototype={get body(){return this[g].body},get bodyUsed(){return this[g].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(n){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[p]:n})})},json(){var e=this;return consumeBody.call(this).then(function(n){try{return JSON.parse(n.toString())}catch(n){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${n.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(n){return convertBody(n,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 n of Object.getOwnPropertyNames(Body.prototype)){if(!(n in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,n);Object.defineProperty(e,n,r)}}};function consumeBody(){var e=this;if(this[g].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[g].disturbed=true;if(this[g].error){return Body.Promise.reject(this[g].error)}let n=this.body;if(n===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(n)){n=n.stream()}if(Buffer.isBuffer(n)){return Body.Promise.resolve(n)}if(!(n instanceof f)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let s=0;let l=false;return new Body.Promise(function(f,c){let i;if(e.timeout){i=setTimeout(function(){l=true;c(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}n.on("error",function(n){if(n.name==="AbortError"){l=true;c(n)}else{c(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${n.message}`,"system",n))}});n.on("data",function(n){if(l||n===null){return}if(e.size&&s+n.length>e.size){l=true;c(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=n.length;r.push(n)});n.on("end",function(){if(l){return}clearTimeout(i);try{f(Buffer.concat(r,s))}catch(n){c(new FetchError(`Could not create Buffer from response body for ${e.url}: ${n.message}`,"system",n))}})})}function convertBody(e,n){if(typeof a!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=n.get("content-type");let f="utf-8";let s,l;if(r){s=/charset=([^;]*)/i.exec(r)}l=e.slice(0,1024).toString();if(!s&&l){s=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[F]=Object.create(null);if(e instanceof Headers){const n=e.raw();const r=Object.keys(n);for(const e of r){for(const r of n[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const n=e[Symbol.iterator];if(n!=null){if(typeof n!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const n of e){if(typeof n!=="object"||typeof n[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(n))}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 n of Object.keys(e)){const r=e[n];this.append(n,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const n=find(this[F],e);if(n===undefined){return null}return this[F][n].join(", ")}forEach(e){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let f=0;while(f1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[F]).sort();return r.map(n==="key"?function(e){return e.toLowerCase()}:n==="value"?function(n){return e[F][n].join(", ")}:function(n){return[n.toLowerCase(),e[F][n].join(", ")]})}const A=Symbol("internal");function createHeadersIterator(e,n){const r=Object.create(j);r[A]={target:e,kind:n,index:0};return r}const j=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==j){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[A];const n=e.target,r=e.kind,f=e.index;const s=getHeaders(n,r);const l=s.length;if(f>=l){return{value:undefined,done:true}}this[A].index=f+1;return{value:s[f],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(j,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const n=Object.assign({__proto__:null},e[F]);const r=find(e[F],"Host");if(r!==undefined){n[r]=n[r][0]}return n}function createHeadersLenient(e){const n=new Headers;for(const r of Object.keys(e)){if(w.test(r)){continue}if(Array.isArray(e[r])){for(const f of e[r]){if(E.test(f)){continue}if(n[F][r]===undefined){n[F][r]=[f]}else{n[F][r].push(f)}}}else if(!E.test(e[r])){n[F][r]=[e[r]]}}return n}const h=Symbol("Response internals");const O=s.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,n);const r=n.status||200;const f=new Headers(n.headers);if(e!=null&&!f.has("Content-Type")){const n=extractContentType(e);if(n){f.append("Content-Type",n)}}this[h]={url:n.url,status:r,statusText:n.statusText||O[r],headers:f,counter:n.counter}}get url(){return this[h].url||""}get status(){return this[h].status}get ok(){return this[h].status>=200&&this[h].status<300}get redirected(){return this[h].counter>0}get statusText(){return this[h].statusText}get headers(){return this[h].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 y=Symbol("Request internals");const R=l.parse;const m=l.format;const I="destroy"in f.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[y]==="object"}function isAbortSignal(e){const n=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(n&&n.constructor.name==="AbortSignal")}class Request{constructor(e){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=R(e.href)}else{r=R(`${e}`)}e={}}else{r=R(e.url)}let f=n.method||e.method||"GET";f=f.toUpperCase();if((n.body!=null||isRequest(e)&&e.body!==null)&&(f==="GET"||f==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let s=n.body!=null?n.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,s,{timeout:n.timeout||e.timeout||0,size:n.size||e.size||0});const l=new Headers(n.headers||e.headers||{});if(s!=null&&!l.has("Content-Type")){const e=extractContentType(s);if(e){l.append("Content-Type",e)}}let c=isRequest(e)?e.signal:null;if("signal"in n)c=n.signal;if(c!=null&&!isAbortSignal(c)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[y]={method:f,redirect:n.redirect||e.redirect||"follow",headers:l,parsedURL:r,signal:c};this.follow=n.follow!==undefined?n.follow:e.follow!==undefined?e.follow:20;this.compress=n.compress!==undefined?n.compress:e.compress!==undefined?e.compress:true;this.counter=n.counter||e.counter||0;this.agent=n.agent||e.agent}get method(){return this[y].method}get url(){return m(this[y].parsedURL)}get headers(){return this[y].headers}get redirect(){return this[y].redirect}get signal(){return this[y].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 n=e[y].parsedURL;const r=new Headers(e[y].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!n.protocol||!n.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(n.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof f.Readable&&!I){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 n=getTotalBytes(e);if(typeof n==="number"){s=String(n)}}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 l=e.agent;if(typeof l==="function"){l=l(n)}if(!r.has("Connection")&&!l){r.set("Connection","close")}return Object.assign({},n,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:l})}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 x=f.PassThrough;const C=l.resolve;function fetch(e,n){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,l){const v=new Request(e,n);const p=getNodeRequestOptions(v);const d=(p.protocol==="https:"?c:s).request;const a=v.signal;let g=null;const b=function abort(){let e=new AbortError("The user aborted a request.");l(e);if(v.body&&v.body instanceof f.Readable){v.body.destroy(e)}if(!g||!g.body)return;g.body.emit("error",e)};if(a&&a.aborted){b();return}const w=function abortAndFinalize(){b();finalize()};const E=d(p);let F;if(a){a.addEventListener("abort",w)}function finalize(){E.abort();if(a)a.removeEventListener("abort",w);clearTimeout(F)}if(v.timeout){E.once("socket",function(e){F=setTimeout(function(){l(new FetchError(`network timeout at: ${v.url}`,"request-timeout"));finalize()},v.timeout)})}E.on("error",function(e){l(new FetchError(`request to ${v.url} failed, reason: ${e.message}`,"system",e));finalize()});E.on("response",function(e){clearTimeout(F);const n=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const f=n.get("Location");const s=f===null?null:C(v.url,f);switch(v.redirect){case"error":l(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${v.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{n.set("Location",s)}catch(e){l(e)}}break;case"follow":if(s===null){break}if(v.counter>=v.follow){l(new FetchError(`maximum redirect reached at: ${v.url}`,"max-redirect"));finalize();return}const f={headers:new Headers(v.headers),follow:v.follow,counter:v.counter+1,agent:v.agent,compress:v.compress,method:v.method,body:v.body,signal:v.signal,timeout:v.timeout,size:v.size};if(e.statusCode!==303&&v.body&&getTotalBytes(v)===null){l(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)&&v.method==="POST"){f.method="GET";f.body=undefined;f.headers.delete("content-length")}r(fetch(new Request(s,f)));finalize();return}}e.once("end",function(){if(a)a.removeEventListener("abort",w)});let f=e.pipe(new x);const s={url:v.url,status:e.statusCode,statusText:e.statusMessage,headers:n,size:v.size,timeout:v.timeout,counter:v.counter};const c=n.get("Content-Encoding");if(!v.compress||v.method==="HEAD"||c===null||e.statusCode===204||e.statusCode===304){g=new Response(f,s);r(g);return}const p={flush:i.Z_SYNC_FLUSH,finishFlush:i.Z_SYNC_FLUSH};if(c=="gzip"||c=="x-gzip"){f=f.pipe(i.createGunzip(p));g=new Response(f,s);r(g);return}if(c=="deflate"||c=="x-deflate"){const n=e.pipe(new x);n.once("data",function(e){if((e[0]&15)===8){f=f.pipe(i.createInflate())}else{f=f.pipe(i.createInflateRaw())}g=new Response(f,s);r(g)});return}if(c=="br"&&typeof i.createBrotliDecompress==="function"){f=f.pipe(i.createBrotliDecompress());g=new Response(f,s);r(g);return}g=new Response(f,s);r(g)});writeToStream(E,v)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=n=fetch;Object.defineProperty(n,"__esModule",{value:true});n.default=n;n.Headers=Headers;n.Request=Request;n.Response=Response;n.FetchError=FetchError},4393:e=>{"use strict";e.exports=function(e){if(typeof e!=="string"){throw new Error("expected a string")}return e.split("\n").map(user).filter(Boolean)};function user(e,n){if(!e||!e.length||e.charAt(0)==="#"){return null}var r=e.split(":");return{username:r[0],password:r[1],uid:r[2],gid:r[3],gecos:r[4],homedir:r[5],shell:r[6]}}},7395:(e,n)=>{"use strict";n.fromCallback=function(e){return Object.defineProperty(function(...n){if(typeof n[n.length-1]==="function")e.apply(this,n);else{return new Promise((r,f)=>{e.call(this,...n,(e,n)=>e!=null?f(e):r(n))})}},"name",{value:e.name})};n.fromPromise=function(e){return Object.defineProperty(function(...n){const r=n[n.length-1];if(typeof r!=="function")return e.apply(this,n);else e.apply(this,n.slice(0,-1)).then(e=>r(null,e),r)},"name",{value:e.name})}},4430:function(e,n){(function(e,r){true?r(n):0})(this,function(e){"use strict";function merge(){for(var e=arguments.length,n=Array(e),r=0;r1){n[0]=n[0].slice(0,-1);var f=n.length-1;for(var s=1;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var j=c-i;var h=Math.floor;var O=String.fromCharCode;function error$1(e){throw new RangeError(A[e])}function map(e,n){var r=[];var f=e.length;while(f--){r[f]=n(e[f])}return r}function mapDomain(e,n){var r=e.split("@");var f="";if(r.length>1){f=r[0]+"@";e=r[1]}e=e.replace(F,".");var s=e.split(".");var l=map(s,n).join(".");return f+l}function ucs2decode(e){var n=[];var r=0;var f=e.length;while(r=55296&&s<=56319&&r>1;e+=h(e/n);for(;e>j*v>>1;f+=c){e=h(e/j)}return h(f+(j+1)*e/(e+p))};var x=function decode(e){var n=[];var r=e.length;var f=0;var s=g;var p=a;var d=e.lastIndexOf(b);if(d<0){d=0}for(var w=0;w=128){error$1("not-basic")}n.push(e.charCodeAt(w))}for(var E=d>0?d+1:0;E=r){error$1("invalid-input")}var O=R(e.charCodeAt(E++));if(O>=c||O>h((l-f)/A)){error$1("overflow")}f+=O*A;var y=j<=p?i:j>=p+v?v:j-p;if(Oh(l/m)){error$1("overflow")}A*=m}var x=n.length+1;p=I(f-F,x,F==0);if(h(f/x)>l-s){error$1("overflow")}s+=h(f/x);f%=x;n.splice(f++,0,s)}return String.fromCodePoint.apply(String,n)};var C=function encode(e){var n=[];e=ucs2decode(e);var r=e.length;var f=g;var s=0;var p=a;var d=true;var w=false;var E=undefined;try{for(var F=e[Symbol.iterator](),A;!(d=(A=F.next()).done);d=true){var j=A.value;if(j<128){n.push(O(j))}}}catch(e){w=true;E=e}finally{try{if(!d&&F.return){F.return()}}finally{if(w){throw E}}}var y=n.length;var R=y;if(y){n.push(b)}while(R=f&&qh((l-s)/M)){error$1("overflow")}s+=(x-f)*M;f=x;var L=true;var B=false;var Q=undefined;try{for(var W=e[Symbol.iterator](),Y;!(L=(Y=W.next()).done);L=true){var D=Y.value;if(Dl){error$1("overflow")}if(D==f){var J=s;for(var H=c;;H+=c){var G=H<=p?i:H>=p+v?v:H-p;if(J>6|192).toString(16).toUpperCase()+"%"+(n&63|128).toString(16).toUpperCase();else r="%"+(n>>12|224).toString(16).toUpperCase()+"%"+(n>>6&63|128).toString(16).toUpperCase()+"%"+(n&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var n="";var r=0;var f=e.length;while(r=194&&s<224){if(f-r>=6){var l=parseInt(e.substr(r+4,2),16);n+=String.fromCharCode((s&31)<<6|l&63)}else{n+=e.substr(r,6)}r+=6}else if(s>=224){if(f-r>=9){var c=parseInt(e.substr(r+4,2),16);var i=parseInt(e.substr(r+7,2),16);n+=String.fromCharCode((s&15)<<12|(c&63)<<6|i&63)}else{n+=e.substr(r,9)}r+=9}else{n+=e.substr(r,3);r+=3}}return n}function _normalizeComponentEncoding(e,n){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(n.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(n.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(n.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_USERINFO,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(n.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(n.NOT_HOST,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(n.PCT_ENCODED,decodeUnreserved).replace(e.scheme?n.NOT_PATH:n.NOT_PATH_NOSCHEME,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_QUERY,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_FRAGMENT,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,n){var r=e.match(n.IPV4ADDRESS)||[];var s=f(r,2),l=s[1];if(l){return l.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,n){var r=e.match(n.IPV6ADDRESS)||[];var s=f(r,3),l=s[1],c=s[2];if(l){var i=l.toLowerCase().split("::").reverse(),v=f(i,2),p=v[0],d=v[1];var a=d?d.split(":").map(_stripLeadingZeros):[];var g=p.split(":").map(_stripLeadingZeros);var b=n.IPV4ADDRESS.test(g[g.length-1]);var w=b?7:8;var E=g.length-w;var F=Array(w);for(var A=0;A1){var y=F.slice(0,h.index);var R=F.slice(h.index+h.length);O=y.join(":")+"::"+R.join(":")}else{O=F.join(":")}if(c){O+="%"+c}return O}else{return e}}var q=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var M="".match(/(){0}/)[1]===undefined;function parse(e){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s={};var l=f.iri!==false?r:n;if(f.reference==="suffix")e=(f.scheme?f.scheme+":":"")+"//"+e;var c=e.match(q);if(c){if(M){s.scheme=c[1];s.userinfo=c[3];s.host=c[4];s.port=parseInt(c[5],10);s.path=c[6]||"";s.query=c[7];s.fragment=c[8];if(isNaN(s.port)){s.port=c[5]}}else{s.scheme=c[1]||undefined;s.userinfo=e.indexOf("@")!==-1?c[3]:undefined;s.host=e.indexOf("//")!==-1?c[4]:undefined;s.port=parseInt(c[5],10);s.path=c[6]||"";s.query=e.indexOf("?")!==-1?c[7]:undefined;s.fragment=e.indexOf("#")!==-1?c[8]:undefined;if(isNaN(s.port)){s.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?c[4]:undefined}}if(s.host){s.host=_normalizeIPv6(_normalizeIPv4(s.host,l),l)}if(s.scheme===undefined&&s.userinfo===undefined&&s.host===undefined&&s.port===undefined&&!s.path&&s.query===undefined){s.reference="same-document"}else if(s.scheme===undefined){s.reference="relative"}else if(s.fragment===undefined){s.reference="absolute"}else{s.reference="uri"}if(f.reference&&f.reference!=="suffix"&&f.reference!==s.reference){s.error=s.error||"URI is not a "+f.reference+" reference."}var i=U[(f.scheme||s.scheme||"").toLowerCase()];if(!f.unicodeSupport&&(!i||!i.unicodeSupport)){if(s.host&&(f.domainHost||i&&i.domainHost)){try{s.host=N.toASCII(s.host.replace(l.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){s.error=s.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(s,n)}else{_normalizeComponentEncoding(s,l)}if(i&&i.parse){i.parse(s,f)}}else{s.error=s.error||"URI can not be parsed."}return s}function _recomposeAuthority(e,f){var s=f.iri!==false?r:n;var l=[];if(e.userinfo!==undefined){l.push(e.userinfo);l.push("@")}if(e.host!==undefined){l.push(_normalizeIPv6(_normalizeIPv4(String(e.host),s),s).replace(s.IPV6ADDRESS,function(e,n,r){return"["+n+(r?"%25"+r:"")+"]"}))}if(typeof e.port==="number"){l.push(":");l.push(e.port.toString(10))}return l.length?l.join(""):undefined}var L=/^\.\.?\//;var B=/^\/\.(\/|$)/;var Q=/^\/\.\.(\/|$)/;var W=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var n=[];while(e.length){if(e.match(L)){e=e.replace(L,"")}else if(e.match(B)){e=e.replace(B,"/")}else if(e.match(Q)){e=e.replace(Q,"/");n.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(W);if(r){var f=r[0];e=e.slice(f.length);n.push(f)}else{throw new Error("Unexpected dot segment condition")}}}return n.join("")}function serialize(e){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s=f.iri?r:n;var l=[];var c=U[(f.scheme||e.scheme||"").toLowerCase()];if(c&&c.serialize)c.serialize(e,f);if(e.host){if(s.IPV6ADDRESS.test(e.host)){}else if(f.domainHost||c&&c.domainHost){try{e.host=!f.iri?N.toASCII(e.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase()):N.toUnicode(e.host)}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(!f.iri?"ASCII":"Unicode")+" via punycode: "+n}}}_normalizeComponentEncoding(e,s);if(f.reference!=="suffix"&&e.scheme){l.push(e.scheme);l.push(":")}var i=_recomposeAuthority(e,f);if(i!==undefined){if(f.reference!=="suffix"){l.push("//")}l.push(i);if(e.path&&e.path.charAt(0)!=="/"){l.push("/")}}if(e.path!==undefined){var v=e.path;if(!f.absolutePath&&(!c||!c.absolutePath)){v=removeDotSegments(v)}if(i===undefined){v=v.replace(/^\/\//,"/%2F")}l.push(v)}if(e.query!==undefined){l.push("?");l.push(e.query)}if(e.fragment!==undefined){l.push("#");l.push(e.fragment)}return l.join("")}function resolveComponents(e,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var f=arguments[3];var s={};if(!f){e=parse(serialize(e,r),r);n=parse(serialize(n,r),r)}r=r||{};if(!r.tolerant&&n.scheme){s.scheme=n.scheme;s.userinfo=n.userinfo;s.host=n.host;s.port=n.port;s.path=removeDotSegments(n.path||"");s.query=n.query}else{if(n.userinfo!==undefined||n.host!==undefined||n.port!==undefined){s.userinfo=n.userinfo;s.host=n.host;s.port=n.port;s.path=removeDotSegments(n.path||"");s.query=n.query}else{if(!n.path){s.path=e.path;if(n.query!==undefined){s.query=n.query}else{s.query=e.query}}else{if(n.path.charAt(0)==="/"){s.path=removeDotSegments(n.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){s.path="/"+n.path}else if(!e.path){s.path=n.path}else{s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+n.path}s.path=removeDotSegments(s.path)}s.query=n.query}s.userinfo=e.userinfo;s.host=e.host;s.port=e.port}s.scheme=e.scheme}s.fragment=n.fragment;return s}function resolve(e,n,r){var f=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,f),parse(n,f),f,true),f)}function normalize(e,n){if(typeof e==="string"){e=serialize(parse(e,n),n)}else if(typeOf(e)==="object"){e=parse(serialize(e,n),n)}return e}function equal(e,n,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof n==="string"){n=serialize(parse(n,r),r)}else if(typeOf(n)==="object"){n=serialize(n,r)}return e===n}function escapeComponent(e,f){return e&&e.toString().replace(!f||!f.iri?n.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,f){return e&&e.toString().replace(!f||!f.iri?n.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var Y={scheme:"http",domainHost:true,parse:function parse(e,n){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,n){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var D={scheme:"https",domainHost:Y.domainHost,parse:Y.parse,serialize:Y.serialize};var J={};var H=true;var G="[A-Za-z0-9\\-\\.\\_\\~"+(H?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var X="[0-9A-Fa-f]";var Z=subexp(subexp("%[EFef]"+X+"%"+X+X+"%"+X+X)+"|"+subexp("%[89A-Fa-f]"+X+"%"+X+X)+"|"+subexp("%"+X+X));var S="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var k="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var V=merge(k,'[\\"\\\\]');var K="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var o=new RegExp(G,"g");var P=new RegExp(Z,"g");var u=new RegExp(merge("[^]",S,"[\\.]",'[\\"]',V),"g");var _=new RegExp(merge("[^]",G,K),"g");var t=_;function decodeUnreserved(e){var n=pctDecChars(e);return!n.match(o)?e:n}var $={scheme:"mailto",parse:function parse$$1(e,n){var r=e;var f=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var s=false;var l={};var c=r.query.split("&");for(var i=0,v=c.length;i{module.exports=eval("require")("encoding")},2706:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},1742:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1765:e=>{"use strict";e.exports=require("process")},2413:e=>{"use strict";e.exports=require("stream")},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){if(__webpack_module_cache__[e]){return __webpack_module_cache__[e].exports}var n=__webpack_module_cache__[e]={exports:{}};var r=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);r=false}finally{if(r)delete __webpack_module_cache__[e]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(6011)})(); \ No newline at end of file +module.exports=(()=>{var __webpack_modules__={2492:e=>{"use strict";e.exports=JSON.parse('{"anyOf":[{"$ref":"#/definitions/RunInstall"},{"type":"array","items":{"$ref":"#/definitions/RunInstall"}},{"type":["null","boolean"]}],"definitions":{"RunInstall":{"type":"object","properties":{"recursive":{"type":"boolean"},"cwd":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}}}},"$schema":"http://json-schema.org/draft-07/schema#"}')},6152:function(e,r,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const i=n(2743);const o=s(n(539));const l=s(n(7701));const f=s(n(9875));const c=s(n(4882));async function main(){const e=(0,o.default)();const r=await(0,f.default)(e);console.log("Installation Completed!");(0,l.default)(r);(0,c.default)(e,r)}main().catch(e=>{console.error(e);(0,i.setFailed)(e)})},539:function(e,r,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const i=n(2743);const o=s(n(9413));const l=n(4019);function getInputs(){const e=(0,o.default)((0,i.getInput)("dest"));let r=(0,i.getInput)("version");if(r==="")r=undefined;const n=(0,l.parseRunInstall)((0,i.getInput)("run_install"));return{version:r,dest:e,runInstall:n}}r.getInputs=getInputs;r.default=getInputs},4019:function(e,r,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.parseRunInstall=void 0;const i=s(n(1765));const o=n(6070);const l=s(n(6562));const f=n(2743);const c=s(n(2492));function parseRunInstall(e){const r=(0,f.getInput)(e,{required:false});if(r==="")return[];const n=(0,o.load)(r);const s=new l.default({allErrors:true});const a=s.compile(c.default);if(!a(n)){for(const e of a.errors){(0,f.error)(`with.run_install${e.dataPath}: ${e.message}`)}return i.default.exit(1)}if(!n)return[];if(n===true)return[{recursive:true}];if(Array.isArray(n))return n;return[n]}r.parseRunInstall=parseRunInstall},8171:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.installFromGithubRelease=void 0;const l=o(n(4986));const f=n(2743);const c=n(9633);const a=o(n(7308));const t=o(n(5747));const p=o(n(1669));const d=p.promisify(t.chmod);async function installFromGithubRelease(e){let r;let n;let s=false;if(process.platform==="win32"){r="pnpm-win-x64.exe";n="pnpm.exe"}else if(process.platform==="darwin"){r="pnpm-macos-x64";n="pnpm"}else{r="pnpm-linux-x64";n="pnpm";s=true}let i;let o;if(e.version&&a.valid(e.version)){i=a.clean(e.version);o=`https://github.com/pnpm/pnpm/releases/download/v${i}/${r}`}else{const n=new c.Octokit;const s=await n.repos.listReleases({owner:"pnpm",repo:"pnpm"});const l=s.data.filter(r=>{if(e.version){const n=a.parse(r.tag_name);return n&&a.satisfies(n,e.version)}else{return a.valid(r.tag_name)&&!r.prerelease&&!r.draft}});if(l.length===0){throw new Error(`Unable to find any pnpm releases matching ${e.version}`)}const f=l.reduce((e,r)=>a.gt(e.tag_name,r.tag_name)?e:r);i=a.clean(f.tag_name);o=f.assets.find(e=>e.name===r).browser_download_url}const t=l.find("pnpm",i);if(!t){(0,f.info)("Downloading "+o);const e=await l.downloadTool(o);if(s){await d(e,493)}return await l.cacheFile(e,n,"pnpm",i)}else{(0,f.info)("Loading from tool cache");return t}}r.installFromGithubRelease=installFromGithubRelease},9875:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.install=void 0;const l=n(2743);const f=n(7529);const c=n(8171);const a=o(n(7308));async function install(e){if(e.version){const r=a.parse(e.version);if(r&&a.lt(r,"6.13.0")){(0,l.startGroup)("Running self-installer...");const r=await(0,f.runSelfInstaller)(e);(0,l.endGroup)();return{installFolder:r,dest:e.dest}}}(0,l.startGroup)("Installing from github releases...");const r=await(0,c.installFromGithubRelease)(e);(0,l.endGroup)();return{installFolder:r}}r.install=install;r.default=install},7529:function(e,r,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.runSelfInstaller=void 0;const i=n(3129);const o=n(1765);const l=n(5622);const f=n(4982);const c=s(n(1536));async function runSelfInstaller(e){const{version:r,dest:n}=e;const s=r?`pnpm@${r}`:"pnpm";const a=(0,l.join)(n,"package.json");await(0,f.remove)(n);await(0,f.ensureFile)(a);await(0,f.writeFile)(a,JSON.stringify({private:true}));const t=(0,i.spawn)(o.execPath,["-","install",s,"--no-lockfile"],{cwd:n,stdio:["pipe","inherit","inherit"]});const p=await(0,c.default)("https://pnpm.js.org/pnpm.js");p.body.pipe(t.stdin);const d=await new Promise((e,r)=>{t.on("error",r);t.on("close",e)});if(d){throw new Error(`pnpm self installer exited with status ${d}`)}else{return(0,l.join)(e.dest,"node_modules",".bin")}}r.runSelfInstaller=runSelfInstaller},7701:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.setOutputs=void 0;const s=n(2743);function setOutputs(e){(0,s.setOutput)("bin_dest",e.installFolder);(0,s.addPath)(e.installFolder);if(e.dest){(0,s.setOutput)("dest",e.dest)}}r.setOutputs=setOutputs;r.default=setOutputs},4882:function(e,r,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.runPnpmInstall=void 0;const i=n(3129);const o=s(n(5622));const l=n(2743);function runPnpmInstall(e,r){const n={...process.env,PATH:r.installFolder+o.default.delimiter+process.env.PATH};for(const r of e.runInstall){const e=["install"];if(r.recursive)e.unshift("recursive");if(r.args)e.push(...r.args);const s=["pnpm",...e].join(" ");(0,l.startGroup)(`Running ${s}...`);const{error:o,status:f}=(0,i.spawnSync)("pnpm",e,{stdio:"inherit",cwd:r.cwd,shell:true,env:n});(0,l.endGroup)();if(o){(0,l.setFailed)(o);continue}if(f){(0,l.setFailed)(`Command ${s} (cwd: ${r.cwd}) exits with status ${f}`);continue}}}r.runPnpmInstall=runPnpmInstall;r.default=runPnpmInstall},8354:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const l=o(n(2087));const f=n(2167);function issueCommand(e,r,n){const s=new Command(e,r,n);process.stdout.write(s.toString()+l.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const c="::";class Command{constructor(e,r,n){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=n}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const s=this.properties[n];if(s){if(r){r=false}else{e+=","}e+=`${n}=${escapeProperty(s)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return f.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return f.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2743:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};var l=this&&this.__awaiter||function(e,r,n,s){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const f=n(8354);const c=n(5863);const a=n(2167);const t=o(n(2087));const p=o(n(5622));var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const n=a.toCommandValue(r);process.env[e]=n;const s=process.env["GITHUB_ENV"]||"";if(s){const r="_GitHubActionsFileCommandDelimeter_";const s=`${e}<<${r}${t.EOL}${n}${t.EOL}${r}`;c.issueCommand("ENV",s)}else{f.issueCommand("set-env",{name:e},n)}}r.exportVariable=exportVariable;function setSecret(e){f.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){c.issueCommand("PATH",e)}else{f.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${p.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return n}return n.trim()}r.getInput=getInput;function getMultilineInput(e,r){const n=getInput(e,r).split("\n").filter(e=>e!=="");return n}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const n=["true","True","TRUE"];const s=["false","False","FALSE"];const i=getInput(e,r);if(n.includes(i))return true;if(s.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){process.stdout.write(t.EOL);f.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){f.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){f.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){f.issueCommand("error",a.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){f.issueCommand("warning",a.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){f.issueCommand("notice",a.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+t.EOL)}r.info=info;function startGroup(e){f.issue("group",e)}r.startGroup=startGroup;function endGroup(){f.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return l(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield r()}finally{endGroup()}return n})}r.group=group;function saveState(e,r){f.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},5863:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issueCommand=void 0;const l=o(n(5747));const f=o(n(2087));const c=n(2167);function issueCommand(e,r){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!l.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}l.appendFileSync(n,`${c.toCommandValue(r)}${f.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},2167:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}r.toCommandProperties=toCommandProperties},5059:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};var l=this&&this.__awaiter||function(e,r,n,s){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r.getExecOutput=r.exec=void 0;const f=n(4304);const c=o(n(4289));function exec(e,r,n){return l(this,void 0,void 0,function*(){const s=c.argStringToArray(e);if(s.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=s[0];r=s.slice(1).concat(r||[]);const o=new c.ToolRunner(i,r,n);return o.exec()})}r.exec=exec;function getExecOutput(e,r,n){var s,i;return l(this,void 0,void 0,function*(){let o="";let l="";const c=new f.StringDecoder("utf8");const a=new f.StringDecoder("utf8");const t=(s=n===null||n===void 0?void 0:n.listeners)===null||s===void 0?void 0:s.stdout;const p=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stderr;const d=e=>{l+=a.write(e);if(p){p(e)}};const g=e=>{o+=c.write(e);if(t){t(e)}};const h=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:g,stderr:d});const u=yield exec(e,r,Object.assign(Object.assign({},n),{listeners:h}));o+=c.end();l+=a.end();return{exitCode:u,stdout:o,stderr:l}})}r.getExecOutput=getExecOutput},4289:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};var l=this&&this.__awaiter||function(e,r,n,s){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r.argStringToArray=r.ToolRunner=void 0;const f=o(n(2087));const c=o(n(8614));const a=o(n(3129));const t=o(n(5622));const p=o(n(4156));const d=o(n(2852));const g=n(8213);const h=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,r,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const n=this._getSpawnFileName();const s=this._getSpawnArgs(e);let i=r?"":"[command]";if(h){if(this._isCmdFile()){i+=n;for(const e of s){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of s){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(n);for(const e of s){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=n;for(const e of s){i+=` ${e}`}}return i}_processLineBuffer(e,r,n){try{let s=r+e.toString();let i=s.indexOf(f.EOL);while(i>-1){const e=s.substring(0,i);n(e);s=s.substring(i+f.EOL.length);i=s.indexOf(f.EOL)}return s}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){r+=" ";r+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=false;for(const s of e){if(r.some(e=>e===s)){n=true;break}}if(!n){return e}let s='"';let i=true;for(let r=e.length;r>0;r--){s+=e[r-1];if(i&&e[r-1]==="\\"){s+="\\"}else if(e[r-1]==='"'){i=true;s+='"'}else{i=false}}s+='"';return s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let n=true;for(let s=e.length;s>0;s--){r+=e[s-1];if(n&&e[s-1]==="\\"){r+="\\"}else if(e[s-1]==='"'){n=true;r+="\\"}else{n=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${r}"`}return n}exec(){return l(this,void 0,void 0,function*(){if(!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=t.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield p.which(this.toolPath,true);return new Promise((e,r)=>l(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+f.EOL)}const s=new ExecState(n,this.toolPath);s.on("debug",e=>{this._debug(e)});if(this.options.cwd&&!(yield d.exists(this.options.cwd))){return r(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const o=a.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i));let l="";if(o.stdout){o.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}l=this._processLineBuffer(e,l,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}let c="";if(o.stderr){o.stderr.on("data",e=>{s.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const r=n.failOnStdErr?n.errStream:n.outStream;r.write(e)}c=this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}o.on("error",e=>{s.processError=e.message;s.processExited=true;s.processClosed=true;s.CheckComplete()});o.on("exit",e=>{s.processExitCode=e;s.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);s.CheckComplete()});o.on("close",e=>{s.processExitCode=e;s.processExited=true;s.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);s.CheckComplete()});s.on("done",(n,s)=>{if(l.length>0){this.emit("stdline",l)}if(c.length>0){this.emit("errline",c)}o.removeAllListeners();if(n){r(n)}else{e(s)}});if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))})}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let n=false;let s=false;let i="";function append(e){if(s&&e!=='"'){i+="\\"}i+=e;s=false}for(let o=0;o0){r.push(i);i=""}continue}append(l)}if(i.length>0){r.push(i.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=g.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},8389:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const s=n(8605);const i=n(7211);const o=n(9242);let l;var f;(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"})(f=r.HttpCodes||(r.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=r.Headers||(r.Headers={}));var a;(function(e){e["ApplicationJson"]="application/json"})(a=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){let r=o.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const t=[f.MovedPermanently,f.ResourceMoved,f.SeeOther,f.TemporaryRedirect,f.PermanentRedirect];const p=[f.BadGateway,f.ServiceUnavailable,f.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const g=10;const h=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,r)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])});this.message.on("end",()=>{e(n.toString())})})}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){let r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,n){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=r||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,r){return this.request("OPTIONS",e,null,r||{})}get(e,r){return this.request("GET",e,null,r||{})}del(e,r){return this.request("DELETE",e,null,r||{})}post(e,r,n){return this.request("POST",e,r,n||{})}patch(e,r,n){return this.request("PATCH",e,r,n||{})}put(e,r,n){return this.request("PUT",e,r,n||{})}head(e,r){return this.request("HEAD",e,null,r||{})}sendStream(e,r,n,s){return this.request(e,r,n,s)}async getJson(e,r={}){r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,a.ApplicationJson);let n=await this.get(e,r);return this._processResponse(n,this.requestOptions)}async postJson(e,r,n={}){let s=JSON.stringify(r,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,a.ApplicationJson);n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,a.ApplicationJson);let i=await this.post(e,s,n);return this._processResponse(i,this.requestOptions)}async putJson(e,r,n={}){let s=JSON.stringify(r,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,a.ApplicationJson);n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,a.ApplicationJson);let i=await this.put(e,s,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,r,n={}){let s=JSON.stringify(r,null,2);n[c.Accept]=this._getExistingOrDefaultHeader(n,c.Accept,a.ApplicationJson);n[c.ContentType]=this._getExistingOrDefaultHeader(n,c.ContentType,a.ApplicationJson);let i=await this.patch(e,s,n);return this._processResponse(i,this.requestOptions)}async request(e,r,n,s){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(r);let o=this._prepareRequest(e,i,s);let l=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let a;while(c0){const l=a.message.headers["location"];if(!l){break}let f=new URL(l);if(i.protocol=="https:"&&i.protocol!=f.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 a.readBody();if(f.hostname!==i.hostname){for(let e in s){if(e.toLowerCase()==="authorization"){delete s[e]}}}o=this._prepareRequest(e,f,s);a=await this.requestRaw(o,n);r--}if(p.indexOf(a.message.statusCode)==-1){return a}c+=1;if(c{let i=function(e,r){if(e){s(e)}n(r)};this.requestRawWithCallback(e,r,i)})}requestRawWithCallback(e,r,n){let s;if(typeof r==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let i=false;let o=(e,r)=>{if(!i){i=true;n(e,r)}};let l=e.httpModule.request(e.options,e=>{let r=new HttpClientResponse(e);o(null,r)});l.on("socket",e=>{s=e});l.setTimeout(this._socketTimeout||3*6e4,()=>{if(s){s.end()}o(new Error("Request timeout: "+e.options.path),null)});l.on("error",function(e){o(e,null)});if(r&&typeof r==="string"){l.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",function(){l.end()});r.pipe(l)}else{l.end()}}getAgent(e){let r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,n){const o={};o.parsedUrl=r;const l=o.parsedUrl.protocol==="https:";o.httpModule=l?i:s;const f=l?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):f;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);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 r=e=>Object.keys(e).reduce((r,n)=>(r[n.toLowerCase()]=e[n],r),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},r(this.requestOptions.headers),r(e))}return r(e||{})}_getExistingOrDefaultHeader(e,r,n){const s=e=>Object.keys(e).reduce((r,n)=>(r[n.toLowerCase()]=e[n],r),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=s(this.requestOptions.headers)[r]}return e[r]||i||n}_getAgent(e){let r;let f=o.getProxyUrl(e);let c=f&&f.hostname;if(this._keepAlive&&c){r=this._proxyAgent}if(this._keepAlive&&!c){r=this._agent}if(!!r){return r}const a=e.protocol==="https:";let t=100;if(!!this.requestOptions){t=this.requestOptions.maxSockets||s.globalAgent.maxSockets}if(c){if(!l){l=n(3695)}const e={maxSockets:t,keepAlive:this._keepAlive,proxy:{...(f.username||f.password)&&{proxyAuth:`${f.username}:${f.password}`},host:f.hostname,port:f.port}};let s;const i=f.protocol==="https:";if(a){s=i?l.httpsOverHttps:l.httpsOverHttp}else{s=i?l.httpOverHttps:l.httpOverHttp}r=s(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:t};r=a?new i.Agent(e):new s.Agent(e);this._agent=r}if(!r){r=a?i.globalAgent:s.globalAgent}if(a&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){e=Math.min(g,e);const r=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),r))}static dateTimeDeserializer(e,r){if(typeof r==="string"){let e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}async _processResponse(e,r){return new Promise(async(n,s)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==f.NotFound){n(o)}let l;let c;try{c=await e.readBody();if(c&&c.length>0){if(r&&r.deserializeDates){l=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{l=JSON.parse(c)}o.result=l}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(l&&l.message){e=l.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+i+")"}let r=new HttpClientError(e,i);r.result=o.result;s(r)}else{n(o)}})}}r.HttpClient=HttpClient},9242:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function getProxyUrl(e){let r=e.protocol==="https:";let n;if(checkBypass(e)){return n}let s;if(r){s=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{s=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(s){n=new URL(s)}return n}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}let s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(let e of r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(s.some(r=>r===e)){return true}}return false}r.checkBypass=checkBypass},2852:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};var l=this&&this.__awaiter||function(e,r,n,s){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,r||[])).next())})};var f;Object.defineProperty(r,"__esModule",{value:true});r.getCmdPath=r.tryGetExecutablePath=r.isRooted=r.isDirectory=r.exists=r.IS_WINDOWS=r.unlink=r.symlink=r.stat=r.rmdir=r.rename=r.readlink=r.readdir=r.mkdir=r.lstat=r.copyFile=r.chmod=void 0;const c=o(n(5747));const a=o(n(5622));f=c.promises,r.chmod=f.chmod,r.copyFile=f.copyFile,r.lstat=f.lstat,r.mkdir=f.mkdir,r.readdir=f.readdir,r.readlink=f.readlink,r.rename=f.rename,r.rmdir=f.rmdir,r.stat=f.stat,r.symlink=f.symlink,r.unlink=f.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return l(this,void 0,void 0,function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}r.exists=exists;function isDirectory(e,n=false){return l(this,void 0,void 0,function*(){const s=n?yield r.stat(e):yield r.lstat(e);return s.isDirectory()})}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function tryGetExecutablePath(e,n){return l(this,void 0,void 0,function*(){let s=undefined;try{s=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(s&&s.isFile()){if(r.IS_WINDOWS){const r=a.extname(e).toUpperCase();if(n.some(e=>e.toUpperCase()===r)){return e}}else{if(isUnixExecutable(s)){return e}}}const i=e;for(const o of n){e=i+o;s=undefined;try{s=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(s&&s.isFile()){if(r.IS_WINDOWS){try{const n=a.dirname(e);const s=a.basename(e).toUpperCase();for(const i of yield r.readdir(n)){if(s===i.toUpperCase()){e=a.join(n,i);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(s)){return e}}}}return""})}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}r.getCmdPath=getCmdPath},4156:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};var l=this&&this.__awaiter||function(e,r,n,s){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r.findInPath=r.which=r.mkdirP=r.rmRF=r.mv=r.cp=void 0;const f=n(2357);const c=o(n(3129));const a=o(n(5622));const t=n(1669);const p=o(n(2852));const d=t.promisify(c.exec);const g=t.promisify(c.execFile);function cp(e,r,n={}){return l(this,void 0,void 0,function*(){const{force:s,recursive:i,copySourceDirectory:o}=readCopyOptions(n);const l=(yield p.exists(r))?yield p.stat(r):null;if(l&&l.isFile()&&!s){return}const f=l&&l.isDirectory()&&o?a.join(r,a.basename(e)):r;if(!(yield p.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield p.stat(e);if(c.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,f,0,s)}}else{if(a.relative(e,f)===""){throw new Error(`'${f}' and '${e}' are the same file`)}yield copyFile(e,f,s)}})}r.cp=cp;function mv(e,r,n={}){return l(this,void 0,void 0,function*(){if(yield p.exists(r)){let s=true;if(yield p.isDirectory(r)){r=a.join(r,a.basename(e));s=yield p.exists(r)}if(s){if(n.force==null||n.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(r));yield p.rename(e,r)})}r.mv=mv;function rmRF(e){return l(this,void 0,void 0,function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const r=p.getCmdPath();if(yield p.isDirectory(e,true)){yield d(`${r} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield d(`${r} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield p.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield p.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield g(`rm`,[`-rf`,`${e}`])}else{yield p.unlink(e)}}})}r.rmRF=rmRF;function mkdirP(e){return l(this,void 0,void 0,function*(){f.ok(e,"a path argument must be provided");yield p.mkdir(e,{recursive:true})})}r.mkdirP=mkdirP;function which(e,r){return l(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(p.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return r}const n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""})}r.which=which;function findInPath(e){return l(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}const r=[];if(p.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(a.delimiter)){if(e){r.push(e)}}}if(p.isRooted(e)){const n=yield p.tryGetExecutablePath(e,r);if(n){return[n]}return[]}if(e.includes(a.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){n.push(e)}}}const s=[];for(const i of n){const n=yield p.tryGetExecutablePath(a.join(i,e),r);if(n){s.push(n)}}return s})}r.findInPath=findInPath;function readCopyOptions(e){const r=e.force==null?true:e.force;const n=Boolean(e.recursive);const s=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:r,recursive:n,copySourceDirectory:s}}function cpDirRecursive(e,r,n,s){return l(this,void 0,void 0,function*(){if(n>=255)return;n++;yield mkdirP(r);const i=yield p.readdir(e);for(const o of i){const i=`${e}/${o}`;const l=`${r}/${o}`;const f=yield p.lstat(i);if(f.isDirectory()){yield cpDirRecursive(i,l,n,s)}else{yield copyFile(i,l,s)}}yield p.chmod(r,(yield p.stat(e)).mode)})}function copyFile(e,r,n){return l(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(r);yield p.unlink(r)}catch(e){if(e.code==="EPERM"){yield p.chmod(r,"0666");yield p.unlink(r)}}const n=yield p.readlink(e);yield p.symlink(n,r,p.IS_WINDOWS?"junction":null)}else if(!(yield p.exists(r))||n){yield p.copyFile(e,r)}})}},817:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};var l=this&&this.__awaiter||function(e,r,n,s){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r._readLinuxVersionFile=r._getOsVersion=r._findMatch=void 0;const f=o(n(5318));const c=n(2743);const a=n(2087);const t=n(3129);const p=n(5747);function _findMatch(r,n,s,i){return l(this,void 0,void 0,function*(){const o=a.platform();let l;let t;let p;for(const l of s){const s=l.version;c.debug(`check ${s} satisfies ${r}`);if(f.satisfies(s,r)&&(!n||l.stable===n)){p=l.files.find(r=>{c.debug(`${r.arch}===${i} && ${r.platform}===${o}`);let n=r.arch===i&&r.platform===o;if(n&&r.platform_version){const s=e.exports._getOsVersion();if(s===r.platform_version){n=true}else{n=f.satisfies(s,r.platform_version)}}return n});if(p){c.debug(`matched ${l.version}`);t=l;break}}}if(t&&p){l=Object.assign({},t);l.files=[p]}return l})}r._findMatch=_findMatch;function _getOsVersion(){const r=a.platform();let n="";if(r==="darwin"){n=t.execSync("sw_vers -productVersion").toString()}else if(r==="linux"){const r=e.exports._readLinuxVersionFile();if(r){const e=r.split("\n");for(const r of e){const e=r.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){n=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return n}r._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const r="/etc/os-release";let n="";if(p.existsSync(e)){n=p.readFileSync(e).toString()}else if(p.existsSync(r)){n=p.readFileSync(r).toString()}return n}r._readLinuxVersionFile=_readLinuxVersionFile},520:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};var l=this&&this.__awaiter||function(e,r,n,s){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r.RetryHelper=void 0;const f=o(n(2743));class RetryHelper{constructor(e,r,n){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(r);this.maxSeconds=Math.floor(n);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,r){return l(this,void 0,void 0,function*(){let n=1;while(nsetTimeout(r,e*1e3))})}}r.RetryHelper=RetryHelper},4986:function(e,r,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,r,n,s){if(s===undefined)s=n;Object.defineProperty(e,s,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,s){if(s===undefined)s=n;e[s]=r[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))s(r,e,n);i(r,e);return r};var l=this&&this.__awaiter||function(e,r,n,s){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(s.next(e))}catch(e){i(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,r||[])).next())})};var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.evaluateVersions=r.isExplicitVersion=r.findFromManifest=r.getManifestFromRepo=r.findAllVersions=r.find=r.cacheFile=r.cacheDir=r.extractZip=r.extractXar=r.extractTar=r.extract7z=r.downloadTool=r.HTTPError=void 0;const c=o(n(2743));const a=o(n(4156));const t=o(n(5747));const p=o(n(817));const d=o(n(2087));const g=o(n(5622));const h=o(n(8389));const u=o(n(5318));const v=o(n(2413));const E=o(n(1669));const w=f(n(7777));const m=n(5059);const b=n(2357);const T=n(520);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}r.HTTPError=HTTPError;const y=process.platform==="win32";const O=process.platform==="darwin";const R="actions/tool-cache";function downloadTool(e,r,n,s){return l(this,void 0,void 0,function*(){r=r||g.join(_getTempDirectory(),w.default());yield a.mkdirP(g.dirname(r));c.debug(`Downloading ${e}`);c.debug(`Destination ${r}`);const i=3;const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const f=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const t=new T.RetryHelper(i,o,f);return yield t.execute(()=>l(this,void 0,void 0,function*(){return yield downloadToolAttempt(e,r||"",n,s)}),e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true})})}r.downloadTool=downloadTool;function downloadToolAttempt(e,r,n,s){return l(this,void 0,void 0,function*(){if(t.existsSync(r)){throw new Error(`Destination file path ${r} already exists`)}const i=new h.HttpClient(R,[],{allowRetries:false});if(n){c.debug("set auth");if(s===undefined){s={}}s.authorization=n}const o=yield i.get(e,s);if(o.message.statusCode!==200){const r=new HTTPError(o.message.statusCode);c.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`);throw r}const l=E.promisify(v.pipeline);const f=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message);const p=f();let d=false;try{yield l(p,t.createWriteStream(r));c.debug("download complete");d=true;return r}finally{if(!d){c.debug("download failed");try{yield a.rmRF(r)}catch(e){c.debug(`Failed to delete '${r}'. ${e.message}`)}}}})}function extract7z(e,r,n){return l(this,void 0,void 0,function*(){b.ok(y,"extract7z() not supported on current OS");b.ok(e,'parameter "file" is required');r=yield _createExtractFolder(r);const s=process.cwd();process.chdir(r);if(n){try{const r=c.isDebug()?"-bb1":"-bb0";const i=["x",r,"-bd","-sccUTF-8",e];const o={silent:true};yield m.exec(`"${n}"`,i,o)}finally{process.chdir(s)}}else{const n=g.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const l=`& '${n}' -Source '${i}' -Target '${o}'`;const f=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",l];const c={silent:true};try{const e=yield a.which("powershell",true);yield m.exec(`"${e}"`,f,c)}finally{process.chdir(s)}}return r})}r.extract7z=extract7z;function extractTar(e,r,n="xz"){return l(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}r=yield _createExtractFolder(r);c.debug("Checking tar --version");let s="";yield m.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>s+=e.toString(),stderr:e=>s+=e.toString()}});c.debug(s.trim());const i=s.toUpperCase().includes("GNU TAR");let o;if(n instanceof Array){o=n}else{o=[n]}if(c.isDebug()&&!n.includes("v")){o.push("-v")}let l=r;let f=e;if(y&&i){o.push("--force-local");l=r.replace(/\\/g,"/");f=e.replace(/\\/g,"/")}if(i){o.push("--warning=no-unknown-keyword");o.push("--overwrite")}o.push("-C",l,"-f",f);yield m.exec(`tar`,o);return r})}r.extractTar=extractTar;function extractXar(e,r,n=[]){return l(this,void 0,void 0,function*(){b.ok(O,"extractXar() not supported on current OS");b.ok(e,'parameter "file" is required');r=yield _createExtractFolder(r);let s;if(n instanceof Array){s=n}else{s=[n]}s.push("-x","-C",r,"-f",e);if(c.isDebug()){s.push("-v")}const i=yield a.which("xar",true);yield m.exec(`"${i}"`,_unique(s));return r})}r.extractXar=extractXar;function extractZip(e,r){return l(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}r=yield _createExtractFolder(r);if(y){yield extractZipWin(e,r)}else{yield extractZipNix(e,r)}return r})}r.extractZip=extractZip;function extractZipWin(e,r){return l(this,void 0,void 0,function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=yield a.which("pwsh",false);if(i){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${s}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${s}' -Force } else { throw $_ } } ;`].join(" ");const r=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];c.debug(`Using pwsh at path: ${i}`);yield m.exec(`"${i}"`,r)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${s}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${s}', $true) }`].join(" ");const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const i=yield a.which("powershell",true);c.debug(`Using powershell at path: ${i}`);yield m.exec(`"${i}"`,r)}})}function extractZipNix(e,r){return l(this,void 0,void 0,function*(){const n=yield a.which("unzip",true);const s=[e];if(!c.isDebug()){s.unshift("-q")}s.unshift("-o");yield m.exec(`"${n}"`,s,{cwd:r})})}function cacheDir(e,r,n,s){return l(this,void 0,void 0,function*(){n=u.clean(n)||n;s=s||d.arch();c.debug(`Caching tool ${r} ${n} ${s}`);c.debug(`source dir: ${e}`);if(!t.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const i=yield _createToolPath(r,n,s);for(const r of t.readdirSync(e)){const n=g.join(e,r);yield a.cp(n,i,{recursive:true})}_completeToolPath(r,n,s);return i})}r.cacheDir=cacheDir;function cacheFile(e,r,n,s,i){return l(this,void 0,void 0,function*(){s=u.clean(s)||s;i=i||d.arch();c.debug(`Caching tool ${n} ${s} ${i}`);c.debug(`source file: ${e}`);if(!t.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const o=yield _createToolPath(n,s,i);const l=g.join(o,r);c.debug(`destination file ${l}`);yield a.cp(e,l);_completeToolPath(n,s,i);return o})}r.cacheFile=cacheFile;function find(e,r,n){if(!e){throw new Error("toolName parameter is required")}if(!r){throw new Error("versionSpec parameter is required")}n=n||d.arch();if(!isExplicitVersion(r)){const s=findAllVersions(e,n);const i=evaluateVersions(s,r);r=i}let s="";if(r){r=u.clean(r)||"";const i=g.join(_getCacheDirectory(),e,r,n);c.debug(`checking cache: ${i}`);if(t.existsSync(i)&&t.existsSync(`${i}.complete`)){c.debug(`Found tool in cache ${e} ${r} ${n}`);s=i}else{c.debug("not found")}}return s}r.find=find;function findAllVersions(e,r){const n=[];r=r||d.arch();const s=g.join(_getCacheDirectory(),e);if(t.existsSync(s)){const e=t.readdirSync(s);for(const i of e){if(isExplicitVersion(i)){const e=g.join(s,i,r||"");if(t.existsSync(e)&&t.existsSync(`${e}.complete`)){n.push(i)}}}}return n}r.findAllVersions=findAllVersions;function getManifestFromRepo(e,r,n,s="master"){return l(this,void 0,void 0,function*(){let i=[];const o=`https://api.github.com/repos/${e}/${r}/git/trees/${s}`;const l=new h.HttpClient("tool-cache");const f={};if(n){c.debug("set auth");f.authorization=n}const a=yield l.getJson(o,f);if(!a.result){return i}let t="";for(const e of a.result.tree){if(e.path==="versions-manifest.json"){t=e.url;break}}f["accept"]="application/vnd.github.VERSION.raw";let p=yield(yield l.get(t,f)).readBody();if(p){p=p.replace(/^\uFEFF/,"");try{i=JSON.parse(p)}catch(e){c.debug("Invalid json")}}return i})}r.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,r,n,s=d.arch()){return l(this,void 0,void 0,function*(){const i=yield p._findMatch(e,r,n,s);return i})}r.findFromManifest=findFromManifest;function _createExtractFolder(e){return l(this,void 0,void 0,function*(){if(!e){e=g.join(_getTempDirectory(),w.default())}yield a.mkdirP(e);return e})}function _createToolPath(e,r,n){return l(this,void 0,void 0,function*(){const s=g.join(_getCacheDirectory(),e,u.clean(r)||r,n||"");c.debug(`destination ${s}`);const i=`${s}.complete`;yield a.rmRF(s);yield a.rmRF(i);yield a.mkdirP(s);return s})}function _completeToolPath(e,r,n){const s=g.join(_getCacheDirectory(),e,u.clean(r)||r,n||"");const i=`${s}.complete`;t.writeFileSync(i,"");c.debug("finished caching tool")}function isExplicitVersion(e){const r=u.clean(e)||"";c.debug(`isExplicit: ${r}`);const n=u.valid(r)!=null;c.debug(`explicit? ${n}`);return n}r.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,r){let n="";c.debug(`evaluating ${e.length} versions`);e=e.sort((e,r)=>{if(u.gt(e,r)){return 1}return-1});for(let s=e.length-1;s>=0;s--){const i=e[s];const o=u.satisfies(i,r);if(o){n=i;break}}if(n){c.debug(`matched: ${n}`)}else{c.debug("match not found")}return n}r.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";b.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";b.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,r){const n=global[e];return n!==undefined?n:r}function _unique(e){return Array.from(new Set(e))}},3602:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});async function auth(e){const r=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:r}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,r,n,s){const i=r.endpoint.merge(n,s);i.headers.authorization=withAuthorizationPrefix(e);return r(i)}const n=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)})};r.createTokenAuth=n},6658:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=n(7261);var i=n(8925);var o=n(1813);var l=n(6383);var f=n(3602);function _objectWithoutPropertiesLoose(e,r){if(e==null)return{};var n={};var s=Object.keys(e);var i,o;for(o=0;o=0)continue;n[i]=e[i]}return n}function _objectWithoutProperties(e,r){if(e==null)return{};var n=_objectWithoutPropertiesLoose(e,r);var s,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,s))continue;n[s]=e[s]}}return n}const c="3.5.1";const a=["authStrategy"];class Octokit{constructor(e={}){const r=new i.Collection;const n={baseUrl:o.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};n.headers["user-agent"]=[e.userAgent,`octokit-core.js/${c} ${s.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){n.baseUrl=e.baseUrl}if(e.previews){n.mediaType.previews=e.previews}if(e.timeZone){n.headers["time-zone"]=e.timeZone}this.request=o.request.defaults(n);this.graphql=l.withCustomRequest(this.request).defaults(n);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=r;if(!e.authStrategy){if(!e.auth){this.auth=(async()=>({type:"unauthenticated"}))}else{const n=f.createTokenAuth(e.auth);r.wrap("request",n.hook);this.auth=n}}else{const{authStrategy:n}=e,s=_objectWithoutProperties(e,a);const i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:s},e.auth));r.wrap("request",i.hook);this.auth=i}const t=this.constructor;t.plugins.forEach(r=>{Object.assign(this,r(this,e))})}static defaults(e){const r=class extends(this){constructor(...r){const n=r[0]||{};if(typeof e==="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}};return r}static plugin(...e){var r;const n=this.plugins;const s=(r=class extends(this){},r.plugins=n.concat(e.filter(e=>!n.includes(e))),r);return s}}Octokit.VERSION=c;Octokit.plugins=[];r.Octokit=Octokit},682:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=n(1429);var i=n(7261);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((r,n)=>{r[n.toLowerCase()]=e[n];return r},{})}function mergeDeep(e,r){const n=Object.assign({},e);Object.keys(r).forEach(i=>{if(s.isPlainObject(r[i])){if(!(i in e))Object.assign(n,{[i]:r[i]});else n[i]=mergeDeep(e[i],r[i])}else{Object.assign(n,{[i]:r[i]})}});return n}function removeUndefinedProperties(e){for(const r in e){if(e[r]===undefined){delete e[r]}}return e}function merge(e,r,n){if(typeof r==="string"){let[e,s]=r.split(" ");n=Object.assign(s?{method:e,url:s}:{url:e},n)}else{n=Object.assign({},r)}n.headers=lowercaseKeys(n.headers);removeUndefinedProperties(n);removeUndefinedProperties(n.headers);const s=mergeDeep(e||{},n);if(e&&e.mediaType.previews.length){s.mediaType.previews=e.mediaType.previews.filter(e=>!s.mediaType.previews.includes(e)).concat(s.mediaType.previews)}s.mediaType.previews=s.mediaType.previews.map(e=>e.replace(/-preview/,""));return s}function addQueryParameters(e,r){const n=/\?/.test(e)?"&":"?";const s=Object.keys(r);if(s.length===0){return e}return e+n+s.map(e=>{if(e==="q"){return"q="+r.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(r[e])}`}).join("&")}const o=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const r=e.match(o);if(!r){return[]}return r.map(removeNonChars).reduce((e,r)=>e.concat(r),[])}function omit(e,r){return Object.keys(e).filter(e=>!r.includes(e)).reduce((r,n)=>{r[n]=e[n];return r},{})}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,r,n){r=e==="+"||e==="#"?encodeReserved(r):encodeUnreserved(r);if(n){return encodeUnreserved(n)+"="+r}else{return r}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,r,n,s){var i=e[n],o=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(s&&s!=="*"){i=i.substring(0,parseInt(s,10))}o.push(encodeValue(r,i,isKeyOperator(r)?n:""))}else{if(s==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){o.push(encodeValue(r,e,isKeyOperator(r)?n:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){o.push(encodeValue(r,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(n){e.push(encodeValue(r,n))})}else{Object.keys(i).forEach(function(n){if(isDefined(i[n])){e.push(encodeUnreserved(n));e.push(encodeValue(r,i[n].toString()))}})}if(isKeyOperator(r)){o.push(encodeUnreserved(n)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(r===";"){if(isDefined(i)){o.push(encodeUnreserved(n))}}else if(i===""&&(r==="&"||r==="?")){o.push(encodeUnreserved(n)+"=")}else if(i===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,r){var n=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,i){if(s){let e="";const i=[];if(n.indexOf(s.charAt(0))!==-1){e=s.charAt(0);s=s.substr(1)}s.split(/,/g).forEach(function(n){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(getValues(r,e,s[1],s[2]||s[3]))});if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(i.length!==0?e:"")+i.join(o)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let r=e.method.toUpperCase();let n=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let s=Object.assign({},e.headers);let i;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const l=extractUrlVariableNames(n);n=parseUrl(n).expand(o);if(!/^http/.test(n)){n=e.baseUrl+n}const f=Object.keys(e).filter(e=>l.includes(e)).concat("baseUrl");const c=omit(o,f);const a=/application\/octet-stream/i.test(s.accept);if(!a){if(e.mediaType.format){s.accept=s.accept.split(/,/).map(r=>r.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const r=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=r.concat(e.mediaType.previews).map(r=>{const n=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${r}-preview${n}`}).join(",")}}if(["GET","HEAD"].includes(r)){n=addQueryParameters(n,c)}else{if("data"in c){i=c.data}else{if(Object.keys(c).length){i=c}else{s["content-length"]=0}}}if(!s["content-type"]&&typeof i!=="undefined"){s["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(r)&&typeof i==="undefined"){i=""}return Object.assign({method:r,url:n,headers:s},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,r,n){return parse(merge(e,r,n))}function withDefaults(e,r){const n=merge(e,r);const s=endpointWithDefaults.bind(null,n);return Object.assign(s,{DEFAULTS:n,defaults:withDefaults.bind(null,n),merge:merge.bind(null,n),parse:parse})}const l="6.0.12";const f=`octokit-endpoint.js/${l} ${i.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":f},mediaType:{format:"",previews:[]}};const a=withDefaults(null,c);r.endpoint=a},6383:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=n(1813);var i=n(7261);const o="4.8.0";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map(e=>` - ${e.message}`).join("\n")}class GraphqlResponseError extends Error{constructor(e,r,n){super(_buildMessageForResponseErrors(n));this.request=e;this.headers=r;this.response=n;this.name="GraphqlResponseError";this.errors=n.errors;this.data=n.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const l=["method","baseUrl","url","headers","request","query","mediaType"];const f=["query","method","url"];const c=/\/api\/v3\/?$/;function graphql(e,r,n){if(n){if(typeof r==="string"&&"query"in n){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in n){if(!f.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const s=typeof r==="string"?Object.assign({query:r},n):r;const i=Object.keys(s).reduce((e,r)=>{if(l.includes(r)){e[r]=s[r];return e}if(!e.variables){e.variables={}}e.variables[r]=s[r];return e},{});const o=s.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(c.test(o)){i.url=o.replace(c,"/api/graphql")}return e(i).then(e=>{if(e.data.errors){const r={};for(const n of Object.keys(e.headers)){r[n]=e.headers[n]}throw new GraphqlResponseError(i,r,e.data)}return e.data.data})}function withDefaults(e,r){const n=e.defaults(r);const i=(e,r)=>{return graphql(n,e,r)};return Object.assign(i,{defaults:withDefaults.bind(null,n),endpoint:s.request.endpoint})}const a=withDefaults(s.request,{headers:{"user-agent":`octokit-graphql.js/${o} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}r.GraphqlResponseError=GraphqlResponseError;r.graphql=a;r.withCustomRequest=withCustomRequest},3669:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n="2.16.0";function ownKeys(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);if(r){s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})}n.push.apply(n,s)}return n}function _objectSpread2(e){for(var r=1;r({async next(){if(!f)return{done:true};try{const e=await i({method:o,url:f,headers:l});const r=normalizePaginatedListResponse(e);f=((r.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:r}}catch(e){if(e.status!==409)throw e;f="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,r,n,s){if(typeof n==="function"){s=n;n=undefined}return gather(e,[],iterator(e,r,n)[Symbol.asyncIterator](),s)}function gather(e,r,n,s){return n.next().then(i=>{if(i.done){return r}let o=false;function done(){o=true}r=r.concat(s?s(i.value,done):i.value.data);if(o){return r}return gather(e,r,n,s)})}const s=Object.assign(paginate,{iterator:iterator});const i=["GET /app/hook/deliveries","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}/hooks/{hook_id}/deliveries","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}/packages","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","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}/autolinks","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}/hooks/{hook_id}/deliveries","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/packages","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /user/{username}/packages","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 i.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=n;r.composePaginateRest=s;r.isPaginatingEndpoint=isPaginatingEndpoint;r.paginateRest=paginateRest;r.paginatingEndpoints=i},9155:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n="1.0.4";function requestLog(e){e.hook.wrap("request",(r,n)=>{e.log.debug("request",n);const s=Date.now();const i=e.request.endpoint.parse(n);const o=i.url.replace(n.baseUrl,"");return r(n).then(r=>{e.log.info(`${i.method} ${o} - ${r.status} in ${Date.now()-s}ms`);return r}).catch(r=>{e.log.info(`${i.method} ${o} - ${r.status} in ${Date.now()-s}ms`);throw r})})}requestLog.VERSION=n;r.requestLog=requestLog},1078:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function ownKeys(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);if(r){s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})}n.push.apply(n,s)}return n}function _objectSpread2(e){for(var r=1;r{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=n(3549);var i=_interopDefault(n(1081));const o=i(e=>console.warn(e));const l=i(e=>console.warn(e));class RequestError extends Error{constructor(e,r,n){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=r;let i;if("headers"in n&&typeof n.headers!=="undefined"){i=n.headers}if("response"in n){this.response=n.response;i=n.response.headers}const f=Object.assign({},n.request);if(n.request.headers.authorization){f.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}f.url=f.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=f;Object.defineProperty(this,"code",{get(){o(new s.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return r}});Object.defineProperty(this,"headers",{get(){l(new s.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return i||{}}})}}r.RequestError=RequestError},1813:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=n(682);var i=n(7261);var o=n(1429);var l=_interopDefault(n(1536));var f=n(2017);const c="5.6.1";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){const r=e.request&&e.request.log?e.request.log:console;if(o.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let n={};let s;let i;const c=e.request&&e.request.fetch||l;return c(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(async o=>{i=o.url;s=o.status;for(const e of o.headers){n[e[0]]=e[1]}if("deprecation"in n){const s=n.link&&n.link.match(/<([^>]+)>; rel="deprecation"/);const i=s&&s.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${n.sunset}${i?`. See ${i}`:""}`)}if(s===204||s===205){return}if(e.method==="HEAD"){if(s<400){return}throw new f.RequestError(o.statusText,s,{response:{url:i,status:s,headers:n,data:undefined},request:e})}if(s===304){throw new f.RequestError("Not modified",s,{response:{url:i,status:s,headers:n,data:await getResponseData(o)},request:e})}if(s>=400){const r=await getResponseData(o);const l=new f.RequestError(toErrorMessage(r),s,{response:{url:i,status:s,headers:n,data:r},request:e});throw l}return getResponseData(o)}).then(e=>{return{status:s,url:i,headers:n,data:e}}).catch(r=>{if(r instanceof f.RequestError)throw r;throw new f.RequestError(r.message,500,{request:e})})}async function getResponseData(e){const r=e.headers.get("content-type");if(/application\/json/.test(r)){return e.json()}if(!r||/^text\/|charset=utf-8$/.test(r)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`}return e.message}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,r){const n=e.defaults(r);const s=function(e,r){const s=n.merge(e,r);if(!s.request||!s.request.hook){return fetchWrapper(n.parse(s))}const i=(e,r)=>{return fetchWrapper(n.parse(n.merge(e,r)))};Object.assign(i,{endpoint:n,defaults:withDefaults.bind(null,n)});return s.request.hook(i,s)};return Object.assign(s,{endpoint:n,defaults:withDefaults.bind(null,n)})}const a=withDefaults(s.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${i.getUserAgent()}`}});r.request=a},9633:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=n(6658);var i=n(9155);var o=n(3669);var l=n(1078);const f="18.10.0";const c=s.Octokit.plugin(i.requestLog,l.legacyRestEndpointMethods,o.paginateRest).defaults({userAgent:`octokit-rest.js/${f}`});r.Octokit=c},6562:(e,r,n)=>{"use strict";var s=n(8077),i=n(3664),o=n(7647),l=n(7721),f=n(7692),c=n(1538),a=n(2170),t=n(4178),p=n(2657);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=n(9533);var d=n(5413);Ajv.prototype.addKeyword=d.add;Ajv.prototype.getKeyword=d.get;Ajv.prototype.removeKeyword=d.remove;Ajv.prototype.validateKeyword=d.validate;var g=n(3023);Ajv.ValidationError=g.Validation;Ajv.MissingRefError=g.MissingRef;Ajv.$dataMetaSchema=t;var h="http://json-schema.org/draft-07/schema";var u=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var v=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=p.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=c(e.format);this._cache=e.cache||new o;this._loadingSchemas={};this._compilations=[];this.RULES=a();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=f;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,r){var n;if(typeof e=="string"){n=this.getSchema(e);if(!n)throw new Error('no schema with key or ref "'+e+'"')}else{var s=this._addSchema(e);n=s.validate||this._compile(s)}var i=n(r);if(n.$async!==true)this.errors=n.errors;return i}function compile(e,r){var n=this._addSchema(e,undefined,r);return n.validate||this._compile(n)}function addSchema(e,r,n,s){if(Array.isArray(e)){for(var o=0;o{"use strict";var r=e.exports=function Cache(){this._cache={}};r.prototype.put=function Cache_put(e,r){this._cache[e]=r};r.prototype.get=function Cache_get(e){return this._cache[e]};r.prototype.del=function Cache_del(e){delete this._cache[e]};r.prototype.clear=function Cache_clear(){this._cache={}}},9533:(e,r,n)=>{"use strict";var s=n(3023).MissingRef;e.exports=compileAsync;function compileAsync(e,r,n){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof r=="function"){n=r;r=undefined}var o=loadMetaSchemaOf(e).then(function(){var n=i._addSchema(e,undefined,r);return n.validate||_compileAsync(n)});if(n){o.then(function(e){n(null,e)},n)}return o;function loadMetaSchemaOf(e){var r=e.$schema;return r&&!i.getSchema(r)?compileAsync.call(i,{$ref:r},true):Promise.resolve()}function _compileAsync(e){try{return i._compile(e)}catch(e){if(e instanceof s)return loadMissingSchema(e);throw e}function loadMissingSchema(n){var s=n.missingSchema;if(added(s))throw new Error("Schema "+s+" is loaded but "+n.missingRef+" cannot be resolved");var o=i._loadingSchemas[s];if(!o){o=i._loadingSchemas[s]=i._opts.loadSchema(s);o.then(removePromise,removePromise)}return o.then(function(e){if(!added(s)){return loadMetaSchemaOf(e).then(function(){if(!added(s))i.addSchema(e,s,undefined,r)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete i._loadingSchemas[s]}function added(e){return i._refs[e]||i._schemas[e]}}}}},3023:(e,r,n)=>{"use strict";var s=n(3664);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function MissingRefError(e,r,n){this.message=n||MissingRefError.message(e,r);this.missingRef=s.url(e,r);this.missingSchema=s.normalizeId(s.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},1538:(e,r,n)=>{"use strict";var s=n(2657);var i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var o=[0,31,28,31,30,31,30,31,31,30,31,30,31];var l=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var f=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var a=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var t=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var p=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var g=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var u=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return s.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":t,url:p,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:f,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:d,"json-pointer":g,"json-pointer-uri-fragment":h,"relative-json-pointer":u};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":a,"uri-template":t,url:p,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:f,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:d,"json-pointer":g,"json-pointer-uri-fragment":h,"relative-json-pointer":u};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var r=e.match(i);if(!r)return false;var n=+r[1];var s=+r[2];var l=+r[3];return s>=1&&s<=12&&l>=1&&l<=(s==2&&isLeapYear(n)?29:o[s])}function time(e,r){var n=e.match(l);if(!n)return false;var s=n[1];var i=n[2];var o=n[3];var f=n[5];return(s<=23&&i<=59&&o<=59||s==23&&i==59&&o==60)&&(!r||f)}var v=/t|\s/i;function date_time(e){var r=e.split(v);return r.length==2&&date(r[0])&&time(r[1],true)}var E=/\/|:/;function uri(e){return E.test(e)&&c.test(e)}var w=/[^\\]\\Z/;function regex(e){if(w.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},8077:(e,r,n)=>{"use strict";var s=n(3664),i=n(2657),o=n(3023),l=n(7692);var f=n(7752);var c=i.ucs2length;var a=n(7988);var t=o.Validation;e.exports=compile;function compile(e,r,n,p){var d=this,g=this._opts,h=[undefined],u={},v=[],E={},w=[],m={},b=[];r=r||{schema:e,refVal:h,refs:u};var T=checkCompiling.call(this,e,r,p);var y=this._compilations[T.index];if(T.compiling)return y.callValidate=callValidate;var O=this._formats;var R=this.RULES;try{var A=localCompile(e,r,n,p);y.validate=A;var F=y.callValidate;if(F){F.schema=A.schema;F.errors=null;F.refs=A.refs;F.refVal=A.refVal;F.root=A.root;F.$async=A.$async;if(g.sourceCode)F.source=A.source}return A}finally{endCompiling.call(this,e,r,p)}function callValidate(){var e=y.validate;var r=e.apply(this,arguments);callValidate.errors=e.errors;return r}function localCompile(e,n,l,p){var E=!n||n&&n.schema==e;if(n.schema!=r.schema)return compile.call(d,e,n,l,p);var m=e.$async===true;var T=f({isTop:true,schema:e,isRoot:E,baseId:p,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:R,validate:f,util:i,resolve:s,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:g,formats:O,logger:d.logger,self:d});T=vars(h,refValCode)+vars(v,patternCode)+vars(w,defaultCode)+vars(b,customRuleCode)+T;if(g.processCode)T=g.processCode(T,e);var y;try{var A=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",T);y=A(d,R,O,r,h,w,b,a,c,t);h[0]=y}catch(e){d.logger.error("Error compiling schema, function code:",T);throw e}y.schema=e;y.errors=null;y.refs=u;y.refVal=h;y.root=E?y:n;if(m)y.$async=true;if(g.sourceCode===true){y.source={code:T,patterns:v,defaults:w}}return y}function resolveRef(e,i,o){i=s.url(e,i);var l=u[i];var f,c;if(l!==undefined){f=h[l];c="refVal["+l+"]";return resolvedRef(f,c)}if(!o&&r.refs){var a=r.refs[i];if(a!==undefined){f=r.refVal[a];c=addLocalRef(i,f);return resolvedRef(f,c)}}c=addLocalRef(i);var t=s.call(d,localCompile,r,i);if(t===undefined){var p=n&&n[i];if(p){t=s.inlineRef(p,g.inlineRefs)?p:compile.call(d,p,r,n,e)}}if(t===undefined){removeLocalRef(i)}else{replaceLocalRef(i,t);return resolvedRef(t,c)}}function addLocalRef(e,r){var n=h.length;h[n]=r;u[e]=n;return"refVal"+n}function removeLocalRef(e){delete u[e]}function replaceLocalRef(e,r){var n=u[e];h[n]=r}function resolvedRef(e,r){return typeof e=="object"||typeof e=="boolean"?{code:r,schema:e,inline:true}:{code:r,$async:e&&!!e.$async}}function usePattern(e){var r=E[e];if(r===undefined){r=E[e]=v.length;v[r]=e}return"pattern"+r}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(e===null)return"null";var r=l(e);var n=m[r];if(n===undefined){n=m[r]=w.length;w[n]=e}return"default"+n}}function useCustomRule(e,r,n,s){if(d._opts.validateSchema!==false){var i=e.definition.dependencies;if(i&&!i.every(function(e){return Object.prototype.hasOwnProperty.call(n,e)}))throw new Error("parent schema must have all required keywords: "+i.join(","));var o=e.definition.validateSchema;if(o){var l=o(r);if(!l){var f="keyword schema is invalid: "+d.errorsText(o.errors);if(d._opts.validateSchema=="log")d.logger.error(f);else throw new Error(f)}}}var c=e.definition.compile,a=e.definition.inline,t=e.definition.macro;var p;if(c){p=c.call(d,r,n,s)}else if(t){p=t.call(d,r,n,s);if(g.validateSchema!==false)d.validateSchema(p,true)}else if(a){p=a.call(d,s,e.keyword,r,n)}else{p=e.definition.validate;if(!p)return}if(p===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=b.length;b[h]=p;return{code:"customRule"+h,validate:p}}}function checkCompiling(e,r,n){var s=compIndex.call(this,e,r,n);if(s>=0)return{index:s,compiling:true};s=this._compilations.length;this._compilations[s]={schema:e,root:r,baseId:n};return{index:s,compiling:false}}function endCompiling(e,r,n){var s=compIndex.call(this,e,r,n);if(s>=0)this._compilations.splice(s,1)}function compIndex(e,r,n){for(var s=0;s{"use strict";var s=n(3786),i=n(7988),o=n(2657),l=n(7721),f=n(7438);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,r,n){var s=this._refs[n];if(typeof s=="string"){if(this._refs[s])s=this._refs[s];else return resolve.call(this,e,r,s)}s=s||this._schemas[n];if(s instanceof l){return inlineRef(s.schema,this._opts.inlineRefs)?s.schema:s.validate||this._compile(s)}var i=resolveSchema.call(this,r,n);var o,f,c;if(i){o=i.schema;r=i.root;c=i.baseId}if(o instanceof l){f=o.validate||e.call(this,o.schema,r,undefined,c)}else if(o!==undefined){f=inlineRef(o,this._opts.inlineRefs)?o:e.call(this,o,r,undefined,c)}return f}function resolveSchema(e,r){var n=s.parse(r),i=_getFullPath(n),o=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==o){var f=normalizeId(i);var c=this._refs[f];if(typeof c=="string"){return resolveRecursive.call(this,e,c,n)}else if(c instanceof l){if(!c.validate)this._compile(c);e=c}else{c=this._schemas[f];if(c instanceof l){if(!c.validate)this._compile(c);if(f==normalizeId(r))return{schema:c,root:e,baseId:o};e=c}else{return}}if(!e.schema)return;o=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,n,o,e.schema,e)}function resolveRecursive(e,r,n){var s=resolveSchema.call(this,e,r);if(s){var i=s.schema;var o=s.baseId;e=s.root;var l=this._getId(i);if(l)o=resolveUrl(o,l);return getJsonPointer.call(this,n,o,i,e)}}var c=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,r,n,s){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var i=e.fragment.split("/");for(var l=1;l{"use strict";var s=n(1676),i=n(2657).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var r=["type","$comment"];var n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var o=["number","integer","string","array","object","boolean","null"];e.all=i(r);e.types=i(o);e.forEach(function(n){n.rules=n.rules.map(function(n){var i;if(typeof n=="object"){var o=Object.keys(n)[0];i=n[o];n=o;i.forEach(function(n){r.push(n);e.all[n]=true})}r.push(n);var l=e.all[n]={keyword:n,code:s[n],implements:i};return l});e.all.$comment={keyword:"$comment",code:s.$comment};if(n.type)e.types[n.type]=n});e.keywords=i(r.concat(n));e.custom={};return e}},7721:(e,r,n)=>{"use strict";var s=n(2657);e.exports=SchemaObject;function SchemaObject(e){s.copy(e,this)}},5584:e=>{"use strict";e.exports=function ucs2length(e){var r=0,n=e.length,s=0,i;while(s=55296&&i<=56319&&s{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:n(7988),ucs2length:n(5584),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,r){r=r||{};for(var n in e)r[n]=e[n];return r}function checkDataType(e,r,n,s){var i=s?" !== ":" === ",o=s?" || ":" && ",l=s?"!":"",f=s?"":"!";switch(e){case"null":return r+i+"null";case"array":return l+"Array.isArray("+r+")";case"object":return"("+l+r+o+"typeof "+r+i+'"object"'+o+f+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+o+f+"("+r+" % 1)"+o+r+i+r+(n?o+l+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(n?o+l+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function checkDataTypes(e,r,n){switch(e.length){case 1:return checkDataType(e[0],r,n,true);default:var s="";var i=toHash(e);if(i.array&&i.object){s=i.null?"(":"(!"+r+" || ";s+="typeof "+r+' !== "object")';delete i.null;delete i.array;delete i.object}if(i.number)delete i.integer;for(var o in i)s+=(s?" && ":"")+checkDataType(o,r,n,true);return s}}var s=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,r){if(Array.isArray(r)){var n=[];for(var i=0;i=r)throw new Error("Cannot access property/index "+s+" levels up, current level is "+r);return n[r-s]}if(s>r)throw new Error("Cannot access data "+s+" levels up, current level is "+r);o="data"+(r-s||"");if(!i)return o}var a=o;var t=i.split("/");for(var p=0;p{"use strict";var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,n){for(var s=0;s{"use strict";var s=n(1742);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:s.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:s.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},5702:e=>{"use strict";e.exports=function generate__limit(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t;var p="data"+(o||"");var d=e.opts.$data&&l&&l.$data,g;if(d){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";g="schema"+i}else{g=l}var h=r=="maximum",u=h?"exclusiveMaximum":"exclusiveMinimum",v=e.schema[u],E=e.opts.$data&&v&&v.$data,w=h?"<":">",m=h?">":"<",t=undefined;if(!(d||typeof l=="number"||l===undefined)){throw new Error(r+" must be number")}if(!(E||v===undefined||typeof v=="number"||typeof v=="boolean")){throw new Error(u+" must be number or boolean")}if(E){var b=e.util.getData(v.$data,o,e.dataPathArr),T="exclusive"+i,y="exclType"+i,O="exclIsNumber"+i,R="op"+i,A="' + "+R+" + '";s+=" var schemaExcl"+i+" = "+b+"; ";b="schemaExcl"+i;s+=" var "+T+"; var "+y+" = typeof "+b+"; if ("+y+" != 'boolean' && "+y+" != 'undefined' && "+y+" != 'number') { ";var t=u;var F=F||[];F.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(t||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: '"+u+" should be boolean' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var I=s;s=F.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+I+"]); "}else{s+=" validate.errors = ["+I+"]; return false; "}}else{s+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else if ( ";if(d){s+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "}s+=" "+y+" == 'number' ? ( ("+T+" = "+g+" === undefined || "+b+" "+w+"= "+g+") ? "+p+" "+m+"= "+b+" : "+p+" "+m+" "+g+" ) : ( ("+T+" = "+b+" === true) ? "+p+" "+m+"= "+g+" : "+p+" "+m+" "+g+" ) || "+p+" !== "+p+") { var op"+i+" = "+T+" ? '"+w+"' : '"+w+"='; ";if(l===undefined){t=u;c=e.errSchemaPath+"/"+u;g=b;d=E}}else{var O=typeof v=="number",A=w;if(O&&d){var R="'"+A+"'";s+=" if ( ";if(d){s+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "}s+=" ( "+g+" === undefined || "+v+" "+w+"= "+g+" ? "+p+" "+m+"= "+v+" : "+p+" "+m+" "+g+" ) || "+p+" !== "+p+") { "}else{if(O&&l===undefined){T=true;t=u;c=e.errSchemaPath+"/"+u;g=v;m+="="}else{if(O)g=Math[h?"min":"max"](v,l);if(v===(O?g:true)){T=true;t=u;c=e.errSchemaPath+"/"+u;m+="="}else{T=false;A+="="}}var R="'"+A+"'";s+=" if ( ";if(d){s+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "}s+=" "+p+" "+m+" "+g+" || "+p+" !== "+p+") { "}}t=t||r;var F=F||[];F.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(t||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+R+", limit: "+g+", exclusive: "+T+" } ";if(e.opts.messages!==false){s+=" , message: 'should be "+A+" ";if(d){s+="' + "+g}else{s+=""+g+"'"}}if(e.opts.verbose){s+=" , schema: ";if(d){s+="validate.schema"+f}else{s+=""+l}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var I=s;s=F.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+I+"]); "}else{s+=" validate.errors = ["+I+"]; return false; "}}else{s+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(a){s+=" else { "}return s}},2931:e=>{"use strict";e.exports=function generate__limitItems(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t;var p="data"+(o||"");var d=e.opts.$data&&l&&l.$data,g;if(d){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";g="schema"+i}else{g=l}if(!(d||typeof l=="number")){throw new Error(r+" must be number")}var h=r=="maxItems"?">":"<";s+="if ( ";if(d){s+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "}s+=" "+p+".length "+h+" "+g+") { ";var t=r;var u=u||[];u.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(t||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+g+" } ";if(e.opts.messages!==false){s+=" , message: 'should NOT have ";if(r=="maxItems"){s+="more"}else{s+="fewer"}s+=" than ";if(d){s+="' + "+g+" + '"}else{s+=""+l}s+=" items' "}if(e.opts.verbose){s+=" , schema: ";if(d){s+="validate.schema"+f}else{s+=""+l}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var v=s;s=u.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+v+"]); "}else{s+=" validate.errors = ["+v+"]; return false; "}}else{s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(a){s+=" else { "}return s}},4583:e=>{"use strict";e.exports=function generate__limitLength(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t;var p="data"+(o||"");var d=e.opts.$data&&l&&l.$data,g;if(d){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";g="schema"+i}else{g=l}if(!(d||typeof l=="number")){throw new Error(r+" must be number")}var h=r=="maxLength"?">":"<";s+="if ( ";if(d){s+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "}if(e.opts.unicode===false){s+=" "+p+".length "}else{s+=" ucs2length("+p+") "}s+=" "+h+" "+g+") { ";var t=r;var u=u||[];u.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(t||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+g+" } ";if(e.opts.messages!==false){s+=" , message: 'should NOT be ";if(r=="maxLength"){s+="longer"}else{s+="shorter"}s+=" than ";if(d){s+="' + "+g+" + '"}else{s+=""+l}s+=" characters' "}if(e.opts.verbose){s+=" , schema: ";if(d){s+="validate.schema"+f}else{s+=""+l}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var v=s;s=u.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+v+"]); "}else{s+=" validate.errors = ["+v+"]; return false; "}}else{s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(a){s+=" else { "}return s}},1679:e=>{"use strict";e.exports=function generate__limitProperties(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t;var p="data"+(o||"");var d=e.opts.$data&&l&&l.$data,g;if(d){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";g="schema"+i}else{g=l}if(!(d||typeof l=="number")){throw new Error(r+" must be number")}var h=r=="maxProperties"?">":"<";s+="if ( ";if(d){s+=" ("+g+" !== undefined && typeof "+g+" != 'number') || "}s+=" Object.keys("+p+").length "+h+" "+g+") { ";var t=r;var u=u||[];u.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(t||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+g+" } ";if(e.opts.messages!==false){s+=" , message: 'should NOT have ";if(r=="maxProperties"){s+="more"}else{s+="fewer"}s+=" than ";if(d){s+="' + "+g+" + '"}else{s+=""+l}s+=" properties' "}if(e.opts.verbose){s+=" , schema: ";if(d){s+="validate.schema"+f}else{s+=""+l}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var v=s;s=u.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+v+"]); "}else{s+=" validate.errors = ["+v+"]; return false; "}}else{s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(a){s+=" else { "}return s}},6981:e=>{"use strict";e.exports=function generate_allOf(e,r,n){var s=" ";var i=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var f=!e.opts.allErrors;var c=e.util.copy(e);var a="";c.level++;var t="valid"+c.level;var p=c.baseId,d=true;var g=i;if(g){var h,u=-1,v=g.length-1;while(u0||h===false:e.util.schemaHasRules(h,e.RULES.all)){d=false;c.schema=h;c.schemaPath=o+"["+u+"]";c.errSchemaPath=l+"/"+u;s+=" "+e.validate(c)+" ";c.baseId=p;if(f){s+=" if ("+t+") { ";a+="}"}}}}if(f){if(d){s+=" if (true) { "}else{s+=" "+a.slice(0,-1)+" "}}return s}},8138:e=>{"use strict";e.exports=function generate_anyOf(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d="errs__"+i;var g=e.util.copy(e);var h="";g.level++;var u="valid"+g.level;var v=l.every(function(r){return e.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0||r===false:e.util.schemaHasRules(r,e.RULES.all)});if(v){var E=g.baseId;s+=" var "+d+" = errors; var "+p+" = false; ";var w=e.compositeRule;e.compositeRule=g.compositeRule=true;var m=l;if(m){var b,T=-1,y=m.length-1;while(T{"use strict";e.exports=function generate_comment(e,r,n){var s=" ";var i=e.schema[r];var o=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var f=e.util.toQuotedString(i);if(e.opts.$comment===true){s+=" console.log("+f+");"}else if(typeof e.opts.$comment=="function"){s+=" self._opts.$comment("+f+", "+e.util.toQuotedString(o)+", validate.root.schema);"}return s}},2645:e=>{"use strict";e.exports=function generate_const(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d=e.opts.$data&&l&&l.$data,g;if(d){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";g="schema"+i}else{g=l}if(!d){s+=" var schema"+i+" = validate.schema"+f+";"}s+="var "+p+" = equal("+t+", schema"+i+"); if (!"+p+") { ";var h=h||[];h.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+i+" } ";if(e.opts.messages!==false){s+=" , message: 'should be equal to constant' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var u=s;s=h.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+u+"]); "}else{s+=" validate.errors = ["+u+"]; return false; "}}else{s+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" }";if(a){s+=" else { "}return s}},640:e=>{"use strict";e.exports=function generate_contains(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d="errs__"+i;var g=e.util.copy(e);var h="";g.level++;var u="valid"+g.level;var v="i"+i,E=g.dataLevel=e.dataLevel+1,w="data"+E,m=e.baseId,b=e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===false:e.util.schemaHasRules(l,e.RULES.all);s+="var "+d+" = errors;var "+p+";";if(b){var T=e.compositeRule;e.compositeRule=g.compositeRule=true;g.schema=l;g.schemaPath=f;g.errSchemaPath=c;s+=" var "+u+" = false; for (var "+v+" = 0; "+v+" < "+t+".length; "+v+"++) { ";g.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var y=t+"["+v+"]";g.dataPathArr[E]=v;var O=e.validate(g);g.baseId=m;if(e.util.varOccurences(O,w)<2){s+=" "+e.util.varReplace(O,w,y)+" "}else{s+=" var "+w+" = "+y+"; "+O+" "}s+=" if ("+u+") break; } ";e.compositeRule=g.compositeRule=T;s+=" "+h+" if (!"+u+") {"}else{s+=" if ("+t+".length == 0) {"}var R=R||[];R.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: 'should contain a valid item' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var A=s;s=R.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+A+"]); "}else{s+=" validate.errors = ["+A+"]; return false; "}}else{s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { ";if(b){s+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "}if(e.opts.allErrors){s+=" } "}return s}},4741:e=>{"use strict";e.exports=function generate_custom(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t;var p="data"+(o||"");var d="valid"+i;var g="errs__"+i;var h=e.opts.$data&&l&&l.$data,u;if(h){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";u="schema"+i}else{u=l}var v=this,E="definition"+i,w=v.definition,m="";var b,T,y,O,R;if(h&&w.$data){R="keywordValidate"+i;var A=w.validateSchema;s+=" var "+E+" = RULES.custom['"+r+"'].definition; var "+R+" = "+E+".validate;"}else{O=e.useCustomRule(v,l,e.schema,e);if(!O)return;u="validate.schema"+f;R=O.code;b=w.compile;T=w.inline;y=w.macro}var F=R+".errors",I="i"+i,j="ruleErr"+i,G=w.async;if(G&&!e.async)throw new Error("async keyword in sync schema");if(!(T||y)){s+=""+F+" = null;"}s+="var "+g+" = errors;var "+d+";";if(h&&w.$data){m+="}";s+=" if ("+u+" === undefined) { "+d+" = true; } else { ";if(A){m+="}";s+=" "+d+" = "+E+".validateSchema("+u+"); if ("+d+") { "}}if(T){if(w.statements){s+=" "+O.validate+" "}else{s+=" "+d+" = "+O.validate+"; "}}else if(y){var S=e.util.copy(e);var m="";S.level++;var C="valid"+S.level;S.schema=O.validate;S.schemaPath="";var L=e.compositeRule;e.compositeRule=S.compositeRule=true;var N=e.validate(S).replace(/validate\.schema/g,R);e.compositeRule=S.compositeRule=L;s+=" "+N}else{var x=x||[];x.push(s);s="";s+=" "+R+".call( ";if(e.opts.passContext){s+="this"}else{s+="self"}if(b||w.schema===false){s+=" , "+p+" "}else{s+=" , "+u+" , "+p+" , validate.schema"+e.schemaPath+" "}s+=" , (dataPath || '')";if(e.errorPath!='""'){s+=" + "+e.errorPath}var k=o?"data"+(o-1||""):"parentData",D=o?e.dataPathArr[o]:"parentDataProperty";s+=" , "+k+" , "+D+" , rootData ) ";var U=s;s=x.pop();if(w.errors===false){s+=" "+d+" = ";if(G){s+="await "}s+=""+U+"; "}else{if(G){F="customErrors"+i;s+=" var "+F+" = null; try { "+d+" = await "+U+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+F+" = e.errors; else throw e; } "}else{s+=" "+F+" = null; "+d+" = "+U+"; "}}}if(w.modifying){s+=" if ("+k+") "+p+" = "+k+"["+D+"];"}s+=""+m;if(w.valid){if(a){s+=" if (true) { "}}else{s+=" if ( ";if(w.valid===undefined){s+=" !";if(y){s+=""+C}else{s+=""+d}}else{s+=" "+!w.valid+" "}s+=") { ";t=v.keyword;var x=x||[];x.push(s);s="";var x=x||[];x.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(t||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+v.keyword+"' } ";if(e.opts.messages!==false){s+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}s+=" } "}else{s+=" {} "}var q=s;s=x.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+q+"]); "}else{s+=" validate.errors = ["+q+"]; return false; "}}else{s+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var B=s;s=x.pop();if(T){if(w.errors){if(w.errors!="full"){s+=" for (var "+I+"="+g+"; "+I+"{"use strict";e.exports=function generate_dependencies(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="errs__"+i;var d=e.util.copy(e);var g="";d.level++;var h="valid"+d.level;var u={},v={},E=e.opts.ownProperties;for(T in l){if(T=="__proto__")continue;var w=l[T];var m=Array.isArray(w)?v:u;m[T]=w}s+="var "+p+" = errors;";var b=e.errorPath;s+="var missing"+i+";";for(var T in v){m=v[T];if(m.length){s+=" if ( "+t+e.util.getProperty(T)+" !== undefined ";if(E){s+=" && Object.prototype.hasOwnProperty.call("+t+", '"+e.util.escapeQuotes(T)+"') "}if(a){s+=" && ( ";var y=m;if(y){var O,R=-1,A=y.length-1;while(R0||w===false:e.util.schemaHasRules(w,e.RULES.all)){s+=" "+h+" = true; if ( "+t+e.util.getProperty(T)+" !== undefined ";if(E){s+=" && Object.prototype.hasOwnProperty.call("+t+", '"+e.util.escapeQuotes(T)+"') "}s+=") { ";d.schema=w;d.schemaPath=f+e.util.getProperty(T);d.errSchemaPath=c+"/"+e.util.escapeFragment(T);s+=" "+e.validate(d)+" ";d.baseId=k;s+=" } ";if(a){s+=" if ("+h+") { ";g+="}"}}}if(a){s+=" "+g+" if ("+p+" == errors) {"}return s}},4684:e=>{"use strict";e.exports=function generate_enum(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d=e.opts.$data&&l&&l.$data,g;if(d){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";g="schema"+i}else{g=l}var h="i"+i,u="schema"+i;if(!d){s+=" var "+u+" = validate.schema"+f+";"}s+="var "+p+";";if(d){s+=" if (schema"+i+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+i+")) "+p+" = false; else {"}s+=""+p+" = false;for (var "+h+"=0; "+h+"<"+u+".length; "+h+"++) if (equal("+t+", "+u+"["+h+"])) { "+p+" = true; break; }";if(d){s+=" } "}s+=" if (!"+p+") { ";var v=v||[];v.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ";if(e.opts.messages!==false){s+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var E=s;s=v.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+E+"]); "}else{s+=" validate.errors = ["+E+"]; return false; "}}else{s+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" }";if(a){s+=" else { "}return s}},924:e=>{"use strict";e.exports=function generate_format(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");if(e.opts.format===false){if(a){s+=" if (true) { "}return s}var p=e.opts.$data&&l&&l.$data,d;if(p){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";d="schema"+i}else{d=l}var g=e.opts.unknownFormats,h=Array.isArray(g);if(p){var u="format"+i,v="isObject"+i,E="formatType"+i;s+=" var "+u+" = formats["+d+"]; var "+v+" = typeof "+u+" == 'object' && !("+u+" instanceof RegExp) && "+u+".validate; var "+E+" = "+v+" && "+u+".type || 'string'; if ("+v+") { ";if(e.async){s+=" var async"+i+" = "+u+".async; "}s+=" "+u+" = "+u+".validate; } if ( ";if(p){s+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "}s+=" (";if(g!="ignore"){s+=" ("+d+" && !"+u+" ";if(h){s+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "}s+=") || "}s+=" ("+u+" && "+E+" == '"+n+"' && !(typeof "+u+" == 'function' ? ";if(e.async){s+=" (async"+i+" ? await "+u+"("+t+") : "+u+"("+t+")) "}else{s+=" "+u+"("+t+") "}s+=" : "+u+".test("+t+"))))) {"}else{var u=e.formats[l];if(!u){if(g=="ignore"){e.logger.warn('unknown format "'+l+'" ignored in schema at path "'+e.errSchemaPath+'"');if(a){s+=" if (true) { "}return s}else if(h&&g.indexOf(l)>=0){if(a){s+=" if (true) { "}return s}else{throw new Error('unknown format "'+l+'" is used in schema at path "'+e.errSchemaPath+'"')}}var v=typeof u=="object"&&!(u instanceof RegExp)&&u.validate;var E=v&&u.type||"string";if(v){var w=u.async===true;u=u.validate}if(E!=n){if(a){s+=" if (true) { "}return s}if(w){if(!e.async)throw new Error("async format in sync schema");var m="formats"+e.util.getProperty(l)+".validate";s+=" if (!(await "+m+"("+t+"))) { "}else{s+=" if (! ";var m="formats"+e.util.getProperty(l);if(v)m+=".validate";if(typeof u=="function"){s+=" "+m+"("+t+") "}else{s+=" "+m+".test("+t+") "}s+=") { "}}var b=b||[];b.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ";if(p){s+=""+d}else{s+=""+e.util.toQuotedString(l)}s+=" } ";if(e.opts.messages!==false){s+=" , message: 'should match format \"";if(p){s+="' + "+d+" + '"}else{s+=""+e.util.escapeQuotes(l)}s+="\"' "}if(e.opts.verbose){s+=" , schema: ";if(p){s+="validate.schema"+f}else{s+=""+e.util.toQuotedString(l)}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var T=s;s=b.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+T+"]); "}else{s+=" validate.errors = ["+T+"]; return false; "}}else{s+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(a){s+=" else { "}return s}},3973:e=>{"use strict";e.exports=function generate_if(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d="errs__"+i;var g=e.util.copy(e);g.level++;var h="valid"+g.level;var u=e.schema["then"],v=e.schema["else"],E=u!==undefined&&(e.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===false:e.util.schemaHasRules(u,e.RULES.all)),w=v!==undefined&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)),m=g.baseId;if(E||w){var b;g.createErrors=false;g.schema=l;g.schemaPath=f;g.errSchemaPath=c;s+=" var "+d+" = errors; var "+p+" = true; ";var T=e.compositeRule;e.compositeRule=g.compositeRule=true;s+=" "+e.validate(g)+" ";g.baseId=m;g.createErrors=true;s+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ";e.compositeRule=g.compositeRule=T;if(E){s+=" if ("+h+") { ";g.schema=e.schema["then"];g.schemaPath=e.schemaPath+".then";g.errSchemaPath=e.errSchemaPath+"/then";s+=" "+e.validate(g)+" ";g.baseId=m;s+=" "+p+" = "+h+"; ";if(E&&w){b="ifClause"+i;s+=" var "+b+" = 'then'; "}else{b="'then'"}s+=" } ";if(w){s+=" else { "}}else{s+=" if (!"+h+") { "}if(w){g.schema=e.schema["else"];g.schemaPath=e.schemaPath+".else";g.errSchemaPath=e.errSchemaPath+"/else";s+=" "+e.validate(g)+" ";g.baseId=m;s+=" "+p+" = "+h+"; ";if(E&&w){b="ifClause"+i;s+=" var "+b+" = 'else'; "}else{b="'else'"}s+=" } "}s+=" if (!"+p+") { var err = ";if(e.createErrors!==false){s+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+b+" } ";if(e.opts.messages!==false){s+=" , message: 'should match \"' + "+b+" + '\" schema' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}s+=" } ";if(a){s+=" else { "}}else{if(a){s+=" if (true) { "}}return s}},1676:(e,r,n)=>{"use strict";e.exports={$ref:n(9873),allOf:n(6981),anyOf:n(8138),$comment:n(3090),const:n(2645),contains:n(640),dependencies:n(9466),enum:n(4684),format:n(924),if:n(3973),items:n(5136),maximum:n(5702),minimum:n(5702),maxItems:n(2931),minItems:n(2931),maxLength:n(4583),minLength:n(4583),maxProperties:n(1679),minProperties:n(1679),multipleOf:n(9467),not:n(6223),oneOf:n(61),pattern:n(1819),properties:n(3548),propertyNames:n(2379),required:n(7805),uniqueItems:n(447),validate:n(7752)}},5136:e=>{"use strict";e.exports=function generate_items(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d="errs__"+i;var g=e.util.copy(e);var h="";g.level++;var u="valid"+g.level;var v="i"+i,E=g.dataLevel=e.dataLevel+1,w="data"+E,m=e.baseId;s+="var "+d+" = errors;var "+p+";";if(Array.isArray(l)){var b=e.schema.additionalItems;if(b===false){s+=" "+p+" = "+t+".length <= "+l.length+"; ";var T=c;c=e.errSchemaPath+"/additionalItems";s+=" if (!"+p+") { ";var y=y||[];y.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+l.length+" } ";if(e.opts.messages!==false){s+=" , message: 'should NOT have more than "+l.length+" items' "}if(e.opts.verbose){s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var O=s;s=y.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+O+"]); "}else{s+=" validate.errors = ["+O+"]; return false; "}}else{s+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";c=T;if(a){h+="}";s+=" else { "}}var R=l;if(R){var A,F=-1,I=R.length-1;while(F0||A===false:e.util.schemaHasRules(A,e.RULES.all)){s+=" "+u+" = true; if ("+t+".length > "+F+") { ";var j=t+"["+F+"]";g.schema=A;g.schemaPath=f+"["+F+"]";g.errSchemaPath=c+"/"+F;g.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,true);g.dataPathArr[E]=F;var G=e.validate(g);g.baseId=m;if(e.util.varOccurences(G,w)<2){s+=" "+e.util.varReplace(G,w,j)+" "}else{s+=" var "+w+" = "+j+"; "+G+" "}s+=" } ";if(a){s+=" if ("+u+") { ";h+="}"}}}}if(typeof b=="object"&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===false:e.util.schemaHasRules(b,e.RULES.all))){g.schema=b;g.schemaPath=e.schemaPath+".additionalItems";g.errSchemaPath=e.errSchemaPath+"/additionalItems";s+=" "+u+" = true; if ("+t+".length > "+l.length+") { for (var "+v+" = "+l.length+"; "+v+" < "+t+".length; "+v+"++) { ";g.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var j=t+"["+v+"]";g.dataPathArr[E]=v;var G=e.validate(g);g.baseId=m;if(e.util.varOccurences(G,w)<2){s+=" "+e.util.varReplace(G,w,j)+" "}else{s+=" var "+w+" = "+j+"; "+G+" "}if(a){s+=" if (!"+u+") break; "}s+=" } } ";if(a){s+=" if ("+u+") { ";h+="}"}}}else if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===false:e.util.schemaHasRules(l,e.RULES.all)){g.schema=l;g.schemaPath=f;g.errSchemaPath=c;s+=" for (var "+v+" = "+0+"; "+v+" < "+t+".length; "+v+"++) { ";g.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var j=t+"["+v+"]";g.dataPathArr[E]=v;var G=e.validate(g);g.baseId=m;if(e.util.varOccurences(G,w)<2){s+=" "+e.util.varReplace(G,w,j)+" "}else{s+=" var "+w+" = "+j+"; "+G+" "}if(a){s+=" if (!"+u+") break; "}s+=" }"}if(a){s+=" "+h+" if ("+d+" == errors) {"}return s}},9467:e=>{"use strict";e.exports=function generate_multipleOf(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p=e.opts.$data&&l&&l.$data,d;if(p){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";d="schema"+i}else{d=l}if(!(p||typeof l=="number")){throw new Error(r+" must be number")}s+="var division"+i+";if (";if(p){s+=" "+d+" !== undefined && ( typeof "+d+" != 'number' || "}s+=" (division"+i+" = "+t+" / "+d+", ";if(e.opts.multipleOfPrecision){s+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" "}else{s+=" division"+i+" !== parseInt(division"+i+") "}s+=" ) ";if(p){s+=" ) "}s+=" ) { ";var g=g||[];g.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+d+" } ";if(e.opts.messages!==false){s+=" , message: 'should be multiple of ";if(p){s+="' + "+d}else{s+=""+d+"'"}}if(e.opts.verbose){s+=" , schema: ";if(p){s+="validate.schema"+f}else{s+=""+l}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var h=s;s=g.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+h+"]); "}else{s+=" validate.errors = ["+h+"]; return false; "}}else{s+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(a){s+=" else { "}return s}},6223:e=>{"use strict";e.exports=function generate_not(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="errs__"+i;var d=e.util.copy(e);d.level++;var g="valid"+d.level;if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===false:e.util.schemaHasRules(l,e.RULES.all)){d.schema=l;d.schemaPath=f;d.errSchemaPath=c;s+=" var "+p+" = errors; ";var h=e.compositeRule;e.compositeRule=d.compositeRule=true;d.createErrors=false;var u;if(d.opts.allErrors){u=d.opts.allErrors;d.opts.allErrors=false}s+=" "+e.validate(d)+" ";d.createErrors=true;if(u)d.opts.allErrors=u;e.compositeRule=d.compositeRule=h;s+=" if ("+g+") { ";var v=v||[];v.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: 'should NOT be valid' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var E=s;s=v.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+E+"]); "}else{s+=" validate.errors = ["+E+"]; return false; "}}else{s+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";if(e.opts.allErrors){s+=" } "}}else{s+=" var err = ";if(e.createErrors!==false){s+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: 'should NOT be valid' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(a){s+=" if (false) { "}}return s}},61:e=>{"use strict";e.exports=function generate_oneOf(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d="errs__"+i;var g=e.util.copy(e);var h="";g.level++;var u="valid"+g.level;var v=g.baseId,E="prevValid"+i,w="passingSchemas"+i;s+="var "+d+" = errors , "+E+" = false , "+p+" = false , "+w+" = null; ";var m=e.compositeRule;e.compositeRule=g.compositeRule=true;var b=l;if(b){var T,y=-1,O=b.length-1;while(y0||T===false:e.util.schemaHasRules(T,e.RULES.all)){g.schema=T;g.schemaPath=f+"["+y+"]";g.errSchemaPath=c+"/"+y;s+=" "+e.validate(g)+" ";g.baseId=v}else{s+=" var "+u+" = true; "}if(y){s+=" if ("+u+" && "+E+") { "+p+" = false; "+w+" = ["+w+", "+y+"]; } else { ";h+="}"}s+=" if ("+u+") { "+p+" = "+E+" = true; "+w+" = "+y+"; }"}}e.compositeRule=g.compositeRule=m;s+=""+h+"if (!"+p+") { var err = ";if(e.createErrors!==false){s+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+w+" } ";if(e.opts.messages!==false){s+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(vErrors); "}else{s+=" validate.errors = vErrors; return false; "}}s+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }";if(e.opts.allErrors){s+=" } "}return s}},1819:e=>{"use strict";e.exports=function generate_pattern(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p=e.opts.$data&&l&&l.$data,d;if(p){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";d="schema"+i}else{d=l}var g=p?"(new RegExp("+d+"))":e.usePattern(l);s+="if ( ";if(p){s+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "}s+=" !"+g+".test("+t+") ) { ";var h=h||[];h.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ";if(p){s+=""+d}else{s+=""+e.util.toQuotedString(l)}s+=" } ";if(e.opts.messages!==false){s+=" , message: 'should match pattern \"";if(p){s+="' + "+d+" + '"}else{s+=""+e.util.escapeQuotes(l)}s+="\"' "}if(e.opts.verbose){s+=" , schema: ";if(p){s+="validate.schema"+f}else{s+=""+e.util.toQuotedString(l)}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var u=s;s=h.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+u+"]); "}else{s+=" validate.errors = ["+u+"]; return false; "}}else{s+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+="} ";if(a){s+=" else { "}return s}},3548:e=>{"use strict";e.exports=function generate_properties(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="errs__"+i;var d=e.util.copy(e);var g="";d.level++;var h="valid"+d.level;var u="key"+i,v="idx"+i,E=d.dataLevel=e.dataLevel+1,w="data"+E,m="dataProperties"+i;var b=Object.keys(l||{}).filter(notProto),T=e.schema.patternProperties||{},y=Object.keys(T).filter(notProto),O=e.schema.additionalProperties,R=b.length||y.length,A=O===false,F=typeof O=="object"&&Object.keys(O).length,I=e.opts.removeAdditional,j=A||F||I,G=e.opts.ownProperties,S=e.baseId;var C=e.schema.required;if(C&&!(e.opts.$data&&C.$data)&&C.length8){s+=" || validate.schema"+f+".hasOwnProperty("+u+") "}else{var N=b;if(N){var x,k=-1,D=N.length-1;while(k0||$===false:e.util.schemaHasRules($,e.RULES.all)){var ee=e.util.getProperty(x),Z=t+ee,re=P&&$.default!==undefined;d.schema=$;d.schemaPath=f+ee;d.errSchemaPath=c+"/"+e.util.escapeFragment(x);d.errorPath=e.util.getPath(e.errorPath,x,e.opts.jsonPointers);d.dataPathArr[E]=e.util.toQuotedString(x);var V=e.validate(d);d.baseId=S;if(e.util.varOccurences(V,w)<2){V=e.util.varReplace(V,w,Z);var ne=Z}else{var ne=w;s+=" var "+w+" = "+Z+"; "}if(re){s+=" "+V+" "}else{if(L&&L[x]){s+=" if ( "+ne+" === undefined ";if(G){s+=" || ! Object.prototype.hasOwnProperty.call("+t+", '"+e.util.escapeQuotes(x)+"') "}s+=") { "+h+" = false; ";var z=e.errorPath,Y=c,se=e.util.escapeQuotes(x);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(z,x,e.opts.jsonPointers)}c=e.errSchemaPath+"/required";var X=X||[];X.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+se+"' } ";if(e.opts.messages!==false){s+=" , message: '";if(e.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+se+"\\'"}s+="' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var Q=s;s=X.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+Q+"]); "}else{s+=" validate.errors = ["+Q+"]; return false; "}}else{s+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}c=Y;e.errorPath=z;s+=" } else { "}else{if(a){s+=" if ( "+ne+" === undefined ";if(G){s+=" || ! Object.prototype.hasOwnProperty.call("+t+", '"+e.util.escapeQuotes(x)+"') "}s+=") { "+h+" = true; } else { "}else{s+=" if ("+ne+" !== undefined ";if(G){s+=" && Object.prototype.hasOwnProperty.call("+t+", '"+e.util.escapeQuotes(x)+"') "}s+=" ) { "}}s+=" "+V+" } "}}if(a){s+=" if ("+h+") { ";g+="}"}}}}if(y.length){var ie=y;if(ie){var q,oe=-1,le=ie.length-1;while(oe0||$===false:e.util.schemaHasRules($,e.RULES.all)){d.schema=$;d.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(q);d.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(q);if(G){s+=" "+m+" = "+m+" || Object.keys("+t+"); for (var "+v+"=0; "+v+"<"+m+".length; "+v+"++) { var "+u+" = "+m+"["+v+"]; "}else{s+=" for (var "+u+" in "+t+") { "}s+=" if ("+e.usePattern(q)+".test("+u+")) { ";d.errorPath=e.util.getPathExpr(e.errorPath,u,e.opts.jsonPointers);var Z=t+"["+u+"]";d.dataPathArr[E]=u;var V=e.validate(d);d.baseId=S;if(e.util.varOccurences(V,w)<2){s+=" "+e.util.varReplace(V,w,Z)+" "}else{s+=" var "+w+" = "+Z+"; "+V+" "}if(a){s+=" if (!"+h+") break; "}s+=" } ";if(a){s+=" else "+h+" = true; "}s+=" } ";if(a){s+=" if ("+h+") { ";g+="}"}}}}}if(a){s+=" "+g+" if ("+p+" == errors) {"}return s}},2379:e=>{"use strict";e.exports=function generate_propertyNames(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="errs__"+i;var d=e.util.copy(e);var g="";d.level++;var h="valid"+d.level;s+="var "+p+" = errors;";if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===false:e.util.schemaHasRules(l,e.RULES.all)){d.schema=l;d.schemaPath=f;d.errSchemaPath=c;var u="key"+i,v="idx"+i,E="i"+i,w="' + "+u+" + '",m=d.dataLevel=e.dataLevel+1,b="data"+m,T="dataProperties"+i,y=e.opts.ownProperties,O=e.baseId;if(y){s+=" var "+T+" = undefined; "}if(y){s+=" "+T+" = "+T+" || Object.keys("+t+"); for (var "+v+"=0; "+v+"<"+T+".length; "+v+"++) { var "+u+" = "+T+"["+v+"]; "}else{s+=" for (var "+u+" in "+t+") { "}s+=" var startErrs"+i+" = errors; ";var R=u;var A=e.compositeRule;e.compositeRule=d.compositeRule=true;var F=e.validate(d);d.baseId=O;if(e.util.varOccurences(F,b)<2){s+=" "+e.util.varReplace(F,b,R)+" "}else{s+=" var "+b+" = "+R+"; "+F+" "}e.compositeRule=d.compositeRule=A;s+=" if (!"+h+") { for (var "+E+"=startErrs"+i+"; "+E+"{"use strict";e.exports=function generate_ref(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.errSchemaPath+"/"+r;var c=!e.opts.allErrors;var a="data"+(o||"");var t="valid"+i;var p,d;if(l=="#"||l=="#/"){if(e.isRoot){p=e.async;d="validate"}else{p=e.root.schema.$async===true;d="root.refVal[0]"}}else{var g=e.resolveRef(e.baseId,l,e.isRoot);if(g===undefined){var h=e.MissingRefError.message(e.baseId,l);if(e.opts.missingRefs=="fail"){e.logger.error(h);var u=u||[];u.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ";if(e.opts.messages!==false){s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "}if(e.opts.verbose){s+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}s+=" } "}else{s+=" {} "}var v=s;s=u.pop();if(!e.compositeRule&&c){if(e.async){s+=" throw new ValidationError(["+v+"]); "}else{s+=" validate.errors = ["+v+"]; return false; "}}else{s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(c){s+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(h);if(c){s+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,l,h)}}else if(g.inline){var E=e.util.copy(e);E.level++;var w="valid"+E.level;E.schema=g.schema;E.schemaPath="";E.errSchemaPath=l;var m=e.validate(E).replace(/validate\.schema/g,g.code);s+=" "+m+" ";if(c){s+=" if ("+w+") { "}}else{p=g.$async===true||e.async&&g.$async!==false;d=g.code}}if(d){var u=u||[];u.push(s);s="";if(e.opts.passContext){s+=" "+d+".call(this, "}else{s+=" "+d+"( "}s+=" "+a+", (dataPath || '')";if(e.errorPath!='""'){s+=" + "+e.errorPath}var b=o?"data"+(o-1||""):"parentData",T=o?e.dataPathArr[o]:"parentDataProperty";s+=" , "+b+" , "+T+", rootData) ";var y=s;s=u.pop();if(p){if(!e.async)throw new Error("async schema referenced by sync schema");if(c){s+=" var "+t+"; "}s+=" try { await "+y+"; ";if(c){s+=" "+t+" = true; "}s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(c){s+=" "+t+" = false; "}s+=" } ";if(c){s+=" if ("+t+") { "}}else{s+=" if (!"+y+") { if (vErrors === null) vErrors = "+d+".errors; else vErrors = vErrors.concat("+d+".errors); errors = vErrors.length; } ";if(c){s+=" else { "}}}return s}},7805:e=>{"use strict";e.exports=function generate_required(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d=e.opts.$data&&l&&l.$data,g;if(d){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";g="schema"+i}else{g=l}var h="schema"+i;if(!d){if(l.length0||b===false:e.util.schemaHasRules(b,e.RULES.all)))){u[u.length]=E}}}}else{var u=l}}if(d||u.length){var T=e.errorPath,y=d||u.length>=e.opts.loopRequired,O=e.opts.ownProperties;if(a){s+=" var missing"+i+"; ";if(y){if(!d){s+=" var "+h+" = validate.schema"+f+"; "}var R="i"+i,A="schema"+i+"["+R+"]",F="' + "+A+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(T,A,e.opts.jsonPointers)}s+=" var "+p+" = true; ";if(d){s+=" if (schema"+i+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+i+")) "+p+" = false; else {"}s+=" for (var "+R+" = 0; "+R+" < "+h+".length; "+R+"++) { "+p+" = "+t+"["+h+"["+R+"]] !== undefined ";if(O){s+=" && Object.prototype.hasOwnProperty.call("+t+", "+h+"["+R+"]) "}s+="; if (!"+p+") break; } ";if(d){s+=" } "}s+=" if (!"+p+") { ";var I=I||[];I.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+F+"' } ";if(e.opts.messages!==false){s+=" , message: '";if(e.opts._errorDataPathProperty){s+="is a required property"}else{s+="should have required property \\'"+F+"\\'"}s+="' "}if(e.opts.verbose){s+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var j=s;s=I.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+j+"]); "}else{s+=" validate.errors = ["+j+"]; return false; "}}else{s+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } else { "}else{s+=" if ( ";var G=u;if(G){var S,R=-1,C=G.length-1;while(R{"use strict";e.exports=function generate_uniqueItems(e,r,n){var s=" ";var i=e.level;var o=e.dataLevel;var l=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var a=!e.opts.allErrors;var t="data"+(o||"");var p="valid"+i;var d=e.opts.$data&&l&&l.$data,g;if(d){s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ";g="schema"+i}else{g=l}if((l||d)&&e.opts.uniqueItems!==false){if(d){s+=" var "+p+"; if ("+g+" === false || "+g+" === undefined) "+p+" = true; else if (typeof "+g+" != 'boolean') "+p+" = false; else { "}s+=" var i = "+t+".length , "+p+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,u=Array.isArray(h);if(!h||h=="object"||h=="array"||u&&(h.indexOf("object")>=0||h.indexOf("array")>=0)){s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+t+"[i], "+t+"[j])) { "+p+" = false; break outer; } } } "}else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+t+"[i]; ";var v="checkDataType"+(u?"s":"");s+=" if ("+e.util[v](h,"item",e.opts.strictNumbers,true)+") continue; ";if(u){s+=" if (typeof item == 'string') item = '\"' + item; "}s+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ";if(d){s+=" } "}s+=" if (!"+p+") { ";var E=E||[];E.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){s+=" , schema: ";if(d){s+="validate.schema"+f}else{s+=""+l}s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+t+" "}s+=" } "}else{s+=" {} "}var w=s;s=E.pop();if(!e.compositeRule&&a){if(e.async){s+=" throw new ValidationError(["+w+"]); "}else{s+=" validate.errors = ["+w+"]; return false; "}}else{s+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } ";if(a){s+=" else { "}}else{if(a){s+=" if (true) { "}}return s}},7752:e=>{"use strict";e.exports=function generate_validate(e,r,n){var s="";var i=e.schema.$async===true,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),l=e.self._getId(e.schema);if(e.opts.strictKeywords){var f=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(f){var c="unknown keyword: "+f;if(e.opts.strictKeywords==="log")e.logger.warn(c);else throw new Error(c)}}if(e.isTop){s+=" var validate = ";if(i){e.async=true;s+="async "}s+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(l&&(e.opts.sourceCode||e.opts.processCode)){s+=" "+("/*# sourceURL="+l+" */")+" "}}if(typeof e.schema=="boolean"||!(o||e.schema.$ref)){var r="false schema";var a=e.level;var t=e.dataLevel;var p=e.schema[r];var d=e.schemaPath+e.util.getProperty(r);var g=e.errSchemaPath+"/"+r;var h=!e.opts.allErrors;var u;var v="data"+(t||"");var E="valid"+a;if(e.schema===false){if(e.isTop){h=true}else{s+=" var "+E+" = false; "}var w=w||[];w.push(s);s="";if(e.createErrors!==false){s+=" { keyword: '"+(u||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(g)+" , params: {} ";if(e.opts.messages!==false){s+=" , message: 'boolean schema is false' "}if(e.opts.verbose){s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}s+=" } "}else{s+=" {} "}var m=s;s=w.pop();if(!e.compositeRule&&h){if(e.async){s+=" throw new ValidationError(["+m+"]); "}else{s+=" validate.errors = ["+m+"]; return false; "}}else{s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(i){s+=" return data; "}else{s+=" validate.errors = null; return true; "}}else{s+=" var "+E+" = true; "}}if(e.isTop){s+=" }; return validate; "}return s}if(e.isTop){var b=e.isTop,a=e.level=0,t=e.dataLevel=0,v="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema));e.baseId=e.baseId||e.rootId;delete e.isTop;e.dataPathArr=[""];if(e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var T="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(T);else throw new Error(T)}s+=" var vErrors = null; ";s+=" var errors = 0; ";s+=" if (rootData === undefined) rootData = data; "}else{var a=e.level,t=e.dataLevel,v="data"+(t||"");if(l)e.baseId=e.resolve.url(e.baseId,l);if(i&&!e.async)throw new Error("async schema in sync schema");s+=" var errs_"+a+" = errors;"}var E="valid"+a,h=!e.opts.allErrors,y="",O="";var u;var R=e.schema.type,A=Array.isArray(R);if(R&&e.opts.nullable&&e.schema.nullable===true){if(A){if(R.indexOf("null")==-1)R=R.concat("null")}else if(R!="null"){R=[R,"null"];A=true}}if(A&&R.length==1){R=R[0];A=false}if(e.schema.$ref&&o){if(e.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)')}else if(e.opts.extendRefs!==true){o=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){s+=" "+e.RULES.all.$comment.code(e,"$comment")}if(R){if(e.opts.coerceTypes){var F=e.util.coerceToTypes(e.opts.coerceTypes,R)}var I=e.RULES.types[R];if(F||A||I===true||I&&!$shouldUseGroup(I)){var d=e.schemaPath+".type",g=e.errSchemaPath+"/type";var d=e.schemaPath+".type",g=e.errSchemaPath+"/type",j=A?"checkDataTypes":"checkDataType";s+=" if ("+e.util[j](R,v,e.opts.strictNumbers,true)+") { ";if(F){var G="dataType"+a,S="coerced"+a;s+=" var "+G+" = typeof "+v+"; var "+S+" = undefined; ";if(e.opts.coerceTypes=="array"){s+=" if ("+G+" == 'object' && Array.isArray("+v+") && "+v+".length == 1) { "+v+" = "+v+"[0]; "+G+" = typeof "+v+"; if ("+e.util.checkDataType(e.schema.type,v,e.opts.strictNumbers)+") "+S+" = "+v+"; } "}s+=" if ("+S+" !== undefined) ; ";var C=F;if(C){var L,N=-1,x=C.length-1;while(N{"use strict";var s=/^[a-z_$][a-z0-9_$-]*$/i;var i=n(4741);var o=n(2059);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,r){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!s.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,true);var o=r.type;if(Array.isArray(o)){for(var l=0;l{e.exports=(e=>{const r=process.versions.node.split(".").map(e=>parseInt(e,10));e=e.split(".").map(e=>parseInt(e,10));return r[0]>e[0]||r[0]===e[0]&&(r[1]>e[1]||r[1]===e[1]&&r[2]>=e[2])})},8925:(e,r,n)=>{var s=n(6623);var i=n(7164);var o=n(1658);var l=Function.bind;var f=l.bind(l);function bindApi(e,r,n){var s=f(o,null).apply(null,n?[r,n]:[r]);e.api={remove:s};e.remove=s;["before","error","after","wrap"].forEach(function(s){var o=n?[r,s,n]:[r,s];e[s]=e.api[s]=f(i,null).apply(null,o)})}function HookSingular(){var e="h";var r={registry:{}};var n=s.bind(null,r,e);bindApi(n,r,e);return n}function HookCollection(){var e={registry:{}};var r=s.bind(null,e);bindApi(r,e);return r}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},7164:e=>{e.exports=addHook;function addHook(e,r,n,s){var i=s;if(!e.registry[n]){e.registry[n]=[]}if(r==="before"){s=function(e,r){return Promise.resolve().then(i.bind(null,r)).then(e.bind(null,r))}}if(r==="after"){s=function(e,r){var n;return Promise.resolve().then(e.bind(null,r)).then(function(e){n=e;return i(n,r)}).then(function(){return n})}}if(r==="error"){s=function(e,r){return Promise.resolve().then(e.bind(null,r)).catch(function(e){return i(e,r)})}}e.registry[n].push({hook:s,orig:i})}},6623:e=>{e.exports=register;function register(e,r,n,s){if(typeof n!=="function"){throw new Error("method for before hook must be a function")}if(!s){s={}}if(Array.isArray(r)){return r.reverse().reduce(function(r,n){return register.bind(null,e,n,r,s)},n)()}return Promise.resolve().then(function(){if(!e.registry[r]){return n(s)}return e.registry[r].reduce(function(e,r){return r.hook.bind(null,e,s)},n)()})}},1658:e=>{e.exports=removeHook;function removeHook(e,r,n){if(!e.registry[r]){return}var s=e.registry[r].map(function(e){return e.orig}).indexOf(n);if(s===-1){return}e.registry[r].splice(s,1)}},3549:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}r.Deprecation=Deprecation},9413:(e,r,n)=>{var s=n(8915);var i=n(5622);e.exports=function expandTilde(e){var r=s();if(e.charCodeAt(0)===126){if(e.charCodeAt(1)===43){return i.join(process.cwd(),e.slice(2))}return r?i.join(r,e.slice(1)):e}return e}},7988:e=>{"use strict";e.exports=function equal(e,r){if(e===r)return true;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return false;var n,s,i;if(Array.isArray(e)){n=e.length;if(n!=r.length)return false;for(s=n;s--!==0;)if(!equal(e[s],r[s]))return false;return true}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();i=Object.keys(e);n=i.length;if(n!==Object.keys(r).length)return false;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return false;for(s=n;s--!==0;){var o=i[s];if(!equal(e[o],r[o]))return false}return true}return e!==e&&r!==r}},7692:e=>{"use strict";e.exports=function(e,r){if(!r)r={};if(typeof r==="function")r={cmp:r};var n=typeof r.cycles==="boolean"?r.cycles:false;var s=r.cmp&&function(e){return function(r){return function(n,s){var i={key:n,value:r[n]};var o={key:s,value:r[s]};return e(i,o)}}}(r.cmp);var i=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var r,o;if(Array.isArray(e)){o="[";for(r=0;r{"use strict";const s=n(5406);const i=n(5622);const o=n(664).mkdirsSync;const l=n(9056).utimesMillisSync;const f=n(1757);function copySync(e,r,n){if(typeof n==="function"){n={filter:n}}n=n||{};n.clobber="clobber"in n?!!n.clobber:true;n.overwrite="overwrite"in n?!!n.overwrite:n.clobber;if(n.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:s,destStat:i}=f.checkPathsSync(e,r,"copy");f.checkParentPathsSync(e,s,r,"copy");return handleFilterAndCopy(i,e,r,n)}function handleFilterAndCopy(e,r,n,l){if(l.filter&&!l.filter(r,n))return;const f=i.dirname(n);if(!s.existsSync(f))o(f);return startCopy(e,r,n,l)}function startCopy(e,r,n,s){if(s.filter&&!s.filter(r,n))return;return getStats(e,r,n,s)}function getStats(e,r,n,i){const o=i.dereference?s.statSync:s.lstatSync;const l=o(r);if(l.isDirectory())return onDir(l,e,r,n,i);else if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return onFile(l,e,r,n,i);else if(l.isSymbolicLink())return onLink(e,r,n,i)}function onFile(e,r,n,s,i){if(!r)return copyFile(e,n,s,i);return mayCopyFile(e,n,s,i)}function mayCopyFile(e,r,n,i){if(i.overwrite){s.unlinkSync(n);return copyFile(e,r,n,i)}else if(i.errorOnExist){throw new Error(`'${n}' already exists`)}}function copyFile(e,r,n,i){s.copyFileSync(r,n);if(i.preserveTimestamps)handleTimestamps(e.mode,r,n);return setDestMode(n,e.mode)}function handleTimestamps(e,r,n){if(fileIsNotWritable(e))makeFileWritable(n,e);return setDestTimestamps(r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,r){return setDestMode(e,r|128)}function setDestMode(e,r){return s.chmodSync(e,r)}function setDestTimestamps(e,r){const n=s.statSync(e);return l(r,n.atime,n.mtime)}function onDir(e,r,n,s,i){if(!r)return mkDirAndCopy(e.mode,n,s,i);if(r&&!r.isDirectory()){throw new Error(`Cannot overwrite non-directory '${s}' with directory '${n}'.`)}return copyDir(n,s,i)}function mkDirAndCopy(e,r,n,i){s.mkdirSync(n);copyDir(r,n,i);return setDestMode(n,e)}function copyDir(e,r,n){s.readdirSync(e).forEach(s=>copyDirItem(s,e,r,n))}function copyDirItem(e,r,n,s){const o=i.join(r,e);const l=i.join(n,e);const{destStat:c}=f.checkPathsSync(o,l,"copy");return startCopy(c,o,l,s)}function onLink(e,r,n,o){let l=s.readlinkSync(r);if(o.dereference){l=i.resolve(process.cwd(),l)}if(!e){return s.symlinkSync(l,n)}else{let e;try{e=s.readlinkSync(n)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return s.symlinkSync(l,n);throw e}if(o.dereference){e=i.resolve(process.cwd(),e)}if(f.isSrcSubdir(l,e)){throw new Error(`Cannot copy '${l}' to a subdirectory of itself, '${e}'.`)}if(s.statSync(n).isDirectory()&&f.isSrcSubdir(e,l)){throw new Error(`Cannot overwrite '${e}' with '${l}'.`)}return copyLink(l,n)}}function copyLink(e,r){s.unlinkSync(r);return s.symlinkSync(e,r)}e.exports=copySync},3890:(e,r,n)=>{"use strict";e.exports={copySync:n(212)}},1448:(e,r,n)=>{"use strict";const s=n(5406);const i=n(5622);const o=n(664).mkdirs;const l=n(6564).pathExists;const f=n(9056).utimesMillis;const c=n(1757);function copy(e,r,n,s){if(typeof n==="function"&&!s){s=n;n={}}else if(typeof n==="function"){n={filter:n}}s=s||function(){};n=n||{};n.clobber="clobber"in n?!!n.clobber:true;n.overwrite="overwrite"in n?!!n.overwrite:n.clobber;if(n.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}c.checkPaths(e,r,"copy",(i,o)=>{if(i)return s(i);const{srcStat:l,destStat:f}=o;c.checkParentPaths(e,l,r,"copy",i=>{if(i)return s(i);if(n.filter)return handleFilter(checkParentDir,f,e,r,n,s);return checkParentDir(f,e,r,n,s)})})}function checkParentDir(e,r,n,s,f){const c=i.dirname(n);l(c,(i,l)=>{if(i)return f(i);if(l)return startCopy(e,r,n,s,f);o(c,i=>{if(i)return f(i);return startCopy(e,r,n,s,f)})})}function handleFilter(e,r,n,s,i,o){Promise.resolve(i.filter(n,s)).then(l=>{if(l)return e(r,n,s,i,o);return o()},e=>o(e))}function startCopy(e,r,n,s,i){if(s.filter)return handleFilter(getStats,e,r,n,s,i);return getStats(e,r,n,s,i)}function getStats(e,r,n,i,o){const l=i.dereference?s.stat:s.lstat;l(r,(s,l)=>{if(s)return o(s);if(l.isDirectory())return onDir(l,e,r,n,i,o);else if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return onFile(l,e,r,n,i,o);else if(l.isSymbolicLink())return onLink(e,r,n,i,o)})}function onFile(e,r,n,s,i,o){if(!r)return copyFile(e,n,s,i,o);return mayCopyFile(e,n,s,i,o)}function mayCopyFile(e,r,n,i,o){if(i.overwrite){s.unlink(n,s=>{if(s)return o(s);return copyFile(e,r,n,i,o)})}else if(i.errorOnExist){return o(new Error(`'${n}' already exists`))}else return o()}function copyFile(e,r,n,i,o){s.copyFile(r,n,s=>{if(s)return o(s);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,r,n,o);return setDestMode(n,e.mode,o)})}function handleTimestampsAndMode(e,r,n,s){if(fileIsNotWritable(e)){return makeFileWritable(n,e,i=>{if(i)return s(i);return setDestTimestampsAndMode(e,r,n,s)})}return setDestTimestampsAndMode(e,r,n,s)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,r,n){return setDestMode(e,r|128,n)}function setDestTimestampsAndMode(e,r,n,s){setDestTimestamps(r,n,r=>{if(r)return s(r);return setDestMode(n,e,s)})}function setDestMode(e,r,n){return s.chmod(e,r,n)}function setDestTimestamps(e,r,n){s.stat(e,(e,s)=>{if(e)return n(e);return f(r,s.atime,s.mtime,n)})}function onDir(e,r,n,s,i,o){if(!r)return mkDirAndCopy(e.mode,n,s,i,o);if(r&&!r.isDirectory()){return o(new Error(`Cannot overwrite non-directory '${s}' with directory '${n}'.`))}return copyDir(n,s,i,o)}function mkDirAndCopy(e,r,n,i,o){s.mkdir(n,s=>{if(s)return o(s);copyDir(r,n,i,r=>{if(r)return o(r);return setDestMode(n,e,o)})})}function copyDir(e,r,n,i){s.readdir(e,(s,o)=>{if(s)return i(s);return copyDirItems(o,e,r,n,i)})}function copyDirItems(e,r,n,s,i){const o=e.pop();if(!o)return i();return copyDirItem(e,o,r,n,s,i)}function copyDirItem(e,r,n,s,o,l){const f=i.join(n,r);const a=i.join(s,r);c.checkPaths(f,a,"copy",(r,i)=>{if(r)return l(r);const{destStat:c}=i;startCopy(c,f,a,o,r=>{if(r)return l(r);return copyDirItems(e,n,s,o,l)})})}function onLink(e,r,n,o,l){s.readlink(r,(r,f)=>{if(r)return l(r);if(o.dereference){f=i.resolve(process.cwd(),f)}if(!e){return s.symlink(f,n,l)}else{s.readlink(n,(r,a)=>{if(r){if(r.code==="EINVAL"||r.code==="UNKNOWN")return s.symlink(f,n,l);return l(r)}if(o.dereference){a=i.resolve(process.cwd(),a)}if(c.isSrcSubdir(f,a)){return l(new Error(`Cannot copy '${f}' to a subdirectory of itself, '${a}'.`))}if(e.isDirectory()&&c.isSrcSubdir(a,f)){return l(new Error(`Cannot overwrite '${a}' with '${f}'.`))}return copyLink(f,n,l)})}})}function copyLink(e,r,n){s.unlink(r,i=>{if(i)return n(i);return s.symlink(e,r,n)})}e.exports=copy},6774:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;e.exports={copy:s(n(1448))}},944:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;const i=n(5406);const o=n(5622);const l=n(664);const f=n(6944);const c=s(function emptyDir(e,r){r=r||function(){};i.readdir(e,(n,s)=>{if(n)return l.mkdirs(e,r);s=s.map(r=>o.join(e,r));deleteItem();function deleteItem(){const e=s.pop();if(!e)return r();f.remove(e,e=>{if(e)return r(e);deleteItem()})}})});function emptyDirSync(e){let r;try{r=i.readdirSync(e)}catch{return l.mkdirsSync(e)}r.forEach(r=>{r=o.join(e,r);f.removeSync(r)})}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:c,emptydir:c}},5080:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;const i=n(5622);const o=n(5406);const l=n(664);function createFile(e,r){function makeFile(){o.writeFile(e,"",e=>{if(e)return r(e);r()})}o.stat(e,(n,s)=>{if(!n&&s.isFile())return r();const f=i.dirname(e);o.stat(f,(e,n)=>{if(e){if(e.code==="ENOENT"){return l.mkdirs(f,e=>{if(e)return r(e);makeFile()})}return r(e)}if(n.isDirectory())makeFile();else{o.readdir(f,e=>{if(e)return r(e)})}})})}function createFileSync(e){let r;try{r=o.statSync(e)}catch{}if(r&&r.isFile())return;const n=i.dirname(e);try{if(!o.statSync(n).isDirectory()){o.readdirSync(n)}}catch(e){if(e&&e.code==="ENOENT")l.mkdirsSync(n);else throw e}o.writeFileSync(e,"")}e.exports={createFile:s(createFile),createFileSync:createFileSync}},6037:(e,r,n)=>{"use strict";const s=n(5080);const i=n(3921);const o=n(8073);e.exports={createFile:s.createFile,createFileSync:s.createFileSync,ensureFile:s.createFile,ensureFileSync:s.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},3921:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;const i=n(5622);const o=n(5406);const l=n(664);const f=n(6564).pathExists;function createLink(e,r,n){function makeLink(e,r){o.link(e,r,e=>{if(e)return n(e);n(null)})}f(r,(s,c)=>{if(s)return n(s);if(c)return n(null);o.lstat(e,s=>{if(s){s.message=s.message.replace("lstat","ensureLink");return n(s)}const o=i.dirname(r);f(o,(s,i)=>{if(s)return n(s);if(i)return makeLink(e,r);l.mkdirs(o,s=>{if(s)return n(s);makeLink(e,r)})})})})}function createLinkSync(e,r){const n=o.existsSync(r);if(n)return undefined;try{o.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const s=i.dirname(r);const f=o.existsSync(s);if(f)return o.linkSync(e,r);l.mkdirsSync(s);return o.linkSync(e,r)}e.exports={createLink:s(createLink),createLinkSync:createLinkSync}},7056:(e,r,n)=>{"use strict";const s=n(5622);const i=n(5406);const o=n(6564).pathExists;function symlinkPaths(e,r,n){if(s.isAbsolute(e)){return i.lstat(e,r=>{if(r){r.message=r.message.replace("lstat","ensureSymlink");return n(r)}return n(null,{toCwd:e,toDst:e})})}else{const l=s.dirname(r);const f=s.join(l,e);return o(f,(r,o)=>{if(r)return n(r);if(o){return n(null,{toCwd:f,toDst:e})}else{return i.lstat(e,r=>{if(r){r.message=r.message.replace("lstat","ensureSymlink");return n(r)}return n(null,{toCwd:e,toDst:s.relative(l,e)})})}})}}function symlinkPathsSync(e,r){let n;if(s.isAbsolute(e)){n=i.existsSync(e);if(!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const o=s.dirname(r);const l=s.join(o,e);n=i.existsSync(l);if(n){return{toCwd:l,toDst:e}}else{n=i.existsSync(e);if(!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:s.relative(o,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},6003:(e,r,n)=>{"use strict";const s=n(5406);function symlinkType(e,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;if(r)return n(null,r);s.lstat(e,(e,s)=>{if(e)return n(null,"file");r=s&&s.isDirectory()?"dir":"file";n(null,r)})}function symlinkTypeSync(e,r){let n;if(r)return r;try{n=s.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},8073:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;const i=n(5622);const o=n(5406);const l=n(664);const f=l.mkdirs;const c=l.mkdirsSync;const a=n(7056);const t=a.symlinkPaths;const p=a.symlinkPathsSync;const d=n(6003);const g=d.symlinkType;const h=d.symlinkTypeSync;const u=n(6564).pathExists;function createSymlink(e,r,n,s){s=typeof n==="function"?n:s;n=typeof n==="function"?false:n;u(r,(l,c)=>{if(l)return s(l);if(c)return s(null);t(e,r,(l,c)=>{if(l)return s(l);e=c.toDst;g(c.toCwd,n,(n,l)=>{if(n)return s(n);const c=i.dirname(r);u(c,(n,i)=>{if(n)return s(n);if(i)return o.symlink(e,r,l,s);f(c,n=>{if(n)return s(n);o.symlink(e,r,l,s)})})})})})}function createSymlinkSync(e,r,n){const s=o.existsSync(r);if(s)return undefined;const l=p(e,r);e=l.toDst;n=h(l.toCwd,n);const f=i.dirname(r);const a=o.existsSync(f);if(a)return o.symlinkSync(e,r,n);c(f);return o.symlinkSync(e,r,n)}e.exports={createSymlink:s(createSymlink),createSymlinkSync:createSymlinkSync}},3858:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;const i=n(5406);const o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>{return typeof i[e]==="function"});Object.keys(i).forEach(e=>{if(e==="promises"){return}r[e]=i[e]});o.forEach(e=>{r[e]=s(i[e])});r.exists=function(e,r){if(typeof r==="function"){return i.exists(e,r)}return new Promise(r=>{return i.exists(e,r)})};r.read=function(e,r,n,s,o,l){if(typeof l==="function"){return i.read(e,r,n,s,o,l)}return new Promise((l,f)=>{i.read(e,r,n,s,o,(e,r,n)=>{if(e)return f(e);l({bytesRead:r,buffer:n})})})};r.write=function(e,r,...n){if(typeof n[n.length-1]==="function"){return i.write(e,r,...n)}return new Promise((s,o)=>{i.write(e,r,...n,(e,r,n)=>{if(e)return o(e);s({bytesWritten:r,buffer:n})})})};if(typeof i.writev==="function"){r.writev=function(e,r,...n){if(typeof n[n.length-1]==="function"){return i.writev(e,r,...n)}return new Promise((s,o)=>{i.writev(e,r,...n,(e,r,n)=>{if(e)return o(e);s({bytesWritten:r,buffers:n})})})}}if(typeof i.realpath.native==="function"){r.realpath.native=s(i.realpath.native)}},4982:(e,r,n)=>{"use strict";e.exports={...n(3858),...n(3890),...n(6774),...n(944),...n(6037),...n(7488),...n(664),...n(3740),...n(1365),...n(5181),...n(6564),...n(6944)};const s=n(5747);if(Object.getOwnPropertyDescriptor(s,"promises")){Object.defineProperty(e.exports,"promises",{get(){return s.promises}})}},7488:(e,r,n)=>{"use strict";const s=n(8522).fromPromise;const i=n(5570);i.outputJson=s(n(1452));i.outputJsonSync=n(153);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},5570:(e,r,n)=>{"use strict";const s=n(5221);e.exports={readJson:s.readFile,readJsonSync:s.readFileSync,writeJson:s.writeFile,writeJsonSync:s.writeFileSync}},153:(e,r,n)=>{"use strict";const{stringify:s}=n(1266);const{outputFileSync:i}=n(5181);function outputJsonSync(e,r,n){const o=s(r,n);i(e,o,n)}e.exports=outputJsonSync},1452:(e,r,n)=>{"use strict";const{stringify:s}=n(1266);const{outputFile:i}=n(5181);async function outputJson(e,r,n={}){const o=s(r,n);await i(e,o,n)}e.exports=outputJson},664:(e,r,n)=>{"use strict";const s=n(8522).fromPromise;const{makeDir:i,makeDirSync:o}=n(5193);const l=s(i);e.exports={mkdirs:l,mkdirsSync:o,mkdirp:l,mkdirpSync:o,ensureDir:l,ensureDirSync:o}},5193:(e,r,n)=>{"use strict";const s=n(3858);const i=n(5622);const o=n(7762);const l=o("10.12.0");const f=e=>{if(process.platform==="win32"){const r=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(r){const r=new Error(`Path contains invalid characters: ${e}`);r.code="EINVAL";throw r}}};const c=e=>{const r={mode:511};if(typeof e==="number")e={mode:e};return{...r,...e}};const a=e=>{const r=new Error(`operation not permitted, mkdir '${e}'`);r.code="EPERM";r.errno=-4048;r.path=e;r.syscall="mkdir";return r};e.exports.makeDir=(async(e,r)=>{f(e);r=c(r);if(l){const n=i.resolve(e);return s.mkdir(n,{mode:r.mode,recursive:true})}const n=async e=>{try{await s.mkdir(e,r.mode)}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(i.dirname(e)===e){throw a(e)}if(r.message.includes("null bytes")){throw r}await n(i.dirname(e));return n(e)}try{const n=await s.stat(e);if(!n.isDirectory()){throw new Error("The path is not a directory")}}catch{throw r}}};return n(i.resolve(e))});e.exports.makeDirSync=((e,r)=>{f(e);r=c(r);if(l){const n=i.resolve(e);return s.mkdirSync(n,{mode:r.mode,recursive:true})}const n=e=>{try{s.mkdirSync(e,r.mode)}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(i.dirname(e)===e){throw a(e)}if(r.message.includes("null bytes")){throw r}n(i.dirname(e));return n(e)}try{if(!s.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw r}}};return n(i.resolve(e))})},3740:(e,r,n)=>{"use strict";e.exports={moveSync:n(763)}},763:(e,r,n)=>{"use strict";const s=n(5406);const i=n(5622);const o=n(3890).copySync;const l=n(6944).removeSync;const f=n(664).mkdirpSync;const c=n(1757);function moveSync(e,r,n){n=n||{};const s=n.overwrite||n.clobber||false;const{srcStat:o}=c.checkPathsSync(e,r,"move");c.checkParentPathsSync(e,o,r,"move");f(i.dirname(r));return doRename(e,r,s)}function doRename(e,r,n){if(n){l(r);return rename(e,r,n)}if(s.existsSync(r))throw new Error("dest already exists.");return rename(e,r,n)}function rename(e,r,n){try{s.renameSync(e,r)}catch(s){if(s.code!=="EXDEV")throw s;return moveAcrossDevice(e,r,n)}}function moveAcrossDevice(e,r,n){const s={overwrite:n,errorOnExist:true};o(e,r,s);return l(e)}e.exports=moveSync},1365:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;e.exports={move:s(n(2750))}},2750:(e,r,n)=>{"use strict";const s=n(5406);const i=n(5622);const o=n(6774).copy;const l=n(6944).remove;const f=n(664).mkdirp;const c=n(6564).pathExists;const a=n(1757);function move(e,r,n,s){if(typeof n==="function"){s=n;n={}}const o=n.overwrite||n.clobber||false;a.checkPaths(e,r,"move",(n,l)=>{if(n)return s(n);const{srcStat:c}=l;a.checkParentPaths(e,c,r,"move",n=>{if(n)return s(n);f(i.dirname(r),n=>{if(n)return s(n);return doRename(e,r,o,s)})})})}function doRename(e,r,n,s){if(n){return l(r,i=>{if(i)return s(i);return rename(e,r,n,s)})}c(r,(i,o)=>{if(i)return s(i);if(o)return s(new Error("dest already exists."));return rename(e,r,n,s)})}function rename(e,r,n,i){s.rename(e,r,s=>{if(!s)return i();if(s.code!=="EXDEV")return i(s);return moveAcrossDevice(e,r,n,i)})}function moveAcrossDevice(e,r,n,s){const i={overwrite:n,errorOnExist:true};o(e,r,i,r=>{if(r)return s(r);return l(e,s)})}e.exports=move},5181:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;const i=n(5406);const o=n(5622);const l=n(664);const f=n(6564).pathExists;function outputFile(e,r,n,s){if(typeof n==="function"){s=n;n="utf8"}const c=o.dirname(e);f(c,(o,f)=>{if(o)return s(o);if(f)return i.writeFile(e,r,n,s);l.mkdirs(c,o=>{if(o)return s(o);i.writeFile(e,r,n,s)})})}function outputFileSync(e,...r){const n=o.dirname(e);if(i.existsSync(n)){return i.writeFileSync(e,...r)}l.mkdirsSync(n);i.writeFileSync(e,...r)}e.exports={outputFile:s(outputFile),outputFileSync:outputFileSync}},6564:(e,r,n)=>{"use strict";const s=n(8522).fromPromise;const i=n(3858);function pathExists(e){return i.access(e).then(()=>true).catch(()=>false)}e.exports={pathExists:s(pathExists),pathExistsSync:i.existsSync}},6944:(e,r,n)=>{"use strict";const s=n(8522).fromCallback;const i=n(5824);e.exports={remove:s(i),removeSync:i.sync}},5824:(e,r,n)=>{"use strict";const s=n(5406);const i=n(5622);const o=n(2357);const l=process.platform==="win32";function defaults(e){const r=["unlink","chmod","stat","lstat","rmdir","readdir"];r.forEach(r=>{e[r]=e[r]||s[r];r=r+"Sync";e[r]=e[r]||s[r]});e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,r,n){let s=0;if(typeof r==="function"){n=r;r={}}o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o.strictEqual(typeof n,"function","rimraf: callback function required");o(r,"rimraf: invalid options argument provided");o.strictEqual(typeof r,"object","rimraf: options should be object");defaults(r);rimraf_(e,r,function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&srimraf_(e,r,CB),n)}if(i.code==="ENOENT")i=null}n(i)})}function rimraf_(e,r,n){o(e);o(r);o(typeof n==="function");r.lstat(e,(s,i)=>{if(s&&s.code==="ENOENT"){return n(null)}if(s&&s.code==="EPERM"&&l){return fixWinEPERM(e,r,s,n)}if(i&&i.isDirectory()){return rmdir(e,r,s,n)}r.unlink(e,s=>{if(s){if(s.code==="ENOENT"){return n(null)}if(s.code==="EPERM"){return l?fixWinEPERM(e,r,s,n):rmdir(e,r,s,n)}if(s.code==="EISDIR"){return rmdir(e,r,s,n)}}return n(s)})})}function fixWinEPERM(e,r,n,s){o(e);o(r);o(typeof s==="function");r.chmod(e,438,i=>{if(i){s(i.code==="ENOENT"?null:n)}else{r.stat(e,(i,o)=>{if(i){s(i.code==="ENOENT"?null:n)}else if(o.isDirectory()){rmdir(e,r,n,s)}else{r.unlink(e,s)}})}})}function fixWinEPERMSync(e,r,n){let s;o(e);o(r);try{r.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw n}}try{s=r.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw n}}if(s.isDirectory()){rmdirSync(e,r,n)}else{r.unlinkSync(e)}}function rmdir(e,r,n,s){o(e);o(r);o(typeof s==="function");r.rmdir(e,i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,r,s)}else if(i&&i.code==="ENOTDIR"){s(n)}else{s(i)}})}function rmkids(e,r,n){o(e);o(r);o(typeof n==="function");r.readdir(e,(s,o)=>{if(s)return n(s);let l=o.length;let f;if(l===0)return r.rmdir(e,n);o.forEach(s=>{rimraf(i.join(e,s),r,s=>{if(f){return}if(s)return n(f=s);if(--l===0){r.rmdir(e,n)}})})})}function rimrafSync(e,r){let n;r=r||{};defaults(r);o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o(r,"rimraf: missing options");o.strictEqual(typeof r,"object","rimraf: options should be object");try{n=r.lstatSync(e)}catch(n){if(n.code==="ENOENT"){return}if(n.code==="EPERM"&&l){fixWinEPERMSync(e,r,n)}}try{if(n&&n.isDirectory()){rmdirSync(e,r,null)}else{r.unlinkSync(e)}}catch(n){if(n.code==="ENOENT"){return}else if(n.code==="EPERM"){return l?fixWinEPERMSync(e,r,n):rmdirSync(e,r,n)}else if(n.code!=="EISDIR"){throw n}rmdirSync(e,r,n)}}function rmdirSync(e,r,n){o(e);o(r);try{r.rmdirSync(e)}catch(s){if(s.code==="ENOTDIR"){throw n}else if(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM"){rmkidsSync(e,r)}else if(s.code!=="ENOENT"){throw s}}}function rmkidsSync(e,r){o(e);o(r);r.readdirSync(e).forEach(n=>rimrafSync(i.join(e,n),r));if(l){const n=Date.now();do{try{const n=r.rmdirSync(e,r);return n}catch{}}while(Date.now()-n<500)}else{const n=r.rmdirSync(e,r);return n}}e.exports=rimraf;rimraf.sync=rimrafSync},1757:(e,r,n)=>{"use strict";const s=n(3858);const i=n(5622);const o=n(1669);const l=n(7762);const f=l("10.5.0");const c=e=>f?s.stat(e,{bigint:true}):s.stat(e);const a=e=>f?s.statSync(e,{bigint:true}):s.statSync(e);function getStats(e,r){return Promise.all([c(e),c(r).catch(e=>{if(e.code==="ENOENT")return null;throw e})]).then(([e,r])=>({srcStat:e,destStat:r}))}function getStatsSync(e,r){let n;const s=a(e);try{n=a(r)}catch(e){if(e.code==="ENOENT")return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:n}}function checkPaths(e,r,n,s){o.callbackify(getStats)(e,r,(i,o)=>{if(i)return s(i);const{srcStat:l,destStat:f}=o;if(f&&areIdentical(l,f)){return s(new Error("Source and destination must not be the same."))}if(l.isDirectory()&&isSrcSubdir(e,r)){return s(new Error(errMsg(e,r,n)))}return s(null,{srcStat:l,destStat:f})})}function checkPathsSync(e,r,n){const{srcStat:s,destStat:i}=getStatsSync(e,r);if(i&&areIdentical(s,i)){throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&isSrcSubdir(e,r)){throw new Error(errMsg(e,r,n))}return{srcStat:s,destStat:i}}function checkParentPaths(e,r,n,o,l){const c=i.resolve(i.dirname(e));const a=i.resolve(i.dirname(n));if(a===c||a===i.parse(a).root)return l();const t=(s,i)=>{if(s){if(s.code==="ENOENT")return l();return l(s)}if(areIdentical(r,i)){return l(new Error(errMsg(e,n,o)))}return checkParentPaths(e,r,a,o,l)};if(f)s.stat(a,{bigint:true},t);else s.stat(a,t)}function checkParentPathsSync(e,r,n,s){const o=i.resolve(i.dirname(e));const l=i.resolve(i.dirname(n));if(l===o||l===i.parse(l).root)return;let f;try{f=a(l)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(r,f)){throw new Error(errMsg(e,n,s))}return checkParentPathsSync(e,r,l,s)}function areIdentical(e,r){if(r.ino&&r.dev&&r.ino===e.ino&&r.dev===e.dev){if(f||r.inoe);const s=i.resolve(r).split(i.sep).filter(e=>e);return n.reduce((e,r,n)=>e&&s[n]===r,true)}function errMsg(e,r,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${r}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},9056:(e,r,n)=>{"use strict";const s=n(5406);function utimesMillis(e,r,n,i){s.open(e,"r+",(e,o)=>{if(e)return i(e);s.futimes(o,r,n,e=>{s.close(o,r=>{if(i)i(e||r)})})})}function utimesMillisSync(e,r,n){const i=s.openSync(e,"r+");s.futimesSync(i,r,n);return s.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},3455:e=>{"use strict";e.exports=clone;var r=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var n={__proto__:r(e)};else var n=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))});return n}},5406:(e,r,n)=>{var s=n(5747);var i=n(1492);var o=n(7150);var l=n(3455);var f=n(1669);var c;var a;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");a=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";a="___graceful-fs.previous"}function noop(){}function publishQueue(e,r){Object.defineProperty(e,c,{get:function(){return r}})}var t=noop;if(f.debuglog)t=f.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))t=function(){var e=f.format.apply(f,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!s[c]){var p=global[c]||[];publishQueue(s,p);s.close=function(e){function close(r,n){return e.call(s,r,function(e){if(!e){resetQueue()}if(typeof n==="function")n.apply(this,arguments)})}Object.defineProperty(close,a,{value:e});return close}(s.close);s.closeSync=function(e){function closeSync(r){e.apply(s,arguments);resetQueue()}Object.defineProperty(closeSync,a,{value:e});return closeSync}(s.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){t(s[c]);n(2357).equal(s[c].length,0)})}}if(!global[c]){publishQueue(global,s[c])}e.exports=patch(l(s));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched){e.exports=patch(s);s.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var r=e.readFile;e.readFile=readFile;function readFile(e,n,s){if(typeof n==="function")s=n,n=null;return go$readFile(e,n,s);function go$readFile(e,n,s,i){return r(e,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[e,n,s],r,i||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}})}}var n=e.writeFile;e.writeFile=writeFile;function writeFile(e,r,s,i){if(typeof s==="function")i=s,s=null;return go$writeFile(e,r,s,i);function go$writeFile(e,r,s,i,o){return n(e,r,s,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[e,r,s,i],n,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}})}}var s=e.appendFile;if(s)e.appendFile=appendFile;function appendFile(e,r,n,i){if(typeof n==="function")i=n,n=null;return go$appendFile(e,r,n,i);function go$appendFile(e,r,n,i,o){return s(e,r,n,function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$appendFile,[e,r,n,i],s,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}})}}var l=e.copyFile;if(l)e.copyFile=copyFile;function copyFile(e,r,n,s){if(typeof n==="function"){s=n;n=0}return go$copyFile(e,r,n,s);function go$copyFile(e,r,n,s,i){return l(e,r,n,function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,r,n,s],o,i||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}})}}var f=e.readdir;e.readdir=readdir;function readdir(e,r,n){if(typeof r==="function")n=r,r=null;return go$readdir(e,r,n);function go$readdir(e,r,n,s){return f(e,r,function(i,o){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$readdir,[e,r,n],i,s||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof n==="function")n.call(this,i,o)}})}}if(process.version.substr(0,4)==="v0.8"){var c=o(e);ReadStream=c.ReadStream;WriteStream=c.WriteStream}var a=e.ReadStream;if(a){ReadStream.prototype=Object.create(a.prototype);ReadStream.prototype.open=ReadStream$open}var t=e.WriteStream;if(t){WriteStream.prototype=Object.create(t.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,r){if(this instanceof ReadStream)return a.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(r,n){if(r){if(e.autoClose)e.destroy();e.emit("error",r)}else{e.fd=n;e.emit("open",n);e.read()}})}function WriteStream(e,r){if(this instanceof WriteStream)return t.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(r,n){if(r){e.destroy();e.emit("error",r)}else{e.fd=n;e.emit("open",n)}})}function createReadStream(r,n){return new e.ReadStream(r,n)}function createWriteStream(r,n){return new e.WriteStream(r,n)}var g=e.open;e.open=open;function open(e,r,n,s){if(typeof n==="function")s=n,n=null;return go$open(e,r,n,s);function go$open(e,r,n,s,i){return g(e,r,n,function(o,l){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,r,n,s],o,i||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}})}}return e}function enqueue(e){t("ENQUEUE",e[0].name,e[1]);s[c].push(e);retry()}var d;function resetQueue(){var e=Date.now();for(var r=0;r2){s[c][r][3]=e;s[c][r][4]=e}}retry()}function retry(){clearTimeout(d);d=undefined;if(s[c].length===0)return;var e=s[c].shift();var r=e[0];var n=e[1];var i=e[2];var o=e[3];var l=e[4];if(o===undefined){t("RETRY",r.name,n);r.apply(null,n)}else if(Date.now()-o>=6e4){t("TIMEOUT",r.name,n);var f=n.pop();if(typeof f==="function")f.call(null,i)}else{var a=Date.now()-l;var p=Math.max(l-o,1);var g=Math.min(p*1.2,100);if(a>=g){t("RETRY",r.name,n);r.apply(null,n.concat([o]))}else{s[c].push(e)}}if(d===undefined){d=setTimeout(retry,0)}}},7150:(e,r,n)=>{var s=n(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,n){if(!(this instanceof ReadStream))return new ReadStream(r,n);s.call(this);var i=this;this.path=r;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var o=Object.keys(n);for(var l=0,f=o.length;lthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}e.open(this.path,this.flags,this.mode,function(e,r){if(e){i.emit("error",e);i.readable=false;return}i.fd=r;i.emit("open",r);i._read()})}function WriteStream(r,n){if(!(this instanceof WriteStream))return new WriteStream(r,n);s.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var i=Object.keys(n);for(var o=0,l=i.length;o= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},1492:(e,r,n)=>{var s=n(7619);var i=process.cwd;var o=null;var l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=i.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var f=process.chdir;process.chdir=function(e){o=null;f.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,f)}e.exports=patch;function patch(e){if(s.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,r,n){if(n)process.nextTick(n)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,r,n,s){if(s)process.nextTick(s)};e.lchownSync=function(){}}if(l==="win32"){e.rename=function(r){return function(n,s,i){var o=Date.now();var l=0;r(n,s,function CB(f){if(f&&(f.code==="EACCES"||f.code==="EPERM")&&Date.now()-o<6e4){setTimeout(function(){e.stat(s,function(e,o){if(e&&e.code==="ENOENT")r(n,s,CB);else i(f)})},l);if(l<100)l+=10;return}if(i)i(f)})}}(e.rename)}e.read=function(r){function read(n,s,i,o,l,f){var c;if(f&&typeof f==="function"){var a=0;c=function(t,p,d){if(t&&t.code==="EAGAIN"&&a<10){a++;return r.call(e,n,s,i,o,l,c)}f.apply(this,arguments)}}return r.call(e,n,s,i,o,l,c)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(e.read);e.readSync=function(r){return function(n,s,i,o,l){var f=0;while(true){try{return r.call(e,n,s,i,o,l)}catch(e){if(e.code==="EAGAIN"&&f<10){f++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(r,n,i){e.open(r,s.O_WRONLY|s.O_SYMLINK,n,function(r,s){if(r){if(i)i(r);return}e.fchmod(s,n,function(r){e.close(s,function(e){if(i)i(r||e)})})})};e.lchmodSync=function(r,n){var i=e.openSync(r,s.O_WRONLY|s.O_SYMLINK,n);var o=true;var l;try{l=e.fchmodSync(i,n);o=false}finally{if(o){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return l}}function patchLutimes(e){if(s.hasOwnProperty("O_SYMLINK")){e.lutimes=function(r,n,i,o){e.open(r,s.O_SYMLINK,function(r,s){if(r){if(o)o(r);return}e.futimes(s,n,i,function(r){e.close(s,function(e){if(o)o(r||e)})})})};e.lutimesSync=function(r,n,i){var o=e.openSync(r,s.O_SYMLINK);var l;var f=true;try{l=e.futimesSync(o,n,i);f=false}finally{if(f){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return l}}else{e.lutimes=function(e,r,n,s){if(s)process.nextTick(s)};e.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(n,s,i){return r.call(e,n,s,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(r){if(!r)return r;return function(n,s){try{return r.call(e,n,s)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(r){if(!r)return r;return function(n,s,i,o){return r.call(e,n,s,i,function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)})}}function chownFixSync(r){if(!r)return r;return function(n,s,i){try{return r.call(e,n,s,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(r){if(!r)return r;return function(n,s,i){if(typeof s==="function"){i=s;s=null}function callback(e,r){if(r){if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296}if(i)i.apply(this,arguments)}return s?r.call(e,n,s,callback):r.call(e,n,callback)}}function statFixSync(r){if(!r)return r;return function(n,s){var i=s?r.call(e,n,s):r.call(e,n);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var r=!process.getuid||process.getuid()!==0;if(r){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},8915:(e,r,n)=>{"use strict";var s=n(2087);if(typeof s.homedir!=="undefined"){e.exports=s.homedir}else{e.exports=n(5662)}},5662:(e,r,n)=>{"use strict";var s=n(5747);var i=n(7795);function homedir(){if(process.platform==="win32"){if(process.env.USERPROFILE){return process.env.USERPROFILE}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){return process.env.HOMEDRIVE+process.env.HOMEPATH}if(process.env.HOME){return process.env.HOME}return null}if(process.env.HOME){return process.env.HOME}var e=tryReadFileSync("/etc/passwd");var r=find(i(e),getuid());if(r){return r}var n=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!n){return null}if(process.platform==="darwin"){return"/Users/"+n}return"/home/"+n}function find(e,r){var n=e.length;for(var s=0;s{"use strict";Object.defineProperty(r,"__esModule",{value:true});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var r,n;if(isObject(e)===false)return false;r=e.constructor;if(r===undefined)return true;n=r.prototype;if(isObject(n)===false)return false;if(n.hasOwnProperty("isPrototypeOf")===false){return false}return true}r.isPlainObject=isPlainObject},6070:(e,r,n)=>{"use strict";var s=n(7372);var i=n(319);function renamed(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}e.exports.Type=n(7060);e.exports.Schema=n(6435);e.exports.FAILSAFE_SCHEMA=n(7947);e.exports.JSON_SCHEMA=n(6918);e.exports.CORE_SCHEMA=n(6670);e.exports.DEFAULT_SCHEMA=n(3498);e.exports.load=s.load;e.exports.loadAll=s.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=n(6141);e.exports.types={binary:n(2410),float:n(3760),map:n(5113),null:n(5711),pairs:n(8851),set:n(7282),timestamp:n(3637),bool:n(4719),int:n(436),merge:n(4789),omap:n(4189),seq:n(7331),str:n(1299)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},130:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,r){var n,s,i,o;if(r){o=Object.keys(r);for(n=0,s=o.length;n{"use strict";var s=n(130);var i=n(6141);var o=n(3498);var l=Object.prototype.toString;var f=Object.prototype.hasOwnProperty;var c=65279;var a=9;var t=10;var p=13;var d=32;var g=33;var h=34;var u=35;var v=37;var E=38;var w=39;var m=42;var b=44;var T=45;var y=58;var O=61;var R=62;var A=63;var F=64;var I=91;var j=93;var G=96;var S=123;var C=124;var L=125;var N={};N[0]="\\0";N[7]="\\a";N[8]="\\b";N[9]="\\t";N[10]="\\n";N[11]="\\v";N[12]="\\f";N[13]="\\r";N[27]="\\e";N[34]='\\"';N[92]="\\\\";N[133]="\\N";N[160]="\\_";N[8232]="\\L";N[8233]="\\P";var x=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var k=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,r){var n,s,i,o,l,c,a;if(r===null)return{};n={};s=Object.keys(r);for(i=0,o=s.length;i=55296&&n<=56319&&r+1=56320&&s<=57343){return(n-55296)*1024+s-56320+65536}}return n}function needIndentIndicator(e){var r=/^\n* /;return r.test(e)}var q=1,B=2,H=3,z=4,W=5;function chooseScalarStyle(e,r,n,s,i,o,l,f){var c;var a=0;var p=null;var d=false;var g=false;var h=s!==-1;var u=-1;var v=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(r||l){for(c=0;c=65536?c+=2:c++){a=codePointAt(e,c);if(!isPrintable(a)){return W}v=v&&isPlainSafe(a,p,f);p=a}}else{for(c=0;c=65536?c+=2:c++){a=codePointAt(e,c);if(a===t){d=true;if(h){g=g||c-u-1>s&&e[u+1]!==" ";u=c}}else if(!isPrintable(a)){return W}v=v&&isPlainSafe(a,p,f);p=a}g=g||h&&(c-u-1>s&&e[u+1]!==" ")}if(!d&&!g){if(v&&!l&&!i(e)){return q}return o===U?W:B}if(n>9&&needIndentIndicator(e)){return W}if(!l){return g?z:H}return o===U?W:B}function writeScalar(e,r,n,s,o){e.dump=function(){if(r.length===0){return e.quotingType===U?'""':"''"}if(!e.noCompatMode){if(x.indexOf(r)!==-1||k.test(r)){return e.quotingType===U?'"'+r+'"':"'"+r+"'"}}var l=e.indent*Math.max(1,n);var f=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l);var c=s||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,c,e.indent,f,testAmbiguity,e.quotingType,e.forceQuotes&&!s,o)){case q:return r;case B:return"'"+r.replace(/'/g,"''")+"'";case H:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,l));case z:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,f),l));case W:return'"'+escapeString(r,f)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var n=needIndentIndicator(e)?String(r):"";var s=e[e.length-1]==="\n";var i=s&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":s?"":"-";return n+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var n=/(\n+)([^\n]*)/g;var s=function(){var s=e.indexOf("\n");s=s!==-1?s:e.length;n.lastIndex=s;return foldLine(e.slice(0,s),r)}();var i=e[0]==="\n"||e[0]===" ";var o;var l;while(l=n.exec(e)){var f=l[1],c=l[2];o=c[0]===" ";s+=f+(!i&&!o&&c!==""?"\n":"")+foldLine(c,r);i=o}return s}function foldLine(e,r){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var s;var i=0,o,l=0,f=0;var c="";while(s=n.exec(e)){f=s.index;if(f-i>r){o=l>i?l:f;c+="\n"+e.slice(i,o);i=o+1}l=f}c+="\n";if(e.length-i>r&&l>i){c+=e.slice(i,l)+"\n"+e.slice(l+1)}else{c+=e.slice(i)}return c.slice(1)}function escapeString(e){var r="";var n=0;var s;for(var i=0;i=65536?i+=2:i++){n=codePointAt(e,i);s=N[n];if(!s&&isPrintable(n)){r+=e[i];if(n>=65536)r+=e[i+1]}else{r+=s||encodeHex(n)}}return r}function writeFlowSequence(e,r,n){var s="",i=e.tag,o,l,f;for(o=0,l=n.length;o1024)t+="? ";t+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,a,false,false)){continue}t+=e.dump;s+=t}e.tag=i;e.dump="{"+s+"}"}function writeBlockMapping(e,r,n,s){var o="",l=e.tag,f=Object.keys(n),c,a,p,d,g,h;if(e.sortKeys===true){f.sort()}else if(typeof e.sortKeys==="function"){f.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(c=0,a=f.length;c1024;if(g){if(e.dump&&t===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(g){h+=generateNextLine(e,r)}if(!writeNode(e,r+1,d,true,g)){continue}if(e.dump&&t===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;o+=h}e.tag=l;e.dump=o||"{}"}function detectType(e,r,n){var s,o,c,a,t,p;o=n?e.explicitTypes:e.implicitTypes;for(c=0,a=o.length;c tag resolver accepts not "'+p+'" style')}e.dump=s}return true}}return false}function writeNode(e,r,n,s,o,f,c){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var a=l.call(e.dump);var t=s;var p;if(s){s=e.flowLevel<0||e.flowLevel>r}var d=a==="[object Object]"||a==="[object Array]",g,h;if(d){g=e.duplicates.indexOf(n);h=g!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&r>0){o=false}if(h&&e.usedDuplicates[g]){e.dump="*ref_"+g}else{if(d&&h&&!e.usedDuplicates[g]){e.usedDuplicates[g]=true}if(a==="[object Object]"){if(s&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,o);if(h){e.dump="&ref_"+g+e.dump}}else{writeFlowMapping(e,r,e.dump);if(h){e.dump="&ref_"+g+" "+e.dump}}}else if(a==="[object Array]"){if(s&&e.dump.length!==0){if(e.noArrayIndent&&!c&&r>0){writeBlockSequence(e,r-1,e.dump,o)}else{writeBlockSequence(e,r,e.dump,o)}if(h){e.dump="&ref_"+g+e.dump}}else{writeFlowSequence(e,r,e.dump);if(h){e.dump="&ref_"+g+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,f,t)}}else if(a==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){p="!"+p}else if(p.slice(0,18)==="tag:yaml.org,2002:"){p="!!"+p.slice(18)}else{p="!<"+p+">"}e.dump=p+" "+e.dump}}return true}function getDuplicateReferences(e,r){var n=[],s=[],i,o;inspectNode(e,n,s);for(i=0,o=s.length;i{"use strict";function formatError(e,r){var n="",s=e.reason||"(unknown reason)";if(!e.mark)return s;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!r&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return s+" "+n}function YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},7372:(e,r,n)=>{"use strict";var s=n(130);var i=n(6141);var o=n(163);var l=n(3498);var f=Object.prototype.hasOwnProperty;var c=1;var a=2;var t=3;var p=4;var d=1;var g=2;var h=3;var u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var v=/[\x85\u2028\u2029]/;var E=/[,\[\]\{\}]/;var w=/^(?:!|!!|![a-z\-]+!)$/i;var m=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var r;if(48<=e&&e<=57){return e-48}r=e|32;if(97<=r&&r<=102){return r-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var b=new Array(256);var T=new Array(256);for(var y=0;y<256;y++){b[y]=simpleEscapeSequence(y)?1:0;T[y]=simpleEscapeSequence(y)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||l;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=o(n);return new i(r,n)}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var O={YAML:function handleYamlDirective(e,r,n){var s,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(s===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(s[1],10);o=parseInt(s[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,n){var s,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}s=n[0];i=n[1];if(!w.test(s)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(f.call(e.tagMap,s)){throwError(e,'there is a previously declared suffix for "'+s+'" tag handle')}if(!m.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(r){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[s]=i}};function captureSegment(e,r,n,s){var i,o,l,f;if(r1){e.result+=s.repeat("\n",r-1)}}function readPlainScalar(e,r,n){var s,i,o,l,f,c,a,t,p=e.kind,d=e.result,g;g=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(g)||is_FLOW_INDICATOR(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96){return false}if(g===63||g===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=l=e.position;f=false;while(g!==0){if(g===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(g===35){s=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(s)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(g)){break}else if(is_EOL(g)){c=e.line;a=e.lineStart;t=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){f=true;g=e.input.charCodeAt(e.position);continue}else{e.position=l;e.line=c;e.lineStart=a;e.lineIndent=t;break}}if(f){captureSegment(e,o,l,false);writeFoldedLines(e,e.line-c);o=l=e.position;f=false}if(!is_WHITE_SPACE(g)){l=e.position+1}g=e.input.charCodeAt(++e.position)}captureSegment(e,o,l,false);if(e.result){return true}e.kind=p;e.result=d;return false}function readSingleQuotedScalar(e,r){var n,s,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;s=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,s,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){s=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,s,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));s=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var n,s,i,o,l,f;f=e.input.charCodeAt(e.position);if(f!==34){return false}e.kind="scalar";e.result="";e.position++;n=s=e.position;while((f=e.input.charCodeAt(e.position))!==0){if(f===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(f===92){captureSegment(e,n,e.position,true);f=e.input.charCodeAt(++e.position);if(is_EOL(f)){skipSeparationSpace(e,false,r)}else if(f<256&&b[f]){e.result+=T[f];e.position++}else if((l=escapedHexLen(f))>0){i=l;o=0;for(;i>0;i--){f=e.input.charCodeAt(++e.position);if((l=fromHexCode(f))>=0){o=(o<<4)+l}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}n=s=e.position}else if(is_EOL(f)){captureSegment(e,n,s,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));n=s=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;s=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var n=true,s,i,o,l=e.tag,f,a=e.anchor,t,p,d,g,h,u=Object.create(null),v,E,w,m;m=e.input.charCodeAt(e.position);if(m===91){p=93;h=false;f=[]}else if(m===123){p=125;h=true;f={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=f}m=e.input.charCodeAt(++e.position);while(m!==0){skipSeparationSpace(e,true,r);m=e.input.charCodeAt(e.position);if(m===p){e.position++;e.tag=l;e.anchor=a;e.kind=h?"mapping":"sequence";e.result=f;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(m===44){throwError(e,"expected the node content, but found ','")}E=v=w=null;d=g=false;if(m===63){t=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(t)){d=g=true;e.position++;skipSeparationSpace(e,true,r)}}s=e.line;i=e.lineStart;o=e.position;composeNode(e,r,c,false,true);E=e.tag;v=e.result;skipSeparationSpace(e,true,r);m=e.input.charCodeAt(e.position);if((g||e.line===s)&&m===58){d=true;m=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,c,false,true);w=e.result}if(h){storeMappingPair(e,f,u,E,v,w,s,i,o)}else if(d){f.push(storeMappingPair(e,null,u,E,v,w,s,i,o))}else{f.push(v)}skipSeparationSpace(e,true,r);m=e.input.charCodeAt(e.position);if(m===44){n=true;m=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var n,i,o=d,l=false,f=false,c=r,a=0,t=false,p,u;u=e.input.charCodeAt(e.position);if(u===124){i=false}else if(u===62){i=true}else{return false}e.kind="scalar";e.result="";while(u!==0){u=e.input.charCodeAt(++e.position);if(u===43||u===45){if(d===o){o=u===43?h:g}else{throwError(e,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(u))>=0){if(p===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!f){c=r+p-1;f=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(u)){do{u=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(u));if(u===35){do{u=e.input.charCodeAt(++e.position)}while(!is_EOL(u)&&u!==0)}}while(u!==0){readLineBreak(e);e.lineIndent=0;u=e.input.charCodeAt(e.position);while((!f||e.lineIndentc){c=e.lineIndent}if(is_EOL(u)){a++;continue}if(e.lineIndentr)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(w){l=e.line;f=e.lineStart;c=e.position}if(composeNode(e,r,p,true,i)){if(w){v=e.result}else{E=e.result}}if(!w){storeMappingPair(e,g,h,u,v,E,l,f,c);u=v=E=null}skipSeparationSpace(e,true,-1);b=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>r)&&b!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){g=1}else if(e.lineIndent===r){g=0}else if(e.lineIndentr){g=1}else if(e.lineIndent===r){g=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(v=0,E=e.implicitTypes.length;v")}if(e.result!==null&&m.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"')}if(!m.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=m.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||u}function readDocument(e){var r=e.position,n,s,i,o=false,l;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((l=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);l=e.input.charCodeAt(e.position);if(e.lineIndent>0||l!==37){break}o=true;l=e.input.charCodeAt(++e.position);n=e.position;while(l!==0&&!is_WS_OR_EOL(l)){l=e.input.charCodeAt(++e.position)}s=e.input.slice(n,e.position);i=[];if(s.length<1){throwError(e,"directive name must not be less than one character in length")}while(l!==0){while(is_WHITE_SPACE(l)){l=e.input.charCodeAt(++e.position)}if(l===35){do{l=e.input.charCodeAt(++e.position)}while(l!==0&&!is_EOL(l));break}if(is_EOL(l))break;n=e.position;while(l!==0&&!is_WS_OR_EOL(l)){l=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(l!==0)readLineBreak(e);if(f.call(O,s)){O[s](e,s,i)}else{throwWarning(e,'unknown document directive "'+s+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&v.test(e.input.slice(r,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var s=n(6141);var i=n(7060);function compileList(e,r){var n=[];e[r].forEach(function(e){var r=n.length;n.forEach(function(n,s){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){r=s}});n[r]=e});return n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function collectType(r){if(r.multi){e.multi[r.kind].push(r);e.multi["fallback"].push(r)}else{e[r.kind][r.tag]=e["fallback"][r.tag]=r}}for(r=0,n=arguments.length;r{"use strict";e.exports=n(6918)},3498:(e,r,n)=>{"use strict";e.exports=n(6670).extend({implicit:[n(3637),n(4789)],explicit:[n(2410),n(4189),n(8851),n(7282)]})},7947:(e,r,n)=>{"use strict";var s=n(6435);e.exports=new s({explicit:[n(1299),n(7331),n(5113)]})},6918:(e,r,n)=>{"use strict";e.exports=n(7947).extend({implicit:[n(5711),n(4719),n(436),n(3760)]})},163:(e,r,n)=>{"use strict";var s=n(130);function getLine(e,r,n,s,i){var o="";var l="";var f=Math.floor(i/2)-1;if(s-r>f){o=" ... ";r=s-f+o.length}if(n-s>f){l=" ...";n=s+f-l.length}return{str:o+e.slice(r,n).replace(/\t/g,"→")+l,pos:s-r+o.length}}function padStart(e,r){return s.repeat(" ",r-e.length)+e}function makeSnippet(e,r){r=Object.create(r||null);if(!e.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var n=/\r?\n|\r|\0/g;var i=[0];var o=[];var l;var f=-1;while(l=n.exec(e.buffer)){o.push(l.index);i.push(l.index+l[0].length);if(e.position<=l.index&&f<0){f=i.length-2}}if(f<0)f=i.length-1;var c="",a,t;var p=Math.min(e.line+r.linesAfter,o.length).toString().length;var d=r.maxLength-(r.indent+p+3);for(a=1;a<=r.linesBefore;a++){if(f-a<0)break;t=getLine(e.buffer,i[f-a],o[f-a],e.position-(i[f]-i[f-a]),d);c=s.repeat(" ",r.indent)+padStart((e.line-a+1).toString(),p)+" | "+t.str+"\n"+c}t=getLine(e.buffer,i[f],o[f],e.position,d);c+=s.repeat(" ",r.indent)+padStart((e.line+1).toString(),p)+" | "+t.str+"\n";c+=s.repeat("-",r.indent+p+3+t.pos)+"^"+"\n";for(a=1;a<=r.linesAfter;a++){if(f+a>=o.length)break;t=getLine(e.buffer,i[f+a],o[f+a],e.position-(i[f]-i[f+a]),d);c+=s.repeat(" ",r.indent)+padStart((e.line+a+1).toString(),p)+" | "+t.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},7060:(e,r,n)=>{"use strict";var s=n(6141);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){r[String(e)]=n})})}return r}function Type(e,r){r=r||{};Object.keys(r).forEach(function(r){if(i.indexOf(r)===-1){throw new s('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}});this.options=r;this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new s('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},2410:(e,r,n)=>{"use strict";var s=n(7060);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,n,s=0,o=e.length,l=i;for(n=0;n64)continue;if(r<0)return false;s+=6}return s%8===0}function constructYamlBinary(e){var r,n,s=e.replace(/[\r\n=]/g,""),o=s.length,l=i,f=0,c=[];for(r=0;r>16&255);c.push(f>>8&255);c.push(f&255)}f=f<<6|l.indexOf(s.charAt(r))}n=o%4*6;if(n===0){c.push(f>>16&255);c.push(f>>8&255);c.push(f&255)}else if(n===18){c.push(f>>10&255);c.push(f>>2&255)}else if(n===12){c.push(f>>4&255)}return new Uint8Array(c)}function representYamlBinary(e){var r="",n=0,s,o,l=e.length,f=i;for(s=0;s>18&63];r+=f[n>>12&63];r+=f[n>>6&63];r+=f[n&63]}n=(n<<8)+e[s]}o=l%3;if(o===0){r+=f[n>>18&63];r+=f[n>>12&63];r+=f[n>>6&63];r+=f[n&63]}else if(o===2){r+=f[n>>10&63];r+=f[n>>4&63];r+=f[n<<2&63];r+=f[64]}else if(o===1){r+=f[n>>2&63];r+=f[n<<4&63];r+=f[64];r+=f[64]}return r}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new s("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4719:(e,r,n)=>{"use strict";var s=n(7060);function resolveYamlBoolean(e){if(e===null)return false;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new s("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},3760:(e,r,n)=>{"use strict";var s=n(130);var i=n(7060);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,n;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return n*parseFloat(r,10)}var l=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var n;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(s.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return l.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||s.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},436:(e,r,n)=>{"use strict";var s=n(130);var i=n(7060);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var r=e.length,n=0,s=false,i;if(!r)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===r)return true;i=e[++n];if(i==="b"){n++;for(;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},5113:(e,r,n)=>{"use strict";var s=n(7060);e.exports=new s("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},4789:(e,r,n)=>{"use strict";var s=n(7060);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new s("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},5711:(e,r,n)=>{"use strict";var s=n(7060);function resolveYamlNull(e){if(e===null)return true;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new s("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},4189:(e,r,n)=>{"use strict";var s=n(7060);var i=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],n,s,l,f,c,a=e;for(n=0,s=a.length;n{"use strict";var s=n(7060);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,n,s,o,l,f=e;l=new Array(f.length);for(r=0,n=f.length;r{"use strict";var s=n(7060);e.exports=new s("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},7282:(e,r,n)=>{"use strict";var s=n(7060);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var r,n=e;for(r in n){if(i.call(n,r)){if(n[r]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new s("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},1299:(e,r,n)=>{"use strict";var s=n(7060);e.exports=new s("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},3637:(e,r,n)=>{"use strict";var s=n(7060);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,n,s,l,f,c,a,t=0,p=null,d,g,h;r=i.exec(e);if(r===null)r=o.exec(e);if(r===null)throw new Error("Date resolve error");n=+r[1];s=+r[2]-1;l=+r[3];if(!r[4]){return new Date(Date.UTC(n,s,l))}f=+r[4];c=+r[5];a=+r[6];if(r[7]){t=r[7].slice(0,3);while(t.length<3){t+="0"}t=+t}if(r[9]){d=+r[10];g=+(r[11]||0);p=(d*60+g)*6e4;if(r[9]==="-")p=-p}h=new Date(Date.UTC(n,s,l,f,c,a,t));if(p)h.setTime(h.getTime()-p);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new s("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},7438:e=>{"use strict";var r=e.exports=function(e,r,n){if(typeof r=="function"){n=r;r={}}n=r.cb||n;var s=typeof n=="function"?n:n.pre||function(){};var i=n.post||function(){};_traverse(r,s,i,e,"",e)};r.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};r.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};r.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};r.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,n,s,i,o,l,f,c,a,t){if(i&&typeof i=="object"&&!Array.isArray(i)){n(i,o,l,f,c,a,t);for(var p in i){var d=i[p];if(Array.isArray(d)){if(p in r.arrayKeywords){for(var g=0;g{let s;try{s=n(5406)}catch(e){s=n(5747)}const i=n(8522);const{stringify:o,stripBom:l}=n(1266);async function _readFile(e,r={}){if(typeof r==="string"){r={encoding:r}}const n=r.fs||s;const o="throws"in r?r.throws:true;let f=await i.fromCallback(n.readFile)(e,r);f=l(f);let c;try{c=JSON.parse(f,r?r.reviver:null)}catch(r){if(o){r.message=`${e}: ${r.message}`;throw r}else{return null}}return c}const f=i.fromPromise(_readFile);function readFileSync(e,r={}){if(typeof r==="string"){r={encoding:r}}const n=r.fs||s;const i="throws"in r?r.throws:true;try{let s=n.readFileSync(e,r);s=l(s);return JSON.parse(s,r.reviver)}catch(r){if(i){r.message=`${e}: ${r.message}`;throw r}else{return null}}}async function _writeFile(e,r,n={}){const l=n.fs||s;const f=o(r,n);await i.fromCallback(l.writeFile)(e,f,n)}const c=i.fromPromise(_writeFile);function writeFileSync(e,r,n={}){const i=n.fs||s;const l=o(r,n);return i.writeFileSync(e,l,n)}const a={readFile:f,readFileSync:readFileSync,writeFile:c,writeFileSync:writeFileSync};e.exports=a},1266:e=>{function stringify(e,{EOL:r="\n",finalEOL:n=true,replacer:s=null,spaces:i}={}){const o=n?r:"";const l=JSON.stringify(e,s,i);return l.replace(/\n/g,r)+o}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},7140:(e,r,n)=>{"use strict";const s=n(7572);const i=Symbol("max");const o=Symbol("length");const l=Symbol("lengthCalculator");const f=Symbol("allowStale");const c=Symbol("maxAge");const a=Symbol("dispose");const t=Symbol("noDisposeOnSet");const p=Symbol("lruList");const d=Symbol("cache");const g=Symbol("updateAgeOnGet");const h=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const r=this[i]=e.max||Infinity;const n=e.length||h;this[l]=typeof n!=="function"?h:n;this[f]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0;this[a]=e.dispose;this[t]=e.noDisposeOnSet||false;this[g]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||Infinity;E(this)}get max(){return this[i]}set allowStale(e){this[f]=!!e}get allowStale(){return this[f]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[c]=e;E(this)}get maxAge(){return this[c]}set lengthCalculator(e){if(typeof e!=="function")e=h;if(e!==this[l]){this[l]=e;this[o]=0;this[p].forEach(e=>{e.length=this[l](e.value,e.key);this[o]+=e.length})}E(this)}get lengthCalculator(){return this[l]}get length(){return this[o]}get itemCount(){return this[p].length}rforEach(e,r){r=r||this;for(let n=this[p].tail;n!==null;){const s=n.prev;m(this,e,n,r);n=s}}forEach(e,r){r=r||this;for(let n=this[p].head;n!==null;){const s=n.next;m(this,e,n,r);n=s}}keys(){return this[p].toArray().map(e=>e.key)}values(){return this[p].toArray().map(e=>e.value)}reset(){if(this[a]&&this[p]&&this[p].length){this[p].forEach(e=>this[a](e.key,e.value))}this[d]=new Map;this[p]=new s;this[o]=0}dump(){return this[p].map(e=>v(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[p]}set(e,r,n){n=n||this[c];if(n&&typeof n!=="number")throw new TypeError("maxAge must be a number");const s=n?Date.now():0;const f=this[l](r,e);if(this[d].has(e)){if(f>this[i]){w(this,this[d].get(e));return false}const l=this[d].get(e);const c=l.value;if(this[a]){if(!this[t])this[a](e,c.value)}c.now=s;c.maxAge=n;c.value=r;this[o]+=f-c.length;c.length=f;this.get(e);E(this);return true}const g=new Entry(e,r,f,s,n);if(g.length>this[i]){if(this[a])this[a](e,r);return false}this[o]+=g.length;this[p].unshift(g);this[d].set(e,this[p].head);E(this);return true}has(e){if(!this[d].has(e))return false;const r=this[d].get(e).value;return!v(this,r)}get(e){return u(this,e,true)}peek(e){return u(this,e,false)}pop(){const e=this[p].tail;if(!e)return null;w(this,e);return e.value}del(e){w(this,this[d].get(e))}load(e){this.reset();const r=Date.now();for(let n=e.length-1;n>=0;n--){const s=e[n];const i=s.e||0;if(i===0)this.set(s.k,s.v);else{const e=i-r;if(e>0){this.set(s.k,s.v,e)}}}}prune(){this[d].forEach((e,r)=>u(this,r,false))}}const u=(e,r,n)=>{const s=e[d].get(r);if(s){const r=s.value;if(v(e,r)){w(e,s);if(!e[f])return undefined}else{if(n){if(e[g])s.value.now=Date.now();e[p].unshiftNode(s)}}return r.value}};const v=(e,r)=>{if(!r||!r.maxAge&&!e[c])return false;const n=Date.now()-r.now;return r.maxAge?n>r.maxAge:e[c]&&n>e[c]};const E=e=>{if(e[o]>e[i]){for(let r=e[p].tail;e[o]>e[i]&&r!==null;){const n=r.prev;w(e,r);r=n}}};const w=(e,r)=>{if(r){const n=r.value;if(e[a])e[a](n.key,n.value);e[o]-=n.length;e[d].delete(n.key);e[p].removeNode(r)}};class Entry{constructor(e,r,n,s,i){this.key=e;this.value=r;this.length=n;this.now=s;this.maxAge=i||0}}const m=(e,r,n,s)=>{let i=n.value;if(v(e,i)){w(e,n);if(!e[f])i=undefined}if(i)r.call(s,i.value,i.key,e)};e.exports=LRUCache},1536:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=_interopDefault(n(2413));var i=_interopDefault(n(8605));var o=_interopDefault(n(8835));var l=_interopDefault(n(7211));var f=_interopDefault(n(8761));const c=s.Readable;const a=Symbol("buffer");const t=Symbol("type");class Blob{constructor(){this[t]="";const e=arguments[0];const r=arguments[1];const n=[];let s=0;if(e){const r=e;const i=Number(r.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=n.size;let o=i===undefined?0:i;var l=n.timeout;let f=l===undefined?0:l;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 s) ;else{e=Buffer.from(String(e))}this[d]={body:e,disturbed:false,error:null};this.size=o;this.timeout=f;if(e instanceof s){e.on("error",function(e){const n=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${r.url}: ${e.message}`,"system",e);r[d].error=n})}}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(r){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[a]:r})})},json(){var e=this;return consumeBody.call(this).then(function(r){try{return JSON.parse(r.toString())}catch(r){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${r.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(r){return convertBody(r,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 r of Object.getOwnPropertyNames(Body.prototype)){if(!(r in e)){const n=Object.getOwnPropertyDescriptor(Body.prototype,r);Object.defineProperty(e,r,n)}}};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 r=this.body;if(r===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(r)){r=r.stream()}if(Buffer.isBuffer(r)){return Body.Promise.resolve(r)}if(!(r instanceof s)){return Body.Promise.resolve(Buffer.alloc(0))}let n=[];let i=0;let o=false;return new Body.Promise(function(s,l){let f;if(e.timeout){f=setTimeout(function(){o=true;l(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}r.on("error",function(r){if(r.name==="AbortError"){o=true;l(r)}else{l(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${r.message}`,"system",r))}});r.on("data",function(r){if(o||r===null){return}if(e.size&&i+r.length>e.size){o=true;l(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=r.length;n.push(r)});r.on("end",function(){if(o){return}clearTimeout(f);try{s(Buffer.concat(n,i))}catch(r){l(new FetchError(`Could not create Buffer from response body for ${e.url}: ${r.message}`,"system",r))}})})}function convertBody(e,r){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const n=r.get("content-type");let s="utf-8";let i,o;if(n){i=/charset=([^;]*)/i.exec(n)}o=e.slice(0,1024).toString();if(!i&&o){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[v]=Object.create(null);if(e instanceof Headers){const r=e.raw();const n=Object.keys(r);for(const e of n){for(const n of r[e]){this.append(e,n)}}return}if(e==null) ;else if(typeof e==="object"){const r=e[Symbol.iterator];if(r!=null){if(typeof r!=="function"){throw new TypeError("Header pairs must be iterable")}const n=[];for(const r of e){if(typeof r!=="object"||typeof r[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}n.push(Array.from(r))}for(const e of n){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 r of Object.keys(e)){const n=e[r];this.append(r,n)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const r=find(this[v],e);if(r===undefined){return null}return this[v][r].join(", ")}forEach(e){let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let n=getHeaders(this);let s=0;while(s1&&arguments[1]!==undefined?arguments[1]:"key+value";const n=Object.keys(e[v]).sort();return n.map(r==="key"?function(e){return e.toLowerCase()}:r==="value"?function(r){return e[v][r].join(", ")}:function(r){return[r.toLowerCase(),e[v][r].join(", ")]})}const E=Symbol("internal");function createHeadersIterator(e,r){const n=Object.create(w);n[E]={target:e,kind:r,index:0};return n}const w=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==w){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[E];const r=e.target,n=e.kind,s=e.index;const i=getHeaders(r,n);const o=i.length;if(s>=o){return{value:undefined,done:true}}this[E].index=s+1;return{value:i[s],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(w,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const r=Object.assign({__proto__:null},e[v]);const n=find(e[v],"Host");if(n!==undefined){r[n]=r[n][0]}return r}function createHeadersLenient(e){const r=new Headers;for(const n of Object.keys(e)){if(h.test(n)){continue}if(Array.isArray(e[n])){for(const s of e[n]){if(u.test(s)){continue}if(r[v][n]===undefined){r[v][n]=[s]}else{r[v][n].push(s)}}}else if(!u.test(e[n])){r[v][n]=[e[n]]}}return r}const m=Symbol("Response internals");const b=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,r);const n=r.status||200;const s=new Headers(r.headers);if(e!=null&&!s.has("Content-Type")){const r=extractContentType(e);if(r){s.append("Content-Type",r)}}this[m]={url:r.url,status:n,statusText:r.statusText||b[n],headers:s,counter:r.counter}}get url(){return this[m].url||""}get status(){return this[m].status}get ok(){return this[m].status>=200&&this[m].status<300}get redirected(){return this[m].counter>0}get statusText(){return this[m].statusText}get headers(){return this[m].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 T=Symbol("Request internals");const y=o.parse;const O=o.format;const R="destroy"in s.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[T]==="object"}function isAbortSignal(e){const r=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(r&&r.constructor.name==="AbortSignal")}class Request{constructor(e){let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let n;if(!isRequest(e)){if(e&&e.href){n=y(e.href)}else{n=y(`${e}`)}e={}}else{n=y(e.url)}let s=r.method||e.method||"GET";s=s.toUpperCase();if((r.body!=null||isRequest(e)&&e.body!==null)&&(s==="GET"||s==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=r.body!=null?r.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const o=new Headers(r.headers||e.headers||{});if(i!=null&&!o.has("Content-Type")){const e=extractContentType(i);if(e){o.append("Content-Type",e)}}let l=isRequest(e)?e.signal:null;if("signal"in r)l=r.signal;if(l!=null&&!isAbortSignal(l)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[T]={method:s,redirect:r.redirect||e.redirect||"follow",headers:o,parsedURL:n,signal:l};this.follow=r.follow!==undefined?r.follow:e.follow!==undefined?e.follow:20;this.compress=r.compress!==undefined?r.compress:e.compress!==undefined?e.compress:true;this.counter=r.counter||e.counter||0;this.agent=r.agent||e.agent}get method(){return this[T].method}get url(){return O(this[T].parsedURL)}get headers(){return this[T].headers}get redirect(){return this[T].redirect}get signal(){return this[T].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 r=e[T].parsedURL;const n=new Headers(e[T].headers);if(!n.has("Accept")){n.set("Accept","*/*")}if(!r.protocol||!r.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(r.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof s.Readable&&!R){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const r=getTotalBytes(e);if(typeof r==="number"){i=String(r)}}if(i){n.set("Content-Length",i)}if(!n.has("User-Agent")){n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!n.has("Accept-Encoding")){n.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(r)}if(!n.has("Connection")&&!o){n.set("Connection","close")}return Object.assign({},r,{method:e.method,headers:exportNodeCompatibleHeaders(n),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 A=s.PassThrough;const F=o.resolve;function fetch(e,r){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(n,o){const c=new Request(e,r);const a=getNodeRequestOptions(c);const t=(a.protocol==="https:"?l:i).request;const p=c.signal;let d=null;const g=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof s.Readable){c.body.destroy(e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){g();return}const h=function abortAndFinalize(){g();finalize()};const u=t(a);let v;if(p){p.addEventListener("abort",h)}function finalize(){u.abort();if(p)p.removeEventListener("abort",h);clearTimeout(v)}if(c.timeout){u.once("socket",function(e){v=setTimeout(function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()},c.timeout)})}u.on("error",function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()});u.on("response",function(e){clearTimeout(v);const r=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const s=r.get("Location");const i=s===null?null:F(c.url,s);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(i!==null){try{r.set("Location",i)}catch(e){o(e)}}break;case"follow":if(i===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const s={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"){s.method="GET";s.body=undefined;s.headers.delete("content-length")}n(fetch(new Request(i,s)));finalize();return}}e.once("end",function(){if(p)p.removeEventListener("abort",h)});let s=e.pipe(new A);const i={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:r,size:c.size,timeout:c.timeout,counter:c.counter};const l=r.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||l===null||e.statusCode===204||e.statusCode===304){d=new Response(s,i);n(d);return}const a={flush:f.Z_SYNC_FLUSH,finishFlush:f.Z_SYNC_FLUSH};if(l=="gzip"||l=="x-gzip"){s=s.pipe(f.createGunzip(a));d=new Response(s,i);n(d);return}if(l=="deflate"||l=="x-deflate"){const r=e.pipe(new A);r.once("data",function(e){if((e[0]&15)===8){s=s.pipe(f.createInflate())}else{s=s.pipe(f.createInflateRaw())}d=new Response(s,i);n(d)});return}if(l=="br"&&typeof f.createBrotliDecompress==="function"){s=s.pipe(f.createBrotliDecompress());d=new Response(s,i);n(d);return}d=new Response(s,i);n(d)});writeToStream(u,c)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=r=fetch;Object.defineProperty(r,"__esModule",{value:true});r.default=r;r.Headers=Headers;r.Request=Request;r.Response=Response;r.FetchError=FetchError},1081:(e,r,n)=>{var s=n(7145);e.exports=s(once);e.exports.strict=s(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 r=function(){if(r.called)return r.value;r.called=true;return r.value=e.apply(this,arguments)};r.called=false;return r}function onceStrict(e){var r=function(){if(r.called)throw new Error(r.onceError);r.called=true;return r.value=e.apply(this,arguments)};var n=e.name||"Function wrapped with `once`";r.onceError=n+" shouldn't be called more than once";r.called=false;return r}},7795:e=>{"use strict";e.exports=function(e){if(typeof e!=="string"){throw new Error("expected a string")}return e.split("\n").map(user).filter(Boolean)};function user(e,r){if(!e||!e.length||e.charAt(0)==="#"){return null}var n=e.split(":");return{username:n[0],password:n[1],uid:n[2],gid:n[3],gecos:n[4],homedir:n[5],shell:n[6]}}},5318:(e,r)=>{r=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}r.SEMVER_SPEC_VERSION="2.0.0";var s=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var l=r.re=[];var f=r.src=[];var c=r.tokens={};var a=0;function tok(e){c[e]=a++}tok("NUMERICIDENTIFIER");f[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");f[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");f[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");f[c.MAINVERSION]="("+f[c.NUMERICIDENTIFIER]+")\\."+"("+f[c.NUMERICIDENTIFIER]+")\\."+"("+f[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");f[c.MAINVERSIONLOOSE]="("+f[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+f[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+f[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");f[c.PRERELEASEIDENTIFIER]="(?:"+f[c.NUMERICIDENTIFIER]+"|"+f[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");f[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+f[c.NUMERICIDENTIFIERLOOSE]+"|"+f[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");f[c.PRERELEASE]="(?:-("+f[c.PRERELEASEIDENTIFIER]+"(?:\\."+f[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");f[c.PRERELEASELOOSE]="(?:-?("+f[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+f[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");f[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");f[c.BUILD]="(?:\\+("+f[c.BUILDIDENTIFIER]+"(?:\\."+f[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");f[c.FULLPLAIN]="v?"+f[c.MAINVERSION]+f[c.PRERELEASE]+"?"+f[c.BUILD]+"?";f[c.FULL]="^"+f[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");f[c.LOOSEPLAIN]="[v=\\s]*"+f[c.MAINVERSIONLOOSE]+f[c.PRERELEASELOOSE]+"?"+f[c.BUILD]+"?";tok("LOOSE");f[c.LOOSE]="^"+f[c.LOOSEPLAIN]+"$";tok("GTLT");f[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");f[c.XRANGEIDENTIFIERLOOSE]=f[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");f[c.XRANGEIDENTIFIER]=f[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");f[c.XRANGEPLAIN]="[v=\\s]*("+f[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+f[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+f[c.XRANGEIDENTIFIER]+")"+"(?:"+f[c.PRERELEASE]+")?"+f[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");f[c.XRANGEPLAINLOOSE]="[v=\\s]*("+f[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+f[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+f[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+f[c.PRERELEASELOOSE]+")?"+f[c.BUILD]+"?"+")?)?";tok("XRANGE");f[c.XRANGE]="^"+f[c.GTLT]+"\\s*"+f[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");f[c.XRANGELOOSE]="^"+f[c.GTLT]+"\\s*"+f[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");f[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");l[c.COERCERTL]=new RegExp(f[c.COERCE],"g");tok("LONETILDE");f[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");f[c.TILDETRIM]="(\\s*)"+f[c.LONETILDE]+"\\s+";l[c.TILDETRIM]=new RegExp(f[c.TILDETRIM],"g");var t="$1~";tok("TILDE");f[c.TILDE]="^"+f[c.LONETILDE]+f[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");f[c.TILDELOOSE]="^"+f[c.LONETILDE]+f[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");f[c.LONECARET]="(?:\\^)";tok("CARETTRIM");f[c.CARETTRIM]="(\\s*)"+f[c.LONECARET]+"\\s+";l[c.CARETTRIM]=new RegExp(f[c.CARETTRIM],"g");var p="$1^";tok("CARET");f[c.CARET]="^"+f[c.LONECARET]+f[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");f[c.CARETLOOSE]="^"+f[c.LONECARET]+f[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");f[c.COMPARATORLOOSE]="^"+f[c.GTLT]+"\\s*("+f[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");f[c.COMPARATOR]="^"+f[c.GTLT]+"\\s*("+f[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");f[c.COMPARATORTRIM]="(\\s*)"+f[c.GTLT]+"\\s*("+f[c.LOOSEPLAIN]+"|"+f[c.XRANGEPLAIN]+")";l[c.COMPARATORTRIM]=new RegExp(f[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");f[c.HYPHENRANGE]="^\\s*("+f[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+f[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");f[c.HYPHENRANGELOOSE]="^\\s*("+f[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+f[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");f[c.STAR]="(<|>)?=?\\s*\\*";for(var g=0;gs){return null}var n=r.loose?l[c.LOOSE]:l[c.FULL];if(!n.test(e)){return null}try{return new SemVer(e,r)}catch(e){return null}}r.valid=valid;function valid(e,r){var n=parse(e,r);return n?n.version:null}r.clean=clean;function clean(e,r){var n=parse(e.trim().replace(/^[=v]+/,""),r);return n?n.version:null}r.SemVer=SemVer;function SemVer(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===r.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>s){throw new TypeError("version is longer than "+s+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,r)}n("SemVer",e,r);this.options=r;this.loose=!!r.loose;var o=e.trim().match(r.loose?l[c.LOOSE]:l[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var r=+e;if(r>=0&&r=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(r){if(this.prerelease[0]===r){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};r.inc=inc;function inc(e,r,n,s){if(typeof n==="string"){s=n;n=undefined}try{return new SemVer(e,n).inc(r,s).version}catch(e){return null}}r.diff=diff;function diff(e,r){if(eq(e,r)){return null}else{var n=parse(e);var s=parse(r);var i="";if(n.prerelease.length||s.prerelease.length){i="pre";var o="prerelease"}for(var l in n){if(l==="major"||l==="minor"||l==="patch"){if(n[l]!==s[l]){return i+l}}}return o}}r.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,r){var n=h.test(e);var s=h.test(r);if(n&&s){e=+e;r=+r}return e===r?0:n&&!s?-1:s&&!n?1:e0}r.lt=lt;function lt(e,r,n){return compare(e,r,n)<0}r.eq=eq;function eq(e,r,n){return compare(e,r,n)===0}r.neq=neq;function neq(e,r,n){return compare(e,r,n)!==0}r.gte=gte;function gte(e,r,n){return compare(e,r,n)>=0}r.lte=lte;function lte(e,r,n){return compare(e,r,n)<=0}r.cmp=cmp;function cmp(e,r,n,s){switch(r){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,s);case"!=":return neq(e,n,s);case">":return gt(e,n,s);case">=":return gte(e,n,s);case"<":return lt(e,n,s);case"<=":return lte(e,n,s);default:throw new TypeError("Invalid operator: "+r)}}r.Comparator=Comparator;function Comparator(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!r.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,r)}n("comparator",e,r);this.options=r;this.loose=!!r.loose;this.parse(e);if(this.semver===u){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var u={};Comparator.prototype.parse=function(e){var r=this.options.loose?l[c.COMPARATORLOOSE]:l[c.COMPARATOR];var n=e.match(r);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=u}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===u||e===u){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,r){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,r);return satisfies(this.value,n,r)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,r);return satisfies(e.semver,n,r)}var s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var l=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var f=cmp(this.semver,"<",e.semver,r)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,r)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return s||i||o&&l||f||c};r.Range=Range;function Range(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{return new Range(e.raw,r)}}if(e instanceof Comparator){return new Range(e.value,r)}if(!(this instanceof Range)){return new Range(e,r)}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var r=this.options.loose;e=e.trim();var s=r?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];e=e.replace(s,hyphenReplace);n("hyphen replace",e);e=e.replace(l[c.COMPARATORTRIM],d);n("comparator trim",e,l[c.COMPARATORTRIM]);e=e.replace(l[c.TILDETRIM],t);e=e.replace(l[c.CARETTRIM],p);e=e.split(/\s+/).join(" ");var i=r?l[c.COMPARATORLOOSE]:l[c.COMPARATOR];var o=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter(function(e){return!!e.match(i)})}o=o.map(function(e){return new Comparator(e,this.options)},this);return o};Range.prototype.intersects=function(e,r){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(n){return isSatisfiable(n,r)&&e.set.some(function(e){return isSatisfiable(e,r)&&n.every(function(n){return e.every(function(e){return n.intersects(e,r)})})})})};function isSatisfiable(e,r){var n=true;var s=e.slice();var i=s.pop();while(n&&s.length){n=s.every(function(e){return i.intersects(e,r)});i=s.pop()}return n}r.toComparators=toComparators;function toComparators(e,r){return new Range(e,r).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,r){n("comp",e,r);e=replaceCarets(e,r);n("caret",e);e=replaceTildes(e,r);n("tildes",e);e=replaceXRanges(e,r);n("xrange",e);e=replaceStars(e,r);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,r){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,r)}).join(" ")}function replaceTilde(e,r){var s=r.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(s,function(r,s,i,o,l){n("tilde",e,r,s,i,o,l);var f;if(isX(s)){f=""}else if(isX(i)){f=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(o)){f=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0"}else if(l){n("replaceTilde pr",l);f=">="+s+"."+i+"."+o+"-"+l+" <"+s+"."+(+i+1)+".0"}else{f=">="+s+"."+i+"."+o+" <"+s+"."+(+i+1)+".0"}n("tilde return",f);return f})}function replaceCarets(e,r){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,r)}).join(" ")}function replaceCaret(e,r){n("caret",e,r);var s=r.loose?l[c.CARETLOOSE]:l[c.CARET];return e.replace(s,function(r,s,i,o,l){n("caret",e,r,s,i,o,l);var f;if(isX(s)){f=""}else if(isX(i)){f=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(o)){if(s==="0"){f=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0"}else{f=">="+s+"."+i+".0 <"+(+s+1)+".0.0"}}else if(l){n("replaceCaret pr",l);if(s==="0"){if(i==="0"){f=">="+s+"."+i+"."+o+"-"+l+" <"+s+"."+i+"."+(+o+1)}else{f=">="+s+"."+i+"."+o+"-"+l+" <"+s+"."+(+i+1)+".0"}}else{f=">="+s+"."+i+"."+o+"-"+l+" <"+(+s+1)+".0.0"}}else{n("no pr");if(s==="0"){if(i==="0"){f=">="+s+"."+i+"."+o+" <"+s+"."+i+"."+(+o+1)}else{f=">="+s+"."+i+"."+o+" <"+s+"."+(+i+1)+".0"}}else{f=">="+s+"."+i+"."+o+" <"+(+s+1)+".0.0"}}n("caret return",f);return f})}function replaceXRanges(e,r){n("replaceXRanges",e,r);return e.split(/\s+/).map(function(e){return replaceXRange(e,r)}).join(" ")}function replaceXRange(e,r){e=e.trim();var s=r.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(s,function(s,i,o,l,f,c){n("xRange",e,s,i,o,l,f,c);var a=isX(o);var t=a||isX(l);var p=t||isX(f);var d=p;if(i==="="&&d){i=""}c=r.includePrerelease?"-0":"";if(a){if(i===">"||i==="<"){s="<0.0.0-0"}else{s="*"}}else if(i&&d){if(t){l=0}f=0;if(i===">"){i=">=";if(t){o=+o+1;l=0;f=0}else{l=+l+1;f=0}}else if(i==="<="){i="<";if(t){o=+o+1}else{l=+l+1}}s=i+o+"."+l+"."+f+c}else if(t){s=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(p){s=">="+o+"."+l+".0"+c+" <"+o+"."+(+l+1)+".0"+c}n("xRange return",s);return s})}function replaceStars(e,r){n("replaceStars",e,r);return e.trim().replace(l[c.STAR],"")}function hyphenReplace(e,r,n,s,i,o,l,f,c,a,t,p,d){if(isX(n)){r=""}else if(isX(s)){r=">="+n+".0.0"}else if(isX(i)){r=">="+n+"."+s+".0"}else{r=">="+r}if(isX(c)){f=""}else if(isX(a)){f="<"+(+c+1)+".0.0"}else if(isX(t)){f="<"+c+"."+(+a+1)+".0"}else if(p){f="<="+c+"."+a+"."+t+"-"+p}else{f="<="+f}return(r+" "+f).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var r=0;r0){var o=e[i].semver;if(o.major===r.major&&o.minor===r.minor&&o.patch===r.patch){return true}}}return false}return true}r.satisfies=satisfies;function satisfies(e,r,n){try{r=new Range(r,n)}catch(e){return false}return r.test(e)}r.maxSatisfying=maxSatisfying;function maxSatisfying(e,r,n){var s=null;var i=null;try{var o=new Range(r,n)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!s||i.compare(e)===-1){s=e;i=new SemVer(s,n)}}});return s}r.minSatisfying=minSatisfying;function minSatisfying(e,r,n){var s=null;var i=null;try{var o=new Range(r,n)}catch(e){return null}e.forEach(function(e){if(o.test(e)){if(!s||i.compare(e)===1){s=e;i=new SemVer(s,n)}}});return s}r.minVersion=minVersion;function minVersion(e,r){e=new Range(e,r);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var s=0;s":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!n||gt(n,r)){n=r}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(n&&e.test(n)){return n}return null}r.validRange=validRange;function validRange(e,r){try{return new Range(e,r).range||"*"}catch(e){return null}}r.ltr=ltr;function ltr(e,r,n){return outside(e,r,"<",n)}r.gtr=gtr;function gtr(e,r,n){return outside(e,r,">",n)}r.outside=outside;function outside(e,r,n,s){e=new SemVer(e,s);r=new Range(r,s);var i,o,l,f,c;switch(n){case">":i=gt;o=lte;l=lt;f=">";c=">=";break;case"<":i=lt;o=gte;l=gt;f="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,r,s)){return false}for(var a=0;a=0.0.0")}p=p||e;d=d||e;if(i(e.semver,p.semver,s)){p=e}else if(l(e.semver,d.semver,s)){d=e}});if(p.operator===f||p.operator===c){return false}if((!d.operator||d.operator===f)&&o(e,d.semver)){return false}else if(d.operator===c&&l(e,d.semver)){return false}}return true}r.prerelease=prerelease;function prerelease(e,r){var n=parse(e,r);return n&&n.prerelease.length?n.prerelease:null}r.intersects=intersects;function intersects(e,r,n){e=new Range(e,n);r=new Range(r,n);return e.intersects(r)}r.coerce=coerce;function coerce(e,r){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}r=r||{};var n=null;if(!r.rtl){n=e.match(l[c.COERCE])}else{var s;while((s=l[c.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||s.index+s[0].length!==n.index+n[0].length){n=s}l[c.COERCERTL].lastIndex=s.index+s[1].length+s[2].length}l[c.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),r)}},3195:(e,r,n)=>{const s=Symbol("SemVer ANY");class Comparator{static get ANY(){return s}constructor(e,r){r=i(r);if(e instanceof Comparator){if(e.loose===!!r.loose){return e}else{e=e.value}}c("comparator",e,r);this.options=r;this.loose=!!r.loose;this.parse(e);if(this.semver===s){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const r=this.options.loose?o[l.COMPARATORLOOSE]:o[l.COMPARATOR];const n=e.match(r);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=s}else{this.semver=new a(n[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new a(e,this.options)}catch(e){return false}}return f(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new t(e.value,r).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new t(this.value,r).test(e.semver)}const n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const i=this.semver.version===e.semver.version;const o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const l=f(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const c=f(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&o||l||c}}e.exports=Comparator;const i=n(2258);const{re:o,t:l}=n(9344);const f=n(8446);const c=n(7398);const a=n(9119);const t=n(502)},502:(e,r,n)=>{class Range{constructor(e,r){r=o(r);if(e instanceof Range){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{return new Range(e.raw,r)}}if(e instanceof l){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length);if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter(e=>!h(e[0]));if(this.set.length===0)this.set=[e];else if(this.set.length>1){for(const e of this.set){if(e.length===1&&u(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map(e=>{return e.join(" ").trim()}).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const r=Object.keys(this.options).join(",");const n=`parseRange:${r}:${e}`;const s=i.get(n);if(s)return s;const o=this.options.loose;const c=o?a[t.HYPHENRANGELOOSE]:a[t.HYPHENRANGE];e=e.replace(c,I(this.options.includePrerelease));f("hyphen replace",e);e=e.replace(a[t.COMPARATORTRIM],p);f("comparator trim",e,a[t.COMPARATORTRIM]);e=e.replace(a[t.TILDETRIM],d);e=e.replace(a[t.CARETTRIM],g);e=e.split(/\s+/).join(" ");const u=o?a[t.COMPARATORLOOSE]:a[t.COMPARATOR];const v=e.split(" ").map(e=>E(e,this.options)).join(" ").split(/\s+/).map(e=>F(e,this.options)).filter(this.options.loose?e=>!!e.match(u):()=>true).map(e=>new l(e,this.options));const w=v.length;const m=new Map;for(const e of v){if(h(e))return[e];m.set(e.value,e)}if(m.size>1&&m.has(""))m.delete("");const b=[...m.values()];i.set(n,b);return b}intersects(e,r){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(n=>{return v(n,r)&&e.set.some(e=>{return v(e,r)&&n.every(n=>{return e.every(e=>{return n.intersects(e,r)})})})})}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}for(let r=0;re.value==="<0.0.0-0";const u=e=>e.value==="";const v=(e,r)=>{let n=true;const s=e.slice();let i=s.pop();while(n&&s.length){n=s.every(e=>{return i.intersects(e,r)});i=s.pop()}return n};const E=(e,r)=>{f("comp",e,r);e=T(e,r);f("caret",e);e=m(e,r);f("tildes",e);e=O(e,r);f("xrange",e);e=A(e,r);f("stars",e);return e};const w=e=>!e||e.toLowerCase()==="x"||e==="*";const m=(e,r)=>e.trim().split(/\s+/).map(e=>{return b(e,r)}).join(" ");const b=(e,r)=>{const n=r.loose?a[t.TILDELOOSE]:a[t.TILDE];return e.replace(n,(r,n,s,i,o)=>{f("tilde",e,r,n,s,i,o);let l;if(w(n)){l=""}else if(w(s)){l=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(w(i)){l=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`}else if(o){f("replaceTilde pr",o);l=`>=${n}.${s}.${i}-${o} <${n}.${+s+1}.0-0`}else{l=`>=${n}.${s}.${i} <${n}.${+s+1}.0-0`}f("tilde return",l);return l})};const T=(e,r)=>e.trim().split(/\s+/).map(e=>{return y(e,r)}).join(" ");const y=(e,r)=>{f("caret",e,r);const n=r.loose?a[t.CARETLOOSE]:a[t.CARET];const s=r.includePrerelease?"-0":"";return e.replace(n,(r,n,i,o,l)=>{f("caret",e,r,n,i,o,l);let c;if(w(n)){c=""}else if(w(i)){c=`>=${n}.0.0${s} <${+n+1}.0.0-0`}else if(w(o)){if(n==="0"){c=`>=${n}.${i}.0${s} <${n}.${+i+1}.0-0`}else{c=`>=${n}.${i}.0${s} <${+n+1}.0.0-0`}}else if(l){f("replaceCaret pr",l);if(n==="0"){if(i==="0"){c=`>=${n}.${i}.${o}-${l} <${n}.${i}.${+o+1}-0`}else{c=`>=${n}.${i}.${o}-${l} <${n}.${+i+1}.0-0`}}else{c=`>=${n}.${i}.${o}-${l} <${+n+1}.0.0-0`}}else{f("no pr");if(n==="0"){if(i==="0"){c=`>=${n}.${i}.${o}${s} <${n}.${i}.${+o+1}-0`}else{c=`>=${n}.${i}.${o}${s} <${n}.${+i+1}.0-0`}}else{c=`>=${n}.${i}.${o} <${+n+1}.0.0-0`}}f("caret return",c);return c})};const O=(e,r)=>{f("replaceXRanges",e,r);return e.split(/\s+/).map(e=>{return R(e,r)}).join(" ")};const R=(e,r)=>{e=e.trim();const n=r.loose?a[t.XRANGELOOSE]:a[t.XRANGE];return e.replace(n,(n,s,i,o,l,c)=>{f("xRange",e,n,s,i,o,l,c);const a=w(i);const t=a||w(o);const p=t||w(l);const d=p;if(s==="="&&d){s=""}c=r.includePrerelease?"-0":"";if(a){if(s===">"||s==="<"){n="<0.0.0-0"}else{n="*"}}else if(s&&d){if(t){o=0}l=0;if(s===">"){s=">=";if(t){i=+i+1;o=0;l=0}else{o=+o+1;l=0}}else if(s==="<="){s="<";if(t){i=+i+1}else{o=+o+1}}if(s==="<")c="-0";n=`${s+i}.${o}.${l}${c}`}else if(t){n=`>=${i}.0.0${c} <${+i+1}.0.0-0`}else if(p){n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`}f("xRange return",n);return n})};const A=(e,r)=>{f("replaceStars",e,r);return e.trim().replace(a[t.STAR],"")};const F=(e,r)=>{f("replaceGTE0",e,r);return e.trim().replace(a[r.includePrerelease?t.GTE0PRE:t.GTE0],"")};const I=e=>(r,n,s,i,o,l,f,c,a,t,p,d,g)=>{if(w(s)){n=""}else if(w(i)){n=`>=${s}.0.0${e?"-0":""}`}else if(w(o)){n=`>=${s}.${i}.0${e?"-0":""}`}else if(l){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(w(a)){c=""}else if(w(t)){c=`<${+a+1}.0.0-0`}else if(w(p)){c=`<${a}.${+t+1}.0-0`}else if(d){c=`<=${a}.${t}.${p}-${d}`}else if(e){c=`<${a}.${t}.${+p+1}-0`}else{c=`<=${c}`}return`${n} ${c}`.trim()};const j=(e,r,n)=>{for(let n=0;n0){const s=e[n].semver;if(s.major===r.major&&s.minor===r.minor&&s.patch===r.patch){return true}}}return false}return true}},9119:(e,r,n)=>{const s=n(7398);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(3100);const{re:l,t:f}=n(9344);const c=n(2258);const{compareIdentifiers:a}=n(1579);class SemVer{constructor(e,r){r=c(r);if(e instanceof SemVer){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}s("SemVer",e,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const n=e.trim().match(r.loose?l[f.LOOSE]:l[f.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const r=+e;if(r>=0&&r=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(r){if(this.prerelease[0]===r){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},526:(e,r,n)=>{const s=n(333);const i=(e,r)=>{const n=s(e.trim().replace(/^[=v]+/,""),r);return n?n.version:null};e.exports=i},8446:(e,r,n)=>{const s=n(7493);const i=n(1480);const o=n(5230);const l=n(8063);const f=n(7525);const c=n(5072);const a=(e,r,n,a)=>{switch(r){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return s(e,n,a);case"!=":return i(e,n,a);case">":return o(e,n,a);case">=":return l(e,n,a);case"<":return f(e,n,a);case"<=":return c(e,n,a);default:throw new TypeError(`Invalid operator: ${r}`)}};e.exports=a},3101:(e,r,n)=>{const s=n(9119);const i=n(333);const{re:o,t:l}=n(9344);const f=(e,r)=>{if(e instanceof s){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}r=r||{};let n=null;if(!r.rtl){n=e.match(o[l.COERCE])}else{let r;while((r=o[l.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||r.index+r[0].length!==n.index+n[0].length){n=r}o[l.COERCERTL].lastIndex=r.index+r[1].length+r[2].length}o[l.COERCERTL].lastIndex=-1}if(n===null)return null;return i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};e.exports=f},2307:(e,r,n)=>{const s=n(9119);const i=(e,r,n)=>{const i=new s(e,n);const o=new s(r,n);return i.compare(o)||i.compareBuild(o)};e.exports=i},1229:(e,r,n)=>{const s=n(325);const i=(e,r)=>s(e,r,true);e.exports=i},325:(e,r,n)=>{const s=n(9119);const i=(e,r,n)=>new s(e,n).compare(new s(r,n));e.exports=i},9776:(e,r,n)=>{const s=n(333);const i=n(7493);const o=(e,r)=>{if(i(e,r)){return null}else{const n=s(e);const i=s(r);const o=n.prerelease.length||i.prerelease.length;const l=o?"pre":"";const f=o?"prerelease":"";for(const e in n){if(e==="major"||e==="minor"||e==="patch"){if(n[e]!==i[e]){return l+e}}}return f}};e.exports=o},7493:(e,r,n)=>{const s=n(325);const i=(e,r,n)=>s(e,r,n)===0;e.exports=i},5230:(e,r,n)=>{const s=n(325);const i=(e,r,n)=>s(e,r,n)>0;e.exports=i},8063:(e,r,n)=>{const s=n(325);const i=(e,r,n)=>s(e,r,n)>=0;e.exports=i},1918:(e,r,n)=>{const s=n(9119);const i=(e,r,n,i)=>{if(typeof n==="string"){i=n;n=undefined}try{return new s(e,n).inc(r,i).version}catch(e){return null}};e.exports=i},7525:(e,r,n)=>{const s=n(325);const i=(e,r,n)=>s(e,r,n)<0;e.exports=i},5072:(e,r,n)=>{const s=n(325);const i=(e,r,n)=>s(e,r,n)<=0;e.exports=i},4169:(e,r,n)=>{const s=n(9119);const i=(e,r)=>new s(e,r).major;e.exports=i},4842:(e,r,n)=>{const s=n(9119);const i=(e,r)=>new s(e,r).minor;e.exports=i},1480:(e,r,n)=>{const s=n(325);const i=(e,r,n)=>s(e,r,n)!==0;e.exports=i},333:(e,r,n)=>{const{MAX_LENGTH:s}=n(3100);const{re:i,t:o}=n(9344);const l=n(9119);const f=n(2258);const c=(e,r)=>{r=f(r);if(e instanceof l){return e}if(typeof e!=="string"){return null}if(e.length>s){return null}const n=r.loose?i[o.LOOSE]:i[o.FULL];if(!n.test(e)){return null}try{return new l(e,r)}catch(e){return null}};e.exports=c},8365:(e,r,n)=>{const s=n(9119);const i=(e,r)=>new s(e,r).patch;e.exports=i},6396:(e,r,n)=>{const s=n(333);const i=(e,r)=>{const n=s(e,r);return n&&n.prerelease.length?n.prerelease:null};e.exports=i},8388:(e,r,n)=>{const s=n(325);const i=(e,r,n)=>s(r,e,n);e.exports=i},9138:(e,r,n)=>{const s=n(2307);const i=(e,r)=>e.sort((e,n)=>s(n,e,r));e.exports=i},5069:(e,r,n)=>{const s=n(502);const i=(e,r,n)=>{try{r=new s(r,n)}catch(e){return false}return r.test(e)};e.exports=i},1189:(e,r,n)=>{const s=n(2307);const i=(e,r)=>e.sort((e,n)=>s(e,n,r));e.exports=i},9877:(e,r,n)=>{const s=n(333);const i=(e,r)=>{const n=s(e,r);return n?n.version:null};e.exports=i},7308:(e,r,n)=>{const s=n(9344);e.exports={re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:n(3100).SEMVER_SPEC_VERSION,SemVer:n(9119),compareIdentifiers:n(1579).compareIdentifiers,rcompareIdentifiers:n(1579).rcompareIdentifiers,parse:n(333),valid:n(9877),clean:n(526),inc:n(1918),diff:n(9776),major:n(4169),minor:n(4842),patch:n(8365),prerelease:n(6396),compare:n(325),rcompare:n(8388),compareLoose:n(1229),compareBuild:n(2307),sort:n(1189),rsort:n(9138),gt:n(5230),lt:n(7525),eq:n(7493),neq:n(1480),gte:n(8063),lte:n(5072),cmp:n(8446),coerce:n(3101),Comparator:n(3195),Range:n(502),satisfies:n(5069),toComparators:n(5485),maxSatisfying:n(3639),minSatisfying:n(2972),minVersion:n(7960),validRange:n(3160),outside:n(3848),gtr:n(7159),ltr:n(1582),intersects:n(4519),simplifyRange:n(1696),subset:n(2936)}},3100:e=>{const r="2.0.0";const n=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;e.exports={SEMVER_SPEC_VERSION:r,MAX_LENGTH:n,MAX_SAFE_INTEGER:s,MAX_SAFE_COMPONENT_LENGTH:i}},7398:e=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r},1579:e=>{const r=/^[0-9]+$/;const n=(e,n)=>{const s=r.test(e);const i=r.test(n);if(s&&i){e=+e;n=+n}return e===n?0:s&&!i?-1:i&&!s?1:en(r,e);e.exports={compareIdentifiers:n,rcompareIdentifiers:s}},2258:e=>{const r=["includePrerelease","loose","rtl"];const n=e=>!e?{}:typeof e!=="object"?{loose:true}:r.filter(r=>e[r]).reduce((e,r)=>{e[r]=true;return e},{});e.exports=n},9344:(e,r,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:s}=n(3100);const i=n(7398);r=e.exports={};const o=r.re=[];const l=r.src=[];const f=r.t={};let c=0;const a=(e,r,n)=>{const s=c++;i(s,r);f[e]=s;l[s]=r;o[s]=new RegExp(r,n?"g":undefined)};a("NUMERICIDENTIFIER","0|[1-9]\\d*");a("NUMERICIDENTIFIERLOOSE","[0-9]+");a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");a("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.`+`(${l[f.NUMERICIDENTIFIER]})\\.`+`(${l[f.NUMERICIDENTIFIER]})`);a("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.`+`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.`+`(${l[f.NUMERICIDENTIFIERLOOSE]})`);a("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`);a("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`);a("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`);a("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`);a("BUILDIDENTIFIER","[0-9A-Za-z-]+");a("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`);a("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`);a("FULL",`^${l[f.FULLPLAIN]}$`);a("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`);a("LOOSE",`^${l[f.LOOSEPLAIN]}$`);a("GTLT","((?:<|>)?=?)");a("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);a("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`);a("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})`+`(?:\\.(${l[f.XRANGEIDENTIFIER]})`+`(?:\\.(${l[f.XRANGEIDENTIFIER]})`+`(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?`+`)?)?`);a("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})`+`(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?`+`)?)?`);a("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`);a("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`);a("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`+`(?:$|[^\\d])`);a("COERCERTL",l[f.COERCE],true);a("LONETILDE","(?:~>?)");a("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";a("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`);a("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`);a("LONECARET","(?:\\^)");a("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";a("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`);a("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`);a("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`);a("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`);a("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";a("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${l[f.XRANGEPLAIN]})`+`\\s*$`);a("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${l[f.XRANGEPLAINLOOSE]})`+`\\s*$`);a("STAR","(<|>)?=?\\s*\\*");a("GTE0","^\\s*>=\\s*0.0.0\\s*$");a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},7159:(e,r,n)=>{const s=n(3848);const i=(e,r,n)=>s(e,r,">",n);e.exports=i},4519:(e,r,n)=>{const s=n(502);const i=(e,r,n)=>{e=new s(e,n);r=new s(r,n);return e.intersects(r)};e.exports=i},1582:(e,r,n)=>{const s=n(3848);const i=(e,r,n)=>s(e,r,"<",n);e.exports=i},3639:(e,r,n)=>{const s=n(9119);const i=n(502);const o=(e,r,n)=>{let o=null;let l=null;let f=null;try{f=new i(r,n)}catch(e){return null}e.forEach(e=>{if(f.test(e)){if(!o||l.compare(e)===-1){o=e;l=new s(o,n)}}});return o};e.exports=o},2972:(e,r,n)=>{const s=n(9119);const i=n(502);const o=(e,r,n)=>{let o=null;let l=null;let f=null;try{f=new i(r,n)}catch(e){return null}e.forEach(e=>{if(f.test(e)){if(!o||l.compare(e)===1){o=e;l=new s(o,n)}}});return o};e.exports=o},7960:(e,r,n)=>{const s=n(9119);const i=n(502);const o=n(5230);const l=(e,r)=>{e=new i(e,r);let n=new s("0.0.0");if(e.test(n)){return n}n=new s("0.0.0-0");if(e.test(n)){return n}n=null;for(let r=0;r{const r=new s(e.semver.version);switch(e.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!l||o(r,l)){l=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}});if(l&&(!n||o(n,l)))n=l}if(n&&e.test(n)){return n}return null};e.exports=l},3848:(e,r,n)=>{const s=n(9119);const i=n(3195);const{ANY:o}=i;const l=n(502);const f=n(5069);const c=n(5230);const a=n(7525);const t=n(5072);const p=n(8063);const d=(e,r,n,d)=>{e=new s(e,d);r=new l(r,d);let g,h,u,v,E;switch(n){case">":g=c;h=t;u=a;v=">";E=">=";break;case"<":g=a;h=p;u=c;v="<";E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f(e,r,d)){return false}for(let n=0;n{if(e.semver===o){e=new i(">=0.0.0")}l=l||e;f=f||e;if(g(e.semver,l.semver,d)){l=e}else if(u(e.semver,f.semver,d)){f=e}});if(l.operator===v||l.operator===E){return false}if((!f.operator||f.operator===v)&&h(e,f.semver)){return false}else if(f.operator===E&&u(e,f.semver)){return false}}return true};e.exports=d},1696:(e,r,n)=>{const s=n(5069);const i=n(325);e.exports=((e,r,n)=>{const o=[];let l=null;let f=null;const c=e.sort((e,r)=>i(e,r,n));for(const e of c){const i=s(e,r,n);if(i){f=e;if(!l)l=e}else{if(f){o.push([l,f])}f=null;l=null}}if(l)o.push([l,null]);const a=[];for(const[e,r]of o){if(e===r)a.push(e);else if(!r&&e===c[0])a.push("*");else if(!r)a.push(`>=${e}`);else if(e===c[0])a.push(`<=${r}`);else a.push(`${e} - ${r}`)}const t=a.join(" || ");const p=typeof r.raw==="string"?r.raw:String(r);return t.length{const s=n(502);const i=n(3195);const{ANY:o}=i;const l=n(5069);const f=n(325);const c=(e,r,n={})=>{if(e===r)return true;e=new s(e,n);r=new s(r,n);let i=false;e:for(const s of e.set){for(const e of r.set){const r=a(s,e,n);i=i||r!==null;if(r)continue e}if(i)return false}return true};const a=(e,r,n)=>{if(e===r)return true;if(e.length===1&&e[0].semver===o){if(r.length===1&&r[0].semver===o)return true;else if(n.includePrerelease)e=[new i(">=0.0.0-0")];else e=[new i(">=0.0.0")]}if(r.length===1&&r[0].semver===o){if(n.includePrerelease)return true;else r=[new i(">=0.0.0")]}const s=new Set;let c,a;for(const r of e){if(r.operator===">"||r.operator===">=")c=t(c,r,n);else if(r.operator==="<"||r.operator==="<=")a=p(a,r,n);else s.add(r.semver)}if(s.size>1)return null;let d;if(c&&a){d=f(c.semver,a.semver,n);if(d>0)return null;else if(d===0&&(c.operator!==">="||a.operator!=="<="))return null}for(const e of s){if(c&&!l(e,String(c),n))return null;if(a&&!l(e,String(a),n))return null;for(const s of r){if(!l(e,String(s),n))return false}return true}let g,h;let u,v;let E=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:false;let w=c&&!n.includePrerelease&&c.semver.prerelease.length?c.semver:false;if(E&&E.prerelease.length===1&&a.operator==="<"&&E.prerelease[0]===0){E=false}for(const e of r){v=v||e.operator===">"||e.operator===">=";u=u||e.operator==="<"||e.operator==="<=";if(c){if(w){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch){w=false}}if(e.operator===">"||e.operator===">="){g=t(c,e,n);if(g===e&&g!==c)return false}else if(c.operator===">="&&!l(c.semver,String(e),n))return false}if(a){if(E){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch){E=false}}if(e.operator==="<"||e.operator==="<="){h=p(a,e,n);if(h===e&&h!==a)return false}else if(a.operator==="<="&&!l(a.semver,String(e),n))return false}if(!e.operator&&(a||c)&&d!==0)return false}if(c&&u&&!a&&d!==0)return false;if(a&&v&&!c&&d!==0)return false;if(w||E)return false;return true};const t=(e,r,n)=>{if(!e)return r;const s=f(e.semver,r.semver,n);return s>0?e:s<0?r:r.operator===">"&&e.operator===">="?r:e};const p=(e,r,n)=>{if(!e)return r;const s=f(e.semver,r.semver,n);return s<0?e:s>0?r:r.operator==="<"&&e.operator==="<="?r:e};e.exports=c},5485:(e,r,n)=>{const s=n(502);const i=(e,r)=>new s(e,r).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));e.exports=i},3160:(e,r,n)=>{const s=n(502);const i=(e,r)=>{try{return new s(e,r).range||"*"}catch(e){return null}};e.exports=i},3695:(e,r,n)=>{e.exports=n(2584)},2584:(e,r,n)=>{"use strict";var s=n(1631);var i=n(4016);var o=n(8605);var l=n(7211);var f=n(8614);var c=n(2357);var a=n(1669);r.httpOverHttp=httpOverHttp;r.httpsOverHttp=httpsOverHttp;r.httpOverHttps=httpOverHttps;r.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var r=new TunnelingAgent(e);r.request=o.request;return r}function httpsOverHttp(e){var r=new TunnelingAgent(e);r.request=o.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function httpOverHttps(e){var r=new TunnelingAgent(e);r.request=l.request;return r}function httpsOverHttps(e){var r=new TunnelingAgent(e);r.request=l.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function TunnelingAgent(e){var r=this;r.options=e||{};r.proxyOptions=r.options.proxy||{};r.maxSockets=r.options.maxSockets||o.Agent.defaultMaxSockets;r.requests=[];r.sockets=[];r.on("free",function onFree(e,n,s,i){var o=toOptions(n,s,i);for(var l=0,f=r.requests.length;l=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(r){r.on("free",onFree);r.on("close",onCloseOrRemove);r.on("agentRemove",onCloseOrRemove);e.onSocket(r);function onFree(){i.emit("free",r,o)}function onCloseOrRemove(e){i.removeSocket(r);r.removeListener("free",onFree);r.removeListener("close",onCloseOrRemove);r.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,r){var n=this;var s={};n.sockets.push(s);var i=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}t("making CONNECT request");var o=n.request(i);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,r,n){process.nextTick(function(){onConnect(e,r,n)})}function onConnect(i,l,f){o.removeAllListeners();l.removeAllListeners();if(i.statusCode!==200){t("tunneling socket could not be established, statusCode=%d",i.statusCode);l.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(s);return}if(f.length>0){t("got illegal response body from proxy");l.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(s);return}t("tunneling connection has established");n.sockets[n.sockets.indexOf(s)]=l;return r(l)}function onError(r){o.removeAllListeners();t("tunneling socket could not be established, cause=%s\n",r.message,r.stack);var i=new Error("tunneling socket could not be established, "+"cause="+r.message);i.code="ECONNRESET";e.request.emit("error",i);n.removeSocket(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var r=this.sockets.indexOf(e);if(r===-1){return}this.sockets.splice(r,1);var n=this.requests.shift();if(n){this.createSocket(n,function(e){n.request.onSocket(e)})}};function createSecureSocket(e,r){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,function(s){var o=e.request.getHeader("host");var l=mergeOptions({},n.options,{socket:s,servername:o?o.replace(/:.*$/,""):e.host});var f=i.connect(0,l);n.sockets[n.sockets.indexOf(s)]=f;r(f)})}function toOptions(e,r,n){if(typeof e==="string"){return{host:e,port:r,localAddress:n}}return e}function mergeOptions(e){for(var r=1,n=arguments.length;r{"use strict";Object.defineProperty(r,"__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""}r.getUserAgent=getUserAgent},8522:(e,r)=>{"use strict";r.fromCallback=function(e){return Object.defineProperty(function(...r){if(typeof r[r.length-1]==="function")e.apply(this,r);else{return new Promise((n,s)=>{e.call(this,...r,(e,r)=>e!=null?s(e):n(r))})}},"name",{value:e.name})};r.fromPromise=function(e){return Object.defineProperty(function(...r){const n=r[r.length-1];if(typeof n!=="function")return e.apply(this,r);else e.apply(this,r.slice(0,-1)).then(e=>n(null,e),n)},"name",{value:e.name})}},3786:function(e,r){(function(e,n){true?n(r):0})(this,function(e){"use strict";function merge(){for(var e=arguments.length,r=Array(e),n=0;n1){r[0]=r[0].slice(0,-1);var s=r.length-1;for(var i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var w=l-f;var m=Math.floor;var b=String.fromCharCode;function error$1(e){throw new RangeError(E[e])}function map(e,r){var n=[];var s=e.length;while(s--){n[s]=r(e[s])}return n}function mapDomain(e,r){var n=e.split("@");var s="";if(n.length>1){s=n[0]+"@";e=n[1]}e=e.replace(v,".");var i=e.split(".");var o=map(i,r).join(".");return s+o}function ucs2decode(e){var r=[];var n=0;var s=e.length;while(n=55296&&i<=56319&&n>1;e+=m(e/r);for(;e>w*c>>1;s+=l){e=m(e/w)}return m(s+(w+1)*e/(e+a))};var A=function decode(e){var r=[];var n=e.length;var s=0;var i=d;var a=p;var t=e.lastIndexOf(g);if(t<0){t=0}for(var h=0;h=128){error$1("not-basic")}r.push(e.charCodeAt(h))}for(var u=t>0?t+1:0;u=n){error$1("invalid-input")}var b=y(e.charCodeAt(u++));if(b>=l||b>m((o-s)/E)){error$1("overflow")}s+=b*E;var T=w<=a?f:w>=a+c?c:w-a;if(bm(o/O)){error$1("overflow")}E*=O}var A=r.length+1;a=R(s-v,A,v==0);if(m(s/A)>o-i){error$1("overflow")}i+=m(s/A);s%=A;r.splice(s++,0,i)}return String.fromCodePoint.apply(String,r)};var F=function encode(e){var r=[];e=ucs2decode(e);var n=e.length;var s=d;var i=0;var a=p;var t=true;var h=false;var u=undefined;try{for(var v=e[Symbol.iterator](),E;!(t=(E=v.next()).done);t=true){var w=E.value;if(w<128){r.push(b(w))}}}catch(e){h=true;u=e}finally{try{if(!t&&v.return){v.return()}}finally{if(h){throw u}}}var T=r.length;var y=T;if(T){r.push(g)}while(y=s&&Cm((o-i)/L)){error$1("overflow")}i+=(A-s)*L;s=A;var N=true;var x=false;var k=undefined;try{for(var D=e[Symbol.iterator](),U;!(N=(U=D.next()).done);N=true){var q=U.value;if(qo){error$1("overflow")}if(q==s){var B=i;for(var H=l;;H+=l){var z=H<=a?f:H>=a+c?c:H-a;if(B>6|192).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();else n="%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();return n}function pctDecChars(e){var r="";var n=0;var s=e.length;while(n=194&&i<224){if(s-n>=6){var o=parseInt(e.substr(n+4,2),16);r+=String.fromCharCode((i&31)<<6|o&63)}else{r+=e.substr(n,6)}n+=6}else if(i>=224){if(s-n>=9){var l=parseInt(e.substr(n+4,2),16);var f=parseInt(e.substr(n+7,2),16);r+=String.fromCharCode((i&15)<<12|(l&63)<<6|f&63)}else{r+=e.substr(n,9)}n+=9}else{r+=e.substr(n,3);n+=3}}return r}function _normalizeComponentEncoding(e,r){function decodeUnreserved(e){var n=pctDecChars(e);return!n.match(r.UNRESERVED)?e:n}if(e.scheme)e.scheme=String(e.scheme).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_USERINFO,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_HOST,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(r.PCT_ENCODED,decodeUnreserved).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_QUERY,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_FRAGMENT,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,r){var n=e.match(r.IPV4ADDRESS)||[];var i=s(n,2),o=i[1];if(o){return o.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,r){var n=e.match(r.IPV6ADDRESS)||[];var i=s(n,3),o=i[1],l=i[2];if(o){var f=o.toLowerCase().split("::").reverse(),c=s(f,2),a=c[0],t=c[1];var p=t?t.split(":").map(_stripLeadingZeros):[];var d=a.split(":").map(_stripLeadingZeros);var g=r.IPV4ADDRESS.test(d[d.length-1]);var h=g?7:8;var u=d.length-h;var v=Array(h);for(var E=0;E1){var T=v.slice(0,m.index);var y=v.slice(m.index+m.length);b=T.join(":")+"::"+y.join(":")}else{b=v.join(":")}if(l){b+="%"+l}return b}else{return e}}var C=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var L="".match(/(){0}/)[1]===undefined;function parse(e){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i={};var o=s.iri!==false?n:r;if(s.reference==="suffix")e=(s.scheme?s.scheme+":":"")+"//"+e;var l=e.match(C);if(l){if(L){i.scheme=l[1];i.userinfo=l[3];i.host=l[4];i.port=parseInt(l[5],10);i.path=l[6]||"";i.query=l[7];i.fragment=l[8];if(isNaN(i.port)){i.port=l[5]}}else{i.scheme=l[1]||undefined;i.userinfo=e.indexOf("@")!==-1?l[3]:undefined;i.host=e.indexOf("//")!==-1?l[4]:undefined;i.port=parseInt(l[5],10);i.path=l[6]||"";i.query=e.indexOf("?")!==-1?l[7]:undefined;i.fragment=e.indexOf("#")!==-1?l[8]:undefined;if(isNaN(i.port)){i.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?l[4]:undefined}}if(i.host){i.host=_normalizeIPv6(_normalizeIPv4(i.host,o),o)}if(i.scheme===undefined&&i.userinfo===undefined&&i.host===undefined&&i.port===undefined&&!i.path&&i.query===undefined){i.reference="same-document"}else if(i.scheme===undefined){i.reference="relative"}else if(i.fragment===undefined){i.reference="absolute"}else{i.reference="uri"}if(s.reference&&s.reference!=="suffix"&&s.reference!==i.reference){i.error=i.error||"URI is not a "+s.reference+" reference."}var f=S[(s.scheme||i.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!f||!f.unicodeSupport)){if(i.host&&(s.domainHost||f&&f.domainHost)){try{i.host=G.toASCII(i.host.replace(o.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(i,r)}else{_normalizeComponentEncoding(i,o)}if(f&&f.parse){f.parse(i,s)}}else{i.error=i.error||"URI can not be parsed."}return i}function _recomposeAuthority(e,s){var i=s.iri!==false?n:r;var o=[];if(e.userinfo!==undefined){o.push(e.userinfo);o.push("@")}if(e.host!==undefined){o.push(_normalizeIPv6(_normalizeIPv4(String(e.host),i),i).replace(i.IPV6ADDRESS,function(e,r,n){return"["+r+(n?"%25"+n:"")+"]"}))}if(typeof e.port==="number"||typeof e.port==="string"){o.push(":");o.push(String(e.port))}return o.length?o.join(""):undefined}var N=/^\.\.?\//;var x=/^\/\.(\/|$)/;var k=/^\/\.\.(\/|$)/;var D=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var r=[];while(e.length){if(e.match(N)){e=e.replace(N,"")}else if(e.match(x)){e=e.replace(x,"/")}else if(e.match(k)){e=e.replace(k,"/");r.pop()}else if(e==="."||e===".."){e=""}else{var n=e.match(D);if(n){var s=n[0];e=e.slice(s.length);r.push(s)}else{throw new Error("Unexpected dot segment condition")}}}return r.join("")}function serialize(e){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=s.iri?n:r;var o=[];var l=S[(s.scheme||e.scheme||"").toLowerCase()];if(l&&l.serialize)l.serialize(e,s);if(e.host){if(i.IPV6ADDRESS.test(e.host)){}else if(s.domainHost||l&&l.domainHost){try{e.host=!s.iri?G.toASCII(e.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase()):G.toUnicode(e.host)}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(!s.iri?"ASCII":"Unicode")+" via punycode: "+r}}}_normalizeComponentEncoding(e,i);if(s.reference!=="suffix"&&e.scheme){o.push(e.scheme);o.push(":")}var f=_recomposeAuthority(e,s);if(f!==undefined){if(s.reference!=="suffix"){o.push("//")}o.push(f);if(e.path&&e.path.charAt(0)!=="/"){o.push("/")}}if(e.path!==undefined){var c=e.path;if(!s.absolutePath&&(!l||!l.absolutePath)){c=removeDotSegments(c)}if(f===undefined){c=c.replace(/^\/\//,"/%2F")}o.push(c)}if(e.query!==undefined){o.push("?");o.push(e.query)}if(e.fragment!==undefined){o.push("#");o.push(e.fragment)}return o.join("")}function resolveComponents(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var s=arguments[3];var i={};if(!s){e=parse(serialize(e,n),n);r=parse(serialize(r,n),n)}n=n||{};if(!n.tolerant&&r.scheme){i.scheme=r.scheme;i.userinfo=r.userinfo;i.host=r.host;i.port=r.port;i.path=removeDotSegments(r.path||"");i.query=r.query}else{if(r.userinfo!==undefined||r.host!==undefined||r.port!==undefined){i.userinfo=r.userinfo;i.host=r.host;i.port=r.port;i.path=removeDotSegments(r.path||"");i.query=r.query}else{if(!r.path){i.path=e.path;if(r.query!==undefined){i.query=r.query}else{i.query=e.query}}else{if(r.path.charAt(0)==="/"){i.path=removeDotSegments(r.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){i.path="/"+r.path}else if(!e.path){i.path=r.path}else{i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path}i.path=removeDotSegments(i.path)}i.query=r.query}i.userinfo=e.userinfo;i.host=e.host;i.port=e.port}i.scheme=e.scheme}i.fragment=r.fragment;return i}function resolve(e,r,n){var s=assign({scheme:"null"},n);return serialize(resolveComponents(parse(e,s),parse(r,s),s,true),s)}function normalize(e,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=parse(serialize(e,r),r)}return e}function equal(e,r,n){if(typeof e==="string"){e=serialize(parse(e,n),n)}else if(typeOf(e)==="object"){e=serialize(e,n)}if(typeof r==="string"){r=serialize(parse(r,n),n)}else if(typeOf(r)==="object"){r=serialize(r,n)}return e===r}function escapeComponent(e,s){return e&&e.toString().replace(!s||!s.iri?r.ESCAPE:n.ESCAPE,pctEncChar)}function unescapeComponent(e,s){return e&&e.toString().replace(!s||!s.iri?r.PCT_ENCODED:n.PCT_ENCODED,pctDecChars)}var U={scheme:"http",domainHost:true,parse:function parse(e,r){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,r){var n=String(e.scheme).toLowerCase()==="https";if(e.port===(n?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var q={scheme:"https",domainHost:U.domainHost,parse:U.parse,serialize:U.serialize};function isSecure(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var B={scheme:"ws",domainHost:true,parse:function parse(e,r){var n=e;n.secure=isSecure(n);n.resourceName=(n.path||"/")+(n.query?"?"+n.query:"");n.path=undefined;n.query=undefined;return n},serialize:function serialize(e,r){if(e.port===(isSecure(e)?443:80)||e.port===""){e.port=undefined}if(typeof e.secure==="boolean"){e.scheme=e.secure?"wss":"ws";e.secure=undefined}if(e.resourceName){var n=e.resourceName.split("?"),i=s(n,2),o=i[0],l=i[1];e.path=o&&o!=="/"?o:undefined;e.query=l;e.resourceName=undefined}e.fragment=undefined;return e}};var H={scheme:"wss",domainHost:B.domainHost,parse:B.parse,serialize:B.serialize};var z={};var W=true;var Y="[A-Za-z0-9\\-\\.\\_\\~"+(W?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var X="[0-9A-Fa-f]";var Q=subexp(subexp("%[EFef]"+X+"%"+X+X+"%"+X+X)+"|"+subexp("%[89A-Fa-f]"+X+"%"+X+X)+"|"+subexp("%"+X+X));var J="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var Z="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var V=merge(Z,'[\\"\\\\]');var P="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var M=new RegExp(Y,"g");var K=new RegExp(Q,"g");var _=new RegExp(merge("[^]",J,"[\\.]",'[\\"]',V),"g");var $=new RegExp(merge("[^]",Y,P),"g");var ee=$;function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(M)?e:r}var re={scheme:"mailto",parse:function parse$$1(e,r){var n=e;var s=n.to=n.path?n.path.split(","):[];n.path=undefined;if(n.query){var i=false;var o={};var l=n.query.split("&");for(var f=0,c=l.length;f{var r=[];for(var n=0;n<256;++n){r[n]=(n+256).toString(16).substr(1)}function bytesToUuid(e,n){var s=n||0;var i=r;return[i[e[s++]],i[e[s++]],i[e[s++]],i[e[s++]],"-",i[e[s++]],i[e[s++]],"-",i[e[s++]],i[e[s++]],"-",i[e[s++]],i[e[s++]],"-",i[e[s++]],i[e[s++]],i[e[s++]],i[e[s++]],i[e[s++]],i[e[s++]]].join("")}e.exports=bytesToUuid},1750:(e,r,n)=>{var s=n(6417);e.exports=function nodeRNG(){return s.randomBytes(16)}},7777:(e,r,n)=>{var s=n(1750);var i=n(7437);function v4(e,r,n){var o=r&&n||0;if(typeof e=="string"){r=e==="binary"?new Array(16):null;e=null}e=e||{};var l=e.random||(e.rng||s)();l[6]=l[6]&15|64;l[8]=l[8]&63|128;if(r){for(var f=0;f<16;++f){r[o+f]=l[f]}}return r||i(l)}e.exports=v4},7145:e=>{e.exports=wrappy;function wrappy(e,r){if(e&&r)return wrappy(e)(r);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(r){wrapper[r]=e[r]});return wrapper;function wrapper(){var r=new Array(arguments.length);for(var n=0;n{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},7572:(e,r,n)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var r=this;if(!(r instanceof Yallist)){r=new Yallist}r.tail=null;r.head=null;r.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){r.push(e)})}else if(arguments.length>0){for(var n=0,s=arguments.length;n1){n=r}else if(this.head){s=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;s!==null;i++){n=e(n,s.value,i);s=s.next}return n};Yallist.prototype.reduceReverse=function(e,r){var n;var s=this.tail;if(arguments.length>1){n=r}else if(this.tail){s=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;s!==null;i--){n=e(n,s.value,i);s=s.prev}return n};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var r=0,n=this.head;n!==null;r++){e[r]=n.value;n=n.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var r=0,n=this.tail;n!==null;r++){e[r]=n.value;n=n.prev}return e};Yallist.prototype.slice=function(e,r){r=r||this.length;if(r<0){r+=this.length}e=e||0;if(e<0){e+=this.length}var n=new Yallist;if(rthis.length){r=this.length}for(var s=0,i=this.head;i!==null&&sthis.length){r=this.length}for(var s=this.length,i=this.tail;i!==null&&s>r;s--){i=i.prev}for(;i!==null&&s>e;s--,i=i.prev){n.push(i.value)}return n};Yallist.prototype.splice=function(e,r,...n){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var s=0,i=this.head;i!==null&&s{module.exports=eval("require")("encoding")},2706:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},1742:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},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")},1765:e=>{"use strict";e.exports=require("process")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},8213:e=>{"use strict";e.exports=require("timers")},4016:e=>{"use strict";e.exports=require("tls")},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){if(__webpack_module_cache__[e]){return __webpack_module_cache__[e].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__.ab=__dirname+"/";return __nccwpck_require__(6152)})(); \ No newline at end of file diff --git a/package.json b/package.json index f880e74..d289b9e 100644 --- a/package.json +++ b/package.json @@ -3,25 +3,29 @@ "scripts": { "build:schemas": "ts-schema-autogen generate", "build:ncc": "ncc build --minify --no-source-map-register --no-cache dist/tsc/index.js --out dist/", - "build": "pnpm run build:schemas && tsc && pnpm run build:ncc", + "build": "pnpm run build:schemas && tsc --skipLibCheck && pnpm run build:ncc", "start": "pnpm run build && sh ./run.sh" }, "dependencies": { - "node-fetch": "^2.6.1", + "@actions/core": "^1.5.0", + "@actions/tool-cache": "^1.7.1", + "@octokit/rest": "^18.10.0", + "@types/expand-tilde": "^2.0.0", + "@types/fs-extra": "^9.0.12", + "@types/js-yaml": "^4.0.3", + "@types/node": "^14.17.14", + "@types/node-fetch": "^2.5.12", + "ajv": "^6.12.6", "expand-tilde": "^2.0.2", - "js-yaml": "^4.0.0", - "ajv": "^6.12.5", "fs-extra": "^9.1.0", - "@actions/core": "^1.2.6", - "@types/expand-tilde": "^2.0.0", - "@types/node-fetch": "^2.5.8", - "@types/js-yaml": "^4.0.0", - "@types/fs-extra": "^9.0.8", - "@types/node": "^14.14.35" + "js-yaml": "^4.1.0", + "node-fetch": "^2.6.1", + "semver": "^7.3.5" }, "devDependencies": { - "typescript": "^4.2.3", "@ts-schema-autogen/cli": "^0.1.2", - "@vercel/ncc": "^0.27.0" + "@types/semver": "^7.3.8", + "@vercel/ncc": "^0.27.0", + "typescript": "^4.4.2" } -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f6f6e76..996e64c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,40 +1,195 @@ +lockfileVersion: 5.3 + +specifiers: + '@actions/core': ^1.5.0 + '@actions/tool-cache': ^1.7.1 + '@octokit/rest': ^18.10.0 + '@ts-schema-autogen/cli': ^0.1.2 + '@types/expand-tilde': ^2.0.0 + '@types/fs-extra': ^9.0.12 + '@types/js-yaml': ^4.0.3 + '@types/node': ^14.17.14 + '@types/node-fetch': ^2.5.12 + '@types/semver': ^7.3.8 + '@vercel/ncc': ^0.27.0 + ajv: ^6.12.6 + expand-tilde: ^2.0.2 + fs-extra: ^9.1.0 + js-yaml: ^4.1.0 + node-fetch: ^2.6.1 + semver: ^7.3.5 + typescript: ^4.4.2 + dependencies: - '@actions/core': 1.2.6 + '@actions/core': 1.5.0 + '@actions/tool-cache': 1.7.1 + '@octokit/rest': 18.10.0 '@types/expand-tilde': 2.0.0 - '@types/fs-extra': 9.0.8 - '@types/js-yaml': 4.0.0 - '@types/node': 14.14.35 - '@types/node-fetch': 2.5.8 + '@types/fs-extra': 9.0.12 + '@types/js-yaml': 4.0.3 + '@types/node': 14.17.14 + '@types/node-fetch': 2.5.12 ajv: 6.12.6 expand-tilde: 2.0.2 fs-extra: 9.1.0 - js-yaml: 4.0.0 + js-yaml: 4.1.0 node-fetch: 2.6.1 + semver: 7.3.5 + devDependencies: '@ts-schema-autogen/cli': 0.1.2 + '@types/semver': 7.3.8 '@vercel/ncc': 0.27.0 - typescript: 4.2.3 -lockfileVersion: 5.2 + typescript: 4.4.2 + packages: - /@actions/core/1.2.6: + + /@actions/core/1.5.0: + resolution: {integrity: sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ==} + dev: false + + /@actions/exec/1.1.0: + resolution: {integrity: sha512-LImpN9AY0J1R1mEYJjVJfSZWU4zYOlEcwSTgPve1rFQqK5AwrEs6uWW5Rv70gbDIQIAUwI86z6B+9mPK4w9Sbg==} + dependencies: + '@actions/io': 1.1.1 + dev: false + + /@actions/http-client/1.0.11: + resolution: {integrity: sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==} + dependencies: + tunnel: 0.0.6 + dev: false + + /@actions/io/1.1.1: + resolution: {integrity: sha512-Qi4JoKXjmE0O67wAOH6y0n26QXhMKMFo7GD/4IXNVcrtLjUlGjGuVys6pQgwF3ArfGTQu0XpqaNr0YhED2RaRA==} + dev: false + + /@actions/tool-cache/1.7.1: + resolution: {integrity: sha512-y1xxxOhXaBUIUit3lhepmu/0xdgiTMpnZRLmVdtF0hTm521doi+MdRRRP62czHvM7wxH6epj4JPNJQ3iJpOrkQ==} + dependencies: + '@actions/core': 1.5.0 + '@actions/exec': 1.1.0 + '@actions/http-client': 1.0.11 + '@actions/io': 1.1.1 + semver: 6.3.0 + uuid: 3.4.0 + dev: false + + /@octokit/auth-token/2.4.5: + resolution: {integrity: sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==} + dependencies: + '@octokit/types': 6.27.0 + dev: false + + /@octokit/core/3.5.1: + resolution: {integrity: sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw==} + dependencies: + '@octokit/auth-token': 2.4.5 + '@octokit/graphql': 4.8.0 + '@octokit/request': 5.6.1 + '@octokit/request-error': 2.1.0 + '@octokit/types': 6.27.0 + before-after-hook: 2.2.2 + universal-user-agent: 6.0.0 + dev: false + + /@octokit/endpoint/6.0.12: + resolution: {integrity: sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==} + dependencies: + '@octokit/types': 6.27.0 + is-plain-object: 5.0.0 + universal-user-agent: 6.0.0 + dev: false + + /@octokit/graphql/4.8.0: + resolution: {integrity: sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==} + dependencies: + '@octokit/request': 5.6.1 + '@octokit/types': 6.27.0 + universal-user-agent: 6.0.0 dev: false - resolution: - integrity: sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA== + + /@octokit/openapi-types/10.1.0: + resolution: {integrity: sha512-Nq5TMBwijRXco+Bm/Rq1n5maxxXsHLwd/Cm3lyNeOxbjyzAOSD0qmr4TwKCD4TN4rHZ7lq/tARuqSv/WJHF7IA==} + dev: false + + /@octokit/plugin-paginate-rest/2.16.0_@octokit+core@3.5.1: + resolution: {integrity: sha512-8YYzALPMvEZ35kgy5pdYvQ22Roz+BIuEaedO575GwE2vb/ACDqQn0xQrTJR4tnZCJn7pi8+AWPVjrFDaERIyXQ==} + peerDependencies: + '@octokit/core': '>=2' + dependencies: + '@octokit/core': 3.5.1 + '@octokit/types': 6.27.0 + dev: false + + /@octokit/plugin-request-log/1.0.4_@octokit+core@3.5.1: + resolution: {integrity: sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==} + peerDependencies: + '@octokit/core': '>=3' + dependencies: + '@octokit/core': 3.5.1 + dev: false + + /@octokit/plugin-rest-endpoint-methods/5.10.0_@octokit+core@3.5.1: + resolution: {integrity: sha512-HiUZliq5wNg15cevJlTo9zDnPXAD0BMRhLxbRNPnq9J3HELKesDTOiou56ax2jC/rECUkK/uJTugrizYKSo/jg==} + peerDependencies: + '@octokit/core': '>=3' + dependencies: + '@octokit/core': 3.5.1 + '@octokit/types': 6.27.0 + deprecation: 2.3.1 + dev: false + + /@octokit/request-error/2.1.0: + resolution: {integrity: sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==} + dependencies: + '@octokit/types': 6.27.0 + deprecation: 2.3.1 + once: 1.4.0 + dev: false + + /@octokit/request/5.6.1: + resolution: {integrity: sha512-Ls2cfs1OfXaOKzkcxnqw5MR6drMA/zWX/LIS/p8Yjdz7QKTPQLMsB3R+OvoxE6XnXeXEE2X7xe4G4l4X0gRiKQ==} + dependencies: + '@octokit/endpoint': 6.0.12 + '@octokit/request-error': 2.1.0 + '@octokit/types': 6.27.0 + is-plain-object: 5.0.0 + node-fetch: 2.6.1 + universal-user-agent: 6.0.0 + dev: false + + /@octokit/rest/18.10.0: + resolution: {integrity: sha512-esHR5OKy38bccL/sajHqZudZCvmv4yjovMJzyXlphaUo7xykmtOdILGJ3aAm0mFHmMLmPFmDMJXf39cAjNJsrw==} + dependencies: + '@octokit/core': 3.5.1 + '@octokit/plugin-paginate-rest': 2.16.0_@octokit+core@3.5.1 + '@octokit/plugin-request-log': 1.0.4_@octokit+core@3.5.1 + '@octokit/plugin-rest-endpoint-methods': 5.10.0_@octokit+core@3.5.1 + dev: false + + /@octokit/types/6.27.0: + resolution: {integrity: sha512-ha27f8DToxXBPEJdzHCCuqpw7AgKfjhWGdNf3yIlBAhAsaexBXTfWw36zNSsncALXGvJq4EjLy1p3Wz45Aqb4A==} + dependencies: + '@octokit/openapi-types': 10.1.0 + dev: false + /@ts-schema-autogen/cli/0.1.2: + resolution: {integrity: sha512-61aIkJh7RDDNLCQJtp++1pL/LWlPAI9dxgWyhXycyRm4TRaTVaRBOoxTVnN0IVT+akdhWeiXkhNkCzG6Vd5zAw==} + hasBin: true dependencies: '@ts-schema-autogen/main': 0.1.1 - '@types/fs-extra': 8.1.0 - '@types/node': 13.13.5 - '@types/yargs': 15.0.4 + '@types/fs-extra': 8.1.2 + '@types/node': 13.13.52 + '@types/yargs': 15.0.14 fs-extra: 8.1.0 - tslib: 1.11.2 + tslib: 1.14.1 typescript-json-schema: 0.42.0 - yargs: 15.3.1 + yargs: 15.4.1 dev: true - hasBin: true - resolution: - integrity: sha512-61aIkJh7RDDNLCQJtp++1pL/LWlPAI9dxgWyhXycyRm4TRaTVaRBOoxTVnN0IVT+akdhWeiXkhNkCzG6Vd5zAw== + /@ts-schema-autogen/lib/0.1.1: + resolution: {integrity: sha512-1oOQ9lbGnA3RVfIMiX1thvC0OEvTpvuTyLC6kwaBm8CnOBSFsxWUtoQ9ceyVe/otOqZL4SoucMmbJ3kOUnK7EQ==} dependencies: '@ts-schema-autogen/status': 0.1.1 '@ts-schema-autogen/types': 0.1.1 @@ -42,16 +197,16 @@ packages: '@ts-schema-autogen/validate': 0.1.1 '@tsfun/object': 0.0.17 '@tsfun/result': 0.0.16 - '@types/js-yaml': 3.12.3 - '@types/node': 13.13.5 + '@types/js-yaml': 3.12.7 + '@types/node': 13.13.52 better-path-join: 0.0.1 - fast-traverse: 0.1.6 - js-yaml: 3.13.1 - tslib: 1.11.2 + fast-traverse: 0.1.7 + js-yaml: 3.14.1 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-1oOQ9lbGnA3RVfIMiX1thvC0OEvTpvuTyLC6kwaBm8CnOBSFsxWUtoQ9ceyVe/otOqZL4SoucMmbJ3kOUnK7EQ== + /@ts-schema-autogen/main/0.1.1: + resolution: {integrity: sha512-IC193iebvbbERdx2DGugDq97ne4Fn+zXNVqTc40QuyTbzTGBES6+DnSfI3t1e2f/jX0xGT1e6pDMN8DbdrK1Hw==} dependencies: '@ts-schema-autogen/lib': 0.1.1 '@ts-schema-autogen/status': 0.1.1 @@ -59,427 +214,402 @@ packages: '@ts-schema-autogen/utils': 0.0.1 '@tsfun/object': 0.0.17 '@tsfun/pipe': 0.0.11 - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-IC193iebvbbERdx2DGugDq97ne4Fn+zXNVqTc40QuyTbzTGBES6+DnSfI3t1e2f/jX0xGT1e6pDMN8DbdrK1Hw== + /@ts-schema-autogen/schemas/0.1.1: + resolution: {integrity: sha512-cHzhHPJsCQbZCYetSpxRcIEB17MLDOUnuxZiuZ0Yn1BRS72qMwgXqCDckMgGuf9TAsfbkBxUiOIT0C8S7FPYyw==} dependencies: '@ts-schema-autogen/types': 0.1.1 - '@types/node': 13.13.5 - exec-once: 0.1.6 - tslib: 1.11.2 + '@types/node': 13.13.52 + exec-once: 0.1.8 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-cHzhHPJsCQbZCYetSpxRcIEB17MLDOUnuxZiuZ0Yn1BRS72qMwgXqCDckMgGuf9TAsfbkBxUiOIT0C8S7FPYyw== + /@ts-schema-autogen/status/0.1.1: + resolution: {integrity: sha512-zN5KSkk9HjrsgCRFiENYUL7K/fZvK/afQolfSDrqj3nnyuYzRazIn/i2fV5pgTrdEKG3fK/95Zznko7evtK2ow==} dependencies: '@ts-schema-autogen/types': 0.1.1 '@ts-schema-autogen/utils': 0.0.1 - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-zN5KSkk9HjrsgCRFiENYUL7K/fZvK/afQolfSDrqj3nnyuYzRazIn/i2fV5pgTrdEKG3fK/95Zznko7evtK2ow== + /@ts-schema-autogen/types/0.1.1: + resolution: {integrity: sha512-ePh2vU49xe8Tb4gXytOFDtI/dtSVzQpT1fp5WlyS4KwADZH4Gplj5c3M9t0m7bXl07qUVw5HnF7O6G7iliQ/XQ==} dependencies: '@ts-schema-autogen/utils': 0.0.1 - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 typescript-json-schema: 0.42.0 dev: true - resolution: - integrity: sha512-ePh2vU49xe8Tb4gXytOFDtI/dtSVzQpT1fp5WlyS4KwADZH4Gplj5c3M9t0m7bXl07qUVw5HnF7O6G7iliQ/XQ== + /@ts-schema-autogen/utils/0.0.1: + resolution: {integrity: sha512-ASFLu03+zcRBaVAeRCTP84WvuHxmpGiksORB8QpE3nOmWC9m+f/dDRTvgTq/t3bNIYVSe1vKs4LutXX5pjhdjA==} dependencies: - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-ASFLu03+zcRBaVAeRCTP84WvuHxmpGiksORB8QpE3nOmWC9m+f/dDRTvgTq/t3bNIYVSe1vKs4LutXX5pjhdjA== + /@ts-schema-autogen/validate/0.1.1: + resolution: {integrity: sha512-5h1xEHsCBk4JZeecLATpEDvCzuQifqA6YzmlEu2C1u8zEMNpv6Y49Yw7ABDGOnam8HQVdnCG6QggKVjVE4GyJQ==} dependencies: '@ts-schema-autogen/schemas': 0.1.1 '@ts-schema-autogen/types': 0.1.1 '@tsfun/result': 0.0.16 - '@types/node': 13.13.5 - ajv: 6.12.0 - exec-once: 0.1.6 - tslib: 1.11.2 + '@types/node': 13.13.52 + ajv: 6.12.6 + exec-once: 0.1.8 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-5h1xEHsCBk4JZeecLATpEDvCzuQifqA6YzmlEu2C1u8zEMNpv6Y49Yw7ABDGOnam8HQVdnCG6QggKVjVE4GyJQ== + /@tsfun/object/0.0.17: + resolution: {integrity: sha512-H/hRAlGWkoui1ZqIX2iPSQdK07mUF7QZwIkyY5SzwBIe1jVkSRNXmHtm9WvWMuoaGCr3peCZGXphximX3DEzig==} dependencies: - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 utility-types: 3.10.0 dev: true - resolution: - integrity: sha512-H/hRAlGWkoui1ZqIX2iPSQdK07mUF7QZwIkyY5SzwBIe1jVkSRNXmHtm9WvWMuoaGCr3peCZGXphximX3DEzig== + /@tsfun/pipe/0.0.11: + resolution: {integrity: sha512-jL88eyhDR/Pena+eBzY9bw8SOED9nET2QPNSgvXpz4XK9t2CBmwtu6YUPzdZCBG6RTSZoQV5VKmsXu4255qVaA==} + engines: {node: '>= 8.9.0'} dependencies: '@tsfun/tap': 0.0.10 - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - engines: - node: '>= 8.9.0' - resolution: - integrity: sha512-jL88eyhDR/Pena+eBzY9bw8SOED9nET2QPNSgvXpz4XK9t2CBmwtu6YUPzdZCBG6RTSZoQV5VKmsXu4255qVaA== + /@tsfun/prv-option-result-common/0.0.11: + resolution: {integrity: sha512-AIp2Oygr9WD12BG4p+fUEhyGtPnchRVALahzDab2eobkD2IhxRnHsKZh4J3v84faEIuXbnpdfALwGkzaOcgkPA==} + engines: {node: '>= 8.9.0'} dependencies: - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - engines: - node: '>= 8.9.0' - resolution: - integrity: sha512-AIp2Oygr9WD12BG4p+fUEhyGtPnchRVALahzDab2eobkD2IhxRnHsKZh4J3v84faEIuXbnpdfALwGkzaOcgkPA== + /@tsfun/prv-types/0.0.6: + resolution: {integrity: sha512-s97gvRX2SjGTdU+Odsi6RgsVFi+xNOx3T6Jew2mo7m7Wj6eJmM0HB0HlFPmwIIi2MtXIpSr71TZmRVcMeU3Atw==} dependencies: - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-s97gvRX2SjGTdU+Odsi6RgsVFi+xNOx3T6Jew2mo7m7Wj6eJmM0HB0HlFPmwIIi2MtXIpSr71TZmRVcMeU3Atw== + /@tsfun/result/0.0.16: + resolution: {integrity: sha512-lUpVISAm0RUxRdyVUuAOLBe7ArdrQkepdLz4nML0a/2/WvrDsAIn2PIdRL3eZXqqdyhS2dy+ot5E5vc/RNWOEQ==} + engines: {node: '>= 8.9.0'} dependencies: '@tsfun/prv-option-result-common': 0.0.11 '@tsfun/prv-types': 0.0.6 '@tsfun/tap': 0.0.10 - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - engines: - node: '>= 8.9.0' - resolution: - integrity: sha512-lUpVISAm0RUxRdyVUuAOLBe7ArdrQkepdLz4nML0a/2/WvrDsAIn2PIdRL3eZXqqdyhS2dy+ot5E5vc/RNWOEQ== + /@tsfun/tap/0.0.10: + resolution: {integrity: sha512-ArfW5g+1BxUXhqWOCOceiR3iviWn6PvDjOHzSBCCw3luYlVJ8JwYMcvj9ZXITBbP33uM8NKbxwzjRGGVckXLdg==} dependencies: - '@types/node': 13.13.5 - tslib: 1.11.2 - dev: true - resolution: - integrity: sha512-ArfW5g+1BxUXhqWOCOceiR3iviWn6PvDjOHzSBCCw3luYlVJ8JwYMcvj9ZXITBbP33uM8NKbxwzjRGGVckXLdg== - /@types/color-name/1.1.1: + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== + /@types/expand-tilde/2.0.0: + resolution: {integrity: sha512-17h/6MRHoetV2QVUVnUfrmaFCXNIFJ3uDJmXlklX2xDtlEb1W0OXLgP+qwND2Ibg/PtQfQi0vx19KGuPayjLiw==} dev: false - resolution: - integrity: sha512-17h/6MRHoetV2QVUVnUfrmaFCXNIFJ3uDJmXlklX2xDtlEb1W0OXLgP+qwND2Ibg/PtQfQi0vx19KGuPayjLiw== - /@types/fs-extra/8.1.0: + + /@types/fs-extra/8.1.2: + resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 13.13.5 + '@types/node': 14.17.14 dev: true - resolution: - integrity: sha512-UoOfVEzAUpeSPmjm7h1uk5MH6KZma2z2O7a75onTGjnNvAvMVrPzPL/vBbT65iIGHWj6rokwfmYcmxmlSf2uwg== - /@types/fs-extra/9.0.8: + + /@types/fs-extra/9.0.12: + resolution: {integrity: sha512-I+bsBr67CurCGnSenZZ7v94gd3tc3+Aj2taxMT4yu4ABLuOgOjeFxX3dokG24ztSRg5tnT00sL8BszO7gSMoIw==} dependencies: - '@types/node': 14.14.35 + '@types/node': 14.17.14 dev: false - resolution: - integrity: sha512-bnlTVTwq03Na7DpWxFJ1dvnORob+Otb8xHyUqUWhqvz/Ksg8+JXPlR52oeMSZ37YEOa5PyccbgUNutiQdi13TA== - /@types/js-yaml/3.12.3: + + /@types/js-yaml/3.12.7: + resolution: {integrity: sha512-S6+8JAYTE1qdsc9HMVsfY7+SgSuUU/Tp6TYTmITW0PZxiyIMvol3Gy//y69Wkhs0ti4py5qgR3uZH6uz/DNzJQ==} dev: true - resolution: - integrity: sha512-otRe77JNNWzoVGLKw8TCspKswRoQToys4tuL6XYVBFxjgeM0RUrx7m3jkaTdxILxeGry3zM8mGYkGXMeQ02guA== - /@types/js-yaml/4.0.0: + + /@types/js-yaml/4.0.3: + resolution: {integrity: sha512-5t9BhoORasuF5uCPr+d5/hdB++zRFUTMIZOzbNkr+jZh3yQht4HYbRDyj9fY8n2TZT30iW9huzav73x4NikqWg==} dev: false - resolution: - integrity: sha512-4vlpCM5KPCL5CfGmTbpjwVKbISRYhduEJvvUWsH5EB7QInhEj94XPZ3ts/9FPiLZFqYO0xoW4ZL8z2AabTGgJA== - /@types/json-schema/7.0.4: + + /@types/json-schema/7.0.9: + resolution: {integrity: sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==} dev: true - resolution: - integrity: sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA== - /@types/node-fetch/2.5.8: + + /@types/node-fetch/2.5.12: + resolution: {integrity: sha512-MKgC4dlq4kKNa/mYrwpKfzQMB5X3ee5U6fSprkKpToBqBmX4nFZL9cW5jl6sWn+xpRJ7ypWh2yyqqr8UUCstSw==} dependencies: - '@types/node': 14.14.35 - form-data: 3.0.0 + '@types/node': 14.17.14 + form-data: 3.0.1 dev: false - resolution: - integrity: sha512-fbjI6ja0N5ZA8TV53RUqzsKNkl9fv8Oj3T7zxW7FGv1GSH7gwJaNF8dzCjrqKaxKeUpTz4yT1DaJFq/omNpGfw== - /@types/node/13.13.5: + + /@types/node/13.13.52: + resolution: {integrity: sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ==} dev: true - resolution: - integrity: sha512-3ySmiBYJPqgjiHA7oEaIo2Rzz0HrOZ7yrNO5HWyaE5q0lQ3BppDZ3N53Miz8bw2I7gh1/zir2MGVZBvpb1zq9g== - /@types/node/14.14.35: - dev: false - resolution: - integrity: sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag== - /@types/yargs-parser/15.0.0: + + /@types/node/14.17.14: + resolution: {integrity: sha512-rsAj2u8Xkqfc332iXV12SqIsjVi07H479bOP4q94NAcjzmAvapumEhuVIt53koEf7JFrpjgNKjBga5Pnn/GL8A==} + + /@types/semver/7.3.8: + resolution: {integrity: sha512-D/2EJvAlCEtYFEYmmlGwbGXuK886HzyCc3nZX/tkFTQdEU8jZDAgiv08P162yB17y4ZXZoq7yFAnW4GDBb9Now==} + dev: true + + /@types/yargs-parser/20.2.1: + resolution: {integrity: sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw==} dev: true - resolution: - integrity: sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw== - /@types/yargs/15.0.4: + + /@types/yargs/15.0.14: + resolution: {integrity: sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==} dependencies: - '@types/yargs-parser': 15.0.0 + '@types/yargs-parser': 20.2.1 dev: true - resolution: - integrity: sha512-9T1auFmbPZoxHz0enUFlUuKRy3it01R+hlggyVUMtnCTQRunsQYifnSGb8hET4Xo8yiC0o0r1paW3ud5+rbURg== + /@vercel/ncc/0.27.0: - dev: true + resolution: {integrity: sha512-DllIJQapnU2YwewIhh/4dYesmMQw3h2cFtabECc/zSJHqUbNa0eJuEkRa6DXbZvh1YPWBtYQoPV17NlDpBw1Vw==} hasBin: true - resolution: - integrity: sha512-DllIJQapnU2YwewIhh/4dYesmMQw3h2cFtabECc/zSJHqUbNa0eJuEkRa6DXbZvh1YPWBtYQoPV17NlDpBw1Vw== - /ajv/6.12.0: - dependencies: - fast-deep-equal: 3.1.1 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.2.2 dev: true - resolution: - integrity: sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw== + /ajv/6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} dependencies: - fast-deep-equal: 3.1.1 + fast-deep-equal: 3.1.3 fast-json-stable-stringify: 2.1.0 json-schema-traverse: 0.4.1 - uri-js: 4.2.2 - dev: false - resolution: - integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + uri-js: 4.4.1 + /ansi-regex/4.1.0: + resolution: {integrity: sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==} + engines: {node: '>=6'} dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== + /ansi-regex/5.0.0: + resolution: {integrity: sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==} + engines: {node: '>=8'} dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== + /ansi-styles/3.2.1: + resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} + engines: {node: '>=4'} dependencies: color-convert: 1.9.3 dev: true - engines: - node: '>=4' - resolution: - integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - /ansi-styles/4.2.1: + + /ansi-styles/4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} dependencies: - '@types/color-name': 1.1.1 color-convert: 2.0.1 dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== + /argparse/1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} dependencies: sprintf-js: 1.0.3 dev: true - resolution: - integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + /argparse/2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} dev: false - resolution: - integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + /asynckit/0.4.0: + resolution: {integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=} dev: false - resolution: - integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k= + /at-least-node/1.0.0: + resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} + engines: {node: '>= 4.0.0'} dev: false - engines: - node: '>= 4.0.0' - resolution: - integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - /balanced-match/1.0.0: + + /balanced-match/1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} dev: true - resolution: - integrity: sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + + /before-after-hook/2.2.2: + resolution: {integrity: sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==} + dev: false + /better-path-join/0.0.1: + resolution: {integrity: sha512-JIv4V7rh19/Hg0O5I0l8eSobC3F+aUWaL9D9QQKAKFw4Qj+whdRrlRejrYICPS2NEJ/2vsDjhKur3iFhQf49QQ==} dependencies: - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 13.13.52 + tslib: 1.14.1 dev: true - resolution: - integrity: sha512-JIv4V7rh19/Hg0O5I0l8eSobC3F+aUWaL9D9QQKAKFw4Qj+whdRrlRejrYICPS2NEJ/2vsDjhKur3iFhQf49QQ== + /brace-expansion/1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} dependencies: - balanced-match: 1.0.0 + balanced-match: 1.0.2 concat-map: 0.0.1 dev: true - resolution: - integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + /camelcase/5.3.1: + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + /cliui/5.0.0: + resolution: {integrity: sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==} dependencies: string-width: 3.1.0 strip-ansi: 5.2.0 wrap-ansi: 5.1.0 dev: true - resolution: - integrity: sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== + /cliui/6.0.0: + resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} dependencies: - string-width: 4.2.0 + string-width: 4.2.2 strip-ansi: 6.0.0 wrap-ansi: 6.2.0 dev: true - resolution: - integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + /color-convert/1.9.3: + resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: color-name: 1.1.3 dev: true - resolution: - integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + /color-convert/2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} dependencies: color-name: 1.1.4 dev: true - engines: - node: '>=7.0.0' - resolution: - integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + /color-name/1.1.3: + resolution: {integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=} dev: true - resolution: - integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + /color-name/1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true - resolution: - integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + /combined-stream/1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} dependencies: delayed-stream: 1.0.0 dev: false - engines: - node: '>= 0.8' - resolution: - integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + /concat-map/0.0.1: + resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} dev: true - resolution: - integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + /decamelize/1.2.0: + resolution: {integrity: sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=} + engines: {node: '>=0.10.0'} dev: true - engines: - node: '>=0.10.0' - resolution: - integrity: sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + /delayed-stream/1.0.0: + resolution: {integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=} + engines: {node: '>=0.4.0'} + dev: false + + /deprecation/2.3.1: + resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==} dev: false - engines: - node: '>=0.4.0' - resolution: - integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + /emoji-regex/7.0.3: + resolution: {integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==} dev: true - resolution: - integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + /emoji-regex/8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} dev: true - resolution: - integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + /esprima/4.0.1: - dev: true - engines: - node: '>=4' + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} hasBin: true - resolution: - integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - /exec-once/0.1.6: + dev: true + + /exec-once/0.1.8: + resolution: {integrity: sha512-zv8nmN+jF366nAEuNgOh5U2owy5MMkv+N1LCp1utCH63ujSXr92H3x2lDR+Mstm9xNmXNlo45W/Ch+TrN1jAdw==} dependencies: - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 14.17.14 + tslib: 2.3.1 dev: true - resolution: - integrity: sha512-DMCRTmVoGgGJLS+Z7NfaV53QiQTi8XedoBNVWsl5S7ZQGgt587MOKqlu8k/ybtkEEVjkl4RjO4REOJv4v2ZBxw== + /expand-tilde/2.0.2: + resolution: {integrity: sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=} + engines: {node: '>=0.10.0'} dependencies: homedir-polyfill: 1.0.3 dev: false - engines: - node: '>=0.10.0' - resolution: - integrity: sha1-l+gBqgUt8CRU3kawK/YhZCzchQI= - /fast-deep-equal/3.1.1: - resolution: - integrity: sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA== + + /fast-deep-equal/3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + /fast-json-stable-stringify/2.1.0: - resolution: - integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - /fast-traverse/0.1.6: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + /fast-traverse/0.1.7: + resolution: {integrity: sha512-gZTQvJSgrGV24F8AeeTNxip8OEkjRHwDDpGw0b51TzRVGjJsKzh6CuHf9ltVjJZzni5Ead+EEQJ0IFCuoCJUtA==} dependencies: - '@types/node': 13.13.5 - tslib: 1.11.2 + '@types/node': 14.17.14 + tslib: 2.3.1 dev: true - resolution: - integrity: sha512-/5Ati6Qr9r++gG4R6ANxYH8RxQkZTrUDQF6EuSShgJCIrluPrvVSQRDpVl6SA4V/5nFALlF15OfXG1A3U3U6Mw== + /find-up/3.0.0: + resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} + engines: {node: '>=6'} dependencies: locate-path: 3.0.0 dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + /find-up/4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} dependencies: locate-path: 5.0.0 path-exists: 4.0.0 dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - /form-data/3.0.0: + + /form-data/3.0.1: + resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} + engines: {node: '>= 6'} dependencies: asynckit: 0.4.0 combined-stream: 1.0.8 - mime-types: 2.1.27 + mime-types: 2.1.32 dev: false - engines: - node: '>= 6' - resolution: - integrity: sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg== + /fs-extra/8.1.0: + resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} + engines: {node: '>=6 <7 || >=8'} dependencies: - graceful-fs: 4.2.3 + graceful-fs: 4.2.8 jsonfile: 4.0.0 universalify: 0.1.2 dev: true - engines: - node: '>=6 <7 || >=8' - resolution: - integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + /fs-extra/9.1.0: + resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} + engines: {node: '>=10'} dependencies: at-least-node: 1.0.0 - graceful-fs: 4.2.3 + graceful-fs: 4.2.8 jsonfile: 6.1.0 universalify: 2.0.0 dev: false - engines: - node: '>=10' - resolution: - integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== + /fs.realpath/1.0.0: + resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=} dev: true - resolution: - integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + /get-caller-file/2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} dev: true - engines: - node: 6.* || 8.* || >= 10.* - resolution: - integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - /glob/7.1.6: + + /glob/7.1.7: + resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==} dependencies: fs.realpath: 1.0.0 inflight: 1.0.6 @@ -488,347 +618,363 @@ packages: once: 1.4.0 path-is-absolute: 1.0.1 dev: true - resolution: - integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - /graceful-fs/4.2.3: - resolution: - integrity: sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== + + /graceful-fs/4.2.8: + resolution: {integrity: sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==} + /homedir-polyfill/1.0.3: + resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} + engines: {node: '>=0.10.0'} dependencies: parse-passwd: 1.0.0 dev: false - engines: - node: '>=0.10.0' - resolution: - integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA== + /inflight/1.0.6: + resolution: {integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=} dependencies: once: 1.4.0 wrappy: 1.0.2 dev: true - resolution: - integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + /inherits/2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} dev: true - resolution: - integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + /is-fullwidth-code-point/2.0.0: + resolution: {integrity: sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=} + engines: {node: '>=4'} dev: true - engines: - node: '>=4' - resolution: - integrity: sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + /is-fullwidth-code-point/3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - /js-yaml/3.13.1: + + /is-plain-object/5.0.0: + resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==} + engines: {node: '>=0.10.0'} + dev: false + + /js-yaml/3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true dependencies: argparse: 1.0.10 esprima: 4.0.1 dev: true + + /js-yaml/4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true - resolution: - integrity: sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== - /js-yaml/4.0.0: dependencies: argparse: 2.0.1 dev: false - hasBin: true - resolution: - integrity: sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q== + /json-schema-traverse/0.4.1: - resolution: - integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + /json-stable-stringify/1.0.1: + resolution: {integrity: sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=} dependencies: jsonify: 0.0.0 dev: true - resolution: - integrity: sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8= + /jsonfile/4.0.0: - dev: true + resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=} optionalDependencies: - graceful-fs: 4.2.3 - resolution: - integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + graceful-fs: 4.2.8 + dev: true + /jsonfile/6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} dependencies: universalify: 2.0.0 - dev: false optionalDependencies: - graceful-fs: 4.2.3 - resolution: - integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + graceful-fs: 4.2.8 + dev: false + /jsonify/0.0.0: + resolution: {integrity: sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=} dev: true - resolution: - integrity: sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM= + /locate-path/3.0.0: + resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} + engines: {node: '>=6'} dependencies: p-locate: 3.0.0 path-exists: 3.0.0 dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + /locate-path/5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} dependencies: p-locate: 4.1.0 dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - /mime-db/1.44.0: + + /lru-cache/6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} + dependencies: + yallist: 4.0.0 dev: false - engines: - node: '>= 0.6' - resolution: - integrity: sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg== - /mime-types/2.1.27: + + /mime-db/1.49.0: + resolution: {integrity: sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==} + engines: {node: '>= 0.6'} + dev: false + + /mime-types/2.1.32: + resolution: {integrity: sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==} + engines: {node: '>= 0.6'} dependencies: - mime-db: 1.44.0 + mime-db: 1.49.0 dev: false - engines: - node: '>= 0.6' - resolution: - integrity: sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w== + /minimatch/3.0.4: + resolution: {integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==} dependencies: brace-expansion: 1.1.11 dev: true - resolution: - integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + /node-fetch/2.6.1: + resolution: {integrity: sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==} + engines: {node: 4.x || >=6.0.0} dev: false - engines: - node: 4.x || >=6.0.0 - resolution: - integrity: sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== + /once/1.4.0: + resolution: {integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=} dependencies: wrappy: 1.0.2 - dev: true - resolution: - integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + /p-limit/2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} dependencies: p-try: 2.2.0 dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + /p-locate/3.0.0: + resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==} + engines: {node: '>=6'} dependencies: p-limit: 2.3.0 dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + /p-locate/4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} dependencies: p-limit: 2.3.0 dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + /p-try/2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + /parse-passwd/1.0.0: + resolution: {integrity: sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=} + engines: {node: '>=0.10.0'} dev: false - engines: - node: '>=0.10.0' - resolution: - integrity: sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY= + /path-exists/3.0.0: + resolution: {integrity: sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=} + engines: {node: '>=4'} dev: true - engines: - node: '>=4' - resolution: - integrity: sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + /path-exists/4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + /path-is-absolute/1.0.1: + resolution: {integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=} + engines: {node: '>=0.10.0'} dev: true - engines: - node: '>=0.10.0' - resolution: - integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + /punycode/2.1.1: - engines: - node: '>=6' - resolution: - integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} + engines: {node: '>=6'} + /require-directory/2.1.1: + resolution: {integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I=} + engines: {node: '>=0.10.0'} dev: true - engines: - node: '>=0.10.0' - resolution: - integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + /require-main-filename/2.0.0: + resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} dev: true - resolution: - integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + + /semver/6.3.0: + resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} + hasBin: true + dev: false + + /semver/7.3.5: + resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: false + /set-blocking/2.0.0: + resolution: {integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=} dev: true - resolution: - integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + /sprintf-js/1.0.3: + resolution: {integrity: sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=} dev: true - resolution: - integrity: sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + /string-width/3.1.0: + resolution: {integrity: sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==} + engines: {node: '>=6'} dependencies: emoji-regex: 7.0.3 is-fullwidth-code-point: 2.0.0 strip-ansi: 5.2.0 dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== - /string-width/4.2.0: + + /string-width/4.2.2: + resolution: {integrity: sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==} + engines: {node: '>=8'} dependencies: emoji-regex: 8.0.0 is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.0 dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== + /strip-ansi/5.2.0: + resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==} + engines: {node: '>=6'} dependencies: ansi-regex: 4.1.0 dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + /strip-ansi/6.0.0: + resolution: {integrity: sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==} + engines: {node: '>=8'} dependencies: ansi-regex: 5.0.0 dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== - /tslib/1.11.2: + + /tslib/1.14.1: + resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} + dev: true + + /tslib/2.3.1: + resolution: {integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==} dev: true - resolution: - integrity: sha512-tTSkux6IGPnUGUd1XAZHcpu85MOkIl5zX49pO+jfsie3eP0B6pyhOlLXm3cAC6T7s+euSDDUUV+Acop5WmtkVg== + + /tunnel/0.0.6: + resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==} + engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} + dev: false + /typescript-json-schema/0.42.0: + resolution: {integrity: sha512-9WO+lVmlph7Ecb7lPd9tU84XFUQh44kpAf3cWe/Ym4G5EKw/SS6XGpi1DZDthvxqkIdNSDlWi7FhKfxuIV/3yw==} + hasBin: true dependencies: - '@types/json-schema': 7.0.4 - glob: 7.1.6 + '@types/json-schema': 7.0.9 + glob: 7.1.7 json-stable-stringify: 1.0.1 - typescript: 3.8.3 + typescript: 3.9.10 yargs: 14.2.3 dev: true + + /typescript/3.9.10: + resolution: {integrity: sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==} + engines: {node: '>=4.2.0'} hasBin: true - resolution: - integrity: sha512-9WO+lVmlph7Ecb7lPd9tU84XFUQh44kpAf3cWe/Ym4G5EKw/SS6XGpi1DZDthvxqkIdNSDlWi7FhKfxuIV/3yw== - /typescript/3.8.3: dev: true - engines: - node: '>=4.2.0' + + /typescript/4.4.2: + resolution: {integrity: sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==} + engines: {node: '>=4.2.0'} hasBin: true - resolution: - integrity: sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== - /typescript/4.2.3: dev: true - engines: - node: '>=4.2.0' - hasBin: true - resolution: - integrity: sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw== + + /universal-user-agent/6.0.0: + resolution: {integrity: sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==} + dev: false + /universalify/0.1.2: + resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} + engines: {node: '>= 4.0.0'} dev: true - engines: - node: '>= 4.0.0' - resolution: - integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + /universalify/2.0.0: + resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} + engines: {node: '>= 10.0.0'} dev: false - engines: - node: '>= 10.0.0' - resolution: - integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== - /uri-js/4.2.2: + + /uri-js/4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: punycode: 2.1.1 - resolution: - integrity: sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + /utility-types/3.10.0: + resolution: {integrity: sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==} + engines: {node: '>= 4'} dev: true - engines: - node: '>= 4' - resolution: - integrity: sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg== + + /uuid/3.4.0: + resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==} + deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. + hasBin: true + dev: false + /which-module/2.0.0: + resolution: {integrity: sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=} dev: true - resolution: - integrity: sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + /wrap-ansi/5.1.0: + resolution: {integrity: sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==} + engines: {node: '>=6'} dependencies: ansi-styles: 3.2.1 string-width: 3.1.0 strip-ansi: 5.2.0 dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== + /wrap-ansi/6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} dependencies: - ansi-styles: 4.2.1 - string-width: 4.2.0 + ansi-styles: 4.3.0 + string-width: 4.2.2 strip-ansi: 6.0.0 dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + /wrappy/1.0.2: - dev: true - resolution: - integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - /y18n/4.0.0: - dev: true - resolution: - integrity: sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== - /yargs-parser/15.0.1: + resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=} + + /y18n/4.0.3: + resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} + dev: true + + /yallist/4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: false + + /yargs-parser/15.0.3: + resolution: {integrity: sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA==} dependencies: camelcase: 5.3.1 decamelize: 1.2.0 dev: true - resolution: - integrity: sha512-0OAMV2mAZQrs3FkNpDQcBk1x5HXb8X4twADss4S0Iuk+2dGnLOE/fRHrsYm542GduMveyA77OF4wrNJuanRCWw== + /yargs-parser/18.1.3: + resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} + engines: {node: '>=6'} dependencies: camelcase: 5.3.1 decamelize: 1.2.0 dev: true - engines: - node: '>=6' - resolution: - integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + /yargs/14.2.3: + resolution: {integrity: sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg==} dependencies: cliui: 5.0.0 decamelize: 1.2.0 @@ -839,12 +985,13 @@ packages: set-blocking: 2.0.0 string-width: 3.1.0 which-module: 2.0.0 - y18n: 4.0.0 - yargs-parser: 15.0.1 + y18n: 4.0.3 + yargs-parser: 15.0.3 dev: true - resolution: - integrity: sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg== - /yargs/15.3.1: + + /yargs/15.4.1: + resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} + engines: {node: '>=8'} dependencies: cliui: 6.0.0 decamelize: 1.2.0 @@ -853,27 +1000,8 @@ packages: require-directory: 2.1.1 require-main-filename: 2.0.0 set-blocking: 2.0.0 - string-width: 4.2.0 + string-width: 4.2.2 which-module: 2.0.0 - y18n: 4.0.0 + y18n: 4.0.3 yargs-parser: 18.1.3 dev: true - engines: - node: '>=8' - resolution: - integrity: sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA== -specifiers: - '@actions/core': ^1.2.6 - '@ts-schema-autogen/cli': ^0.1.2 - '@types/expand-tilde': ^2.0.0 - '@types/fs-extra': ^9.0.8 - '@types/js-yaml': ^4.0.0 - '@types/node': ^14.14.35 - '@types/node-fetch': ^2.5.8 - '@vercel/ncc': ^0.27.0 - ajv: ^6.12.5 - expand-tilde: ^2.0.2 - fs-extra: ^9.1.0 - js-yaml: ^4.0.0 - node-fetch: ^2.6.1 - typescript: ^4.2.3 diff --git a/src/index.ts b/src/index.ts index ecea472..c24579b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,22 +1,18 @@ -import { setFailed, saveState, getState } from '@actions/core' -import getInputs from './inputs' -import setOutputs from './outputs' -import installPnpm from './install-pnpm' -import pnpmInstall from './pnpm-install' -import pruneStore from './pnpm-store-prune' +import { setFailed } from "@actions/core"; +import getInputs from "./inputs"; +import setOutputs from "./outputs"; +import installPnpm from "./install-pnpm"; +import pnpmInstall from "./pnpm-install"; async function main() { - const inputs = getInputs() - const isPost = getState('is_post') - if (isPost === 'true') return pruneStore(inputs) - saveState('is_post', 'true') - await installPnpm(inputs) - console.log('Installation Completed!') - setOutputs(inputs) - pnpmInstall(inputs) + const inputs = getInputs(); + const installLoc = await installPnpm(inputs); + console.log("Installation Completed!"); + setOutputs(installLoc); + pnpmInstall(inputs, installLoc); } -main().catch(error => { - console.error(error) - setFailed(error) -}) +main().catch((error) => { + console.error(error); + setFailed(error); +}); diff --git a/src/inputs/index.ts b/src/inputs/index.ts index 142fcae..074815d 100644 --- a/src/inputs/index.ts +++ b/src/inputs/index.ts @@ -1,23 +1,19 @@ -import { getInput, InputOptions } from '@actions/core' -import expandTilde from 'expand-tilde' -import { RunInstall, parseRunInstall } from './run-install' +import { getInput } from "@actions/core"; +import expandTilde from "expand-tilde"; +import { RunInstall, parseRunInstall } from "./run-install"; export interface Inputs { - readonly version: string - readonly dest: string - readonly runInstall: RunInstall[] + readonly version?: string; + readonly dest: string; + readonly runInstall: RunInstall[]; } -const options: InputOptions = { - required: true, +export function getInputs(): Inputs { + const dest = expandTilde(getInput("dest")); + let version: string | undefined = getInput("version"); + if (version === "") version = undefined; + const runInstall = parseRunInstall(getInput("run_install")); + return { version, dest, runInstall }; } -const parseInputPath = (name: string) => expandTilde(getInput(name, options)) - -export const getInputs = (): Inputs => ({ - version: getInput('version', options), - dest: parseInputPath('dest'), - runInstall: parseRunInstall('run_install'), -}) - -export default getInputs +export default getInputs; diff --git a/src/inputs/run-install.ts b/src/inputs/run-install.ts index a24ed3d..3b94a84 100644 --- a/src/inputs/run-install.ts +++ b/src/inputs/run-install.ts @@ -1,39 +1,34 @@ -import process from 'process' -import { load } from 'js-yaml' -import Ajv from 'ajv' -import { getInput, error, InputOptions } from '@actions/core' -import runInstallSchema from './run-install-input.schema.json' +import process from "process"; +import { load } from "js-yaml"; +import Ajv from "ajv"; +import { getInput, error } from "@actions/core"; +import runInstallSchema from "./run-install-input.schema.json"; export interface RunInstall { - readonly recursive?: boolean - readonly cwd?: string - readonly args?: readonly string[] + readonly recursive?: boolean; + readonly cwd?: string; + readonly args?: readonly string[]; } -export type RunInstallInput = - | null - | boolean - | RunInstall - | RunInstall[] - -const options: InputOptions = { - required: true, -} +export type RunInstallInput = null | boolean | RunInstall | RunInstall[]; export function parseRunInstall(name: string): RunInstall[] { - const result: RunInstallInput = load(getInput(name, options)) as any + const runInstall = getInput(name, { required: false }); + if (runInstall === "") return []; + + const result: RunInstallInput = load(runInstall) as any; const ajv = new Ajv({ allErrors: true, - }) - const validate = ajv.compile(runInstallSchema) + }); + const validate = ajv.compile(runInstallSchema); if (!validate(result)) { for (const errorItem of validate.errors!) { - error(`with.run_install${errorItem.dataPath}: ${errorItem.message}`) + error(`with.run_install${errorItem.dataPath}: ${errorItem.message}`); } - return process.exit(1) + return process.exit(1); } - if (!result) return [] - if (result === true) return [{ recursive: true }] - if (Array.isArray(result)) return result - return [result] + if (!result) return []; + if (result === true) return [{ recursive: true }]; + if (Array.isArray(result)) return result; + return [result]; } diff --git a/src/install-pnpm/githubRelease.ts b/src/install-pnpm/githubRelease.ts new file mode 100644 index 0000000..1582587 --- /dev/null +++ b/src/install-pnpm/githubRelease.ts @@ -0,0 +1,83 @@ +import { Inputs } from "../inputs"; +import * as tc from "@actions/tool-cache"; +import { info } from "@actions/core"; +import { Octokit } from "@octokit/rest"; +import * as semver from "semver"; +import * as fs from "fs"; +import * as util from "util"; +const chmod = util.promisify(fs.chmod); + +export async function installFromGithubRelease( + inputs: Inputs +): Promise { + let releaseExeName: string; + let targetExeName: string; + let needChmod: boolean = false; + if (process.platform === "win32") { + releaseExeName = "pnpm-win-x64.exe"; + targetExeName = "pnpm.exe"; + } else if (process.platform === "darwin") { + releaseExeName = "pnpm-macos-x64"; + targetExeName = "pnpm"; + } else { + releaseExeName = "pnpm-linux-x64"; + targetExeName = "pnpm"; + needChmod = true; + } + + let verToInstall: string; + let downloadUrl: string; + if (inputs.version && semver.valid(inputs.version)) { + // a specific version is requested + verToInstall = semver.clean(inputs.version)!; + downloadUrl = `https://github.com/pnpm/pnpm/releases/download/v${verToInstall}/${releaseExeName}`; + } else { + // search for version by pattern in inputs.version or use latest + const octokit = new Octokit(); + const allReleases = await octokit.repos.listReleases({ + owner: "pnpm", + repo: "pnpm", + }); + const releases = allReleases.data.filter((r) => { + if (inputs.version) { + const ver = semver.parse(r.tag_name); + return ver && semver.satisfies(ver, inputs.version); + } else { + return semver.valid(r.tag_name) && !r.prerelease && !r.draft; + } + }); + + if (releases.length === 0) { + throw new Error( + `Unable to find any pnpm releases matching ${inputs.version}` + ); + } + + const release = releases.reduce((max, r) => + semver.gt(max.tag_name, r.tag_name) ? max : r + ); + + verToInstall = semver.clean(release.tag_name)!; + downloadUrl = release.assets.find( + (a) => a.name === releaseExeName + )!.browser_download_url; + } + + const cachedToolPath = tc.find("pnpm", verToInstall); + if (!cachedToolPath) { + info("Downloading " + downloadUrl); + const pnpmDownloadPath = await tc.downloadTool(downloadUrl); + if (needChmod) { + await chmod(pnpmDownloadPath, 0o755); + } + return await tc.cacheFile( + pnpmDownloadPath, + targetExeName, + "pnpm", + verToInstall + ); + } else { + info("Loading from tool cache"); + return cachedToolPath; + } +} diff --git a/src/install-pnpm/index.ts b/src/install-pnpm/index.ts index 6952ead..77759fa 100644 --- a/src/install-pnpm/index.ts +++ b/src/install-pnpm/index.ts @@ -1,16 +1,34 @@ -import { setFailed, startGroup, endGroup } from '@actions/core' -import { Inputs } from '../inputs' -import runSelfInstaller from './run' +import { startGroup, endGroup } from "@actions/core"; +import { Inputs } from "../inputs"; +import { runSelfInstaller } from "./run"; +import { installFromGithubRelease } from "./githubRelease"; +import * as semver from "semver"; -export { runSelfInstaller } +export interface InstallLocation { + readonly installFolder: string; + readonly dest?: string; +} -export async function install(inputs: Inputs) { - startGroup('Running self-installer...') - const status = await runSelfInstaller(inputs) - endGroup() - if (status) { - return setFailed(`Something does wrong, self-installer exits with code ${status}`) +export async function install(inputs: Inputs): Promise { + if (inputs.version) { + const ver = semver.parse(inputs.version); + if (ver && semver.lt(ver, "6.13.0")) { + startGroup("Running self-installer..."); + const binDir = await runSelfInstaller(inputs); + endGroup(); + return { + installFolder: binDir, + dest: inputs.dest, + }; + } } + + startGroup("Installing from github releases..."); + const installFolder = await installFromGithubRelease(inputs); + endGroup(); + return { + installFolder, + }; } -export default install +export default install; diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index c79905f..9f2c3ef 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -1,31 +1,35 @@ -import { spawn } from 'child_process' -import { execPath } from 'process' -import { join } from 'path' -import { remove, ensureFile, writeFile } from 'fs-extra' -import fetch from 'node-fetch' -import { Inputs } from '../inputs' +import { spawn } from "child_process"; +import { execPath } from "process"; +import { join } from "path"; +import { remove, ensureFile, writeFile } from "fs-extra"; +import fetch from "node-fetch"; +import { Inputs } from "../inputs"; -export async function runSelfInstaller(inputs: Inputs): Promise { - const { version, dest } = inputs - const target = version ? `pnpm@${version}` : 'pnpm' - const pkgJson = join(dest, 'package.json') +export async function runSelfInstaller(inputs: Inputs): Promise { + const { version, dest } = inputs; + const target = version ? `pnpm@${version}` : "pnpm"; + const pkgJson = join(dest, "package.json"); - await remove(dest) - await ensureFile(pkgJson) - await writeFile(pkgJson, JSON.stringify({ private: true })) + await remove(dest); + await ensureFile(pkgJson); + await writeFile(pkgJson, JSON.stringify({ private: true })); - const cp = spawn(execPath, ['-', 'install', target, '--no-lockfile'], { + const cp = spawn(execPath, ["-", "install", target, "--no-lockfile"], { cwd: dest, - stdio: ['pipe', 'inherit', 'inherit'], - }) + stdio: ["pipe", "inherit", "inherit"], + }); - const response = await fetch('https://pnpm.js.org/pnpm.js') - response.body.pipe(cp.stdin) + const response = await fetch("https://pnpm.js.org/pnpm.js"); + response.body.pipe(cp.stdin); - return new Promise((resolve, reject) => { - cp.on('error', reject) - cp.on('close', resolve) - }) -} + const status: number = await new Promise((resolve, reject) => { + cp.on("error", reject); + cp.on("close", resolve); + }); -export default runSelfInstaller + if (status) { + throw new Error(`pnpm self installer exited with status ${status}`); + } else { + return join(inputs.dest, "node_modules", ".bin"); + } +} diff --git a/src/outputs/index.ts b/src/outputs/index.ts index e25a6b0..fc93ea1 100644 --- a/src/outputs/index.ts +++ b/src/outputs/index.ts @@ -1,12 +1,12 @@ -import { setOutput, addPath } from '@actions/core' -import { Inputs } from '../inputs' -import { getBinDest } from '../utils' +import { addPath, setOutput } from "@actions/core"; +import { InstallLocation } from "../install-pnpm"; -export function setOutputs(inputs: Inputs) { - const binDest = getBinDest(inputs) - addPath(binDest) - setOutput('dest', inputs.dest) - setOutput('bin_dest', binDest) +export function setOutputs(install: InstallLocation) { + setOutput("bin_dest", install.installFolder); + addPath(install.installFolder); + if (install.dest) { + setOutput("dest", install.dest); + } } -export default setOutputs +export default setOutputs; diff --git a/src/pnpm-install/index.ts b/src/pnpm-install/index.ts index 821e114..9c16493 100644 --- a/src/pnpm-install/index.ts +++ b/src/pnpm-install/index.ts @@ -1,38 +1,44 @@ -import { spawnSync } from 'child_process' -import { setFailed, startGroup, endGroup } from '@actions/core' -import { Inputs } from '../inputs' -import { patchPnpmEnv } from '../utils' - -export function runPnpmInstall(inputs: Inputs) { - const env = patchPnpmEnv(inputs) +import { spawnSync } from "child_process"; +import path from "path"; +import { setFailed, startGroup, endGroup } from "@actions/core"; +import { Inputs } from "../inputs"; +import { InstallLocation } from "../install-pnpm"; + +export function runPnpmInstall(inputs: Inputs, installLoc: InstallLocation) { + const env = { + ...process.env, + PATH: installLoc.installFolder + path.delimiter + process.env.PATH, + }; for (const options of inputs.runInstall) { - const args = ['install'] - if (options.recursive) args.unshift('recursive') - if (options.args) args.push(...options.args) + const args = ["install"]; + if (options.recursive) args.unshift("recursive"); + if (options.args) args.push(...options.args); - const cmdStr = ['pnpm', ...args].join(' ') - startGroup(`Running ${cmdStr}...`) + const cmdStr = ["pnpm", ...args].join(" "); + startGroup(`Running ${cmdStr}...`); - const { error, status } = spawnSync('pnpm', args, { - stdio: 'inherit', + const { error, status } = spawnSync("pnpm", args, { + stdio: "inherit", cwd: options.cwd, shell: true, env, - }) + }); - endGroup() + endGroup(); if (error) { - setFailed(error) - continue + setFailed(error); + continue; } if (status) { - setFailed(`Command ${cmdStr} (cwd: ${options.cwd}) exits with status ${status}`) - continue + setFailed( + `Command ${cmdStr} (cwd: ${options.cwd}) exits with status ${status}` + ); + continue; } } } -export default runPnpmInstall +export default runPnpmInstall; diff --git a/src/pnpm-store-prune/index.ts b/src/pnpm-store-prune/index.ts deleted file mode 100644 index 792552a..0000000 --- a/src/pnpm-store-prune/index.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { spawnSync } from 'child_process' -import { warning, startGroup, endGroup } from '@actions/core' -import { Inputs } from '../inputs' -import { patchPnpmEnv } from '../utils' - -export function pruneStore(inputs: Inputs) { - if (inputs.runInstall.length === 0) { - console.log('Pruning is unnecessary.') - return - } - - startGroup('Running pnpm store prune...') - const { error, status } = spawnSync('pnpm', ['store', 'prune'], { - stdio: 'inherit', - shell: true, - env: patchPnpmEnv(inputs) - }) - endGroup() - - if (error) { - warning(error) - return - } - - if (status) { - warning(`command pnpm store prune exits with code ${status}`) - return - } -} - -export default pruneStore diff --git a/src/utils/index.ts b/src/utils/index.ts deleted file mode 100644 index b8f1b71..0000000 --- a/src/utils/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -import process from 'process' -import path from 'path' -import { Inputs } from '../inputs' - -export const getBinDest = (inputs: Inputs): string => path.join(inputs.dest, 'node_modules', '.bin') - -export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({ - ...process.env, - PATH: getBinDest(inputs) + path.delimiter + process.env.PATH -}) diff --git a/tsconfig.json b/tsconfig.json index 0f323f6..ac37407 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ - { "compilerOptions": { - "target": "ES2018", + "target": "ES2019", "module": "CommonJS", "moduleResolution": "Node", "resolveJsonModule": true, @@ -27,4 +26,4 @@ "experimentalDecorators": true, "emitDecoratorMetadata": true } -} +} \ No newline at end of file