10 lines
266 KiB
JavaScript
10 lines
266 KiB
JavaScript
(()=>{var e={8243:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const i=t(8366);const n=a(t(4694));const s=a(t(1142));const o=a(t(2759));const l=a(t(4207));const u=a(t(5659));async function main(){const e=(0,n.default)();const r=(0,i.getState)("is_post");if(r==="true")return(0,u.default)(e);(0,i.saveState)("is_post","true");await(0,s.default)(e);console.log("Installation Completed!");(0,o.default)(e);(0,l.default)(e)}main().catch((e=>{console.error(e);(0,i.setFailed)(e)}))},4694:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const i=t(8366);const n=a(t(4790));const s=t(5400);const o={required:true};const parseInputPath=e=>(0,n.default)((0,i.getInput)(e,o));const getInputs=()=>({version:(0,i.getInput)("version"),dest:parseInputPath("dest"),runInstall:(0,s.parseRunInstall)("run_install")});r.getInputs=getInputs;r["default"]=r.getInputs},5400:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.parseRunInstall=void 0;const i=t(8366);const n=a(t(8438));const s=t(3639);const o=a(t(7282));const l=a(t(5379));const u={required:true};function parseRunInstall(e){const r=(0,s.load)((0,i.getInput)(e,u));const t=new n.default({allErrors:true});const a=t.compile(l.default);if(!a(r)){for(const e of a.errors){(0,i.error)(`with.run_install${e.dataPath}: ${e.message}`)}return o.default.exit(1)}if(!r)return[];if(r===true)return[{recursive:true}];if(Array.isArray(r))return r;return[r]}r.parseRunInstall=parseRunInstall},1142:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.install=r.runSelfInstaller=void 0;const i=t(8366);const n=a(t(9536));r.runSelfInstaller=n.default;async function install(e){(0,i.startGroup)("Running self-installer...");const r=await(0,n.default)(e);(0,i.endGroup)();if(r){return(0,i.setFailed)(`Something went wrong, self-installer exits with code ${r}`)}}r.install=install;r["default"]=install},9536:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.runSelfInstaller=void 0;const i=t(8366);const n=t(2081);const s=t(5176);const o=a(t(1017));const l=t(7282);async function runSelfInstaller(e){const{version:r,dest:t}=e;await(0,s.remove)(t);const a=o.default.join(t,"package.json");await(0,s.ensureFile)(a);await(0,s.writeFile)(a,JSON.stringify({private:true}));const u=await readTarget(r);const c=(0,n.spawn)(l.execPath,[o.default.join(__dirname,"pnpm.js"),"install",u,"--no-lockfile"],{cwd:t,stdio:["pipe","inherit","inherit"]});const f=await new Promise(((e,r)=>{c.on("error",r);c.on("close",e)}));if(f===0){const e=o.default.join(t,"node_modules/.bin");(0,i.addPath)(e);(0,i.exportVariable)("PNPM_HOME",e)}return f}r.runSelfInstaller=runSelfInstaller;async function readTarget(e){if(e)return`pnpm@${e}`;const{GITHUB_WORKSPACE:r}=process.env;if(!r){throw new Error(`No workspace is found.\nIf you're intended to let pnpm/action-setup read preferred pnpm version from the "packageManager" field in the package.json file,\nplease run the actions/checkout before pnpm/action-setup.\nOtherwise, please specify the pnpm version in the action configuration.`)}const{packageManager:t}=JSON.parse(await(0,s.readFile)(o.default.join(r,"package.json"),"utf8"));if(typeof t!=="string"){throw new Error(`No pnpm version is specified.\nPlease specify it by one of the following ways:\n - in the GitHub Action config with the key "version"\n - in the package.json with the key "packageManager" (See https://nodejs.org/api/corepack.html)`)}if(!t.startsWith("pnpm@")){throw new Error("Invalid packageManager field in package.json")}return t}r["default"]=runSelfInstaller},2759:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.setOutputs=void 0;const a=t(8366);const i=t(6392);function setOutputs(e){const r=(0,i.getBinDest)(e);(0,a.addPath)(r);(0,a.setOutput)("dest",e.dest);(0,a.setOutput)("bin_dest",r)}r.setOutputs=setOutputs;r["default"]=setOutputs},4207:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.runPnpmInstall=void 0;const a=t(8366);const i=t(2081);const n=t(6392);function runPnpmInstall(e){const r=(0,n.patchPnpmEnv)(e);for(const t of e.runInstall){const e=["install"];if(t.recursive)e.unshift("recursive");if(t.args)e.push(...t.args);const n=["pnpm",...e].join(" ");(0,a.startGroup)(`Running ${n}...`);const{error:s,status:o}=(0,i.spawnSync)("pnpm",e,{stdio:"inherit",cwd:t.cwd,shell:true,env:r});(0,a.endGroup)();if(s){(0,a.setFailed)(s);continue}if(o){(0,a.setFailed)(`Command ${n} (cwd: ${t.cwd}) exits with status ${o}`);continue}}}r.runPnpmInstall=runPnpmInstall;r["default"]=runPnpmInstall},5659:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pruneStore=void 0;const a=t(8366);const i=t(2081);const n=t(6392);function pruneStore(e){if(e.runInstall.length===0){console.log("Pruning is unnecessary.");return}(0,a.startGroup)("Running pnpm store prune...");const{error:r,status:t}=(0,i.spawnSync)("pnpm",["store","prune"],{stdio:"inherit",shell:true,env:(0,n.patchPnpmEnv)(e)});(0,a.endGroup)();if(r){(0,a.warning)(r);return}if(t){(0,a.warning)(`command pnpm store prune exits with code ${t}`);return}}r.pruneStore=pruneStore;r["default"]=pruneStore},6392:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.patchPnpmEnv=r.getBinDest=void 0;const i=a(t(1017));const n=a(t(7282));const getBinDest=e=>i.default.join(e.dest,"node_modules",".bin");r.getBinDest=getBinDest;const patchPnpmEnv=e=>({...n.default.env,PATH:(0,r.getBinDest)(e)+i.default.delimiter+n.default.env.PATH});r.patchPnpmEnv=patchPnpmEnv},7300:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});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 n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const s=n(t(2037));const o=t(7522);function issueCommand(e,r,t){const a=new Command(e,r,t);process.stdout.write(a.toString()+s.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const a=this.properties[t];if(a){if(r){r=false}else{e+=","}e+=`${t}=${escapeProperty(a)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},8366:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});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 n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};var s=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=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 o=t(7300);const l=t(2815);const u=t(7522);const c=n(t(2037));const f=n(t(1017));const p=t(5476);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const t=u.toCommandValue(r);process.env[e]=t;const a=process.env["GITHUB_ENV"]||"";if(a){return l.issueFileCommand("ENV",l.prepareKeyValueMessage(e,r))}o.issueCommand("set-env",{name:e},t)}r.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${f.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return t}return t.trim()}r.getInput=getInput;function getMultilineInput(e,r){const t=getInput(e,r).split("\n").filter((e=>e!==""));if(r&&r.trimWhitespace===false){return t}return t.map((e=>e.trim()))}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const t=["true","True","TRUE"];const a=["false","False","FALSE"];const i=getInput(e,r);if(t.includes(i))return true;if(a.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){const t=process.env["GITHUB_OUTPUT"]||"";if(t){return l.issueFileCommand("OUTPUT",l.prepareKeyValueMessage(e,r))}process.stdout.write(c.EOL);o.issueCommand("set-output",{name:e},u.toCommandValue(r))}r.setOutput=setOutput;function setCommandEcho(e){o.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){o.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){o.issueCommand("error",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){o.issueCommand("warning",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){o.issueCommand("notice",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+c.EOL)}r.info=info;function startGroup(e){o.issue("group",e)}r.startGroup=startGroup;function endGroup(){o.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return s(this,void 0,void 0,(function*(){startGroup(e);let t;try{t=yield r()}finally{endGroup()}return t}))}r.group=group;function saveState(e,r){const t=process.env["GITHUB_STATE"]||"";if(t){return l.issueFileCommand("STATE",l.prepareKeyValueMessage(e,r))}o.issueCommand("save-state",{name:e},u.toCommandValue(r))}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken;var h=t(9309);Object.defineProperty(r,"summary",{enumerable:true,get:function(){return h.summary}});var m=t(9309);Object.defineProperty(r,"markdownSummary",{enumerable:true,get:function(){return m.markdownSummary}});var v=t(5701);Object.defineProperty(r,"toPosixPath",{enumerable:true,get:function(){return v.toPosixPath}});Object.defineProperty(r,"toWin32Path",{enumerable:true,get:function(){return v.toWin32Path}});Object.defineProperty(r,"toPlatformPath",{enumerable:true,get:function(){return v.toPlatformPath}})},2815:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});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 n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.prepareKeyValueMessage=r.issueFileCommand=void 0;const s=n(t(7147));const o=n(t(2037));const l=t(12);const u=t(7522);function issueFileCommand(e,r){const t=process.env[`GITHUB_${e}`];if(!t){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(t)){throw new Error(`Missing file at path: ${t}`)}s.appendFileSync(t,`${u.toCommandValue(r)}${o.EOL}`,{encoding:"utf8"})}r.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,r){const t=`ghadelimiter_${l.v4()}`;const a=u.toCommandValue(r);if(e.includes(t)){throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`)}if(a.includes(t)){throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`)}return`${e}<<${t}${o.EOL}${a}${o.EOL}${t}`}r.prepareKeyValueMessage=prepareKeyValueMessage},5476:function(e,r,t){"use strict";var a=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const i=t(9390);const n=t(3119);const s=t(8366);class OidcClient{static createHttpClient(e=true,r=10){const t={allowRetries:e,maxRetries:r};return new i.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(OidcClient.getRequestToken())],t)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var r;return a(this,void 0,void 0,(function*(){const t=OidcClient.createHttpClient();const a=yield t.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(r=a.result)===null||r===void 0?void 0:r.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return a(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const t=encodeURIComponent(e);r=`${r}&audience=${t}`}s.debug(`ID token url is ${r}`);const t=yield OidcClient.getCall(r);s.setSecret(t);return t}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},5701:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});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 n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.toPlatformPath=r.toWin32Path=r.toPosixPath=void 0;const s=n(t(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}r.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}r.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}r.toPlatformPath=toPlatformPath},9309:function(e,r,t){"use strict";var a=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.summary=r.markdownSummary=r.SUMMARY_DOCS_URL=r.SUMMARY_ENV_VAR=void 0;const i=t(2037);const n=t(7147);const{access:s,appendFile:o,writeFile:l}=n.promises;r.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";r.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return a(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[r.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${r.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,n.constants.R_OK|n.constants.W_OK)}catch(r){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,r,t={}){const a=Object.entries(t).map((([e,r])=>` ${e}="${r}"`)).join("");if(!r){return`<${e}${a}>`}return`<${e}${a}>${r}</${e}>`}write(e){return a(this,void 0,void 0,(function*(){const r=!!(e===null||e===void 0?void 0:e.overwrite);const t=yield this.filePath();const a=r?l:o;yield a(t,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return a(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,r=false){this._buffer+=e;return r?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,r){const t=Object.assign({},r&&{lang:r});const a=this.wrap("pre",this.wrap("code",e),t);return this.addRaw(a).addEOL()}addList(e,r=false){const t=r?"ol":"ul";const a=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(t,a);return this.addRaw(i).addEOL()}addTable(e){const r=e.map((e=>{const r=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:r,data:t,colspan:a,rowspan:i}=e;const n=r?"th":"td";const s=Object.assign(Object.assign({},a&&{colspan:a}),i&&{rowspan:i});return this.wrap(n,t,s)})).join("");return this.wrap("tr",r)})).join("");const t=this.wrap("table",r);return this.addRaw(t).addEOL()}addDetails(e,r){const t=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(t).addEOL()}addImage(e,r,t){const{width:a,height:i}=t||{};const n=Object.assign(Object.assign({},a&&{width:a}),i&&{height:i});const s=this.wrap("img",null,Object.assign({src:e,alt:r},n));return this.addRaw(s).addEOL()}addHeading(e,r){const t=`h${r}`;const a=["h1","h2","h3","h4","h5","h6"].includes(t)?t:"h1";const i=this.wrap(a,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){const t=Object.assign({},r&&{cite:r});const a=this.wrap("blockquote",e,t);return this.addRaw(a).addEOL()}addLink(e,r){const t=this.wrap("a",e,{href:r});return this.addRaw(t).addEOL()}}const u=new Summary;r.markdownSummary=u;r.summary=u},7522:(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,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}r.toCommandProperties=toCommandProperties},3119:function(e,r){"use strict";var t=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.PersonalAccessTokenCredentialHandler=r.BearerCredentialHandler=r.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9390:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});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 n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};var s=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.HttpClient=r.isHttps=r.HttpClientResponse=r.HttpClientError=r.getProxyUrl=r.MediaTypes=r.Headers=r.HttpCodes=void 0;const o=n(t(3685));const l=n(t(5687));const u=n(t(5731));const c=n(t(1353));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 p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=r.Headers||(r.Headers={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){const r=u.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const h=[f.MovedPermanently,f.ResourceMoved,f.SeeOther,f.TemporaryRedirect,f.PermanentRedirect];const m=[f.BadGateway,f.ServiceUnavailable,f.GatewayTimeout];const v=["OPTIONS","GET","DELETE","HEAD"];const y=10;const g=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 s(this,void 0,void 0,(function*(){return new Promise((e=>s(this,void 0,void 0,(function*(){let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){const r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,t){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=t;if(t){if(t.ignoreSslError!=null){this._ignoreSslError=t.ignoreSslError}this._socketTimeout=t.socketTimeout;if(t.allowRedirects!=null){this._allowRedirects=t.allowRedirects}if(t.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=t.allowRedirectDowngrade}if(t.maxRedirects!=null){this._maxRedirects=Math.max(t.maxRedirects,0)}if(t.keepAlive!=null){this._keepAlive=t.keepAlive}if(t.allowRetries!=null){this._allowRetries=t.allowRetries}if(t.maxRetries!=null){this._maxRetries=t.maxRetries}}}options(e,r){return s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,r||{})}))}get(e,r){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,r||{})}))}del(e,r){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,r||{})}))}post(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("POST",e,r,t||{})}))}patch(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,r,t||{})}))}put(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,r,t||{})}))}head(e,r){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,r||{})}))}sendStream(e,r,t,a){return s(this,void 0,void 0,(function*(){return this.request(e,r,t,a)}))}getJson(e,r={}){return s(this,void 0,void 0,(function*(){r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,d.ApplicationJson);const t=yield this.get(e,r);return this._processResponse(t,this.requestOptions)}))}postJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.post(e,a,t);return this._processResponse(i,this.requestOptions)}))}putJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.put(e,a,t);return this._processResponse(i,this.requestOptions)}))}patchJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.patch(e,a,t);return this._processResponse(i,this.requestOptions)}))}request(e,r,t,a){return s(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(r);let n=this._prepareRequest(e,i,a);const s=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let o=0;let l;do{l=yield this.requestRaw(n,t);if(l&&l.message&&l.message.statusCode===f.Unauthorized){let e;for(const r of this.handlers){if(r.canHandleAuthentication(l)){e=r;break}}if(e){return e.handleAuthentication(this,n,t)}else{return l}}let r=this._maxRedirects;while(l.message.statusCode&&h.includes(l.message.statusCode)&&this._allowRedirects&&r>0){const s=l.message.headers["location"];if(!s){break}const o=new URL(s);if(i.protocol==="https:"&&i.protocol!==o.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.")}yield l.readBody();if(o.hostname!==i.hostname){for(const e in a){if(e.toLowerCase()==="authorization"){delete a[e]}}}n=this._prepareRequest(e,o,a);l=yield this.requestRaw(n,t);r--}if(!l.message.statusCode||!m.includes(l.message.statusCode)){return l}o+=1;if(o<s){yield l.readBody();yield this._performExponentialBackoff(o)}}while(o<s);return l}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,r){return s(this,void 0,void 0,(function*(){return new Promise(((t,a)=>{function callbackForResult(e,r){if(e){a(e)}else if(!r){a(new Error("Unknown error"))}else{t(r)}}this.requestRawWithCallback(e,r,callbackForResult)}))}))}requestRawWithCallback(e,r,t){if(typeof r==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let a=false;function handleResult(e,r){if(!a){a=true;t(e,r)}}const i=e.httpModule.request(e.options,(e=>{const r=new HttpClientResponse(e);handleResult(undefined,r)}));let n;i.on("socket",(e=>{n=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(r&&typeof r==="string"){i.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){i.end()}));r.pipe(i)}else{i.end()}}getAgent(e){const r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,t){const a={};a.parsedUrl=r;const i=a.parsedUrl.protocol==="https:";a.httpModule=i?l:o;const n=i?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):n;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=e;a.options.headers=this._mergeHeaders(t);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(a.options)}}return a}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,t){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||a||t}_getAgent(e){let r;const t=u.getProxyUrl(e);const a=t&&t.hostname;if(this._keepAlive&&a){r=this._proxyAgent}if(this._keepAlive&&!a){r=this._agent}if(r){return r}const i=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(t&&t.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(t.username||t.password)&&{proxyAuth:`${t.username}:${t.password}`}),{host:t.hostname,port:t.port})};let a;const s=t.protocol==="https:";if(i){a=s?c.httpsOverHttps:c.httpsOverHttp}else{a=s?c.httpOverHttps:c.httpOverHttp}r=a(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:n};r=i?new l.Agent(e):new o.Agent(e);this._agent=r}if(!r){r=i?l.globalAgent:o.globalAgent}if(i&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(y,e);const r=g*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}))}_processResponse(e,r){return s(this,void 0,void 0,(function*(){return new Promise(((t,a)=>s(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const n={statusCode:i,result:null,headers:{}};if(i===f.NotFound){t(n)}function dateTimeDeserializer(e,r){if(typeof r==="string"){const e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}let s;let o;try{o=yield e.readBody();if(o&&o.length>0){if(r&&r.deserializeDates){s=JSON.parse(o,dateTimeDeserializer)}else{s=JSON.parse(o)}n.result=s}n.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${i})`}const r=new HttpClientError(e,i);r.result=n.result;a(r)}else{t(n)}}))))}))}}r.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((r,t)=>(r[t.toLowerCase()]=e[t],r)),{})},5731:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkBypass=r.getProxyUrl=void 0;function getProxyUrl(e){const r=e.protocol==="https:";if(checkBypass(e)){return undefined}const t=(()=>{if(r){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(t){return new URL(t)}else{return undefined}}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let t;if(e.port){t=Number(e.port)}else if(e.protocol==="http:"){t=80}else if(e.protocol==="https:"){t=443}const a=[e.hostname.toUpperCase()];if(typeof t==="number"){a.push(`${a[0]}:${t}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(a.some((r=>r===e))){return true}}return false}r.checkBypass=checkBypass},8438:(e,r,t)=>{"use strict";var a=t(5391),i=t(6650),n=t(6281),s=t(5738),o=t(4486),l=t(229),u=t(6072),c=t(7178),f=t(3162);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=t(5911);var p=t(7975);Ajv.prototype.addKeyword=p.add;Ajv.prototype.getKeyword=p.get;Ajv.prototype.removeKeyword=p.remove;Ajv.prototype.validateKeyword=p.validate;var d=t(2485);Ajv.ValidationError=d.Validation;Ajv.MissingRefError=d.MissingRef;Ajv.$dataMetaSchema=c;var h="http://json-schema.org/draft-07/schema";var m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var v=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=f.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=l(e.format);this._cache=e.cache||new n;this._loadingSchemas={};this._compilations=[];this.RULES=u();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=o;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 t;if(typeof e=="string"){t=this.getSchema(e);if(!t)throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);t=a.validate||this._compile(a)}var i=t(r);if(t.$async!==true)this.errors=t.errors;return i}function compile(e,r){var t=this._addSchema(e,undefined,r);return t.validate||this._compile(t)}function addSchema(e,r,t,a){if(Array.isArray(e)){for(var n=0;n<e.length;n++)this.addSchema(e[n],undefined,t,a);return this}var s=this._getId(e);if(s!==undefined&&typeof s!="string")throw new Error("schema id must be string");r=i.normalizeId(r||s);checkUnique(this,r);this._schemas[r]=this._addSchema(e,t,a,true);return this}function addMetaSchema(e,r,t){this.addSchema(e,r,t,true);return this}function validateSchema(e,r){var t=e.$schema;if(t!==undefined&&typeof t!="string")throw new Error("$schema must be a string");t=t||this._opts.defaultMeta||defaultMeta(this);if(!t){this.logger.warn("meta-schema not available");this.errors=null;return true}var a=this.validate(t,e);if(!a&&r){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return a}function defaultMeta(e){var r=e._opts.meta;e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(h)?h:undefined;return e._opts.defaultMeta}function getSchema(e){var r=_getSchemaObj(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return _getSchemaFragment(this,e)}}function _getSchemaFragment(e,r){var t=i.schema.call(e,{schema:{}},r);if(t){var n=t.schema,o=t.root,l=t.baseId;var u=a.call(e,n,o,undefined,l);e._fragments[r]=new s({ref:r,fragment:true,schema:n,root:o,baseId:l,validate:u});return u}}function _getSchemaObj(e,r){r=i.normalizeId(r);return e._schemas[r]||e._refs[r]||e._fragments[r]}function removeSchema(e){if(e instanceof RegExp){_removeAllSchemas(this,this._schemas,e);_removeAllSchemas(this,this._refs,e);return this}switch(typeof e){case"undefined":_removeAllSchemas(this,this._schemas);_removeAllSchemas(this,this._refs);this._cache.clear();return this;case"string":var r=_getSchemaObj(this,e);if(r)this._cache.del(r.cacheKey);delete this._schemas[e];delete this._refs[e];return this;case"object":var t=this._opts.serialize;var a=t?t(e):e;this._cache.del(a);var n=this._getId(e);if(n){n=i.normalizeId(n);delete this._schemas[n];delete this._refs[n]}}return this}function _removeAllSchemas(e,r,t){for(var a in r){var i=r[a];if(!i.meta&&(!t||t.test(a))){e._cache.del(i.cacheKey);delete r[a]}}}function _addSchema(e,r,t,a){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var n=this._opts.serialize;var o=n?n(e):e;var l=this._cache.get(o);if(l)return l;a=a||this._opts.addUsedSchema!==false;var u=i.normalizeId(this._getId(e));if(u&&a)checkUnique(this,u);var c=this._opts.validateSchema!==false&&!r;var f;if(c&&!(f=u&&u==i.normalizeId(e.$schema)))this.validateSchema(e,true);var p=i.ids.call(this,e);var d=new s({id:u,schema:e,localRefs:p,cacheKey:o,meta:t});if(u[0]!="#"&&a)this._refs[u]=d;this._cache.put(o,d);if(c&&f)this.validateSchema(e,true);return d}function _compile(e,r){if(e.compiling){e.validate=callValidate;callValidate.schema=e.schema;callValidate.errors=null;callValidate.root=r?r:callValidate;if(e.schema.$async===true)callValidate.$async=true;return callValidate}e.compiling=true;var t;if(e.meta){t=this._opts;this._opts=this._metaOpts}var i;try{i=a.call(this,e.schema,r,e.localRefs)}catch(r){delete e.validate;throw r}finally{e.compiling=false;if(e.meta)this._opts=t}e.validate=i;e.refs=i.refs;e.refVal=i.refVal;e.root=i.root;return i;function callValidate(){var r=e.validate;var t=r.apply(this,arguments);callValidate.errors=r.errors;return t}}function chooseGetId(e){switch(e.schemaId){case"auto":return _get$IdOrId;case"id":return _getId;default:return _get$Id}}function _getId(e){if(e.$id)this.logger.warn("schema $id ignored",e.$id);return e.id}function _get$Id(e){if(e.id)this.logger.warn("schema id ignored",e.id);return e.$id}function _get$IdOrId(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function errorsText(e,r){e=e||this.errors;if(!e)return"No errors";r=r||{};var t=r.separator===undefined?", ":r.separator;var a=r.dataVar===undefined?"data":r.dataVar;var i="";for(var n=0;n<e.length;n++){var s=e[n];if(s)i+=a+s.dataPath+" "+s.message+t}return i.slice(0,-t.length)}function addFormat(e,r){if(typeof r=="string")r=new RegExp(r);this._formats[e]=r;return this}function addDefaultMetaSchema(e){var r;if(e._opts.$data){r=t(3246);e.addMetaSchema(r,r.$id,true)}if(e._opts.meta===false)return;var a=t(8703);if(e._opts.$data)a=c(a,v);e.addMetaSchema(a,h,true);e._refs["http://json-schema.org/schema"]=h}function addInitialSchemas(e){var r=e._opts.schemas;if(!r)return;if(Array.isArray(r))e.addSchema(r);else for(var t in r)e.addSchema(r[t],t)}function addInitialFormats(e){for(var r in e._opts.formats){var t=e._opts.formats[r];e.addFormat(r,t)}}function addInitialKeywords(e){for(var r in e._opts.keywords){var t=e._opts.keywords[r];e.addKeyword(r,t)}}function checkUnique(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function getMetaSchemaOptions(e){var r=f.copy(e._opts);for(var t=0;t<m.length;t++)delete r[m[t]];return r}function setLogger(e){var r=e._opts.logger;if(r===false){e.logger={log:noop,warn:noop,error:noop}}else{if(r===undefined)r=console;if(!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function noop(){}},6281:e=>{"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={}}},5911:(e,r,t)=>{"use strict";var a=t(2485).MissingRef;e.exports=compileAsync;function compileAsync(e,r,t){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof r=="function"){t=r;r=undefined}var n=loadMetaSchemaOf(e).then((function(){var t=i._addSchema(e,undefined,r);return t.validate||_compileAsync(t)}));if(t){n.then((function(e){t(null,e)}),t)}return n;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 a)return loadMissingSchema(e);throw e}function loadMissingSchema(t){var a=t.missingSchema;if(added(a))throw new Error("Schema "+a+" is loaded but "+t.missingRef+" cannot be resolved");var n=i._loadingSchemas[a];if(!n){n=i._loadingSchemas[a]=i._opts.loadSchema(a);n.then(removePromise,removePromise)}return n.then((function(e){if(!added(a)){return loadMetaSchemaOf(e).then((function(){if(!added(a))i.addSchema(e,a,undefined,r)}))}})).then((function(){return _compileAsync(e)}));function removePromise(){delete i._loadingSchemas[a]}function added(e){return i._refs[e]||i._schemas[e]}}}}},2485:(e,r,t)=>{"use strict";var a=t(6650);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,t){this.message=t||MissingRefError.message(e,r);this.missingRef=a.url(e,r);this.missingSchema=a.normalizeId(a.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},229:(e,r,t)=>{"use strict";var a=t(3162);var i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var n=[0,31,28,31,30,31,30,31,31,30,31,30,31];var s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var o=/^(?=.{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 l=/^(?:[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 u=/^(?:[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 c=/^(?:(?:[^\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 f=/^(?:(?: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 p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var d=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return a.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":c,url:f,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:o,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:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":m};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":u,"uri-template":c,url:f,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:o,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:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":m};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 t=+r[1];var a=+r[2];var s=+r[3];return a>=1&&a<=12&&s>=1&&s<=(a==2&&isLeapYear(t)?29:n[a])}function time(e,r){var t=e.match(s);if(!t)return false;var a=t[1];var i=t[2];var n=t[3];var o=t[5];return(a<=23&&i<=59&&n<=59||a==23&&i==59&&n==60)&&(!r||o)}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 y=/\/|:/;function uri(e){return y.test(e)&&l.test(e)}var g=/[^\\]\\Z/;function regex(e){if(g.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},5391:(e,r,t)=>{"use strict";var a=t(6650),i=t(3162),n=t(2485),s=t(4486);var o=t(734);var l=i.ucs2length;var u=t(3064);var c=n.Validation;e.exports=compile;function compile(e,r,t,f){var p=this,d=this._opts,h=[undefined],m={},v=[],y={},g=[],w={},S=[];r=r||{schema:e,refVal:h,refs:m};var b=checkCompiling.call(this,e,r,f);var E=this._compilations[b.index];if(b.compiling)return E.callValidate=callValidate;var P=this._formats;var _=this.RULES;try{var x=localCompile(e,r,t,f);E.validate=x;var O=E.callValidate;if(O){O.schema=x.schema;O.errors=null;O.refs=x.refs;O.refVal=x.refVal;O.root=x.root;O.$async=x.$async;if(d.sourceCode)O.source=x.source}return x}finally{endCompiling.call(this,e,r,f)}function callValidate(){var e=E.validate;var r=e.apply(this,arguments);callValidate.errors=e.errors;return r}function localCompile(e,t,s,f){var y=!t||t&&t.schema==e;if(t.schema!=r.schema)return compile.call(p,e,t,s,f);var w=e.$async===true;var b=o({isTop:true,schema:e,isRoot:y,baseId:f,root:t,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n.MissingRef,RULES:_,validate:o,util:i,resolve:a,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:d,formats:P,logger:p.logger,self:p});b=vars(h,refValCode)+vars(v,patternCode)+vars(g,defaultCode)+vars(S,customRuleCode)+b;if(d.processCode)b=d.processCode(b,e);var E;try{var x=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",b);E=x(p,_,P,r,h,g,S,u,l,c);h[0]=E}catch(e){p.logger.error("Error compiling schema, function code:",b);throw e}E.schema=e;E.errors=null;E.refs=m;E.refVal=h;E.root=y?E:t;if(w)E.$async=true;if(d.sourceCode===true){E.source={code:b,patterns:v,defaults:g}}return E}function resolveRef(e,i,n){i=a.url(e,i);var s=m[i];var o,l;if(s!==undefined){o=h[s];l="refVal["+s+"]";return resolvedRef(o,l)}if(!n&&r.refs){var u=r.refs[i];if(u!==undefined){o=r.refVal[u];l=addLocalRef(i,o);return resolvedRef(o,l)}}l=addLocalRef(i);var c=a.call(p,localCompile,r,i);if(c===undefined){var f=t&&t[i];if(f){c=a.inlineRef(f,d.inlineRefs)?f:compile.call(p,f,r,t,e)}}if(c===undefined){removeLocalRef(i)}else{replaceLocalRef(i,c);return resolvedRef(c,l)}}function addLocalRef(e,r){var t=h.length;h[t]=r;m[e]=t;return"refVal"+t}function removeLocalRef(e){delete m[e]}function replaceLocalRef(e,r){var t=m[e];h[t]=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=y[e];if(r===undefined){r=y[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=s(e);var t=w[r];if(t===undefined){t=w[r]=g.length;g[t]=e}return"default"+t}}function useCustomRule(e,r,t,a){if(p._opts.validateSchema!==false){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(t,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var n=e.definition.validateSchema;if(n){var s=n(r);if(!s){var o="keyword schema is invalid: "+p.errorsText(n.errors);if(p._opts.validateSchema=="log")p.logger.error(o);else throw new Error(o)}}}var l=e.definition.compile,u=e.definition.inline,c=e.definition.macro;var f;if(l){f=l.call(p,r,t,a)}else if(c){f=c.call(p,r,t,a);if(d.validateSchema!==false)p.validateSchema(f,true)}else if(u){f=u.call(p,a,e.keyword,r,t)}else{f=e.definition.validate;if(!f)return}if(f===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=S.length;S[h]=f;return{code:"customRule"+h,validate:f}}}function checkCompiling(e,r,t){var a=compIndex.call(this,e,r,t);if(a>=0)return{index:a,compiling:true};a=this._compilations.length;this._compilations[a]={schema:e,root:r,baseId:t};return{index:a,compiling:false}}function endCompiling(e,r,t){var a=compIndex.call(this,e,r,t);if(a>=0)this._compilations.splice(a,1)}function compIndex(e,r,t){for(var a=0;a<this._compilations.length;a++){var i=this._compilations[a];if(i.schema==e&&i.root==r&&i.baseId==t)return a}return-1}function patternCode(e,r){return"var pattern"+e+" = new RegExp("+i.toQuotedString(r[e])+");"}function defaultCode(e){return"var default"+e+" = defaults["+e+"];"}function refValCode(e,r){return r[e]===undefined?"":"var refVal"+e+" = refVal["+e+"];"}function customRuleCode(e){return"var customRule"+e+" = customRules["+e+"];"}function vars(e,r){if(!e.length)return"";var t="";for(var a=0;a<e.length;a++)t+=r(a,e);return t}},6650:(e,r,t)=>{"use strict";var a=t(626),i=t(3064),n=t(3162),s=t(5738),o=t(8154);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,t){var a=this._refs[t];if(typeof a=="string"){if(this._refs[a])a=this._refs[a];else return resolve.call(this,e,r,a)}a=a||this._schemas[t];if(a instanceof s){return inlineRef(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a)}var i=resolveSchema.call(this,r,t);var n,o,l;if(i){n=i.schema;r=i.root;l=i.baseId}if(n instanceof s){o=n.validate||e.call(this,n.schema,r,undefined,l)}else if(n!==undefined){o=inlineRef(n,this._opts.inlineRefs)?n:e.call(this,n,r,undefined,l)}return o}function resolveSchema(e,r){var t=a.parse(r),i=_getFullPath(t),n=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==n){var o=normalizeId(i);var l=this._refs[o];if(typeof l=="string"){return resolveRecursive.call(this,e,l,t)}else if(l instanceof s){if(!l.validate)this._compile(l);e=l}else{l=this._schemas[o];if(l instanceof s){if(!l.validate)this._compile(l);if(o==normalizeId(r))return{schema:l,root:e,baseId:n};e=l}else{return}}if(!e.schema)return;n=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,t,n,e.schema,e)}function resolveRecursive(e,r,t){var a=resolveSchema.call(this,e,r);if(a){var i=a.schema;var n=a.baseId;e=a.root;var s=this._getId(i);if(s)n=resolveUrl(n,s);return getJsonPointer.call(this,t,n,i,e)}}var l=n.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,r,t,a){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var i=e.fragment.split("/");for(var s=1;s<i.length;s++){var o=i[s];if(o){o=n.unescapeFragment(o);t=t[o];if(t===undefined)break;var u;if(!l[o]){u=this._getId(t);if(u)r=resolveUrl(r,u);if(t.$ref){var c=resolveUrl(r,t.$ref);var f=resolveSchema.call(this,a,c);if(f){t=f.schema;a=f.root;r=f.baseId}}}}}if(t!==undefined&&t!==a.schema)return{schema:t,root:a,baseId:r}}var u=n.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function inlineRef(e,r){if(r===false)return false;if(r===undefined||r===true)return checkNoRef(e);else if(r)return countKeys(e)<=r}function checkNoRef(e){var r;if(Array.isArray(e)){for(var t=0;t<e.length;t++){r=e[t];if(typeof r=="object"&&!checkNoRef(r))return false}}else{for(var a in e){if(a=="$ref")return false;r=e[a];if(typeof r=="object"&&!checkNoRef(r))return false}}return true}function countKeys(e){var r=0,t;if(Array.isArray(e)){for(var a=0;a<e.length;a++){t=e[a];if(typeof t=="object")r+=countKeys(t);if(r==Infinity)return Infinity}}else{for(var i in e){if(i=="$ref")return Infinity;if(u[i]){r++}else{t=e[i];if(typeof t=="object")r+=countKeys(t)+1;if(r==Infinity)return Infinity}}}return r}function getFullPath(e,r){if(r!==false)e=normalizeId(e);var t=a.parse(e);return _getFullPath(t)}function _getFullPath(e){return a.serialize(e).split("#")[0]+"#"}var c=/#\/?$/;function normalizeId(e){return e?e.replace(c,""):""}function resolveUrl(e,r){r=normalizeId(r);return a.resolve(e,r)}function resolveIds(e){var r=normalizeId(this._getId(e));var t={"":r};var s={"":getFullPath(r,false)};var l={};var u=this;o(e,{allKeys:true},(function(e,r,o,c,f,p,d){if(r==="")return;var h=u._getId(e);var m=t[c];var v=s[c]+"/"+f;if(d!==undefined)v+="/"+(typeof d=="number"?d:n.escapeFragment(d));if(typeof h=="string"){h=m=normalizeId(m?a.resolve(m,h):h);var y=u._refs[h];if(typeof y=="string")y=u._refs[y];if(y&&y.schema){if(!i(e,y.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=normalizeId(v)){if(h[0]=="#"){if(l[h]&&!i(e,l[h]))throw new Error('id "'+h+'" resolves to more than one schema');l[h]=e}else{u._refs[h]=v}}}t[r]=m;s[r]=v}));return l}},6072:(e,r,t)=>{"use strict";var a=t(1960),i=t(3162).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 t=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var n=["number","integer","string","array","object","boolean","null"];e.all=i(r);e.types=i(n);e.forEach((function(t){t.rules=t.rules.map((function(t){var i;if(typeof t=="object"){var n=Object.keys(t)[0];i=t[n];t=n;i.forEach((function(t){r.push(t);e.all[t]=true}))}r.push(t);var s=e.all[t]={keyword:t,code:a[t],implements:i};return s}));e.all.$comment={keyword:"$comment",code:a.$comment};if(t.type)e.types[t.type]=t}));e.keywords=i(r.concat(t));e.custom={};return e}},5738:(e,r,t)=>{"use strict";var a=t(3162);e.exports=SchemaObject;function SchemaObject(e){a.copy(e,this)}},6103:e=>{"use strict";e.exports=function ucs2length(e){var r=0,t=e.length,a=0,i;while(a<t){r++;i=e.charCodeAt(a++);if(i>=55296&&i<=56319&&a<t){i=e.charCodeAt(a);if((i&64512)==56320)a++}}return r}},3162:(e,r,t)=>{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:t(3064),ucs2length:t(6103),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 t in e)r[t]=e[t];return r}function checkDataType(e,r,t,a){var i=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(e){case"null":return r+i+"null";case"array":return s+"Array.isArray("+r+")";case"object":return"("+s+r+n+"typeof "+r+i+'"object"'+n+o+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+n+o+"("+r+" % 1)"+n+r+i+r+(t?n+s+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(t?n+s+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function checkDataTypes(e,r,t){switch(e.length){case 1:return checkDataType(e[0],r,t,true);default:var a="";var i=toHash(e);if(i.array&&i.object){a=i.null?"(":"(!"+r+" || ";a+="typeof "+r+' !== "object")';delete i.null;delete i.array;delete i.object}if(i.number)delete i.integer;for(var n in i)a+=(a?" && ":"")+checkDataType(n,r,t,true);return a}}var a=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,r){if(Array.isArray(r)){var t=[];for(var i=0;i<r.length;i++){var n=r[i];if(a[n])t[t.length]=n;else if(e==="array"&&n==="array")t[t.length]=n}if(t.length)return t}else if(a[r]){return[r]}else if(e==="array"&&r==="array"){return["array"]}}function toHash(e){var r={};for(var t=0;t<e.length;t++)r[e[t]]=true;return r}var i=/^[a-z$_][a-z$_0-9]*$/i;var n=/'|\\/g;function getProperty(e){return typeof e=="number"?"["+e+"]":i.test(e)?"."+e:"['"+escapeQuotes(e)+"']"}function escapeQuotes(e){return e.replace(n,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function varOccurences(e,r){r+="[^0-9]";var t=e.match(new RegExp(r,"g"));return t?t.length:0}function varReplace(e,r,t){r+="([^0-9])";t=t.replace(/\$/g,"$$$$");return e.replace(new RegExp(r,"g"),t+"$1")}function schemaHasRules(e,r){if(typeof e=="boolean")return!e;for(var t in e)if(r[t])return true}function schemaHasRulesExcept(e,r,t){if(typeof e=="boolean")return!e&&t!="not";for(var a in e)if(a!=t&&r[a])return true}function schemaUnknownRules(e,r){if(typeof e=="boolean")return;for(var t in e)if(!r[t])return t}function toQuotedString(e){return"'"+escapeQuotes(e)+"'"}function getPathExpr(e,r,t,a){var i=t?"'/' + "+r+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'";return joinPaths(e,i)}function getPath(e,r,t){var a=t?toQuotedString("/"+escapeJsonPointer(r)):toQuotedString(getProperty(r));return joinPaths(e,a)}var s=/^\/(?:[^~]|~0|~1)*$/;var o=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,r,t){var a,i,n,l;if(e==="")return"rootData";if(e[0]=="/"){if(!s.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e;n="rootData"}else{l=e.match(o);if(!l)throw new Error("Invalid JSON-pointer: "+e);a=+l[1];i=l[2];if(i=="#"){if(a>=r)throw new Error("Cannot access property/index "+a+" levels up, current level is "+r);return t[r-a]}if(a>r)throw new Error("Cannot access data "+a+" levels up, current level is "+r);n="data"+(r-a||"");if(!i)return n}var u=n;var c=i.split("/");for(var f=0;f<c.length;f++){var p=c[f];if(p){n+=getProperty(unescapeJsonPointer(p));u+=" && "+n}}return u}function joinPaths(e,r){if(e=='""')return r;return(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}function escapeJsonPointer(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},7178:e=>{"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,t){for(var a=0;a<t.length;a++){e=JSON.parse(JSON.stringify(e));var i=t[a].split("/");var n=e;var s;for(s=1;s<i.length;s++)n=n[i[s]];for(s=0;s<r.length;s++){var o=r[s];var l=n[o];if(l){n[o]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}}}return e}},4540:(e,r,t)=>{"use strict";var a=t(8703);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.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"}]}}}},2813:e=>{"use strict";e.exports=function generate__limit(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h=r=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",v=e.schema[m],y=e.opts.$data&&v&&v.$data,g=h?"<":">",w=h?">":"<",c=undefined;if(!(p||typeof s=="number"||s===undefined)){throw new Error(r+" must be number")}if(!(y||v===undefined||typeof v=="number"||typeof v=="boolean")){throw new Error(m+" must be number or boolean")}if(y){var S=e.util.getData(v.$data,n,e.dataPathArr),b="exclusive"+i,E="exclType"+i,P="exclIsNumber"+i,_="op"+i,x="' + "+_+" + '";a+=" var schemaExcl"+i+" = "+S+"; ";S="schemaExcl"+i;a+=" var "+b+"; var "+E+" = typeof "+S+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var c=m;var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: '"+m+" should be boolean' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var k=a;a=O.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+k+"]); "}else{a+=" validate.errors = ["+k+"]; return false; "}}else{a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+E+" == 'number' ? ( ("+b+" = "+d+" === undefined || "+S+" "+g+"= "+d+") ? "+f+" "+w+"= "+S+" : "+f+" "+w+" "+d+" ) : ( ("+b+" = "+S+" === true) ? "+f+" "+w+"= "+d+" : "+f+" "+w+" "+d+" ) || "+f+" !== "+f+") { var op"+i+" = "+b+" ? '"+g+"' : '"+g+"='; ";if(s===undefined){c=m;l=e.errSchemaPath+"/"+m;d=S;p=y}}else{var P=typeof v=="number",x=g;if(P&&p){var _="'"+x+"'";a+=" if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" ( "+d+" === undefined || "+v+" "+g+"= "+d+" ? "+f+" "+w+"= "+v+" : "+f+" "+w+" "+d+" ) || "+f+" !== "+f+") { "}else{if(P&&s===undefined){b=true;c=m;l=e.errSchemaPath+"/"+m;d=v;w+="="}else{if(P)d=Math[h?"min":"max"](v,s);if(v===(P?d:true)){b=true;c=m;l=e.errSchemaPath+"/"+m;w+="="}else{b=false;x+="="}}var _="'"+x+"'";a+=" if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+f+" "+w+" "+d+" || "+f+" !== "+f+") { "}}c=c||r;var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+_+", limit: "+d+", exclusive: "+b+" } ";if(e.opts.messages!==false){a+=" , message: 'should be "+x+" ";if(p){a+="' + "+d}else{a+=""+d+"'"}}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var k=a;a=O.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+k+"]); "}else{a+=" validate.errors = ["+k+"]; return false; "}}else{a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}return a}},9809:e=>{"use strict";e.exports=function generate__limitItems(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxItems"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+f+".length "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have ";if(r=="maxItems"){a+="more"}else{a+="fewer"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" items' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},5356:e=>{"use strict";e.exports=function generate__limitLength(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxLength"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}if(e.opts.unicode===false){a+=" "+f+".length "}else{a+=" ucs2length("+f+") "}a+=" "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT be ";if(r=="maxLength"){a+="longer"}else{a+="shorter"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" characters' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},7500:e=>{"use strict";e.exports=function generate__limitProperties(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxProperties"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" Object.keys("+f+").length "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have ";if(r=="maxProperties"){a+="more"}else{a+="fewer"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" properties' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},6265:e=>{"use strict";e.exports=function generate_allOf(e,r,t){var a=" ";var i=e.schema[r];var n=e.schemaPath+e.util.getProperty(r);var s=e.errSchemaPath+"/"+r;var o=!e.opts.allErrors;var l=e.util.copy(e);var u="";l.level++;var c="valid"+l.level;var f=l.baseId,p=true;var d=i;if(d){var h,m=-1,v=d.length-1;while(m<v){h=d[m+=1];if(e.opts.strictKeywords?typeof h=="object"&&Object.keys(h).length>0||h===false:e.util.schemaHasRules(h,e.RULES.all)){p=false;l.schema=h;l.schemaPath=n+"["+m+"]";l.errSchemaPath=s+"/"+m;a+=" "+e.validate(l)+" ";l.baseId=f;if(o){a+=" if ("+c+") { ";u+="}"}}}}if(o){if(p){a+=" if (true) { "}else{a+=" "+u.slice(0,-1)+" "}}return a}},2816:e=>{"use strict";e.exports=function generate_anyOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v=s.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 y=d.baseId;a+=" var "+p+" = errors; var "+f+" = false; ";var g=e.compositeRule;e.compositeRule=d.compositeRule=true;var w=s;if(w){var S,b=-1,E=w.length-1;while(b<E){S=w[b+=1];d.schema=S;d.schemaPath=o+"["+b+"]";d.errSchemaPath=l+"/"+b;a+=" "+e.validate(d)+" ";d.baseId=y;a+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ";h+="}"}}e.compositeRule=d.compositeRule=g;a+=" "+h+" if (!"+f+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"anyOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should match some schema in anyOf' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";if(e.opts.allErrors){a+=" } "}}else{if(u){a+=" if (true) { "}}return a}},4302:e=>{"use strict";e.exports=function generate_comment(e,r,t){var a=" ";var i=e.schema[r];var n=e.errSchemaPath+"/"+r;var s=!e.opts.allErrors;var o=e.util.toQuotedString(i);if(e.opts.$comment===true){a+=" console.log("+o+");"}else if(typeof e.opts.$comment=="function"){a+=" self._opts.$comment("+o+", "+e.util.toQuotedString(n)+", validate.root.schema);"}return a}},3641:e=>{"use strict";e.exports=function generate_const(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!p){a+=" var schema"+i+" = validate.schema"+o+";"}a+="var "+f+" = equal("+c+", schema"+i+"); if (!"+f+") { ";var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+i+" } ";if(e.opts.messages!==false){a+=" , message: 'should be equal to constant' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var m=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+m+"]); "}else{a+=" validate.errors = ["+m+"]; return false; "}}else{a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" }";if(u){a+=" else { "}return a}},6665:e=>{"use strict";e.exports=function generate_contains(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v="i"+i,y=d.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId,S=e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all);a+="var "+p+" = errors;var "+f+";";if(S){var b=e.compositeRule;e.compositeRule=d.compositeRule=true;d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" var "+m+" = false; for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var E=c+"["+v+"]";d.dataPathArr[y]=v;var P=e.validate(d);d.baseId=w;if(e.util.varOccurences(P,g)<2){a+=" "+e.util.varReplace(P,g,E)+" "}else{a+=" var "+g+" = "+E+"; "+P+" "}a+=" if ("+m+") break; } ";e.compositeRule=d.compositeRule=b;a+=" "+h+" if (!"+m+") {"}else{a+=" if ("+c+".length == 0) {"}var _=_||[];_.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should contain a valid item' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var x=a;a=_.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+x+"]); "}else{a+=" validate.errors = ["+x+"]; return false; "}}else{a+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { ";if(S){a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "}if(e.opts.allErrors){a+=" } "}return a}},8343:e=>{"use strict";e.exports=function generate_custom(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p="valid"+i;var d="errs__"+i;var h=e.opts.$data&&s&&s.$data,m;if(h){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";m="schema"+i}else{m=s}var v=this,y="definition"+i,g=v.definition,w="";var S,b,E,P,_;if(h&&g.$data){_="keywordValidate"+i;var x=g.validateSchema;a+=" var "+y+" = RULES.custom['"+r+"'].definition; var "+_+" = "+y+".validate;"}else{P=e.useCustomRule(v,s,e.schema,e);if(!P)return;m="validate.schema"+o;_=P.code;S=g.compile;b=g.inline;E=g.macro}var O=_+".errors",k="i"+i,C="ruleErr"+i,R=g.async;if(R&&!e.async)throw new Error("async keyword in sync schema");if(!(b||E)){a+=""+O+" = null;"}a+="var "+d+" = errors;var "+p+";";if(h&&g.$data){w+="}";a+=" if ("+m+" === undefined) { "+p+" = true; } else { ";if(x){w+="}";a+=" "+p+" = "+y+".validateSchema("+m+"); if ("+p+") { "}}if(b){if(g.statements){a+=" "+P.validate+" "}else{a+=" "+p+" = "+P.validate+"; "}}else if(E){var A=e.util.copy(e);var w="";A.level++;var F="valid"+A.level;A.schema=P.validate;A.schemaPath="";var D=e.compositeRule;e.compositeRule=A.compositeRule=true;var I=e.validate(A).replace(/validate\.schema/g,_);e.compositeRule=A.compositeRule=D;a+=" "+I}else{var j=j||[];j.push(a);a="";a+=" "+_+".call( ";if(e.opts.passContext){a+="this"}else{a+="self"}if(S||g.schema===false){a+=" , "+f+" "}else{a+=" , "+m+" , "+f+" , validate.schema"+e.schemaPath+" "}a+=" , (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var T=n?"data"+(n-1||""):"parentData",$=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+T+" , "+$+" , rootData ) ";var N=a;a=j.pop();if(g.errors===false){a+=" "+p+" = ";if(R){a+="await "}a+=""+N+"; "}else{if(R){O="customErrors"+i;a+=" var "+O+" = null; try { "+p+" = await "+N+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+O+" = e.errors; else throw e; } "}else{a+=" "+O+" = null; "+p+" = "+N+"; "}}}if(g.modifying){a+=" if ("+T+") "+f+" = "+T+"["+$+"];"}a+=""+w;if(g.valid){if(u){a+=" if (true) { "}}else{a+=" if ( ";if(g.valid===undefined){a+=" !";if(E){a+=""+F}else{a+=""+p}}else{a+=" "+!g.valid+" "}a+=") { ";c=v.keyword;var j=j||[];j.push(a);a="";var j=j||[];j.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ";if(e.opts.messages!==false){a+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var L=a;a=j.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+L+"]); "}else{a+=" validate.errors = ["+L+"]; return false; "}}else{a+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var M=a;a=j.pop();if(b){if(g.errors){if(g.errors!="full"){a+=" for (var "+k+"="+d+"; "+k+"<errors; "+k+"++) { var "+C+" = vErrors["+k+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ';if(e.opts.verbose){a+=" "+C+".schema = "+m+"; "+C+".data = "+f+"; "}a+=" } "}}else{if(g.errors===false){a+=" "+M+" "}else{a+=" if ("+d+" == errors) { "+M+" } else { for (var "+k+"="+d+"; "+k+"<errors; "+k+"++) { var "+C+" = vErrors["+k+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ';if(e.opts.verbose){a+=" "+C+".schema = "+m+"; "+C+".data = "+f+"; "}a+=" } } "}}}else if(E){a+=" var err = ";if(e.createErrors!==false){a+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ";if(e.opts.messages!==false){a+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}}else{if(g.errors===false){a+=" "+M+" "}else{a+=" if (Array.isArray("+O+")) { if (vErrors === null) vErrors = "+O+"; else vErrors = vErrors.concat("+O+"); errors = vErrors.length; for (var "+k+"="+d+"; "+k+"<errors; "+k+"++) { var "+C+" = vErrors["+k+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; "+C+'.schemaPath = "'+l+'"; ';if(e.opts.verbose){a+=" "+C+".schema = "+m+"; "+C+".data = "+f+"; "}a+=" } } else { "+M+" } "}}a+=" } ";if(u){a+=" else { "}}return a}},4352:e=>{"use strict";e.exports=function generate_dependencies(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;var m={},v={},y=e.opts.ownProperties;for(b in s){if(b=="__proto__")continue;var g=s[b];var w=Array.isArray(g)?v:m;w[b]=g}a+="var "+f+" = errors;";var S=e.errorPath;a+="var missing"+i+";";for(var b in v){w=v[b];if(w.length){a+=" if ( "+c+e.util.getProperty(b)+" !== undefined ";if(y){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(b)+"') "}if(u){a+=" && ( ";var E=w;if(E){var P,_=-1,x=E.length-1;while(_<x){P=E[_+=1];if(_){a+=" || "}var O=e.util.getProperty(P),k=c+O;a+=" ( ( "+k+" === undefined ";if(y){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "}a+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:O)+") ) "}}a+=")) { ";var C="missing"+i,R="' + "+C+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(S,C,true):S+" + "+C}var A=A||[];A.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+R+"', depsCount: "+w.length+", deps: '"+e.util.escapeQuotes(w.length==1?w[0]:w.join(", "))+"' } ";if(e.opts.messages!==false){a+=" , message: 'should have ";if(w.length==1){a+="property "+e.util.escapeQuotes(w[0])}else{a+="properties "+e.util.escapeQuotes(w.join(", "))}a+=" when property "+e.util.escapeQuotes(b)+" is present' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var F=a;a=A.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+F+"]); "}else{a+=" validate.errors = ["+F+"]; return false; "}}else{a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{a+=" ) { ";var D=w;if(D){var P,I=-1,j=D.length-1;while(I<j){P=D[I+=1];var O=e.util.getProperty(P),R=e.util.escapeQuotes(P),k=c+O;if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(S,P,e.opts.jsonPointers)}a+=" if ( "+k+" === undefined ";if(y){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "}a+=") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+R+"', depsCount: "+w.length+", deps: '"+e.util.escapeQuotes(w.length==1?w[0]:w.join(", "))+"' } ";if(e.opts.messages!==false){a+=" , message: 'should have ";if(w.length==1){a+="property "+e.util.escapeQuotes(w[0])}else{a+="properties "+e.util.escapeQuotes(w.join(", "))}a+=" when property "+e.util.escapeQuotes(b)+" is present' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}a+=" } ";if(u){d+="}";a+=" else { "}}}e.errorPath=S;var T=p.baseId;for(var b in m){var g=m[b];if(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===false:e.util.schemaHasRules(g,e.RULES.all)){a+=" "+h+" = true; if ( "+c+e.util.getProperty(b)+" !== undefined ";if(y){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(b)+"') "}a+=") { ";p.schema=g;p.schemaPath=o+e.util.getProperty(b);p.errSchemaPath=l+"/"+e.util.escapeFragment(b);a+=" "+e.validate(p)+" ";p.baseId=T;a+=" } ";if(u){a+=" if ("+h+") { ";d+="}"}}}if(u){a+=" "+d+" if ("+f+" == errors) {"}return a}},5625:e=>{"use strict";e.exports=function generate_enum(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h="i"+i,m="schema"+i;if(!p){a+=" var "+m+" = validate.schema"+o+";"}a+="var "+f+";";if(p){a+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}a+=""+f+" = false;for (var "+h+"=0; "+h+"<"+m+".length; "+h+"++) if (equal("+c+", "+m+"["+h+"])) { "+f+" = true; break; }";if(p){a+=" } "}a+=" if (!"+f+") { ";var v=v||[];v.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+i+" } ";if(e.opts.messages!==false){a+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var y=a;a=v.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+y+"]); "}else{a+=" validate.errors = ["+y+"]; return false; "}}else{a+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" }";if(u){a+=" else { "}return a}},137:e=>{"use strict";e.exports=function generate_format(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");if(e.opts.format===false){if(u){a+=" if (true) { "}return a}var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}var d=e.opts.unknownFormats,h=Array.isArray(d);if(f){var m="format"+i,v="isObject"+i,y="formatType"+i;a+=" var "+m+" = formats["+p+"]; var "+v+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+y+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ";if(e.async){a+=" var async"+i+" = "+m+".async; "}a+=" "+m+" = "+m+".validate; } if ( ";if(f){a+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}a+=" (";if(d!="ignore"){a+=" ("+p+" && !"+m+" ";if(h){a+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "}a+=") || "}a+=" ("+m+" && "+y+" == '"+t+"' && !(typeof "+m+" == 'function' ? ";if(e.async){a+=" (async"+i+" ? await "+m+"("+c+") : "+m+"("+c+")) "}else{a+=" "+m+"("+c+") "}a+=" : "+m+".test("+c+"))))) {"}else{var m=e.formats[s];if(!m){if(d=="ignore"){e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"');if(u){a+=" if (true) { "}return a}else if(h&&d.indexOf(s)>=0){if(u){a+=" if (true) { "}return a}else{throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}}var v=typeof m=="object"&&!(m instanceof RegExp)&&m.validate;var y=v&&m.type||"string";if(v){var g=m.async===true;m=m.validate}if(y!=t){if(u){a+=" if (true) { "}return a}if(g){if(!e.async)throw new Error("async format in sync schema");var w="formats"+e.util.getProperty(s)+".validate";a+=" if (!(await "+w+"("+c+"))) { "}else{a+=" if (! ";var w="formats"+e.util.getProperty(s);if(v)w+=".validate";if(typeof m=="function"){a+=" "+w+"("+c+") "}else{a+=" "+w+".test("+c+") "}a+=") { "}}var S=S||[];S.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ";if(f){a+=""+p}else{a+=""+e.util.toQuotedString(s)}a+=" } ";if(e.opts.messages!==false){a+=" , message: 'should match format \"";if(f){a+="' + "+p+" + '"}else{a+=""+e.util.escapeQuotes(s)}a+="\"' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+e.util.toQuotedString(s)}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var b=a;a=S.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+b+"]); "}else{a+=" validate.errors = ["+b+"]; return false; "}}else{a+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}return a}},7137:e=>{"use strict";e.exports=function generate_if(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);d.level++;var h="valid"+d.level;var m=e.schema["then"],v=e.schema["else"],y=m!==undefined&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===false:e.util.schemaHasRules(m,e.RULES.all)),g=v!==undefined&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)),w=d.baseId;if(y||g){var S;d.createErrors=false;d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" var "+p+" = errors; var "+f+" = true; ";var b=e.compositeRule;e.compositeRule=d.compositeRule=true;a+=" "+e.validate(d)+" ";d.baseId=w;d.createErrors=true;a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";e.compositeRule=d.compositeRule=b;if(y){a+=" if ("+h+") { ";d.schema=e.schema["then"];d.schemaPath=e.schemaPath+".then";d.errSchemaPath=e.errSchemaPath+"/then";a+=" "+e.validate(d)+" ";d.baseId=w;a+=" "+f+" = "+h+"; ";if(y&&g){S="ifClause"+i;a+=" var "+S+" = 'then'; "}else{S="'then'"}a+=" } ";if(g){a+=" else { "}}else{a+=" if (!"+h+") { "}if(g){d.schema=e.schema["else"];d.schemaPath=e.schemaPath+".else";d.errSchemaPath=e.errSchemaPath+"/else";a+=" "+e.validate(d)+" ";d.baseId=w;a+=" "+f+" = "+h+"; ";if(y&&g){S="ifClause"+i;a+=" var "+S+" = 'else'; "}else{S="'else'"}a+=" } "}a+=" if (!"+f+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+S+" } ";if(e.opts.messages!==false){a+=" , message: 'should match \"' + "+S+" + '\" schema' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+=" } ";if(u){a+=" else { "}}else{if(u){a+=" if (true) { "}}return a}},1960:(e,r,t)=>{"use strict";e.exports={$ref:t(144),allOf:t(6265),anyOf:t(2816),$comment:t(4302),const:t(3641),contains:t(6665),dependencies:t(4352),enum:t(5625),format:t(137),if:t(7137),items:t(6301),maximum:t(2813),minimum:t(2813),maxItems:t(9809),minItems:t(9809),maxLength:t(5356),minLength:t(5356),maxProperties:t(7500),minProperties:t(7500),multipleOf:t(9180),not:t(911),oneOf:t(555),pattern:t(8557),properties:t(2847),propertyNames:t(5897),required:t(6775),uniqueItems:t(4313),validate:t(734)}},6301:e=>{"use strict";e.exports=function generate_items(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v="i"+i,y=d.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId;a+="var "+p+" = errors;var "+f+";";if(Array.isArray(s)){var S=e.schema.additionalItems;if(S===false){a+=" "+f+" = "+c+".length <= "+s.length+"; ";var b=l;l=e.errSchemaPath+"/additionalItems";a+=" if (!"+f+") { ";var E=E||[];E.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+s.length+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have more than "+s.length+" items' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var P=a;a=E.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+P+"]); "}else{a+=" validate.errors = ["+P+"]; return false; "}}else{a+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";l=b;if(u){h+="}";a+=" else { "}}var _=s;if(_){var x,O=-1,k=_.length-1;while(O<k){x=_[O+=1];if(e.opts.strictKeywords?typeof x=="object"&&Object.keys(x).length>0||x===false:e.util.schemaHasRules(x,e.RULES.all)){a+=" "+m+" = true; if ("+c+".length > "+O+") { ";var C=c+"["+O+"]";d.schema=x;d.schemaPath=o+"["+O+"]";d.errSchemaPath=l+"/"+O;d.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,true);d.dataPathArr[y]=O;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}a+=" } ";if(u){a+=" if ("+m+") { ";h+="}"}}}}if(typeof S=="object"&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===false:e.util.schemaHasRules(S,e.RULES.all))){d.schema=S;d.schemaPath=e.schemaPath+".additionalItems";d.errSchemaPath=e.errSchemaPath+"/additionalItems";a+=" "+m+" = true; if ("+c+".length > "+s.length+") { for (var "+v+" = "+s.length+"; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=c+"["+v+"]";d.dataPathArr[y]=v;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}if(u){a+=" if (!"+m+") break; "}a+=" } } ";if(u){a+=" if ("+m+") { ";h+="}"}}}else if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" for (var "+v+" = "+0+"; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=c+"["+v+"]";d.dataPathArr[y]=v;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}if(u){a+=" if (!"+m+") break; "}a+=" }"}if(u){a+=" "+h+" if ("+p+" == errors) {"}return a}},9180:e=>{"use strict";e.exports=function generate_multipleOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}if(!(f||typeof s=="number")){throw new Error(r+" must be number")}a+="var division"+i+";if (";if(f){a+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "}a+=" (division"+i+" = "+c+" / "+p+", ";if(e.opts.multipleOfPrecision){a+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" "}else{a+=" division"+i+" !== parseInt(division"+i+") "}a+=" ) ";if(f){a+=" ) "}a+=" ) { ";var d=d||[];d.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+p+" } ";if(e.opts.messages!==false){a+=" , message: 'should be multiple of ";if(f){a+="' + "+p}else{a+=""+p+"'"}}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var h=a;a=d.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+h+"]); "}else{a+=" validate.errors = ["+h+"]; return false; "}}else{a+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},911:e=>{"use strict";e.exports=function generate_not(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);p.level++;var d="valid"+p.level;if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=l;a+=" var "+f+" = errors; ";var h=e.compositeRule;e.compositeRule=p.compositeRule=true;p.createErrors=false;var m;if(p.opts.allErrors){m=p.opts.allErrors;p.opts.allErrors=false}a+=" "+e.validate(p)+" ";p.createErrors=true;if(m)p.opts.allErrors=m;e.compositeRule=p.compositeRule=h;a+=" if ("+d+") { ";var v=v||[];v.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should NOT be valid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var y=a;a=v.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+y+"]); "}else{a+=" validate.errors = ["+y+"]; return false; "}}else{a+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ";if(e.opts.allErrors){a+=" } "}}else{a+=" var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should NOT be valid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(u){a+=" if (false) { "}}return a}},555:e=>{"use strict";e.exports=function generate_oneOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v=d.baseId,y="prevValid"+i,g="passingSchemas"+i;a+="var "+p+" = errors , "+y+" = false , "+f+" = false , "+g+" = null; ";var w=e.compositeRule;e.compositeRule=d.compositeRule=true;var S=s;if(S){var b,E=-1,P=S.length-1;while(E<P){b=S[E+=1];if(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===false:e.util.schemaHasRules(b,e.RULES.all)){d.schema=b;d.schemaPath=o+"["+E+"]";d.errSchemaPath=l+"/"+E;a+=" "+e.validate(d)+" ";d.baseId=v}else{a+=" var "+m+" = true; "}if(E){a+=" if ("+m+" && "+y+") { "+f+" = false; "+g+" = ["+g+", "+E+"]; } else { ";h+="}"}a+=" if ("+m+") { "+f+" = "+y+" = true; "+g+" = "+E+"; }"}}e.compositeRule=d.compositeRule=w;a+=""+h+"if (!"+f+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+g+" } ";if(e.opts.messages!==false){a+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }";if(e.opts.allErrors){a+=" } "}return a}},8557:e=>{"use strict";e.exports=function generate_pattern(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}var d=f?"(new RegExp("+p+"))":e.usePattern(s);a+="if ( ";if(f){a+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}a+=" !"+d+".test("+c+") ) { ";var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ";if(f){a+=""+p}else{a+=""+e.util.toQuotedString(s)}a+=" } ";if(e.opts.messages!==false){a+=" , message: 'should match pattern \"";if(f){a+="' + "+p+" + '"}else{a+=""+e.util.escapeQuotes(s)}a+="\"' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+e.util.toQuotedString(s)}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var m=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+m+"]); "}else{a+=" validate.errors = ["+m+"]; return false; "}}else{a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},2847:e=>{"use strict";e.exports=function generate_properties(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;var m="key"+i,v="idx"+i,y=p.dataLevel=e.dataLevel+1,g="data"+y,w="dataProperties"+i;var S=Object.keys(s||{}).filter(notProto),b=e.schema.patternProperties||{},E=Object.keys(b).filter(notProto),P=e.schema.additionalProperties,_=S.length||E.length,x=P===false,O=typeof P=="object"&&Object.keys(P).length,k=e.opts.removeAdditional,C=x||O||k,R=e.opts.ownProperties,A=e.baseId;var F=e.schema.required;if(F&&!(e.opts.$data&&F.$data)&&F.length<e.opts.loopRequired){var D=e.util.toHash(F)}function notProto(e){return e!=="__proto__"}a+="var "+f+" = errors;var "+h+" = true;";if(R){a+=" var "+w+" = undefined;"}if(C){if(R){a+=" "+w+" = "+w+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+w+".length; "+v+"++) { var "+m+" = "+w+"["+v+"]; "}else{a+=" for (var "+m+" in "+c+") { "}if(_){a+=" var isAdditional"+i+" = !(false ";if(S.length){if(S.length>8){a+=" || validate.schema"+o+".hasOwnProperty("+m+") "}else{var I=S;if(I){var j,T=-1,$=I.length-1;while(T<$){j=I[T+=1];a+=" || "+m+" == "+e.util.toQuotedString(j)+" "}}}}if(E.length){var N=E;if(N){var L,M=-1,q=N.length-1;while(M<q){L=N[M+=1];a+=" || "+e.usePattern(L)+".test("+m+") "}}}a+=" ); if (isAdditional"+i+") { "}if(k=="all"){a+=" delete "+c+"["+m+"]; "}else{var U=e.errorPath;var H="' + "+m+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)}if(x){if(k){a+=" delete "+c+"["+m+"]; "}else{a+=" "+h+" = false; ";var B=l;l=e.errSchemaPath+"/additionalProperties";var z=z||[];z.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"additionalProperties"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+H+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is an invalid additional property"}else{a+="should NOT have additional properties"}a+="' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var V=a;a=z.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+V+"]); "}else{a+=" validate.errors = ["+V+"]; return false; "}}else{a+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}l=B;if(u){a+=" break; "}}}else if(O){if(k=="failing"){a+=" var "+f+" = errors; ";var W=e.compositeRule;e.compositeRule=p.compositeRule=true;p.schema=P;p.schemaPath=e.schemaPath+".additionalProperties";p.errSchemaPath=e.errSchemaPath+"/additionalProperties";p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Q=c+"["+m+"]";p.dataPathArr[y]=m;var Y=e.validate(p);p.baseId=A;if(e.util.varOccurences(Y,g)<2){a+=" "+e.util.varReplace(Y,g,Q)+" "}else{a+=" var "+g+" = "+Q+"; "+Y+" "}a+=" if (!"+h+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+m+"]; } ";e.compositeRule=p.compositeRule=W}else{p.schema=P;p.schemaPath=e.schemaPath+".additionalProperties";p.errSchemaPath=e.errSchemaPath+"/additionalProperties";p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Q=c+"["+m+"]";p.dataPathArr[y]=m;var Y=e.validate(p);p.baseId=A;if(e.util.varOccurences(Y,g)<2){a+=" "+e.util.varReplace(Y,g,Q)+" "}else{a+=" var "+g+" = "+Q+"; "+Y+" "}if(u){a+=" if (!"+h+") break; "}}}e.errorPath=U}if(_){a+=" } "}a+=" } ";if(u){a+=" if ("+h+") { ";d+="}"}}var K=e.opts.useDefaults&&!e.compositeRule;if(S.length){var J=S;if(J){var j,G=-1,Z=J.length-1;while(G<Z){j=J[G+=1];var X=s[j];if(e.opts.strictKeywords?typeof X=="object"&&Object.keys(X).length>0||X===false:e.util.schemaHasRules(X,e.RULES.all)){var ee=e.util.getProperty(j),Q=c+ee,re=K&&X.default!==undefined;p.schema=X;p.schemaPath=o+ee;p.errSchemaPath=l+"/"+e.util.escapeFragment(j);p.errorPath=e.util.getPath(e.errorPath,j,e.opts.jsonPointers);p.dataPathArr[y]=e.util.toQuotedString(j);var Y=e.validate(p);p.baseId=A;if(e.util.varOccurences(Y,g)<2){Y=e.util.varReplace(Y,g,Q);var te=Q}else{var te=g;a+=" var "+g+" = "+Q+"; "}if(re){a+=" "+Y+" "}else{if(D&&D[j]){a+=" if ( "+te+" === undefined ";if(R){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=") { "+h+" = false; ";var U=e.errorPath,B=l,ae=e.util.escapeQuotes(j);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(U,j,e.opts.jsonPointers)}l=e.errSchemaPath+"/required";var z=z||[];z.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ae+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+ae+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var V=a;a=z.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+V+"]); "}else{a+=" validate.errors = ["+V+"]; return false; "}}else{a+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}l=B;e.errorPath=U;a+=" } else { "}else{if(u){a+=" if ( "+te+" === undefined ";if(R){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=") { "+h+" = true; } else { "}else{a+=" if ("+te+" !== undefined ";if(R){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=" ) { "}}a+=" "+Y+" } "}}if(u){a+=" if ("+h+") { ";d+="}"}}}}if(E.length){var ie=E;if(ie){var L,ne=-1,se=ie.length-1;while(ne<se){L=ie[ne+=1];var X=b[L];if(e.opts.strictKeywords?typeof X=="object"&&Object.keys(X).length>0||X===false:e.util.schemaHasRules(X,e.RULES.all)){p.schema=X;p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(L);p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(L);if(R){a+=" "+w+" = "+w+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+w+".length; "+v+"++) { var "+m+" = "+w+"["+v+"]; "}else{a+=" for (var "+m+" in "+c+") { "}a+=" if ("+e.usePattern(L)+".test("+m+")) { ";p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Q=c+"["+m+"]";p.dataPathArr[y]=m;var Y=e.validate(p);p.baseId=A;if(e.util.varOccurences(Y,g)<2){a+=" "+e.util.varReplace(Y,g,Q)+" "}else{a+=" var "+g+" = "+Q+"; "+Y+" "}if(u){a+=" if (!"+h+") break; "}a+=" } ";if(u){a+=" else "+h+" = true; "}a+=" } ";if(u){a+=" if ("+h+") { ";d+="}"}}}}}if(u){a+=" "+d+" if ("+f+" == errors) {"}return a}},5897:e=>{"use strict";e.exports=function generate_propertyNames(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;a+="var "+f+" = errors;";if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=l;var m="key"+i,v="idx"+i,y="i"+i,g="' + "+m+" + '",w=p.dataLevel=e.dataLevel+1,S="data"+w,b="dataProperties"+i,E=e.opts.ownProperties,P=e.baseId;if(E){a+=" var "+b+" = undefined; "}if(E){a+=" "+b+" = "+b+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; "}else{a+=" for (var "+m+" in "+c+") { "}a+=" var startErrs"+i+" = errors; ";var _=m;var x=e.compositeRule;e.compositeRule=p.compositeRule=true;var O=e.validate(p);p.baseId=P;if(e.util.varOccurences(O,S)<2){a+=" "+e.util.varReplace(O,S,_)+" "}else{a+=" var "+S+" = "+_+"; "+O+" "}e.compositeRule=p.compositeRule=x;a+=" if (!"+h+") { for (var "+y+"=startErrs"+i+"; "+y+"<errors; "+y+"++) { vErrors["+y+"].propertyName = "+m+"; } var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"propertyNames"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+g+"' } ";if(e.opts.messages!==false){a+=" , message: 'property name \\'"+g+"\\' is invalid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}if(u){a+=" break; "}a+=" } }"}if(u){a+=" "+d+" if ("+f+" == errors) {"}return a}},144:e=>{"use strict";e.exports=function generate_ref(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var u="data"+(n||"");var c="valid"+i;var f,p;if(s=="#"||s=="#/"){if(e.isRoot){f=e.async;p="validate"}else{f=e.root.schema.$async===true;p="root.refVal[0]"}}else{var d=e.resolveRef(e.baseId,s,e.isRoot);if(d===undefined){var h=e.MissingRefError.message(e.baseId,s);if(e.opts.missingRefs=="fail"){e.logger.error(h);var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(o)+" , params: { ref: '"+e.util.escapeQuotes(s)+"' } ";if(e.opts.messages!==false){a+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(s)+"' "}if(e.opts.verbose){a+=" , schema: "+e.util.toQuotedString(s)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&l){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(l){a+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(h);if(l){a+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,s,h)}}else if(d.inline){var y=e.util.copy(e);y.level++;var g="valid"+y.level;y.schema=d.schema;y.schemaPath="";y.errSchemaPath=s;var w=e.validate(y).replace(/validate\.schema/g,d.code);a+=" "+w+" ";if(l){a+=" if ("+g+") { "}}else{f=d.$async===true||e.async&&d.$async!==false;p=d.code}}if(p){var m=m||[];m.push(a);a="";if(e.opts.passContext){a+=" "+p+".call(this, "}else{a+=" "+p+"( "}a+=" "+u+", (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var S=n?"data"+(n-1||""):"parentData",b=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+S+" , "+b+", rootData) ";var E=a;a=m.pop();if(f){if(!e.async)throw new Error("async schema referenced by sync schema");if(l){a+=" var "+c+"; "}a+=" try { await "+E+"; ";if(l){a+=" "+c+" = true; "}a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(l){a+=" "+c+" = false; "}a+=" } ";if(l){a+=" if ("+c+") { "}}else{a+=" if (!"+E+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ";if(l){a+=" else { "}}}return a}},6775:e=>{"use strict";e.exports=function generate_required(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h="schema"+i;if(!p){if(s.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[];var v=s;if(v){var y,g=-1,w=v.length-1;while(g<w){y=v[g+=1];var S=e.schema.properties[y];if(!(S&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===false:e.util.schemaHasRules(S,e.RULES.all)))){m[m.length]=y}}}}else{var m=s}}if(p||m.length){var b=e.errorPath,E=p||m.length>=e.opts.loopRequired,P=e.opts.ownProperties;if(u){a+=" var missing"+i+"; ";if(E){if(!p){a+=" var "+h+" = validate.schema"+o+"; "}var _="i"+i,x="schema"+i+"["+_+"]",O="' + "+x+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(b,x,e.opts.jsonPointers)}a+=" var "+f+" = true; ";if(p){a+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}a+=" for (var "+_+" = 0; "+_+" < "+h+".length; "+_+"++) { "+f+" = "+c+"["+h+"["+_+"]] !== undefined ";if(P){a+=" && Object.prototype.hasOwnProperty.call("+c+", "+h+"["+_+"]) "}a+="; if (!"+f+") break; } ";if(p){a+=" } "}a+=" if (!"+f+") { ";var k=k||[];k.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+O+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+O+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var C=a;a=k.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+C+"]); "}else{a+=" validate.errors = ["+C+"]; return false; "}}else{a+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { "}else{a+=" if ( ";var R=m;if(R){var A,_=-1,F=R.length-1;while(_<F){A=R[_+=1];if(_){a+=" || "}var D=e.util.getProperty(A),I=c+D;a+=" ( ( "+I+" === undefined ";if(P){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "}a+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?A:D)+") ) "}}a+=") { ";var x="missing"+i,O="' + "+x+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,x,true):b+" + "+x}var k=k||[];k.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+O+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+O+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var C=a;a=k.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+C+"]); "}else{a+=" validate.errors = ["+C+"]; return false; "}}else{a+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { "}}else{if(E){if(!p){a+=" var "+h+" = validate.schema"+o+"; "}var _="i"+i,x="schema"+i+"["+_+"]",O="' + "+x+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(b,x,e.opts.jsonPointers)}if(p){a+=" if ("+h+" && !Array.isArray("+h+")) { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+O+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+O+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "}a+=" for (var "+_+" = 0; "+_+" < "+h+".length; "+_+"++) { if ("+c+"["+h+"["+_+"]] === undefined ";if(P){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+h+"["+_+"]) "}a+=") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+O+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+O+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ";if(p){a+=" } "}}else{var j=m;if(j){var A,T=-1,$=j.length-1;while(T<$){A=j[T+=1];var D=e.util.getProperty(A),O=e.util.escapeQuotes(A),I=c+D;if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(b,A,e.opts.jsonPointers)}a+=" if ( "+I+" === undefined ";if(P){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "}a+=") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+O+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+O+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}}e.errorPath=b}else if(u){a+=" if (true) {"}return a}},4313:e=>{"use strict";e.exports=function generate_uniqueItems(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if((s||p)&&e.opts.uniqueItems!==false){if(p){a+=" var "+f+"; if ("+d+" === false || "+d+" === undefined) "+f+" = true; else if (typeof "+d+" != 'boolean') "+f+" = false; else { "}a+=" var i = "+c+".length , "+f+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||h=="object"||h=="array"||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0)){a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+f+" = false; break outer; } } } "}else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var v="checkDataType"+(m?"s":"");a+=" if ("+e.util[v](h,"item",e.opts.strictNumbers,true)+") continue; ";if(m){a+=" if (typeof item == 'string') item = '\"' + item; "}a+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ";if(p){a+=" } "}a+=" if (!"+f+") { ";var y=y||[];y.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var g=a;a=y.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+g+"]); "}else{a+=" validate.errors = ["+g+"]; return false; "}}else{a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}}else{if(u){a+=" if (true) { "}}return a}},734:e=>{"use strict";e.exports=function generate_validate(e,r,t){var a="";var i=e.schema.$async===true,n=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var o=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(o){var l="unknown keyword: "+o;if(e.opts.strictKeywords==="log")e.logger.warn(l);else throw new Error(l)}}if(e.isTop){a+=" var validate = ";if(i){e.async=true;a+="async "}a+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(s&&(e.opts.sourceCode||e.opts.processCode)){a+=" "+("/*# sourceURL="+s+" */")+" "}}if(typeof e.schema=="boolean"||!(n||e.schema.$ref)){var r="false schema";var u=e.level;var c=e.dataLevel;var f=e.schema[r];var p=e.schemaPath+e.util.getProperty(r);var d=e.errSchemaPath+"/"+r;var h=!e.opts.allErrors;var m;var v="data"+(c||"");var y="valid"+u;if(e.schema===false){if(e.isTop){h=true}else{a+=" var "+y+" = false; "}var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'boolean schema is false' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var w=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+w+"]); "}else{a+=" validate.errors = ["+w+"]; return false; "}}else{a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(i){a+=" return data; "}else{a+=" validate.errors = null; return true; "}}else{a+=" var "+y+" = true; "}}if(e.isTop){a+=" }; return validate; "}return a}if(e.isTop){var S=e.isTop,u=e.level=0,c=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 b="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}a+=" var vErrors = null; ";a+=" var errors = 0; ";a+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,c=e.dataLevel,v="data"+(c||"");if(s)e.baseId=e.resolve.url(e.baseId,s);if(i&&!e.async)throw new Error("async schema in sync schema");a+=" var errs_"+u+" = errors;"}var y="valid"+u,h=!e.opts.allErrors,E="",P="";var m;var _=e.schema.type,x=Array.isArray(_);if(_&&e.opts.nullable&&e.schema.nullable===true){if(x){if(_.indexOf("null")==-1)_=_.concat("null")}else if(_!="null"){_=[_,"null"];x=true}}if(x&&_.length==1){_=_[0];x=false}if(e.schema.$ref&&n){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){n=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){a+=" "+e.RULES.all.$comment.code(e,"$comment")}if(_){if(e.opts.coerceTypes){var O=e.util.coerceToTypes(e.opts.coerceTypes,_)}var k=e.RULES.types[_];if(O||x||k===true||k&&!$shouldUseGroup(k)){var p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var p=e.schemaPath+".type",d=e.errSchemaPath+"/type",C=x?"checkDataTypes":"checkDataType";a+=" if ("+e.util[C](_,v,e.opts.strictNumbers,true)+") { ";if(O){var R="dataType"+u,A="coerced"+u;a+=" var "+R+" = typeof "+v+"; var "+A+" = undefined; ";if(e.opts.coerceTypes=="array"){a+=" if ("+R+" == 'object' && Array.isArray("+v+") && "+v+".length == 1) { "+v+" = "+v+"[0]; "+R+" = typeof "+v+"; if ("+e.util.checkDataType(e.schema.type,v,e.opts.strictNumbers)+") "+A+" = "+v+"; } "}a+=" if ("+A+" !== undefined) ; ";var F=O;if(F){var D,I=-1,j=F.length-1;while(I<j){D=F[I+=1];if(D=="string"){a+=" else if ("+R+" == 'number' || "+R+" == 'boolean') "+A+" = '' + "+v+"; else if ("+v+" === null) "+A+" = ''; "}else if(D=="number"||D=="integer"){a+=" else if ("+R+" == 'boolean' || "+v+" === null || ("+R+" == 'string' && "+v+" && "+v+" == +"+v+" ";if(D=="integer"){a+=" && !("+v+" % 1)"}a+=")) "+A+" = +"+v+"; "}else if(D=="boolean"){a+=" else if ("+v+" === 'false' || "+v+" === 0 || "+v+" === null) "+A+" = false; else if ("+v+" === 'true' || "+v+" === 1) "+A+" = true; "}else if(D=="null"){a+=" else if ("+v+" === '' || "+v+" === 0 || "+v+" === false) "+A+" = null; "}else if(e.opts.coerceTypes=="array"&&D=="array"){a+=" else if ("+R+" == 'string' || "+R+" == 'number' || "+R+" == 'boolean' || "+v+" == null) "+A+" = ["+v+"]; "}}}a+=" else { ";var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(x){a+=""+_.join(",")}else{a+=""+_}a+="' } ";if(e.opts.messages!==false){a+=" , message: 'should be ";if(x){a+=""+_.join(",")}else{a+=""+_}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var w=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+w+"]); "}else{a+=" validate.errors = ["+w+"]; return false; "}}else{a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } if ("+A+" !== undefined) { ";var T=c?"data"+(c-1||""):"parentData",$=c?e.dataPathArr[c]:"parentDataProperty";a+=" "+v+" = "+A+"; ";if(!c){a+="if ("+T+" !== undefined)"}a+=" "+T+"["+$+"] = "+A+"; } "}else{var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(x){a+=""+_.join(",")}else{a+=""+_}a+="' } ";if(e.opts.messages!==false){a+=" , message: 'should be ";if(x){a+=""+_.join(",")}else{a+=""+_}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var w=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+w+"]); "}else{a+=" validate.errors = ["+w+"]; return false; "}}else{a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}a+=" } "}}if(e.schema.$ref&&!n){a+=" "+e.RULES.all.$ref.code(e,"$ref")+" ";if(h){a+=" } if (errors === ";if(S){a+="0"}else{a+="errs_"+u}a+=") { ";P+="}"}}else{var N=e.RULES;if(N){var k,L=-1,M=N.length-1;while(L<M){k=N[L+=1];if($shouldUseGroup(k)){if(k.type){a+=" if ("+e.util.checkDataType(k.type,v,e.opts.strictNumbers)+") { "}if(e.opts.useDefaults){if(k.type=="object"&&e.schema.properties){var f=e.schema.properties,q=Object.keys(f);var U=q;if(U){var H,B=-1,z=U.length-1;while(B<z){H=U[B+=1];var V=f[H];if(V.default!==undefined){var W=v+e.util.getProperty(H);if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+W;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else{a+=" if ("+W+" === undefined ";if(e.opts.useDefaults=="empty"){a+=" || "+W+" === null || "+W+" === '' "}a+=" ) "+W+" = ";if(e.opts.useDefaults=="shared"){a+=" "+e.useDefault(V.default)+" "}else{a+=" "+JSON.stringify(V.default)+" "}a+="; "}}}}}else if(k.type=="array"&&Array.isArray(e.schema.items)){var Q=e.schema.items;if(Q){var V,I=-1,Y=Q.length-1;while(I<Y){V=Q[I+=1];if(V.default!==undefined){var W=v+"["+I+"]";if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+W;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else{a+=" if ("+W+" === undefined ";if(e.opts.useDefaults=="empty"){a+=" || "+W+" === null || "+W+" === '' "}a+=" ) "+W+" = ";if(e.opts.useDefaults=="shared"){a+=" "+e.useDefault(V.default)+" "}else{a+=" "+JSON.stringify(V.default)+" "}a+="; "}}}}}}var K=k.rules;if(K){var J,G=-1,Z=K.length-1;while(G<Z){J=K[G+=1];if($shouldUseRule(J)){var X=J.code(e,J.keyword,k.type);if(X){a+=" "+X+" ";if(h){E+="}"}}}}}if(h){a+=" "+E+" ";E=""}if(k.type){a+=" } ";if(_&&_===k.type&&!O){a+=" else { ";var p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(x){a+=""+_.join(",")}else{a+=""+_}a+="' } ";if(e.opts.messages!==false){a+=" , message: 'should be ";if(x){a+=""+_.join(",")}else{a+=""+_}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var w=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+w+"]); "}else{a+=" validate.errors = ["+w+"]; return false; "}}else{a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } "}}if(h){a+=" if (errors === ";if(S){a+="0"}else{a+="errs_"+u}a+=") { ";P+="}"}}}}}if(h){a+=" "+P+" "}if(S){if(i){a+=" if (errors === 0) return data; ";a+=" else throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; ";a+=" return errors === 0; "}a+=" }; return validate;"}else{a+=" var "+y+" = errors === errs_"+u+";"}function $shouldUseGroup(e){var r=e.rules;for(var t=0;t<r.length;t++)if($shouldUseRule(r[t]))return true}function $shouldUseRule(r){return e.schema[r.keyword]!==undefined||r.implements&&$ruleImplementsSomeKeyword(r)}function $ruleImplementsSomeKeyword(r){var t=r.implements;for(var a=0;a<t.length;a++)if(e.schema[t[a]]!==undefined)return true}return a}},7975:(e,r,t)=>{"use strict";var a=/^[a-z_$][a-z0-9_$-]*$/i;var i=t(8343);var n=t(4540);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,r){var t=this.RULES;if(t.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!a.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,true);var n=r.type;if(Array.isArray(n)){for(var s=0;s<n.length;s++)_addRule(e,n[s],r)}else{_addRule(e,n,r)}var o=r.metaSchema;if(o){if(r.$data&&this._opts.$data){o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}r.validateSchema=this.compile(o,true)}}t.keywords[e]=t.all[e]=true;function _addRule(e,r,a){var n;for(var s=0;s<t.length;s++){var o=t[s];if(o.type==r){n=o;break}}if(!n){n={type:r,rules:[]};t.push(n)}var l={keyword:e,definition:a,custom:true,code:i,implements:a.implements};n.rules.push(l);t.custom[e]=l}return this}function getKeyword(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||false}function removeKeyword(e){var r=this.RULES;delete r.keywords[e];delete r.all[e];delete r.custom[e];for(var t=0;t<r.length;t++){var a=r[t].rules;for(var i=0;i<a.length;i++){if(a[i].keyword==e){a.splice(i,1);break}}}return this}function validateKeyword(e,r){validateKeyword.errors=null;var t=this._validateKeyword=this._validateKeyword||this.compile(n,true);if(t(e))return true;validateKeyword.errors=t.errors;if(r)throw new Error("custom keyword definition is invalid: "+this.errorsText(t.errors));else return false}},4790:(e,r,t)=>{
|
||
/*!
|
||
* expand-tilde <https://github.com/jonschlinkert/expand-tilde>
|
||
*
|
||
* Copyright (c) 2015 Jon Schlinkert.
|
||
* Licensed under the MIT license.
|
||
*/
|
||
var a=t(2157);var i=t(1017);e.exports=function expandTilde(e){var r=a();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}},3064: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 t,a,i;if(Array.isArray(e)){t=e.length;if(t!=r.length)return false;for(a=t;a--!==0;)if(!equal(e[a],r[a]))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);t=i.length;if(t!==Object.keys(r).length)return false;for(a=t;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return false;for(a=t;a--!==0;){var n=i[a];if(!equal(e[n],r[n]))return false}return true}return e!==e&&r!==r}},4486:e=>{"use strict";e.exports=function(e,r){if(!r)r={};if(typeof r==="function")r={cmp:r};var t=typeof r.cycles==="boolean"?r.cycles:false;var a=r.cmp&&function(e){return function(r){return function(t,a){var i={key:t,value:r[t]};var n={key:a,value:r[a]};return e(i,n)}}}(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,n;if(Array.isArray(e)){n="[";for(r=0;r<e.length;r++){if(r)n+=",";n+=stringify(e[r])||"null"}return n+"]"}if(e===null)return"null";if(i.indexOf(e)!==-1){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(e)-1;var o=Object.keys(e).sort(a&&a(e));n="";for(r=0;r<o.length;r++){var l=o[r];var u=stringify(e[l]);if(!u)continue;if(n)n+=",";n+=JSON.stringify(l)+":"+u}i.splice(s,1);return"{"+n+"}"}(e)}},8593:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(5443).mkdirsSync;const s=t(7237).utimesMillisSync;const o=t(7169);function copySync(e,r,t){if(typeof t==="function"){t={filter:t}}t=t||{};t.clobber="clobber"in t?!!t.clobber:true;t.overwrite="overwrite"in t?!!t.overwrite:t.clobber;if(t.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:a,destStat:i}=o.checkPathsSync(e,r,"copy",t);o.checkParentPathsSync(e,a,r,"copy");return handleFilterAndCopy(i,e,r,t)}function handleFilterAndCopy(e,r,t,s){if(s.filter&&!s.filter(r,t))return;const o=i.dirname(t);if(!a.existsSync(o))n(o);return getStats(e,r,t,s)}function startCopy(e,r,t,a){if(a.filter&&!a.filter(r,t))return;return getStats(e,r,t,a)}function getStats(e,r,t,i){const n=i.dereference?a.statSync:a.lstatSync;const s=n(r);if(s.isDirectory())return onDir(s,e,r,t,i);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,r,t,i);else if(s.isSymbolicLink())return onLink(e,r,t,i);else if(s.isSocket())throw new Error(`Cannot copy a socket file: ${r}`);else if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${r}`);throw new Error(`Unknown file: ${r}`)}function onFile(e,r,t,a,i){if(!r)return copyFile(e,t,a,i);return mayCopyFile(e,t,a,i)}function mayCopyFile(e,r,t,i){if(i.overwrite){a.unlinkSync(t);return copyFile(e,r,t,i)}else if(i.errorOnExist){throw new Error(`'${t}' already exists`)}}function copyFile(e,r,t,i){a.copyFileSync(r,t);if(i.preserveTimestamps)handleTimestamps(e.mode,r,t);return setDestMode(t,e.mode)}function handleTimestamps(e,r,t){if(fileIsNotWritable(e))makeFileWritable(t,e);return setDestTimestamps(r,t)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,r){return setDestMode(e,r|128)}function setDestMode(e,r){return a.chmodSync(e,r)}function setDestTimestamps(e,r){const t=a.statSync(e);return s(r,t.atime,t.mtime)}function onDir(e,r,t,a,i){if(!r)return mkDirAndCopy(e.mode,t,a,i);return copyDir(t,a,i)}function mkDirAndCopy(e,r,t,i){a.mkdirSync(t);copyDir(r,t,i);return setDestMode(t,e)}function copyDir(e,r,t){a.readdirSync(e).forEach((a=>copyDirItem(a,e,r,t)))}function copyDirItem(e,r,t,a){const n=i.join(r,e);const s=i.join(t,e);const{destStat:l}=o.checkPathsSync(n,s,"copy",a);return startCopy(l,n,s,a)}function onLink(e,r,t,n){let s=a.readlinkSync(r);if(n.dereference){s=i.resolve(process.cwd(),s)}if(!e){return a.symlinkSync(s,t)}else{let e;try{e=a.readlinkSync(t)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return a.symlinkSync(s,t);throw e}if(n.dereference){e=i.resolve(process.cwd(),e)}if(o.isSrcSubdir(s,e)){throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`)}if(a.statSync(t).isDirectory()&&o.isSrcSubdir(e,s)){throw new Error(`Cannot overwrite '${e}' with '${s}'.`)}return copyLink(s,t)}}function copyLink(e,r){a.unlinkSync(r);return a.symlinkSync(e,r)}e.exports=copySync},5390:(e,r,t)=>{"use strict";e.exports={copySync:t(8593)}},9226:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(5443).mkdirs;const s=t(6618).pathExists;const o=t(7237).utimesMillis;const l=t(7169);function copy(e,r,t,a){if(typeof t==="function"&&!a){a=t;t={}}else if(typeof t==="function"){t={filter:t}}a=a||function(){};t=t||{};t.clobber="clobber"in t?!!t.clobber:true;t.overwrite="overwrite"in t?!!t.overwrite:t.clobber;if(t.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`)}l.checkPaths(e,r,"copy",t,((i,n)=>{if(i)return a(i);const{srcStat:s,destStat:o}=n;l.checkParentPaths(e,s,r,"copy",(i=>{if(i)return a(i);if(t.filter)return handleFilter(checkParentDir,o,e,r,t,a);return checkParentDir(o,e,r,t,a)}))}))}function checkParentDir(e,r,t,a,o){const l=i.dirname(t);s(l,((i,s)=>{if(i)return o(i);if(s)return getStats(e,r,t,a,o);n(l,(i=>{if(i)return o(i);return getStats(e,r,t,a,o)}))}))}function handleFilter(e,r,t,a,i,n){Promise.resolve(i.filter(t,a)).then((s=>{if(s)return e(r,t,a,i,n);return n()}),(e=>n(e)))}function startCopy(e,r,t,a,i){if(a.filter)return handleFilter(getStats,e,r,t,a,i);return getStats(e,r,t,a,i)}function getStats(e,r,t,i,n){const s=i.dereference?a.stat:a.lstat;s(r,((a,s)=>{if(a)return n(a);if(s.isDirectory())return onDir(s,e,r,t,i,n);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,r,t,i,n);else if(s.isSymbolicLink())return onLink(e,r,t,i,n);else if(s.isSocket())return n(new Error(`Cannot copy a socket file: ${r}`));else if(s.isFIFO())return n(new Error(`Cannot copy a FIFO pipe: ${r}`));return n(new Error(`Unknown file: ${r}`))}))}function onFile(e,r,t,a,i,n){if(!r)return copyFile(e,t,a,i,n);return mayCopyFile(e,t,a,i,n)}function mayCopyFile(e,r,t,i,n){if(i.overwrite){a.unlink(t,(a=>{if(a)return n(a);return copyFile(e,r,t,i,n)}))}else if(i.errorOnExist){return n(new Error(`'${t}' already exists`))}else return n()}function copyFile(e,r,t,i,n){a.copyFile(r,t,(a=>{if(a)return n(a);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,r,t,n);return setDestMode(t,e.mode,n)}))}function handleTimestampsAndMode(e,r,t,a){if(fileIsNotWritable(e)){return makeFileWritable(t,e,(i=>{if(i)return a(i);return setDestTimestampsAndMode(e,r,t,a)}))}return setDestTimestampsAndMode(e,r,t,a)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,r,t){return setDestMode(e,r|128,t)}function setDestTimestampsAndMode(e,r,t,a){setDestTimestamps(r,t,(r=>{if(r)return a(r);return setDestMode(t,e,a)}))}function setDestMode(e,r,t){return a.chmod(e,r,t)}function setDestTimestamps(e,r,t){a.stat(e,((e,a)=>{if(e)return t(e);return o(r,a.atime,a.mtime,t)}))}function onDir(e,r,t,a,i,n){if(!r)return mkDirAndCopy(e.mode,t,a,i,n);return copyDir(t,a,i,n)}function mkDirAndCopy(e,r,t,i,n){a.mkdir(t,(a=>{if(a)return n(a);copyDir(r,t,i,(r=>{if(r)return n(r);return setDestMode(t,e,n)}))}))}function copyDir(e,r,t,i){a.readdir(e,((a,n)=>{if(a)return i(a);return copyDirItems(n,e,r,t,i)}))}function copyDirItems(e,r,t,a,i){const n=e.pop();if(!n)return i();return copyDirItem(e,n,r,t,a,i)}function copyDirItem(e,r,t,a,n,s){const o=i.join(t,r);const u=i.join(a,r);l.checkPaths(o,u,"copy",n,((r,i)=>{if(r)return s(r);const{destStat:l}=i;startCopy(l,o,u,n,(r=>{if(r)return s(r);return copyDirItems(e,t,a,n,s)}))}))}function onLink(e,r,t,n,s){a.readlink(r,((r,o)=>{if(r)return s(r);if(n.dereference){o=i.resolve(process.cwd(),o)}if(!e){return a.symlink(o,t,s)}else{a.readlink(t,((r,u)=>{if(r){if(r.code==="EINVAL"||r.code==="UNKNOWN")return a.symlink(o,t,s);return s(r)}if(n.dereference){u=i.resolve(process.cwd(),u)}if(l.isSrcSubdir(o,u)){return s(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&l.isSrcSubdir(u,o)){return s(new Error(`Cannot overwrite '${u}' with '${o}'.`))}return copyLink(o,t,s)}))}}))}function copyLink(e,r,t){a.unlink(r,(i=>{if(i)return t(i);return a.symlink(e,r,t)}))}e.exports=copy},7619:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;e.exports={copy:a(t(9226))}},4810:(e,r,t)=>{"use strict";const a=t(3706).fromPromise;const i=t(2003);const n=t(1017);const s=t(5443);const o=t(6875);const l=a((async function emptyDir(e){let r;try{r=await i.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(r.map((r=>o.remove(n.join(e,r)))))}));function emptyDirSync(e){let r;try{r=i.readdirSync(e)}catch{return s.mkdirsSync(e)}r.forEach((r=>{r=n.join(e,r);o.removeSync(r)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:l,emptydir:l}},3132:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(1017);const n=t(7765);const s=t(5443);function createFile(e,r){function makeFile(){n.writeFile(e,"",(e=>{if(e)return r(e);r()}))}n.stat(e,((t,a)=>{if(!t&&a.isFile())return r();const o=i.dirname(e);n.stat(o,((e,t)=>{if(e){if(e.code==="ENOENT"){return s.mkdirs(o,(e=>{if(e)return r(e);makeFile()}))}return r(e)}if(t.isDirectory())makeFile();else{n.readdir(o,(e=>{if(e)return r(e)}))}}))}))}function createFileSync(e){let r;try{r=n.statSync(e)}catch{}if(r&&r.isFile())return;const t=i.dirname(e);try{if(!n.statSync(t).isDirectory()){n.readdirSync(t)}}catch(e){if(e&&e.code==="ENOENT")s.mkdirsSync(t);else throw e}n.writeFileSync(e,"")}e.exports={createFile:a(createFile),createFileSync:createFileSync}},1393:(e,r,t)=>{"use strict";const a=t(3132);const i=t(5258);const n=t(9609);e.exports={createFile:a.createFile,createFileSync:a.createFileSync,ensureFile:a.createFile,ensureFileSync:a.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}},5258:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(1017);const n=t(7765);const s=t(5443);const o=t(6618).pathExists;const{areIdentical:l}=t(7169);function createLink(e,r,t){function makeLink(e,r){n.link(e,r,(e=>{if(e)return t(e);t(null)}))}n.lstat(r,((a,u)=>{n.lstat(e,((a,n)=>{if(a){a.message=a.message.replace("lstat","ensureLink");return t(a)}if(u&&l(n,u))return t(null);const c=i.dirname(r);o(c,((a,i)=>{if(a)return t(a);if(i)return makeLink(e,r);s.mkdirs(c,(a=>{if(a)return t(a);makeLink(e,r)}))}))}))}))}function createLinkSync(e,r){let t;try{t=n.lstatSync(r)}catch{}try{const r=n.lstatSync(e);if(t&&l(r,t))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const a=i.dirname(r);const o=n.existsSync(a);if(o)return n.linkSync(e,r);s.mkdirsSync(a);return n.linkSync(e,r)}e.exports={createLink:a(createLink),createLinkSync:createLinkSync}},6927:(e,r,t)=>{"use strict";const a=t(1017);const i=t(7765);const n=t(6618).pathExists;function symlinkPaths(e,r,t){if(a.isAbsolute(e)){return i.lstat(e,(r=>{if(r){r.message=r.message.replace("lstat","ensureSymlink");return t(r)}return t(null,{toCwd:e,toDst:e})}))}else{const s=a.dirname(r);const o=a.join(s,e);return n(o,((r,n)=>{if(r)return t(r);if(n){return t(null,{toCwd:o,toDst:e})}else{return i.lstat(e,(r=>{if(r){r.message=r.message.replace("lstat","ensureSymlink");return t(r)}return t(null,{toCwd:e,toDst:a.relative(s,e)})}))}}))}}function symlinkPathsSync(e,r){let t;if(a.isAbsolute(e)){t=i.existsSync(e);if(!t)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const n=a.dirname(r);const s=a.join(n,e);t=i.existsSync(s);if(t){return{toCwd:s,toDst:e}}else{t=i.existsSync(e);if(!t)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:a.relative(n,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},3694:(e,r,t)=>{"use strict";const a=t(7765);function symlinkType(e,r,t){t=typeof r==="function"?r:t;r=typeof r==="function"?false:r;if(r)return t(null,r);a.lstat(e,((e,a)=>{if(e)return t(null,"file");r=a&&a.isDirectory()?"dir":"file";t(null,r)}))}function symlinkTypeSync(e,r){let t;if(r)return r;try{t=a.lstatSync(e)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},9609:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(1017);const n=t(2003);const s=t(5443);const o=s.mkdirs;const l=s.mkdirsSync;const u=t(6927);const c=u.symlinkPaths;const f=u.symlinkPathsSync;const p=t(3694);const d=p.symlinkType;const h=p.symlinkTypeSync;const m=t(6618).pathExists;const{areIdentical:v}=t(7169);function createSymlink(e,r,t,a){a=typeof t==="function"?t:a;t=typeof t==="function"?false:t;n.lstat(r,((i,s)=>{if(!i&&s.isSymbolicLink()){Promise.all([n.stat(e),n.stat(r)]).then((([i,n])=>{if(v(i,n))return a(null);_createSymlink(e,r,t,a)}))}else _createSymlink(e,r,t,a)}))}function _createSymlink(e,r,t,a){c(e,r,((s,l)=>{if(s)return a(s);e=l.toDst;d(l.toCwd,t,((t,s)=>{if(t)return a(t);const l=i.dirname(r);m(l,((t,i)=>{if(t)return a(t);if(i)return n.symlink(e,r,s,a);o(l,(t=>{if(t)return a(t);n.symlink(e,r,s,a)}))}))}))}))}function createSymlinkSync(e,r,t){let a;try{a=n.lstatSync(r)}catch{}if(a&&a.isSymbolicLink()){const t=n.statSync(e);const a=n.statSync(r);if(v(t,a))return}const s=f(e,r);e=s.toDst;t=h(s.toCwd,t);const o=i.dirname(r);const u=n.existsSync(o);if(u)return n.symlinkSync(e,r,t);l(o);return n.symlinkSync(e,r,t)}e.exports={createSymlink:a(createSymlink),createSymlinkSync:createSymlinkSync}},2003:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(7765);const n=["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=>typeof i[e]==="function"));Object.assign(r,i);n.forEach((e=>{r[e]=a(i[e])}));r.realpath.native=a(i.realpath.native);r.exists=function(e,r){if(typeof r==="function"){return i.exists(e,r)}return new Promise((r=>i.exists(e,r)))};r.read=function(e,r,t,a,n,s){if(typeof s==="function"){return i.read(e,r,t,a,n,s)}return new Promise(((s,o)=>{i.read(e,r,t,a,n,((e,r,t)=>{if(e)return o(e);s({bytesRead:r,buffer:t})}))}))};r.write=function(e,r,...t){if(typeof t[t.length-1]==="function"){return i.write(e,r,...t)}return new Promise(((a,n)=>{i.write(e,r,...t,((e,r,t)=>{if(e)return n(e);a({bytesWritten:r,buffer:t})}))}))};if(typeof i.writev==="function"){r.writev=function(e,r,...t){if(typeof t[t.length-1]==="function"){return i.writev(e,r,...t)}return new Promise(((a,n)=>{i.writev(e,r,...t,((e,r,t)=>{if(e)return n(e);a({bytesWritten:r,buffers:t})}))}))}}},5176:(e,r,t)=>{"use strict";e.exports={...t(2003),...t(5390),...t(7619),...t(4810),...t(1393),...t(6287),...t(5443),...t(4155),...t(9453),...t(209),...t(6618),...t(6875)}},6287:(e,r,t)=>{"use strict";const a=t(3706).fromPromise;const i=t(1108);i.outputJson=a(t(447));i.outputJsonSync=t(466);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},1108:(e,r,t)=>{"use strict";const a=t(5533);e.exports={readJson:a.readFile,readJsonSync:a.readFileSync,writeJson:a.writeFile,writeJsonSync:a.writeFileSync}},466:(e,r,t)=>{"use strict";const{stringify:a}=t(8171);const{outputFileSync:i}=t(209);function outputJsonSync(e,r,t){const n=a(r,t);i(e,n,t)}e.exports=outputJsonSync},447:(e,r,t)=>{"use strict";const{stringify:a}=t(8171);const{outputFile:i}=t(209);async function outputJson(e,r,t={}){const n=a(r,t);await i(e,n,t)}e.exports=outputJson},5443:(e,r,t)=>{"use strict";const a=t(3706).fromPromise;const{makeDir:i,makeDirSync:n}=t(7113);const s=a(i);e.exports={mkdirs:s,mkdirsSync:n,mkdirp:s,mkdirpSync:n,ensureDir:s,ensureDirSync:n}},7113:(e,r,t)=>{"use strict";const a=t(2003);const{checkPath:i}=t(4096);const getMode=e=>{const r={mode:511};if(typeof e==="number")return e;return{...r,...e}.mode};e.exports.makeDir=async(e,r)=>{i(e);return a.mkdir(e,{mode:getMode(r),recursive:true})};e.exports.makeDirSync=(e,r)=>{i(e);return a.mkdirSync(e,{mode:getMode(r),recursive:true})}},4096:(e,r,t)=>{"use strict";const a=t(1017);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const r=/[<>:"|?*]/.test(e.replace(a.parse(e).root,""));if(r){const r=new Error(`Path contains invalid characters: ${e}`);r.code="EINVAL";throw r}}}},4155:(e,r,t)=>{"use strict";e.exports={moveSync:t(8450)}},8450:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(5390).copySync;const s=t(6875).removeSync;const o=t(5443).mkdirpSync;const l=t(7169);function moveSync(e,r,t){t=t||{};const a=t.overwrite||t.clobber||false;const{srcStat:n,isChangingCase:s=false}=l.checkPathsSync(e,r,"move",t);l.checkParentPathsSync(e,n,r,"move");if(!isParentRoot(r))o(i.dirname(r));return doRename(e,r,a,s)}function isParentRoot(e){const r=i.dirname(e);const t=i.parse(r);return t.root===r}function doRename(e,r,t,i){if(i)return rename(e,r,t);if(t){s(r);return rename(e,r,t)}if(a.existsSync(r))throw new Error("dest already exists.");return rename(e,r,t)}function rename(e,r,t){try{a.renameSync(e,r)}catch(a){if(a.code!=="EXDEV")throw a;return moveAcrossDevice(e,r,t)}}function moveAcrossDevice(e,r,t){const a={overwrite:t,errorOnExist:true};n(e,r,a);return s(e)}e.exports=moveSync},9453:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;e.exports={move:a(t(2826))}},2826:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(7619).copy;const s=t(6875).remove;const o=t(5443).mkdirp;const l=t(6618).pathExists;const u=t(7169);function move(e,r,t,a){if(typeof t==="function"){a=t;t={}}const n=t.overwrite||t.clobber||false;u.checkPaths(e,r,"move",t,((t,s)=>{if(t)return a(t);const{srcStat:l,isChangingCase:c=false}=s;u.checkParentPaths(e,l,r,"move",(t=>{if(t)return a(t);if(isParentRoot(r))return doRename(e,r,n,c,a);o(i.dirname(r),(t=>{if(t)return a(t);return doRename(e,r,n,c,a)}))}))}))}function isParentRoot(e){const r=i.dirname(e);const t=i.parse(r);return t.root===r}function doRename(e,r,t,a,i){if(a)return rename(e,r,t,i);if(t){return s(r,(a=>{if(a)return i(a);return rename(e,r,t,i)}))}l(r,((a,n)=>{if(a)return i(a);if(n)return i(new Error("dest already exists."));return rename(e,r,t,i)}))}function rename(e,r,t,i){a.rename(e,r,(a=>{if(!a)return i();if(a.code!=="EXDEV")return i(a);return moveAcrossDevice(e,r,t,i)}))}function moveAcrossDevice(e,r,t,a){const i={overwrite:t,errorOnExist:true};n(e,r,i,(r=>{if(r)return a(r);return s(e,a)}))}e.exports=move},209:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(7765);const n=t(1017);const s=t(5443);const o=t(6618).pathExists;function outputFile(e,r,t,a){if(typeof t==="function"){a=t;t="utf8"}const l=n.dirname(e);o(l,((n,o)=>{if(n)return a(n);if(o)return i.writeFile(e,r,t,a);s.mkdirs(l,(n=>{if(n)return a(n);i.writeFile(e,r,t,a)}))}))}function outputFileSync(e,...r){const t=n.dirname(e);if(i.existsSync(t)){return i.writeFileSync(e,...r)}s.mkdirsSync(t);i.writeFileSync(e,...r)}e.exports={outputFile:a(outputFile),outputFileSync:outputFileSync}},6618:(e,r,t)=>{"use strict";const a=t(3706).fromPromise;const i=t(2003);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:a(pathExists),pathExistsSync:i.existsSync}},6875:(e,r,t)=>{"use strict";const a=t(7765);const i=t(3706).fromCallback;const n=t(7611);function remove(e,r){if(a.rm)return a.rm(e,{recursive:true,force:true},r);n(e,r)}function removeSync(e){if(a.rmSync)return a.rmSync(e,{recursive:true,force:true});n.sync(e)}e.exports={remove:i(remove),removeSync:removeSync}},7611:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(9491);const s=process.platform==="win32";function defaults(e){const r=["unlink","chmod","stat","lstat","rmdir","readdir"];r.forEach((r=>{e[r]=e[r]||a[r];r=r+"Sync";e[r]=e[r]||a[r]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,r,t){let a=0;if(typeof r==="function"){t=r;r={}}n(e,"rimraf: missing path");n.strictEqual(typeof e,"string","rimraf: path should be a string");n.strictEqual(typeof t,"function","rimraf: callback function required");n(r,"rimraf: invalid options argument provided");n.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")&&a<r.maxBusyTries){a++;const t=a*100;return setTimeout((()=>rimraf_(e,r,CB)),t)}if(i.code==="ENOENT")i=null}t(i)}))}function rimraf_(e,r,t){n(e);n(r);n(typeof t==="function");r.lstat(e,((a,i)=>{if(a&&a.code==="ENOENT"){return t(null)}if(a&&a.code==="EPERM"&&s){return fixWinEPERM(e,r,a,t)}if(i&&i.isDirectory()){return rmdir(e,r,a,t)}r.unlink(e,(a=>{if(a){if(a.code==="ENOENT"){return t(null)}if(a.code==="EPERM"){return s?fixWinEPERM(e,r,a,t):rmdir(e,r,a,t)}if(a.code==="EISDIR"){return rmdir(e,r,a,t)}}return t(a)}))}))}function fixWinEPERM(e,r,t,a){n(e);n(r);n(typeof a==="function");r.chmod(e,438,(i=>{if(i){a(i.code==="ENOENT"?null:t)}else{r.stat(e,((i,n)=>{if(i){a(i.code==="ENOENT"?null:t)}else if(n.isDirectory()){rmdir(e,r,t,a)}else{r.unlink(e,a)}}))}}))}function fixWinEPERMSync(e,r,t){let a;n(e);n(r);try{r.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw t}}try{a=r.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw t}}if(a.isDirectory()){rmdirSync(e,r,t)}else{r.unlinkSync(e)}}function rmdir(e,r,t,a){n(e);n(r);n(typeof a==="function");r.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,r,a)}else if(i&&i.code==="ENOTDIR"){a(t)}else{a(i)}}))}function rmkids(e,r,t){n(e);n(r);n(typeof t==="function");r.readdir(e,((a,n)=>{if(a)return t(a);let s=n.length;let o;if(s===0)return r.rmdir(e,t);n.forEach((a=>{rimraf(i.join(e,a),r,(a=>{if(o){return}if(a)return t(o=a);if(--s===0){r.rmdir(e,t)}}))}))}))}function rimrafSync(e,r){let t;r=r||{};defaults(r);n(e,"rimraf: missing path");n.strictEqual(typeof e,"string","rimraf: path should be a string");n(r,"rimraf: missing options");n.strictEqual(typeof r,"object","rimraf: options should be object");try{t=r.lstatSync(e)}catch(t){if(t.code==="ENOENT"){return}if(t.code==="EPERM"&&s){fixWinEPERMSync(e,r,t)}}try{if(t&&t.isDirectory()){rmdirSync(e,r,null)}else{r.unlinkSync(e)}}catch(t){if(t.code==="ENOENT"){return}else if(t.code==="EPERM"){return s?fixWinEPERMSync(e,r,t):rmdirSync(e,r,t)}else if(t.code!=="EISDIR"){throw t}rmdirSync(e,r,t)}}function rmdirSync(e,r,t){n(e);n(r);try{r.rmdirSync(e)}catch(a){if(a.code==="ENOTDIR"){throw t}else if(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM"){rmkidsSync(e,r)}else if(a.code!=="ENOENT"){throw a}}}function rmkidsSync(e,r){n(e);n(r);r.readdirSync(e).forEach((t=>rimrafSync(i.join(e,t),r)));if(s){const t=Date.now();do{try{const t=r.rmdirSync(e,r);return t}catch{}}while(Date.now()-t<500)}else{const t=r.rmdirSync(e,r);return t}}e.exports=rimraf;rimraf.sync=rimrafSync},7169:(e,r,t)=>{"use strict";const a=t(2003);const i=t(1017);const n=t(3837);function getStats(e,r,t){const i=t.dereference?e=>a.stat(e,{bigint:true}):e=>a.lstat(e,{bigint:true});return Promise.all([i(e),i(r).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,r])=>({srcStat:e,destStat:r})))}function getStatsSync(e,r,t){let i;const n=t.dereference?e=>a.statSync(e,{bigint:true}):e=>a.lstatSync(e,{bigint:true});const s=n(e);try{i=n(r)}catch(e){if(e.code==="ENOENT")return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:i}}function checkPaths(e,r,t,a,s){n.callbackify(getStats)(e,r,a,((a,n)=>{if(a)return s(a);const{srcStat:o,destStat:l}=n;if(l){if(areIdentical(o,l)){const a=i.basename(e);const n=i.basename(r);if(t==="move"&&a!==n&&a.toLowerCase()===n.toLowerCase()){return s(null,{srcStat:o,destStat:l,isChangingCase:true})}return s(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!l.isDirectory()){return s(new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`))}if(!o.isDirectory()&&l.isDirectory()){return s(new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`))}}if(o.isDirectory()&&isSrcSubdir(e,r)){return s(new Error(errMsg(e,r,t)))}return s(null,{srcStat:o,destStat:l})}))}function checkPathsSync(e,r,t,a){const{srcStat:n,destStat:s}=getStatsSync(e,r,a);if(s){if(areIdentical(n,s)){const a=i.basename(e);const o=i.basename(r);if(t==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase()){return{srcStat:n,destStat:s,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&!s.isDirectory()){throw new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`)}if(!n.isDirectory()&&s.isDirectory()){throw new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`)}}if(n.isDirectory()&&isSrcSubdir(e,r)){throw new Error(errMsg(e,r,t))}return{srcStat:n,destStat:s}}function checkParentPaths(e,r,t,n,s){const o=i.resolve(i.dirname(e));const l=i.resolve(i.dirname(t));if(l===o||l===i.parse(l).root)return s();a.stat(l,{bigint:true},((a,i)=>{if(a){if(a.code==="ENOENT")return s();return s(a)}if(areIdentical(r,i)){return s(new Error(errMsg(e,t,n)))}return checkParentPaths(e,r,l,n,s)}))}function checkParentPathsSync(e,r,t,n){const s=i.resolve(i.dirname(e));const o=i.resolve(i.dirname(t));if(o===s||o===i.parse(o).root)return;let l;try{l=a.statSync(o,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(r,l)){throw new Error(errMsg(e,t,n))}return checkParentPathsSync(e,r,o,n)}function areIdentical(e,r){return r.ino&&r.dev&&r.ino===e.ino&&r.dev===e.dev}function isSrcSubdir(e,r){const t=i.resolve(e).split(i.sep).filter((e=>e));const a=i.resolve(r).split(i.sep).filter((e=>e));return t.reduce(((e,r,t)=>e&&a[t]===r),true)}function errMsg(e,r,t){return`Cannot ${t} '${e}' to a subdirectory of itself, '${r}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},7237:(e,r,t)=>{"use strict";const a=t(7765);function utimesMillis(e,r,t,i){a.open(e,"r+",((e,n)=>{if(e)return i(e);a.futimes(n,r,t,(e=>{a.close(n,(r=>{if(i)i(e||r)}))}))}))}function utimesMillisSync(e,r,t){const i=a.openSync(e,"r+");a.futimesSync(i,r,t);return a.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},3236: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 t={__proto__:r(e)};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}));return t}},7765:(e,r,t)=>{var a=t(7147);var i=t(7457);var n=t(7681);var s=t(3236);var o=t(3837);var l;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,r){Object.defineProperty(e,l,{get:function(){return r}})}var c=noop;if(o.debuglog)c=o.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!a[l]){var f=global[l]||[];publishQueue(a,f);a.close=function(e){function close(r,t){return e.call(a,r,(function(e){if(!e){resetQueue()}if(typeof t==="function")t.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(a.close);a.closeSync=function(e){function closeSync(r){e.apply(a,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(a.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(a[l]);t(9491).equal(a[l].length,0)}))}}if(!global[l]){publishQueue(global,a[l])}e.exports=patch(s(a));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched){e.exports=patch(a);a.__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,t,a){if(typeof t==="function")a=t,t=null;return go$readFile(e,t,a);function go$readFile(e,t,a,i){return r(e,t,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[e,t,a],r,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var t=e.writeFile;e.writeFile=writeFile;function writeFile(e,r,a,i){if(typeof a==="function")i=a,a=null;return go$writeFile(e,r,a,i);function go$writeFile(e,r,a,i,n){return t(e,r,a,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$writeFile,[e,r,a,i],t,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var a=e.appendFile;if(a)e.appendFile=appendFile;function appendFile(e,r,t,i){if(typeof t==="function")i=t,t=null;return go$appendFile(e,r,t,i);function go$appendFile(e,r,t,i,n){return a(e,r,t,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$appendFile,[e,r,t,i],a,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var s=e.copyFile;if(s)e.copyFile=copyFile;function copyFile(e,r,t,a){if(typeof t==="function"){a=t;t=0}return go$copyFile(e,r,t,a);function go$copyFile(e,r,t,a,i){return s(e,r,t,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$copyFile,[e,r,t,a],n,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var o=e.readdir;e.readdir=readdir;function readdir(e,r,t){if(typeof r==="function")t=r,r=null;return go$readdir(e,r,t);function go$readdir(e,r,t,a){return o(e,r,(function(i,n){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$readdir,[e,r,t],i,a||Date.now(),Date.now()]);else{if(n&&n.sort)n.sort();if(typeof t==="function")t.call(this,i,n)}}))}}if(process.version.substr(0,4)==="v0.8"){var l=n(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var u=e.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var c=e.WriteStream;if(c){WriteStream.prototype=Object.create(c.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 f=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return f},set:function(e){f=e},enumerable:true,configurable:true});var p=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});function ReadStream(e,r){if(this instanceof ReadStream)return u.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,t){if(r){if(e.autoClose)e.destroy();e.emit("error",r)}else{e.fd=t;e.emit("open",t);e.read()}}))}function WriteStream(e,r){if(this instanceof WriteStream)return c.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,t){if(r){e.destroy();e.emit("error",r)}else{e.fd=t;e.emit("open",t)}}))}function createReadStream(r,t){return new e.ReadStream(r,t)}function createWriteStream(r,t){return new e.WriteStream(r,t)}var d=e.open;e.open=open;function open(e,r,t,a){if(typeof t==="function")a=t,t=null;return go$open(e,r,t,a);function go$open(e,r,t,a,i){return d(e,r,t,(function(n,s){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$open,[e,r,t,a],n,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);a[l].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var r=0;r<a[l].length;++r){if(a[l][r].length>2){a[l][r][3]=e;a[l][r][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(a[l].length===0)return;var e=a[l].shift();var r=e[0];var t=e[1];var i=e[2];var n=e[3];var s=e[4];if(n===undefined){c("RETRY",r.name,t);r.apply(null,t)}else if(Date.now()-n>=6e4){c("TIMEOUT",r.name,t);var o=t.pop();if(typeof o==="function")o.call(null,i)}else{var u=Date.now()-s;var f=Math.max(s-n,1);var d=Math.min(f*1.2,100);if(u>=d){c("RETRY",r.name,t);r.apply(null,t.concat([n]))}else{a[l].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},7681:(e,r,t)=>{var a=t(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,t){if(!(this instanceof ReadStream))return new ReadStream(r,t);a.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;t=t||{};var n=Object.keys(t);for(var s=0,o=n.length;s<o;s++){var l=n[s];this[l]=t[l]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.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,t){if(!(this instanceof WriteStream))return new WriteStream(r,t);a.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;t=t||{};var i=Object.keys(t);for(var n=0,s=i.length;n<s;n++){var o=i[n];this[o]=t[o]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= 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()}}}},7457:(e,r,t)=>{var a=t(2057);var i=process.cwd;var n=null;var s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!n)n=i.call(process);return n};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var o=process.chdir;process.chdir=function(e){n=null;o.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,o)}e.exports=patch;function patch(e){if(a.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,t){if(t)process.nextTick(t)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,r,t,a){if(a)process.nextTick(a)};e.lchownSync=function(){}}if(s==="win32"){e.rename=function(r){return function(t,a,i){var n=Date.now();var s=0;r(t,a,(function CB(o){if(o&&(o.code==="EACCES"||o.code==="EPERM")&&Date.now()-n<6e4){setTimeout((function(){e.stat(a,(function(e,n){if(e&&e.code==="ENOENT")r(t,a,CB);else i(o)}))}),s);if(s<100)s+=10;return}if(i)i(o)}))}}(e.rename)}e.read=function(r){function read(t,a,i,n,s,o){var l;if(o&&typeof o==="function"){var u=0;l=function(c,f,p){if(c&&c.code==="EAGAIN"&&u<10){u++;return r.call(e,t,a,i,n,s,l)}o.apply(this,arguments)}}return r.call(e,t,a,i,n,s,l)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(e.read);e.readSync=function(r){return function(t,a,i,n,s){var o=0;while(true){try{return r.call(e,t,a,i,n,s)}catch(e){if(e.code==="EAGAIN"&&o<10){o++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(r,t,i){e.open(r,a.O_WRONLY|a.O_SYMLINK,t,(function(r,a){if(r){if(i)i(r);return}e.fchmod(a,t,(function(r){e.close(a,(function(e){if(i)i(r||e)}))}))}))};e.lchmodSync=function(r,t){var i=e.openSync(r,a.O_WRONLY|a.O_SYMLINK,t);var n=true;var s;try{s=e.fchmodSync(i,t);n=false}finally{if(n){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return s}}function patchLutimes(e){if(a.hasOwnProperty("O_SYMLINK")){e.lutimes=function(r,t,i,n){e.open(r,a.O_SYMLINK,(function(r,a){if(r){if(n)n(r);return}e.futimes(a,t,i,(function(r){e.close(a,(function(e){if(n)n(r||e)}))}))}))};e.lutimesSync=function(r,t,i){var n=e.openSync(r,a.O_SYMLINK);var s;var o=true;try{s=e.futimesSync(n,t,i);o=false}finally{if(o){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return s}}else{e.lutimes=function(e,r,t,a){if(a)process.nextTick(a)};e.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(t,a,i){return r.call(e,t,a,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(r){if(!r)return r;return function(t,a){try{return r.call(e,t,a)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(r){if(!r)return r;return function(t,a,i,n){return r.call(e,t,a,i,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chownFixSync(r){if(!r)return r;return function(t,a,i){try{return r.call(e,t,a,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(r){if(!r)return r;return function(t,a,i){if(typeof a==="function"){i=a;a=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 a?r.call(e,t,a,callback):r.call(e,t,callback)}}function statFixSync(r){if(!r)return r;return function(t,a){var i=a?r.call(e,t,a):r.call(e,t);if(i){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}}},2157:(e,r,t)=>{"use strict";var a=t(2037);if(typeof a.homedir!=="undefined"){e.exports=a.homedir}else{e.exports=t(9975)}},9975:(e,r,t)=>{"use strict";var a=t(7147);var i=t(9524);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 t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!t){return null}if(process.platform==="darwin"){return"/Users/"+t}return"/home/"+t}function find(e,r){var t=e.length;for(var a=0;a<t;a++){if(+e[a].uid===r){return e[a].homedir}}}function getuid(){if(typeof process.geteuid==="function"){return process.geteuid()}return process.getuid()}function tryReadFileSync(e){try{return a.readFileSync(e,"utf8")}catch(e){return""}}e.exports=homedir},3639:(e,r,t)=>{"use strict";var a=t(6344);var i=t(7902);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=t(4098);e.exports.Schema=t(5217);e.exports.FAILSAFE_SCHEMA=t(3183);e.exports.JSON_SCHEMA=t(9116);e.exports.CORE_SCHEMA=t(9043);e.exports.DEFAULT_SCHEMA=t(6672);e.exports.load=a.load;e.exports.loadAll=a.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=t(876);e.exports.types={binary:t(1688),float:t(3250),map:t(723),null:t(2451),pairs:t(5671),set:t(3051),timestamp:t(8285),bool:t(8510),int:t(2682),merge:t(5831),omap:t(3602),seq:t(9130),str:t(802)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},5929: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 t,a,i,n;if(r){n=Object.keys(r);for(t=0,a=n.length;t<a;t+=1){i=n[t];e[i]=r[i]}}return e}function repeat(e,r){var t="",a;for(a=0;a<r;a+=1){t+=e}return t}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},7902:(e,r,t)=>{"use strict";var a=t(5929);var i=t(876);var n=t(6672);var s=Object.prototype.toString;var o=Object.prototype.hasOwnProperty;var l=65279;var u=9;var c=10;var f=13;var p=32;var d=33;var h=34;var m=35;var v=37;var y=38;var g=39;var w=42;var S=44;var b=45;var E=58;var P=61;var _=62;var x=63;var O=64;var k=91;var C=93;var R=96;var A=123;var F=124;var D=125;var I={};I[0]="\\0";I[7]="\\a";I[8]="\\b";I[9]="\\t";I[10]="\\n";I[11]="\\v";I[12]="\\f";I[13]="\\r";I[27]="\\e";I[34]='\\"';I[92]="\\\\";I[133]="\\N";I[160]="\\_";I[8232]="\\L";I[8233]="\\P";var j=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var T=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,r){var t,a,i,n,s,l,u;if(r===null)return{};t={};a=Object.keys(r);for(i=0,n=a.length;i<n;i+=1){s=a[i];l=String(r[s]);if(s.slice(0,2)==="!!"){s="tag:yaml.org,2002:"+s.slice(2)}u=e.compiledTypeMap["fallback"][s];if(u&&o.call(u.styleAliases,l)){l=u.styleAliases[l]}t[s]=l}return t}function encodeHex(e){var r,t,n;r=e.toString(16).toUpperCase();if(e<=255){t="x";n=2}else if(e<=65535){t="u";n=4}else if(e<=4294967295){t="U";n=8}else{throw new i("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+t+a.repeat("0",n-r.length)+r}var $=1,N=2;function State(e){this.schema=e["schema"]||n;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=a.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?N:$;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,r){var t=a.repeat(" ",r),i=0,n=-1,s="",o,l=e.length;while(i<l){n=e.indexOf("\n",i);if(n===-1){o=e.slice(i);i=l}else{o=e.slice(i,n+1);i=n+1}if(o.length&&o!=="\n")s+=t;s+=o}return s}function generateNextLine(e,r){return"\n"+a.repeat(" ",e.indent*r)}function testImplicitResolving(e,r){var t,a,i;for(t=0,a=e.implicitTypes.length;t<a;t+=1){i=e.implicitTypes[t];if(i.resolve(r)){return true}}return false}function isWhitespace(e){return e===p||e===u}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==l||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==l&&e!==f&&e!==c}function isPlainSafe(e,r,t){var a=isNsCharOrWhitespace(e);var i=a&&!isWhitespace(e);return(t?a:a&&e!==S&&e!==k&&e!==C&&e!==A&&e!==D)&&e!==m&&!(r===E&&!i)||isNsCharOrWhitespace(r)&&!isWhitespace(r)&&e===m||r===E&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==l&&!isWhitespace(e)&&e!==b&&e!==x&&e!==E&&e!==S&&e!==k&&e!==C&&e!==A&&e!==D&&e!==m&&e!==y&&e!==w&&e!==d&&e!==F&&e!==P&&e!==_&&e!==g&&e!==h&&e!==v&&e!==O&&e!==R}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==E}function codePointAt(e,r){var t=e.charCodeAt(r),a;if(t>=55296&&t<=56319&&r+1<e.length){a=e.charCodeAt(r+1);if(a>=56320&&a<=57343){return(t-55296)*1024+a-56320+65536}}return t}function needIndentIndicator(e){var r=/^\n* /;return r.test(e)}var L=1,M=2,q=3,U=4,H=5;function chooseScalarStyle(e,r,t,a,i,n,s,o){var l;var u=0;var f=null;var p=false;var d=false;var h=a!==-1;var m=-1;var v=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(r||s){for(l=0;l<e.length;u>=65536?l+=2:l++){u=codePointAt(e,l);if(!isPrintable(u)){return H}v=v&&isPlainSafe(u,f,o);f=u}}else{for(l=0;l<e.length;u>=65536?l+=2:l++){u=codePointAt(e,l);if(u===c){p=true;if(h){d=d||l-m-1>a&&e[m+1]!==" ";m=l}}else if(!isPrintable(u)){return H}v=v&&isPlainSafe(u,f,o);f=u}d=d||h&&(l-m-1>a&&e[m+1]!==" ")}if(!p&&!d){if(v&&!s&&!i(e)){return L}return n===N?H:M}if(t>9&&needIndentIndicator(e)){return H}if(!s){return d?U:q}return n===N?H:M}function writeScalar(e,r,t,a,n){e.dump=function(){if(r.length===0){return e.quotingType===N?'""':"''"}if(!e.noCompatMode){if(j.indexOf(r)!==-1||T.test(r)){return e.quotingType===N?'"'+r+'"':"'"+r+"'"}}var s=e.indent*Math.max(1,t);var o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var l=a||e.flowLevel>-1&&t>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,l,e.indent,o,testAmbiguity,e.quotingType,e.forceQuotes&&!a,n)){case L:return r;case M:return"'"+r.replace(/'/g,"''")+"'";case q:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,s));case U:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,o),s));case H:return'"'+escapeString(r,o)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var t=needIndentIndicator(e)?String(r):"";var a=e[e.length-1]==="\n";var i=a&&(e[e.length-2]==="\n"||e==="\n");var n=i?"+":a?"":"-";return t+n+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var t=/(\n+)([^\n]*)/g;var a=function(){var a=e.indexOf("\n");a=a!==-1?a:e.length;t.lastIndex=a;return foldLine(e.slice(0,a),r)}();var i=e[0]==="\n"||e[0]===" ";var n;var s;while(s=t.exec(e)){var o=s[1],l=s[2];n=l[0]===" ";a+=o+(!i&&!n&&l!==""?"\n":"")+foldLine(l,r);i=n}return a}function foldLine(e,r){if(e===""||e[0]===" ")return e;var t=/ [^ ]/g;var a;var i=0,n,s=0,o=0;var l="";while(a=t.exec(e)){o=a.index;if(o-i>r){n=s>i?s:o;l+="\n"+e.slice(i,n);i=n+1}s=o}l+="\n";if(e.length-i>r&&s>i){l+=e.slice(i,s)+"\n"+e.slice(s+1)}else{l+=e.slice(i)}return l.slice(1)}function escapeString(e){var r="";var t=0;var a;for(var i=0;i<e.length;t>=65536?i+=2:i++){t=codePointAt(e,i);a=I[t];if(!a&&isPrintable(t)){r+=e[i];if(t>=65536)r+=e[i+1]}else{r+=a||encodeHex(t)}}return r}function writeFlowSequence(e,r,t){var a="",i=e.tag,n,s,o;for(n=0,s=t.length;n<s;n+=1){o=t[n];if(e.replacer){o=e.replacer.call(t,String(n),o)}if(writeNode(e,r,o,false,false)||typeof o==="undefined"&&writeNode(e,r,null,false,false)){if(a!=="")a+=","+(!e.condenseFlow?" ":"");a+=e.dump}}e.tag=i;e.dump="["+a+"]"}function writeBlockSequence(e,r,t,a){var i="",n=e.tag,s,o,l;for(s=0,o=t.length;s<o;s+=1){l=t[s];if(e.replacer){l=e.replacer.call(t,String(s),l)}if(writeNode(e,r+1,l,true,true,false,true)||typeof l==="undefined"&&writeNode(e,r+1,null,true,true,false,true)){if(!a||i!==""){i+=generateNextLine(e,r)}if(e.dump&&c===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=n;e.dump=i||"[]"}function writeFlowMapping(e,r,t){var a="",i=e.tag,n=Object.keys(t),s,o,l,u,c;for(s=0,o=n.length;s<o;s+=1){c="";if(a!=="")c+=", ";if(e.condenseFlow)c+='"';l=n[s];u=t[l];if(e.replacer){u=e.replacer.call(t,l,u)}if(!writeNode(e,r,l,false,false)){continue}if(e.dump.length>1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,u,false,false)){continue}c+=e.dump;a+=c}e.tag=i;e.dump="{"+a+"}"}function writeBlockMapping(e,r,t,a){var n="",s=e.tag,o=Object.keys(t),l,u,f,p,d,h;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(l=0,u=o.length;l<u;l+=1){h="";if(!a||n!==""){h+=generateNextLine(e,r)}f=o[l];p=t[f];if(e.replacer){p=e.replacer.call(t,f,p)}if(!writeNode(e,r+1,f,true,true,true)){continue}d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(d){if(e.dump&&c===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,r)}if(!writeNode(e,r+1,p,true,d)){continue}if(e.dump&&c===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;n+=h}e.tag=s;e.dump=n||"{}"}function detectType(e,r,t){var a,n,l,u,c,f;n=t?e.explicitTypes:e.implicitTypes;for(l=0,u=n.length;l<u;l+=1){c=n[l];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof r==="object"&&r instanceof c.instanceOf)&&(!c.predicate||c.predicate(r))){if(t){if(c.multi&&c.representName){e.tag=c.representName(r)}else{e.tag=c.tag}}else{e.tag="?"}if(c.represent){f=e.styleMap[c.tag]||c.defaultStyle;if(s.call(c.represent)==="[object Function]"){a=c.represent(r,f)}else if(o.call(c.represent,f)){a=c.represent[f](r,f)}else{throw new i("!<"+c.tag+'> tag resolver accepts not "'+f+'" style')}e.dump=a}return true}}return false}function writeNode(e,r,t,a,n,o,l){e.tag=null;e.dump=t;if(!detectType(e,t,false)){detectType(e,t,true)}var u=s.call(e.dump);var c=a;var f;if(a){a=e.flowLevel<0||e.flowLevel>r}var p=u==="[object Object]"||u==="[object Array]",d,h;if(p){d=e.duplicates.indexOf(t);h=d!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&r>0){n=false}if(h&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&h&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(u==="[object Object]"){if(a&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,n);if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,r,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object Array]"){if(a&&e.dump.length!==0){if(e.noArrayIndent&&!l&&r>0){writeBlockSequence(e,r-1,e.dump,n)}else{writeBlockSequence(e,r,e.dump,n)}if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,r,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,o,c)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,r){var t=[],a=[],i,n;inspectNode(e,t,a);for(i=0,n=a.length;i<n;i+=1){r.duplicates.push(t[a[i]])}r.usedDuplicates=new Array(n)}function inspectNode(e,r,t){var a,i,n;if(e!==null&&typeof e==="object"){i=r.indexOf(e);if(i!==-1){if(t.indexOf(i)===-1){t.push(i)}}else{r.push(e);if(Array.isArray(e)){for(i=0,n=e.length;i<n;i+=1){inspectNode(e[i],r,t)}}else{a=Object.keys(e);for(i=0,n=a.length;i<n;i+=1){inspectNode(e[a[i]],r,t)}}}}}function dump(e,r){r=r||{};var t=new State(r);if(!t.noRefs)getDuplicateReferences(e,t);var a=e;if(t.replacer){a=t.replacer.call({"":a},"",a)}if(writeNode(t,0,a,true,true))return t.dump+"\n";return""}e.exports.dump=dump},876:e=>{"use strict";function formatError(e,r){var t="",a=e.reason||"(unknown reason)";if(!e.mark)return a;if(e.mark.name){t+='in "'+e.mark.name+'" '}t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!r&&e.mark.snippet){t+="\n\n"+e.mark.snippet}return a+" "+t}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},6344:(e,r,t)=>{"use strict";var a=t(5929);var i=t(876);var n=t(6589);var s=t(6672);var o=Object.prototype.hasOwnProperty;var l=1;var u=2;var c=3;var f=4;var p=1;var d=2;var h=3;var m=/[\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 y=/[,\[\]\{\}]/;var g=/^(?:!|!!|![a-z\-]+!)$/i;var w=/^(?:!|[^,\[\]\{\}])(?:%[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 S=new Array(256);var b=new Array(256);for(var E=0;E<256;E++){S[E]=simpleEscapeSequence(E)?1:0;b[E]=simpleEscapeSequence(E)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||s;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 t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};t.snippet=n(t);return new i(r,t)}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var P={YAML:function handleYamlDirective(e,r,t){var a,i,n;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(t.length!==1){throwError(e,"YAML directive accepts exactly one argument")}a=/^([0-9]+)\.([0-9]+)$/.exec(t[0]);if(a===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(a[1],10);n=parseInt(a[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=t[0];e.checkLineBreaks=n<2;if(n!==1&&n!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,t){var a,i;if(t.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}a=t[0];i=t[1];if(!g.test(a)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(o.call(e.tagMap,a)){throwError(e,'there is a previously declared suffix for "'+a+'" tag handle')}if(!w.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[a]=i}};function captureSegment(e,r,t,a){var i,n,s,o;if(r<t){o=e.input.slice(r,t);if(a){for(i=0,n=o.length;i<n;i+=1){s=o.charCodeAt(i);if(!(s===9||32<=s&&s<=1114111)){throwError(e,"expected valid JSON character")}}}else if(m.test(o)){throwError(e,"the stream contains non-printable characters")}e.result+=o}}function mergeMappings(e,r,t,i){var n,s,l,u;if(!a.isObject(t)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}n=Object.keys(t);for(l=0,u=n.length;l<u;l+=1){s=n[l];if(!o.call(r,s)){r[s]=t[s];i[s]=true}}}function storeMappingPair(e,r,t,a,i,n,s,l,u){var c,f;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(c=0,f=i.length;c<f;c+=1){if(Array.isArray(i[c])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[c])==="[object Object]"){i[c]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(r===null){r={}}if(a==="tag:yaml.org,2002:merge"){if(Array.isArray(n)){for(c=0,f=n.length;c<f;c+=1){mergeMappings(e,r,n[c],t)}}else{mergeMappings(e,r,n,t)}}else{if(!e.json&&!o.call(t,i)&&o.call(r,i)){e.line=s||e.line;e.lineStart=l||e.lineStart;e.position=u||e.position;throwError(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(r,i,{configurable:true,enumerable:true,writable:true,value:n})}else{r[i]=n}delete t[i]}return r}function readLineBreak(e){var r;r=e.input.charCodeAt(e.position);if(r===10){e.position++}else if(r===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,r,t){var a=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(r&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);a++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(t!==-1&&a!==0&&e.lineIndent<t){throwWarning(e,"deficient indentation")}return a}function testDocumentSeparator(e){var r=e.position,t;t=e.input.charCodeAt(r);if((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)){r+=3;t=e.input.charCodeAt(r);if(t===0||is_WS_OR_EOL(t)){return true}}return false}function writeFoldedLines(e,r){if(r===1){e.result+=" "}else if(r>1){e.result+=a.repeat("\n",r-1)}}function readPlainScalar(e,r,t){var a,i,n,s,o,l,u,c,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||t&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";n=s=e.position;o=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||t&&is_FLOW_INDICATOR(i)){break}}else if(d===35){a=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(a)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||t&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){l=e.line;u=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){o=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=l;e.lineStart=u;e.lineIndent=c;break}}if(o){captureSegment(e,n,s,false);writeFoldedLines(e,e.line-l);n=s=e.position;o=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,n,s,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,r){var t,a,i;t=e.input.charCodeAt(e.position);if(t!==39){return false}e.kind="scalar";e.result="";e.position++;a=i=e.position;while((t=e.input.charCodeAt(e.position))!==0){if(t===39){captureSegment(e,a,e.position,true);t=e.input.charCodeAt(++e.position);if(t===39){a=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(t)){captureSegment(e,a,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));a=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 t,a,i,n,s,o;o=e.input.charCodeAt(e.position);if(o!==34){return false}e.kind="scalar";e.result="";e.position++;t=a=e.position;while((o=e.input.charCodeAt(e.position))!==0){if(o===34){captureSegment(e,t,e.position,true);e.position++;return true}else if(o===92){captureSegment(e,t,e.position,true);o=e.input.charCodeAt(++e.position);if(is_EOL(o)){skipSeparationSpace(e,false,r)}else if(o<256&&S[o]){e.result+=b[o];e.position++}else if((s=escapedHexLen(o))>0){i=s;n=0;for(;i>0;i--){o=e.input.charCodeAt(++e.position);if((s=fromHexCode(o))>=0){n=(n<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(n);e.position++}else{throwError(e,"unknown escape sequence")}t=a=e.position}else if(is_EOL(o)){captureSegment(e,t,a,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=a=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++;a=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var t=true,a,i,n,s=e.tag,o,u=e.anchor,c,f,p,d,h,m=Object.create(null),v,y,g,w;w=e.input.charCodeAt(e.position);if(w===91){f=93;h=false;o=[]}else if(w===123){f=125;h=true;o={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=o}w=e.input.charCodeAt(++e.position);while(w!==0){skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if(w===f){e.position++;e.tag=s;e.anchor=u;e.kind=h?"mapping":"sequence";e.result=o;return true}else if(!t){throwError(e,"missed comma between flow collection entries")}else if(w===44){throwError(e,"expected the node content, but found ','")}y=v=g=null;p=d=false;if(w===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){p=d=true;e.position++;skipSeparationSpace(e,true,r)}}a=e.line;i=e.lineStart;n=e.position;composeNode(e,r,l,false,true);y=e.tag;v=e.result;skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if((d||e.line===a)&&w===58){p=true;w=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,l,false,true);g=e.result}if(h){storeMappingPair(e,o,m,y,v,g,a,i,n)}else if(p){o.push(storeMappingPair(e,null,m,y,v,g,a,i,n))}else{o.push(v)}skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if(w===44){t=true;w=e.input.charCodeAt(++e.position)}else{t=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var t,i,n=p,s=false,o=false,l=r,u=0,c=false,f,m;m=e.input.charCodeAt(e.position);if(m===124){i=false}else if(m===62){i=true}else{return false}e.kind="scalar";e.result="";while(m!==0){m=e.input.charCodeAt(++e.position);if(m===43||m===45){if(p===n){n=m===43?h:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(m))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){l=r+f-1;o=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(m)){do{m=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(m));if(m===35){do{m=e.input.charCodeAt(++e.position)}while(!is_EOL(m)&&m!==0)}}while(m!==0){readLineBreak(e);e.lineIndent=0;m=e.input.charCodeAt(e.position);while((!o||e.lineIndent<l)&&m===32){e.lineIndent++;m=e.input.charCodeAt(++e.position)}if(!o&&e.lineIndent>l){l=e.lineIndent}if(is_EOL(m)){u++;continue}if(e.lineIndent<l){if(n===h){e.result+=a.repeat("\n",s?1+u:u)}else if(n===p){if(s){e.result+="\n"}}break}if(i){if(is_WHITE_SPACE(m)){c=true;e.result+=a.repeat("\n",s?1+u:u)}else if(c){c=false;e.result+=a.repeat("\n",u+1)}else if(u===0){if(s){e.result+=" "}}else{e.result+=a.repeat("\n",u)}}else{e.result+=a.repeat("\n",s?1+u:u)}s=true;o=true;u=0;t=e.position;while(!is_EOL(m)&&m!==0){m=e.input.charCodeAt(++e.position)}captureSegment(e,t,e.position,false)}return true}function readBlockSequence(e,r){var t,a=e.tag,i=e.anchor,n=[],s,o=false,l;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=n}l=e.input.charCodeAt(e.position);while(l!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(l!==45){break}s=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(s)){break}o=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=r){n.push(null);l=e.input.charCodeAt(e.position);continue}}t=e.line;composeNode(e,r,c,false,true);n.push(e.result);skipSeparationSpace(e,true,-1);l=e.input.charCodeAt(e.position);if((e.line===t||e.lineIndent>r)&&l!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<r){break}}if(o){e.tag=a;e.anchor=i;e.kind="sequence";e.result=n;return true}return false}function readBlockMapping(e,r,t){var a,i,n,s,o,l,c=e.tag,p=e.anchor,d={},h=Object.create(null),m=null,v=null,y=null,g=false,w=false,S;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=d}S=e.input.charCodeAt(e.position);while(S!==0){if(!g&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}a=e.input.charCodeAt(e.position+1);n=e.line;if((S===63||S===58)&&is_WS_OR_EOL(a)){if(S===63){if(g){storeMappingPair(e,d,h,m,v,null,s,o,l);m=v=y=null}w=true;g=true;i=true}else if(g){g=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;S=a}else{s=e.line;o=e.lineStart;l=e.position;if(!composeNode(e,t,u,false,true)){break}if(e.line===n){S=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(S)){S=e.input.charCodeAt(++e.position)}if(S===58){S=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(S)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(g){storeMappingPair(e,d,h,m,v,null,s,o,l);m=v=y=null}w=true;g=false;i=false;m=e.tag;v=e.result}else if(w){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=c;e.anchor=p;return true}}else if(w){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=c;e.anchor=p;return true}}if(e.line===n||e.lineIndent>r){if(g){s=e.line;o=e.lineStart;l=e.position}if(composeNode(e,r,f,true,i)){if(g){v=e.result}else{y=e.result}}if(!g){storeMappingPair(e,d,h,m,v,y,s,o,l);m=v=y=null}skipSeparationSpace(e,true,-1);S=e.input.charCodeAt(e.position)}if((e.line===n||e.lineIndent>r)&&S!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<r){break}}if(g){storeMappingPair(e,d,h,m,v,null,s,o,l)}if(w){e.tag=c;e.anchor=p;e.kind="mapping";e.result=d}return w}function readTagProperty(e){var r,t=false,a=false,i,n,s;s=e.input.charCodeAt(e.position);if(s!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}s=e.input.charCodeAt(++e.position);if(s===60){t=true;s=e.input.charCodeAt(++e.position)}else if(s===33){a=true;i="!!";s=e.input.charCodeAt(++e.position)}else{i="!"}r=e.position;if(t){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&s!==62);if(e.position<e.length){n=e.input.slice(r,e.position);s=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(s!==0&&!is_WS_OR_EOL(s)){if(s===33){if(!a){i=e.input.slice(r-1,e.position+1);if(!g.test(i)){throwError(e,"named tag handle cannot contain such characters")}a=true;r=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}s=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);if(y.test(n)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(n&&!w.test(n)){throwError(e,"tag name cannot contain such characters: "+n)}try{n=decodeURIComponent(n)}catch(r){throwError(e,"tag name is malformed: "+n)}if(t){e.tag=n}else if(o.call(e.tagMap,i)){e.tag=e.tagMap[i]+n}else if(i==="!"){e.tag="!"+n}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+n}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var r,t;t=e.input.charCodeAt(e.position);if(t!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}t=e.input.charCodeAt(++e.position);r=e.position;while(t!==0&&!is_WS_OR_EOL(t)&&!is_FLOW_INDICATOR(t)){t=e.input.charCodeAt(++e.position)}if(e.position===r){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(r,e.position);return true}function readAlias(e){var r,t,a;a=e.input.charCodeAt(e.position);if(a!==42)return false;a=e.input.charCodeAt(++e.position);r=e.position;while(a!==0&&!is_WS_OR_EOL(a)&&!is_FLOW_INDICATOR(a)){a=e.input.charCodeAt(++e.position)}if(e.position===r){throwError(e,"name of an alias node must contain at least one character")}t=e.input.slice(r,e.position);if(!o.call(e.anchorMap,t)){throwError(e,'unidentified alias "'+t+'"')}e.result=e.anchorMap[t];skipSeparationSpace(e,true,-1);return true}function composeNode(e,r,t,a,i){var n,s,p,d=1,h=false,m=false,v,y,g,w,S,b;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;n=s=p=f===t||c===t;if(a){if(skipSeparationSpace(e,true,-1)){h=true;if(e.lineIndent>r){d=1}else if(e.lineIndent===r){d=0}else if(e.lineIndent<r){d=-1}}}if(d===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){h=true;p=n;if(e.lineIndent>r){d=1}else if(e.lineIndent===r){d=0}else if(e.lineIndent<r){d=-1}}else{p=false}}}if(p){p=h||i}if(d===1||f===t){if(l===t||u===t){S=r}else{S=r+1}b=e.position-e.lineStart;if(d===1){if(p&&(readBlockSequence(e,b)||readBlockMapping(e,b,S))||readFlowCollection(e,S)){m=true}else{if(s&&readBlockScalar(e,S)||readSingleQuotedScalar(e,S)||readDoubleQuotedScalar(e,S)){m=true}else if(readAlias(e)){m=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,S,l===t)){m=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(d===0){m=p&&readBlockSequence(e,b)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(v=0,y=e.implicitTypes.length;v<y;v+=1){w=e.implicitTypes[v];if(w.resolve(e.result)){e.result=w.construct(e.result);e.tag=w.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(o.call(e.typeMap[e.kind||"fallback"],e.tag)){w=e.typeMap[e.kind||"fallback"][e.tag]}else{w=null;g=e.typeMap.multi[e.kind||"fallback"];for(v=0,y=g.length;v<y;v+=1){if(e.tag.slice(0,g[v].tag.length)===g[v].tag){w=g[v];break}}}if(!w){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&w.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"')}if(!w.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=w.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||m}function readDocument(e){var r=e.position,t,a,i,n=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}n=true;s=e.input.charCodeAt(++e.position);t=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}a=e.input.slice(t,e.position);i=[];if(a.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;t=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(t,e.position))}if(s!==0)readLineBreak(e);if(o.call(P,a)){P[a](e,a,i)}else{throwWarning(e,'unknown document directive "'+a+'"')}}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(n){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,f,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<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,r){e=String(e);r=r||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var t=new State(e,r);var a=e.indexOf("\0");if(a!==-1){t.position=a;throwError(t,"null byte is not allowed in input")}t.input+="\0";while(t.input.charCodeAt(t.position)===32){t.lineIndent+=1;t.position+=1}while(t.position<t.length-1){readDocument(t)}return t.documents}function loadAll(e,r,t){if(r!==null&&typeof r==="object"&&typeof t==="undefined"){t=r;r=null}var a=loadDocuments(e,t);if(typeof r!=="function"){return a}for(var i=0,n=a.length;i<n;i+=1){r(a[i])}}function load(e,r){var t=loadDocuments(e,r);if(t.length===0){return undefined}else if(t.length===1){return t[0]}throw new i("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},5217:(e,r,t)=>{"use strict";var a=t(876);var i=t(4098);function compileList(e,r){var t=[];e[r].forEach((function(e){var r=t.length;t.forEach((function(t,a){if(t.tag===e.tag&&t.kind===e.kind&&t.multi===e.multi){r=a}}));t[r]=e}));return t}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;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,t=arguments.length;r<t;r+=1){arguments[r].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var r=[];var t=[];if(e instanceof i){t.push(e)}else if(Array.isArray(e)){t=t.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)r=r.concat(e.implicit);if(e.explicit)t=t.concat(e.explicit)}else{throw new a("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}r.forEach((function(e){if(!(e instanceof i)){throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new a("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));t.forEach((function(e){if(!(e instanceof i)){throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var n=Object.create(Schema.prototype);n.implicit=(this.implicit||[]).concat(r);n.explicit=(this.explicit||[]).concat(t);n.compiledImplicit=compileList(n,"implicit");n.compiledExplicit=compileList(n,"explicit");n.compiledTypeMap=compileMap(n.compiledImplicit,n.compiledExplicit);return n};e.exports=Schema},9043:(e,r,t)=>{"use strict";e.exports=t(9116)},6672:(e,r,t)=>{"use strict";e.exports=t(9043).extend({implicit:[t(8285),t(5831)],explicit:[t(1688),t(3602),t(5671),t(3051)]})},3183:(e,r,t)=>{"use strict";var a=t(5217);e.exports=new a({explicit:[t(802),t(9130),t(723)]})},9116:(e,r,t)=>{"use strict";e.exports=t(3183).extend({implicit:[t(2451),t(8510),t(2682),t(3250)]})},6589:(e,r,t)=>{"use strict";var a=t(5929);function getLine(e,r,t,a,i){var n="";var s="";var o=Math.floor(i/2)-1;if(a-r>o){n=" ... ";r=a-o+n.length}if(t-a>o){s=" ...";t=a+o-s.length}return{str:n+e.slice(r,t).replace(/\t/g,"→")+s,pos:a-r+n.length}}function padStart(e,r){return a.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 t=/\r?\n|\r|\0/g;var i=[0];var n=[];var s;var o=-1;while(s=t.exec(e.buffer)){n.push(s.index);i.push(s.index+s[0].length);if(e.position<=s.index&&o<0){o=i.length-2}}if(o<0)o=i.length-1;var l="",u,c;var f=Math.min(e.line+r.linesAfter,n.length).toString().length;var p=r.maxLength-(r.indent+f+3);for(u=1;u<=r.linesBefore;u++){if(o-u<0)break;c=getLine(e.buffer,i[o-u],n[o-u],e.position-(i[o]-i[o-u]),p);l=a.repeat(" ",r.indent)+padStart((e.line-u+1).toString(),f)+" | "+c.str+"\n"+l}c=getLine(e.buffer,i[o],n[o],e.position,p);l+=a.repeat(" ",r.indent)+padStart((e.line+1).toString(),f)+" | "+c.str+"\n";l+=a.repeat("-",r.indent+f+3+c.pos)+"^"+"\n";for(u=1;u<=r.linesAfter;u++){if(o+u>=n.length)break;c=getLine(e.buffer,i[o+u],n[o+u],e.position-(i[o]-i[o+u]),p);l+=a.repeat(" ",r.indent)+padStart((e.line+u+1).toString(),f)+" | "+c.str+"\n"}return l.replace(/\n$/,"")}e.exports=makeSnippet},4098:(e,r,t)=>{"use strict";var a=t(876);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var n=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach((function(t){e[t].forEach((function(e){r[String(e)]=t}))}))}return r}function Type(e,r){r=r||{};Object.keys(r).forEach((function(r){if(i.indexOf(r)===-1){throw new a('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(n.indexOf(this.kind)===-1){throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},1688:(e,r,t)=>{"use strict";var a=t(4098);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,t,a=0,n=e.length,s=i;for(t=0;t<n;t++){r=s.indexOf(e.charAt(t));if(r>64)continue;if(r<0)return false;a+=6}return a%8===0}function constructYamlBinary(e){var r,t,a=e.replace(/[\r\n=]/g,""),n=a.length,s=i,o=0,l=[];for(r=0;r<n;r++){if(r%4===0&&r){l.push(o>>16&255);l.push(o>>8&255);l.push(o&255)}o=o<<6|s.indexOf(a.charAt(r))}t=n%4*6;if(t===0){l.push(o>>16&255);l.push(o>>8&255);l.push(o&255)}else if(t===18){l.push(o>>10&255);l.push(o>>2&255)}else if(t===12){l.push(o>>4&255)}return new Uint8Array(l)}function representYamlBinary(e){var r="",t=0,a,n,s=e.length,o=i;for(a=0;a<s;a++){if(a%3===0&&a){r+=o[t>>18&63];r+=o[t>>12&63];r+=o[t>>6&63];r+=o[t&63]}t=(t<<8)+e[a]}n=s%3;if(n===0){r+=o[t>>18&63];r+=o[t>>12&63];r+=o[t>>6&63];r+=o[t&63]}else if(n===2){r+=o[t>>10&63];r+=o[t>>4&63];r+=o[t<<2&63];r+=o[64]}else if(n===1){r+=o[t>>2&63];r+=o[t<<4&63];r+=o[64];r+=o[64]}return r}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new a("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},8510:(e,r,t)=>{"use strict";var a=t(4098);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 a("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"})},3250:(e,r,t)=>{"use strict";var a=t(5929);var i=t(4098);var n=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(!n.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,t;r=e.replace(/_/g,"").toLowerCase();t=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return t*parseFloat(r,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var t;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(a.isNegativeZero(e)){return"-0.0"}t=e.toString(10);return s.test(t)?t.replace("e",".e"):t}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||a.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},2682:(e,r,t)=>{"use strict";var a=t(5929);var i=t(4098);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,t=0,a=false,i;if(!r)return false;i=e[t];if(i==="-"||i==="+"){i=e[++t]}if(i==="0"){if(t+1===r)return true;i=e[++t];if(i==="b"){t++;for(;t<r;t++){i=e[t];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;a=true}return a&&i!=="_"}if(i==="x"){t++;for(;t<r;t++){i=e[t];if(i==="_")continue;if(!isHexCode(e.charCodeAt(t)))return false;a=true}return a&&i!=="_"}if(i==="o"){t++;for(;t<r;t++){i=e[t];if(i==="_")continue;if(!isOctCode(e.charCodeAt(t)))return false;a=true}return a&&i!=="_"}}if(i==="_")return false;for(;t<r;t++){i=e[t];if(i==="_")continue;if(!isDecCode(e.charCodeAt(t))){return false}a=true}if(!a||i==="_")return false;return true}function constructYamlInteger(e){var r=e,t=1,a;if(r.indexOf("_")!==-1){r=r.replace(/_/g,"")}a=r[0];if(a==="-"||a==="+"){if(a==="-")t=-1;r=r.slice(1);a=r[0]}if(r==="0")return 0;if(a==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!a.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=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"]}})},723:(e,r,t)=>{"use strict";var a=t(4098);e.exports=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},5831:(e,r,t)=>{"use strict";var a=t(4098);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2451:(e,r,t)=>{"use strict";var a=t(4098);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 a("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"})},3602:(e,r,t)=>{"use strict";var a=t(4098);var i=Object.prototype.hasOwnProperty;var n=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],t,a,s,o,l,u=e;for(t=0,a=u.length;t<a;t+=1){s=u[t];l=false;if(n.call(s)!=="[object Object]")return false;for(o in s){if(i.call(s,o)){if(!l)l=true;else return false}}if(!l)return false;if(r.indexOf(o)===-1)r.push(o);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new a("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},5671:(e,r,t)=>{"use strict";var a=t(4098);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,t,a,n,s,o=e;s=new Array(o.length);for(r=0,t=o.length;r<t;r+=1){a=o[r];if(i.call(a)!=="[object Object]")return false;n=Object.keys(a);if(n.length!==1)return false;s[r]=[n[0],a[n[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var r,t,a,i,n,s=e;n=new Array(s.length);for(r=0,t=s.length;r<t;r+=1){a=s[r];i=Object.keys(a);n[r]=[i[0],a[i[0]]]}return n}e.exports=new a("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},9130:(e,r,t)=>{"use strict";var a=t(4098);e.exports=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},3051:(e,r,t)=>{"use strict";var a=t(4098);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var r,t=e;for(r in t){if(i.call(t,r)){if(t[r]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},802:(e,r,t)=>{"use strict";var a=t(4098);e.exports=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},8285:(e,r,t)=>{"use strict";var a=t(4098);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var n=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(n.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,t,a,s,o,l,u,c=0,f=null,p,d,h;r=i.exec(e);if(r===null)r=n.exec(e);if(r===null)throw new Error("Date resolve error");t=+r[1];a=+r[2]-1;s=+r[3];if(!r[4]){return new Date(Date.UTC(t,a,s))}o=+r[4];l=+r[5];u=+r[6];if(r[7]){c=r[7].slice(0,3);while(c.length<3){c+="0"}c=+c}if(r[9]){p=+r[10];d=+(r[11]||0);f=(p*60+d)*6e4;if(r[9]==="-")f=-f}h=new Date(Date.UTC(t,a,s,o,l,u,c));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},8154:e=>{"use strict";var r=e.exports=function(e,r,t){if(typeof r=="function"){t=r;r={}}t=r.cb||t;var a=typeof t=="function"?t:t.pre||function(){};var i=t.post||function(){};_traverse(r,a,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,t,a,i,n,s,o,l,u,c){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,s,o,l,u,c);for(var f in i){var p=i[f];if(Array.isArray(p)){if(f in r.arrayKeywords){for(var d=0;d<p.length;d++)_traverse(e,t,a,p[d],n+"/"+f+"/"+d,s,n,f,i,d)}}else if(f in r.propsKeywords){if(p&&typeof p=="object"){for(var h in p)_traverse(e,t,a,p[h],n+"/"+f+"/"+escapeJsonPtr(h),s,n,f,i,h)}}else if(f in r.keywords||e.allKeys&&!(f in r.skipKeywords)){_traverse(e,t,a,p,n+"/"+f,s,n,f,i)}}a(i,n,s,o,l,u,c)}}function escapeJsonPtr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}},5533:(e,r,t)=>{let a;try{a=t(7765)}catch(e){a=t(7147)}const i=t(3706);const{stringify:n,stripBom:s}=t(8171);async function _readFile(e,r={}){if(typeof r==="string"){r={encoding:r}}const t=r.fs||a;const n="throws"in r?r.throws:true;let o=await i.fromCallback(t.readFile)(e,r);o=s(o);let l;try{l=JSON.parse(o,r?r.reviver:null)}catch(r){if(n){r.message=`${e}: ${r.message}`;throw r}else{return null}}return l}const o=i.fromPromise(_readFile);function readFileSync(e,r={}){if(typeof r==="string"){r={encoding:r}}const t=r.fs||a;const i="throws"in r?r.throws:true;try{let a=t.readFileSync(e,r);a=s(a);return JSON.parse(a,r.reviver)}catch(r){if(i){r.message=`${e}: ${r.message}`;throw r}else{return null}}}async function _writeFile(e,r,t={}){const s=t.fs||a;const o=n(r,t);await i.fromCallback(s.writeFile)(e,o,t)}const l=i.fromPromise(_writeFile);function writeFileSync(e,r,t={}){const i=t.fs||a;const s=n(r,t);return i.writeFileSync(e,s,t)}const u={readFile:o,readFileSync:readFileSync,writeFile:l,writeFileSync:writeFileSync};e.exports=u},8171:e=>{function stringify(e,{EOL:r="\n",finalEOL:t=true,replacer:a=null,spaces:i}={}){const n=t?r:"";const s=JSON.stringify(e,a,i);return s.replace(/\n/g,r)+n}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},9524: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 t=e.split(":");return{username:t[0],password:t[1],uid:t[2],gid:t[3],gecos:t[4],homedir:t[5],shell:t[6]}}},1353:(e,r,t)=>{e.exports=t(21)},21:(e,r,t)=>{"use strict";var a=t(1808);var i=t(4404);var n=t(3685);var s=t(5687);var o=t(2361);var l=t(9491);var u=t(3837);r.httpOverHttp=httpOverHttp;r.httpsOverHttp=httpsOverHttp;r.httpOverHttps=httpOverHttps;r.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var r=new TunnelingAgent(e);r.request=n.request;return r}function httpsOverHttp(e){var r=new TunnelingAgent(e);r.request=n.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function httpOverHttps(e){var r=new TunnelingAgent(e);r.request=s.request;return r}function httpsOverHttps(e){var r=new TunnelingAgent(e);r.request=s.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||n.Agent.defaultMaxSockets;r.requests=[];r.sockets=[];r.on("free",(function onFree(e,t,a,i){var n=toOptions(t,a,i);for(var s=0,o=r.requests.length;s<o;++s){var l=r.requests[s];if(l.host===n.host&&l.port===n.port){r.requests.splice(s,1);l.request.onSocket(e);return}}e.destroy();r.removeSocket(e)}))}u.inherits(TunnelingAgent,o.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,r,t,a){var i=this;var n=mergeOptions({request:e},i.options,toOptions(r,t,a));if(i.sockets.length>=this.maxSockets){i.requests.push(n);return}i.createSocket(n,(function(r){r.on("free",onFree);r.on("close",onCloseOrRemove);r.on("agentRemove",onCloseOrRemove);e.onSocket(r);function onFree(){i.emit("free",r,n)}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 t=this;var a={};t.sockets.push(a);var i=mergeOptions({},t.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")}c("making CONNECT request");var n=t.request(i);n.useChunkedEncodingByDefault=false;n.once("response",onResponse);n.once("upgrade",onUpgrade);n.once("connect",onConnect);n.once("error",onError);n.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,r,t){process.nextTick((function(){onConnect(e,r,t)}))}function onConnect(i,s,o){n.removeAllListeners();s.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);s.destroy();var l=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);l.code="ECONNRESET";e.request.emit("error",l);t.removeSocket(a);return}if(o.length>0){c("got illegal response body from proxy");s.destroy();var l=new Error("got illegal response body from proxy");l.code="ECONNRESET";e.request.emit("error",l);t.removeSocket(a);return}c("tunneling connection has established");t.sockets[t.sockets.indexOf(a)]=s;return r(s)}function onError(r){n.removeAllListeners();c("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);t.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var r=this.sockets.indexOf(e);if(r===-1){return}this.sockets.splice(r,1);var t=this.requests.shift();if(t){this.createSocket(t,(function(e){t.request.onSocket(e)}))}};function createSecureSocket(e,r){var t=this;TunnelingAgent.prototype.createSocket.call(t,e,(function(a){var n=e.request.getHeader("host");var s=mergeOptions({},t.options,{socket:a,servername:n?n.replace(/:.*$/,""):e.host});var o=i.connect(0,s);t.sockets[t.sockets.indexOf(a)]=o;r(o)}))}function toOptions(e,r,t){if(typeof e==="string"){return{host:e,port:r,localAddress:t}}return e}function mergeOptions(e){for(var r=1,t=arguments.length;r<t;++r){var a=arguments[r];if(typeof a==="object"){var i=Object.keys(a);for(var n=0,s=i.length;n<s;++n){var o=i[n];if(a[o]!==undefined){e[o]=a[o]}}}}return e}var c;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){c=function(){var e=Array.prototype.slice.call(arguments);if(typeof e[0]==="string"){e[0]="TUNNEL: "+e[0]}else{e.unshift("TUNNEL:")}console.error.apply(console,e)}}else{c=function(){}}r.debug=c},3706:(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(((t,a)=>{e.call(this,...r,((e,r)=>e!=null?a(e):t(r)))}))}}),"name",{value:e.name})};r.fromPromise=function(e){return Object.defineProperty((function(...r){const t=r[r.length-1];if(typeof t!=="function")return e.apply(this,r);else e.apply(this,r.slice(0,-1)).then((e=>t(null,e)),t)}),"name",{value:e.name})}},626:function(e,r){
|
||
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
||
(function(e,t){true?t(r):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++){r[t]=arguments[t]}if(r.length>1){r[0]=r[0].slice(0,-1);var a=r.length-1;for(var i=1;i<a;++i){r[i]=r[i].slice(1,-1)}r[a]=r[a].slice(1);return r.join("")}else{return r[0]}}function subexp(e){return"(?:"+e+")"}function typeOf(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,r){var t=e;if(r){for(var a in r){t[a]=r[a]}}return t}function buildExps(e){var r="[A-Za-z]",t="[\\x0D]",a="[0-9]",i="[\\x22]",n=merge(a,"[A-Fa-f]"),s="[\\x0A]",o="[\\x20]",l=subexp(subexp("%[EFef]"+n+"%"+n+n+"%"+n+n)+"|"+subexp("%[89A-Fa-f]"+n+"%"+n+n)+"|"+subexp("%"+n+n)),u="[\\:\\/\\?\\#\\[\\]\\@]",c="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",f=merge(u,c),p=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",d=e?"[\\uE000-\\uF8FF]":"[]",h=merge(r,a,"[\\-\\.\\_\\~]",p),m=subexp(r+merge(r,a,"[\\+\\-\\.]")+"*"),v=subexp(subexp(l+"|"+merge(h,c,"[\\:]"))+"*"),y=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+a)+"|"+subexp("1"+a+a)+"|"+subexp("[1-9]"+a)+"|"+a),g=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+a)+"|"+subexp("1"+a+a)+"|"+subexp("0?[1-9]"+a)+"|0?0?"+a),w=subexp(g+"\\."+g+"\\."+g+"\\."+g),S=subexp(n+"{1,4}"),b=subexp(subexp(S+"\\:"+S)+"|"+w),E=subexp(subexp(S+"\\:")+"{6}"+b),P=subexp("\\:\\:"+subexp(S+"\\:")+"{5}"+b),_=subexp(subexp(S)+"?\\:\\:"+subexp(S+"\\:")+"{4}"+b),x=subexp(subexp(subexp(S+"\\:")+"{0,1}"+S)+"?\\:\\:"+subexp(S+"\\:")+"{3}"+b),O=subexp(subexp(subexp(S+"\\:")+"{0,2}"+S)+"?\\:\\:"+subexp(S+"\\:")+"{2}"+b),k=subexp(subexp(subexp(S+"\\:")+"{0,3}"+S)+"?\\:\\:"+S+"\\:"+b),C=subexp(subexp(subexp(S+"\\:")+"{0,4}"+S)+"?\\:\\:"+b),R=subexp(subexp(subexp(S+"\\:")+"{0,5}"+S)+"?\\:\\:"+S),A=subexp(subexp(subexp(S+"\\:")+"{0,6}"+S)+"?\\:\\:"),F=subexp([E,P,_,x,O,k,C,R,A].join("|")),D=subexp(subexp(h+"|"+l)+"+"),I=subexp(F+"\\%25"+D),j=subexp(F+subexp("\\%25|\\%(?!"+n+"{2})")+D),T=subexp("[vV]"+n+"+\\."+merge(h,c,"[\\:]")+"+"),$=subexp("\\["+subexp(j+"|"+F+"|"+T)+"\\]"),N=subexp(subexp(l+"|"+merge(h,c))+"*"),L=subexp($+"|"+w+"(?!"+N+")"+"|"+N),M=subexp(a+"*"),q=subexp(subexp(v+"@")+"?"+L+subexp("\\:"+M)+"?"),U=subexp(l+"|"+merge(h,c,"[\\:\\@]")),H=subexp(U+"*"),B=subexp(U+"+"),z=subexp(subexp(l+"|"+merge(h,c,"[\\@]"))+"+"),V=subexp(subexp("\\/"+H)+"*"),W=subexp("\\/"+subexp(B+V)+"?"),Q=subexp(z+V),Y=subexp(B+V),K="(?!"+U+")",J=subexp(V+"|"+W+"|"+Q+"|"+Y+"|"+K),G=subexp(subexp(U+"|"+merge("[\\/\\?]",d))+"*"),Z=subexp(subexp(U+"|[\\/\\?]")+"*"),X=subexp(subexp("\\/\\/"+q+V)+"|"+W+"|"+Y+"|"+K),ee=subexp(m+"\\:"+X+subexp("\\?"+G)+"?"+subexp("\\#"+Z)+"?"),re=subexp(subexp("\\/\\/"+q+V)+"|"+W+"|"+Q+"|"+K),te=subexp(re+subexp("\\?"+G)+"?"+subexp("\\#"+Z)+"?"),ae=subexp(ee+"|"+te),ie=subexp(m+"\\:"+X+subexp("\\?"+G)+"?"),ne="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+L+")"+subexp("\\:("+M+")")+"?)")+"?("+V+"|"+W+"|"+Y+"|"+K+")")+subexp("\\?("+G+")")+"?"+subexp("\\#("+Z+")")+"?$",se="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+L+")"+subexp("\\:("+M+")")+"?)")+"?("+V+"|"+W+"|"+Q+"|"+K+")")+subexp("\\?("+G+")")+"?"+subexp("\\#("+Z+")")+"?$",oe="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+L+")"+subexp("\\:("+M+")")+"?)")+"?("+V+"|"+W+"|"+Y+"|"+K+")")+subexp("\\?("+G+")")+"?$",le="^"+subexp("\\#("+Z+")")+"?$",ue="^"+subexp("("+v+")@")+"?("+L+")"+subexp("\\:("+M+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",r,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",h,c),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",h,c),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",h,c),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",h,c),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",h,c,"[\\:\\@\\/\\?]",d),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",h,c,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",h,c),"g"),UNRESERVED:new RegExp(h,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",h,f),"g"),PCT_ENCODED:new RegExp(l,"g"),IPV4ADDRESS:new RegExp("^("+w+")$"),IPV6ADDRESS:new RegExp("^\\[?("+F+")"+subexp(subexp("\\%25|\\%(?!"+n+"{2})")+"("+D+")")+"?\\]?$")}}var r=buildExps(false);var t=buildExps(true);var a=function(){function sliceIterator(e,r){var t=[];var a=true;var i=false;var n=undefined;try{for(var s=e[Symbol.iterator](),o;!(a=(o=s.next()).done);a=true){t.push(o.value);if(r&&t.length===r)break}}catch(e){i=true;n=e}finally{try{if(!a&&s["return"])s["return"]()}finally{if(i)throw n}}return t}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var toConsumableArray=function(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}else{return Array.from(e)}};var i=2147483647;var n=36;var s=1;var o=26;var l=38;var u=700;var c=72;var f=128;var p="-";var d=/^xn--/;var h=/[^\0-\x7E]/;var m=/[\x2E\u3002\uFF0E\uFF61]/g;var v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var y=n-s;var g=Math.floor;var w=String.fromCharCode;function error$1(e){throw new RangeError(v[e])}function map(e,r){var t=[];var a=e.length;while(a--){t[a]=r(e[a])}return t}function mapDomain(e,r){var t=e.split("@");var a="";if(t.length>1){a=t[0]+"@";e=t[1]}e=e.replace(m,".");var i=e.split(".");var n=map(i,r).join(".");return a+n}function ucs2decode(e){var r=[];var t=0;var a=e.length;while(t<a){var i=e.charCodeAt(t++);if(i>=55296&&i<=56319&&t<a){var n=e.charCodeAt(t++);if((n&64512)==56320){r.push(((i&1023)<<10)+(n&1023)+65536)}else{r.push(i);t--}}else{r.push(i)}}return r}var S=function ucs2encode(e){return String.fromCodePoint.apply(String,toConsumableArray(e))};var b=function basicToDigit(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return n};var E=function digitToBasic(e,r){return e+22+75*(e<26)-((r!=0)<<5)};var P=function adapt(e,r,t){var a=0;e=t?g(e/u):e>>1;e+=g(e/r);for(;e>y*o>>1;a+=n){e=g(e/y)}return g(a+(y+1)*e/(e+l))};var _=function decode(e){var r=[];var t=e.length;var a=0;var l=f;var u=c;var d=e.lastIndexOf(p);if(d<0){d=0}for(var h=0;h<d;++h){if(e.charCodeAt(h)>=128){error$1("not-basic")}r.push(e.charCodeAt(h))}for(var m=d>0?d+1:0;m<t;){var v=a;for(var y=1,w=n;;w+=n){if(m>=t){error$1("invalid-input")}var S=b(e.charCodeAt(m++));if(S>=n||S>g((i-a)/y)){error$1("overflow")}a+=S*y;var E=w<=u?s:w>=u+o?o:w-u;if(S<E){break}var _=n-E;if(y>g(i/_)){error$1("overflow")}y*=_}var x=r.length+1;u=P(a-v,x,v==0);if(g(a/x)>i-l){error$1("overflow")}l+=g(a/x);a%=x;r.splice(a++,0,l)}return String.fromCodePoint.apply(String,r)};var x=function encode(e){var r=[];e=ucs2decode(e);var t=e.length;var a=f;var l=0;var u=c;var d=true;var h=false;var m=undefined;try{for(var v=e[Symbol.iterator](),y;!(d=(y=v.next()).done);d=true){var S=y.value;if(S<128){r.push(w(S))}}}catch(e){h=true;m=e}finally{try{if(!d&&v.return){v.return()}}finally{if(h){throw m}}}var b=r.length;var _=b;if(b){r.push(p)}while(_<t){var x=i;var O=true;var k=false;var C=undefined;try{for(var R=e[Symbol.iterator](),A;!(O=(A=R.next()).done);O=true){var F=A.value;if(F>=a&&F<x){x=F}}}catch(e){k=true;C=e}finally{try{if(!O&&R.return){R.return()}}finally{if(k){throw C}}}var D=_+1;if(x-a>g((i-l)/D)){error$1("overflow")}l+=(x-a)*D;a=x;var I=true;var j=false;var T=undefined;try{for(var $=e[Symbol.iterator](),N;!(I=(N=$.next()).done);I=true){var L=N.value;if(L<a&&++l>i){error$1("overflow")}if(L==a){var M=l;for(var q=n;;q+=n){var U=q<=u?s:q>=u+o?o:q-u;if(M<U){break}var H=M-U;var B=n-U;r.push(w(E(U+H%B,0)));M=g(H/B)}r.push(w(E(M,0)));u=P(l,D,_==b);l=0;++_}}}catch(e){j=true;T=e}finally{try{if(!I&&$.return){$.return()}}finally{if(j){throw T}}}++l;++a}return r.join("")};var O=function toUnicode(e){return mapDomain(e,(function(e){return d.test(e)?_(e.slice(4).toLowerCase()):e}))};var k=function toASCII(e){return mapDomain(e,(function(e){return h.test(e)?"xn--"+x(e):e}))};var C={version:"2.1.0",ucs2:{decode:ucs2decode,encode:S},decode:_,encode:x,toASCII:k,toUnicode:O};var R={};function pctEncChar(e){var r=e.charCodeAt(0);var t=void 0;if(r<16)t="%0"+r.toString(16).toUpperCase();else if(r<128)t="%"+r.toString(16).toUpperCase();else if(r<2048)t="%"+(r>>6|192).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();else t="%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();return t}function pctDecChars(e){var r="";var t=0;var a=e.length;while(t<a){var i=parseInt(e.substr(t+1,2),16);if(i<128){r+=String.fromCharCode(i);t+=3}else if(i>=194&&i<224){if(a-t>=6){var n=parseInt(e.substr(t+4,2),16);r+=String.fromCharCode((i&31)<<6|n&63)}else{r+=e.substr(t,6)}t+=6}else if(i>=224){if(a-t>=9){var s=parseInt(e.substr(t+4,2),16);var o=parseInt(e.substr(t+7,2),16);r+=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}else{r+=e.substr(t,9)}t+=9}else{r+=e.substr(t,3);t+=3}}return r}function _normalizeComponentEncoding(e,r){function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(r.UNRESERVED)?e:t}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 t=e.match(r.IPV4ADDRESS)||[];var i=a(t,2),n=i[1];if(n){return n.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,r){var t=e.match(r.IPV6ADDRESS)||[];var i=a(t,3),n=i[1],s=i[2];if(n){var o=n.toLowerCase().split("::").reverse(),l=a(o,2),u=l[0],c=l[1];var f=c?c.split(":").map(_stripLeadingZeros):[];var p=u.split(":").map(_stripLeadingZeros);var d=r.IPV4ADDRESS.test(p[p.length-1]);var h=d?7:8;var m=p.length-h;var v=Array(h);for(var y=0;y<h;++y){v[y]=f[y]||p[m+y]||""}if(d){v[h-1]=_normalizeIPv4(v[h-1],r)}var g=v.reduce((function(e,r,t){if(!r||r==="0"){var a=e[e.length-1];if(a&&a.index+a.length===t){a.length++}else{e.push({index:t,length:1})}}return e}),[]);var w=g.sort((function(e,r){return r.length-e.length}))[0];var S=void 0;if(w&&w.length>1){var b=v.slice(0,w.index);var E=v.slice(w.index+w.length);S=b.join(":")+"::"+E.join(":")}else{S=v.join(":")}if(s){S+="%"+s}return S}else{return e}}var A=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var F="".match(/(){0}/)[1]===undefined;function parse(e){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i={};var n=a.iri!==false?t:r;if(a.reference==="suffix")e=(a.scheme?a.scheme+":":"")+"//"+e;var s=e.match(A);if(s){if(F){i.scheme=s[1];i.userinfo=s[3];i.host=s[4];i.port=parseInt(s[5],10);i.path=s[6]||"";i.query=s[7];i.fragment=s[8];if(isNaN(i.port)){i.port=s[5]}}else{i.scheme=s[1]||undefined;i.userinfo=e.indexOf("@")!==-1?s[3]:undefined;i.host=e.indexOf("//")!==-1?s[4]:undefined;i.port=parseInt(s[5],10);i.path=s[6]||"";i.query=e.indexOf("?")!==-1?s[7]:undefined;i.fragment=e.indexOf("#")!==-1?s[8]:undefined;if(isNaN(i.port)){i.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:undefined}}if(i.host){i.host=_normalizeIPv6(_normalizeIPv4(i.host,n),n)}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(a.reference&&a.reference!=="suffix"&&a.reference!==i.reference){i.error=i.error||"URI is not a "+a.reference+" reference."}var o=R[(a.scheme||i.scheme||"").toLowerCase()];if(!a.unicodeSupport&&(!o||!o.unicodeSupport)){if(i.host&&(a.domainHost||o&&o.domainHost)){try{i.host=C.toASCII(i.host.replace(n.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,n)}if(o&&o.parse){o.parse(i,a)}}else{i.error=i.error||"URI can not be parsed."}return i}function _recomposeAuthority(e,a){var i=a.iri!==false?t:r;var n=[];if(e.userinfo!==undefined){n.push(e.userinfo);n.push("@")}if(e.host!==undefined){n.push(_normalizeIPv6(_normalizeIPv4(String(e.host),i),i).replace(i.IPV6ADDRESS,(function(e,r,t){return"["+r+(t?"%25"+t:"")+"]"})))}if(typeof e.port==="number"||typeof e.port==="string"){n.push(":");n.push(String(e.port))}return n.length?n.join(""):undefined}var D=/^\.\.?\//;var I=/^\/\.(\/|$)/;var j=/^\/\.\.(\/|$)/;var T=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var r=[];while(e.length){if(e.match(D)){e=e.replace(D,"")}else if(e.match(I)){e=e.replace(I,"/")}else if(e.match(j)){e=e.replace(j,"/");r.pop()}else if(e==="."||e===".."){e=""}else{var t=e.match(T);if(t){var a=t[0];e=e.slice(a.length);r.push(a)}else{throw new Error("Unexpected dot segment condition")}}}return r.join("")}function serialize(e){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=a.iri?t:r;var n=[];var s=R[(a.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize)s.serialize(e,a);if(e.host){if(i.IPV6ADDRESS.test(e.host)){}else if(a.domainHost||s&&s.domainHost){try{e.host=!a.iri?C.toASCII(e.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase()):C.toUnicode(e.host)}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(!a.iri?"ASCII":"Unicode")+" via punycode: "+r}}}_normalizeComponentEncoding(e,i);if(a.reference!=="suffix"&&e.scheme){n.push(e.scheme);n.push(":")}var o=_recomposeAuthority(e,a);if(o!==undefined){if(a.reference!=="suffix"){n.push("//")}n.push(o);if(e.path&&e.path.charAt(0)!=="/"){n.push("/")}}if(e.path!==undefined){var l=e.path;if(!a.absolutePath&&(!s||!s.absolutePath)){l=removeDotSegments(l)}if(o===undefined){l=l.replace(/^\/\//,"/%2F")}n.push(l)}if(e.query!==undefined){n.push("?");n.push(e.query)}if(e.fragment!==undefined){n.push("#");n.push(e.fragment)}return n.join("")}function resolveComponents(e,r){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments[3];var i={};if(!a){e=parse(serialize(e,t),t);r=parse(serialize(r,t),t)}t=t||{};if(!t.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,t){var a=assign({scheme:"null"},t);return serialize(resolveComponents(parse(e,a),parse(r,a),a,true),a)}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,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=serialize(e,t)}if(typeof r==="string"){r=serialize(parse(r,t),t)}else if(typeOf(r)==="object"){r=serialize(r,t)}return e===r}function escapeComponent(e,a){return e&&e.toString().replace(!a||!a.iri?r.ESCAPE:t.ESCAPE,pctEncChar)}function unescapeComponent(e,a){return e&&e.toString().replace(!a||!a.iri?r.PCT_ENCODED:t.PCT_ENCODED,pctDecChars)}var $={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 t=String(e.scheme).toLowerCase()==="https";if(e.port===(t?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var N={scheme:"https",domainHost:$.domainHost,parse:$.parse,serialize:$.serialize};function isSecure(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var L={scheme:"ws",domainHost:true,parse:function parse(e,r){var t=e;t.secure=isSecure(t);t.resourceName=(t.path||"/")+(t.query?"?"+t.query:"");t.path=undefined;t.query=undefined;return t},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 t=e.resourceName.split("?"),i=a(t,2),n=i[0],s=i[1];e.path=n&&n!=="/"?n:undefined;e.query=s;e.resourceName=undefined}e.fragment=undefined;return e}};var M={scheme:"wss",domainHost:L.domainHost,parse:L.parse,serialize:L.serialize};var q={};var U=true;var H="[A-Za-z0-9\\-\\.\\_\\~"+(U?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var B="[0-9A-Fa-f]";var z=subexp(subexp("%[EFef]"+B+"%"+B+B+"%"+B+B)+"|"+subexp("%[89A-Fa-f]"+B+"%"+B+B)+"|"+subexp("%"+B+B));var V="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var W="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var Q=merge(W,'[\\"\\\\]');var Y="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var K=new RegExp(H,"g");var J=new RegExp(z,"g");var G=new RegExp(merge("[^]",V,"[\\.]",'[\\"]',Q),"g");var Z=new RegExp(merge("[^]",H,Y),"g");var X=Z;function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(K)?e:r}var ee={scheme:"mailto",parse:function parse$$1(e,r){var t=e;var a=t.to=t.path?t.path.split(","):[];t.path=undefined;if(t.query){var i=false;var n={};var s=t.query.split("&");for(var o=0,l=s.length;o<l;++o){var u=s[o].split("=");switch(u[0]){case"to":var c=u[1].split(",");for(var f=0,p=c.length;f<p;++f){a.push(c[f])}break;case"subject":t.subject=unescapeComponent(u[1],r);break;case"body":t.body=unescapeComponent(u[1],r);break;default:i=true;n[unescapeComponent(u[0],r)]=unescapeComponent(u[1],r);break}}if(i)t.headers=n}t.query=undefined;for(var d=0,h=a.length;d<h;++d){var m=a[d].split("@");m[0]=unescapeComponent(m[0]);if(!r.unicodeSupport){try{m[1]=C.toASCII(unescapeComponent(m[1],r).toLowerCase())}catch(e){t.error=t.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}}else{m[1]=unescapeComponent(m[1],r).toLowerCase()}a[d]=m.join("@")}return t},serialize:function serialize$$1(e,r){var t=e;var a=toArray(e.to);if(a){for(var i=0,n=a.length;i<n;++i){var s=String(a[i]);var o=s.lastIndexOf("@");var l=s.slice(0,o).replace(J,decodeUnreserved).replace(J,toUpperCase).replace(G,pctEncChar);var u=s.slice(o+1);try{u=!r.iri?C.toASCII(unescapeComponent(u,r).toLowerCase()):C.toUnicode(u)}catch(e){t.error=t.error||"Email address's domain name can not be converted to "+(!r.iri?"ASCII":"Unicode")+" via punycode: "+e}a[i]=l+"@"+u}t.path=a.join(",")}var c=e.headers=e.headers||{};if(e.subject)c["subject"]=e.subject;if(e.body)c["body"]=e.body;var f=[];for(var p in c){if(c[p]!==q[p]){f.push(p.replace(J,decodeUnreserved).replace(J,toUpperCase).replace(Z,pctEncChar)+"="+c[p].replace(J,decodeUnreserved).replace(J,toUpperCase).replace(X,pctEncChar))}}if(f.length){t.query=f.join("&")}return t}};var re=/^([^\:]+)\:(.*)/;var te={scheme:"urn",parse:function parse$$1(e,r){var t=e.path&&e.path.match(re);var a=e;if(t){var i=r.scheme||a.scheme||"urn";var n=t[1].toLowerCase();var s=t[2];var o=i+":"+(r.nid||n);var l=R[o];a.nid=n;a.nss=s;a.path=undefined;if(l){a=l.parse(a,r)}}else{a.error=a.error||"URN can not be parsed."}return a},serialize:function serialize$$1(e,r){var t=r.scheme||e.scheme||"urn";var a=e.nid;var i=t+":"+(r.nid||a);var n=R[i];if(n){e=n.serialize(e,r)}var s=e;var o=e.nss;s.path=(a||r.nid)+":"+o;return s}};var ae=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var ie={scheme:"urn:uuid",parse:function parse(e,r){var t=e;t.uuid=t.nss;t.nss=undefined;if(!r.tolerant&&(!t.uuid||!t.uuid.match(ae))){t.error=t.error||"UUID is not valid."}return t},serialize:function serialize(e,r){var t=e;t.nss=(e.uuid||"").toLowerCase();return t}};R[$.scheme]=$;R[N.scheme]=N;R[L.scheme]=L;R[M.scheme]=M;R[ee.scheme]=ee;R[te.scheme]=te;R[ie.scheme]=ie;e.SCHEMES=R;e.pctEncChar=pctEncChar;e.pctDecChars=pctDecChars;e.parse=parse;e.removeDotSegments=removeDotSegments;e.serialize=serialize;e.resolveComponents=resolveComponents;e.resolve=resolve;e.normalize=normalize;e.equal=equal;e.escapeComponent=escapeComponent;e.unescapeComponent=unescapeComponent;Object.defineProperty(e,"__esModule",{value:true})}))},12:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(r,"v3",{enumerable:true,get:function(){return i.default}});Object.defineProperty(r,"v4",{enumerable:true,get:function(){return n.default}});Object.defineProperty(r,"v5",{enumerable:true,get:function(){return s.default}});Object.defineProperty(r,"NIL",{enumerable:true,get:function(){return o.default}});Object.defineProperty(r,"version",{enumerable:true,get:function(){return l.default}});Object.defineProperty(r,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(r,"stringify",{enumerable:true,get:function(){return c.default}});Object.defineProperty(r,"parse",{enumerable:true,get:function(){return f.default}});var a=_interopRequireDefault(t(230));var i=_interopRequireDefault(t(9642));var n=_interopRequireDefault(t(8963));var s=_interopRequireDefault(t(5103));var o=_interopRequireDefault(t(9187));var l=_interopRequireDefault(t(4956));var u=_interopRequireDefault(t(3277));var c=_interopRequireDefault(t(9525));var f=_interopRequireDefault(t(1884));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},1814:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("md5").update(e).digest()}var i=md5;r["default"]=i},9187:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var t="00000000-0000-0000-0000-000000000000";r["default"]=t},1884:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(3277));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}let r;const t=new Uint8Array(16);t[0]=(r=parseInt(e.slice(0,8),16))>>>24;t[1]=r>>>16&255;t[2]=r>>>8&255;t[3]=r&255;t[4]=(r=parseInt(e.slice(9,13),16))>>>8;t[5]=r&255;t[6]=(r=parseInt(e.slice(14,18),16))>>>8;t[7]=r&255;t[8]=(r=parseInt(e.slice(19,23),16))>>>8;t[9]=r&255;t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255;t[11]=r/4294967296&255;t[12]=r>>>24&255;t[13]=r>>>16&255;t[14]=r>>>8&255;t[15]=r&255;return t}var i=parse;r["default"]=i},7049:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;r["default"]=t},3104:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=rng;var a=_interopRequireDefault(t(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=new Uint8Array(256);let n=i.length;function rng(){if(n>i.length-16){a.default.randomFillSync(i);n=0}return i.slice(n,n+=16)}},8973:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("sha1").update(e).digest()}var i=sha1;r["default"]=i},9525:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(3277));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=[];for(let e=0;e<256;++e){i.push((e+256).toString(16).substr(1))}function stringify(e,r=0){const t=(i[e[r+0]]+i[e[r+1]]+i[e[r+2]]+i[e[r+3]]+"-"+i[e[r+4]]+i[e[r+5]]+"-"+i[e[r+6]]+i[e[r+7]]+"-"+i[e[r+8]]+i[e[r+9]]+"-"+i[e[r+10]]+i[e[r+11]]+i[e[r+12]]+i[e[r+13]]+i[e[r+14]]+i[e[r+15]]).toLowerCase();if(!(0,a.default)(t)){throw TypeError("Stringified UUID is invalid")}return t}var n=stringify;r["default"]=n},230:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(3104));var i=_interopRequireDefault(t(9525));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let n;let s;let o=0;let l=0;function v1(e,r,t){let u=r&&t||0;const c=r||new Array(16);e=e||{};let f=e.node||n;let p=e.clockseq!==undefined?e.clockseq:s;if(f==null||p==null){const r=e.random||(e.rng||a.default)();if(f==null){f=n=[r[0]|1,r[1],r[2],r[3],r[4],r[5]]}if(p==null){p=s=(r[6]<<8|r[7])&16383}}let d=e.msecs!==undefined?e.msecs:Date.now();let h=e.nsecs!==undefined?e.nsecs:l+1;const m=d-o+(h-l)/1e4;if(m<0&&e.clockseq===undefined){p=p+1&16383}if((m<0||d>o)&&e.nsecs===undefined){h=0}if(h>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=d;l=h;s=p;d+=122192928e5;const v=((d&268435455)*1e4+h)%4294967296;c[u++]=v>>>24&255;c[u++]=v>>>16&255;c[u++]=v>>>8&255;c[u++]=v&255;const y=d/4294967296*1e4&268435455;c[u++]=y>>>8&255;c[u++]=y&255;c[u++]=y>>>24&15|16;c[u++]=y>>>16&255;c[u++]=p>>>8|128;c[u++]=p&255;for(let e=0;e<6;++e){c[u+e]=f[e]}return r||(0,i.default)(c)}var u=v1;r["default"]=u},9642:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(8298));var i=_interopRequireDefault(t(1814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=(0,a.default)("v3",48,i.default);var s=n;r["default"]=s},8298:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=_default;r.URL=r.DNS=void 0;var a=_interopRequireDefault(t(9525));var i=_interopRequireDefault(t(1884));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const r=[];for(let t=0;t<e.length;++t){r.push(e.charCodeAt(t))}return r}const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=n;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=s;function _default(e,r,t){function generateUUID(e,n,s,o){if(typeof e==="string"){e=stringToBytes(e)}if(typeof n==="string"){n=(0,i.default)(n)}if(n.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let l=new Uint8Array(16+e.length);l.set(n);l.set(e,n.length);l=t(l);l[6]=l[6]&15|r;l[8]=l[8]&63|128;if(s){o=o||0;for(let e=0;e<16;++e){s[o+e]=l[e]}return s}return(0,a.default)(l)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=n;generateUUID.URL=s;return generateUUID}},8963:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(3104));var i=_interopRequireDefault(t(9525));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,r,t){e=e||{};const n=e.random||(e.rng||a.default)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(r){t=t||0;for(let e=0;e<16;++e){r[t+e]=n[e]}return r}return(0,i.default)(n)}var n=v4;r["default"]=n},5103:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(8298));var i=_interopRequireDefault(t(8973));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=(0,a.default)("v5",80,i.default);var s=n;r["default"]=s},3277:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(7049));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&a.default.test(e)}var i=validate;r["default"]=i},4956:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(3277));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var i=version;r["default"]=i},9491:e=>{"use strict";e.exports=require("assert")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},7282:e=>{"use strict";e.exports=require("process")},2781:e=>{"use strict";e.exports=require("stream")},4404:e=>{"use strict";e.exports=require("tls")},3837:e=>{"use strict";e.exports=require("util")},5379: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#"}')},3246: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}')},8703: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}')}};var r={};function __nccwpck_require__(t){var a=r[t];if(a!==undefined){return a.exports}var i=r[t]={exports:{}};var n=true;try{e[t].call(i.exports,i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete r[t]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(8243);module.exports=t})(); |